/* style/cockfighting.css */

:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-color: #F5F7FA;
  --border-color: #E0E0E0;
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for light background */
  background-color: var(--background-color);
}

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Sections */
.page-cockfighting__hero-section,
.page-cockfighting__introduction-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__video-section,
.page-cockfighting__types-of-bets-section,
.page-cockfighting__tips-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting__dark-bg {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-cockfighting__light-bg {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: inherit; /* Inherit from section for contrast */
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
  color: #ffffff;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
  padding: 10px 0 80px 0; /* body handles header offset, small top padding */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 160ch;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
  background-color: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Features Grid */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-cockfighting__feature-item {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--text-main-color);
}

.page-cockfighting__feature-item:hover {
  transform: translateY(-10px);
}

.page-cockfighting__feature-icon {
  width: 200px; /* Minimum 200px */
  height: 200px; /* Minimum 200px */
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__feature-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* How To Play Steps */
.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-cockfighting__step-card {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--text-main-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__step-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Video Section */
.page-cockfighting__video-section {
  padding-top: 10px; /* Small top padding */
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 40px;
  border-radius: 12px;
}

.page-cockfighting__video-wrapper .page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-cockfighting__video-caption {
  font-style: italic;
  margin-top: 20px;
  font-size: 0.9em;
  color: var(--text-main-color);
}

/* Types of Bets */
.page-cockfighting__bets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-cockfighting__bet-card {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--text-main-color);
}

.page-cockfighting__bet-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Tips Section */
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 40px auto;
}

.page-cockfighting__tips-list li {
  background-color: var(--card-bg-color);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  color: var(--text-main-color);
}

.page-cockfighting__tips-list li strong {
  color: var(--primary-color);
}

.page-cockfighting__image-inset {
  width: 800px; /* Minimum 200px */
  height: 450px; /* Minimum 200px */
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__tips-note {
  font-style: italic;
  font-size: 1em;
  color: var(--text-main-color);
}

/* Promotions Section */
.page-cockfighting__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-cockfighting__promo-card {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: var(--text-main-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__promo-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg-color);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--text-main-color);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary-color);
  background-color: var(--card-bg-color);
  border-bottom: 1px solid var(--border-color);
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-question::marker {
  display: none;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--text-main-color);
}

.page-cockfighting__faq-answer p {
  margin-top: 10px;
}

.page-cockfighting__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting__text-link:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-cockfighting__cta-content {
  max-width: 900px;
}

/* Images */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__video-section,
  .page-cockfighting__types-of-bets-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
    max-width: 100%;
  }
  .page-cockfighting__hero-section {
    padding: 10px 0 60px 0;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto; /* Center buttons when stacked */
  }
  .page-cockfighting__container,
  .page-cockfighting__hero-content,
  .page-cockfighting__cta-content {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__image-inset {
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__video-section {
    padding-top: 10px !important;
  }
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-cockfighting__faq-question {
    font-size: 1em;
  }
  .page-cockfighting__faq-answer {
    font-size: 0.95em;
  }
  .page-cockfighting__feature-icon,
  .page-cockfighting__feature-item,
  .page-cockfighting__step-card,
  .page-cockfighting__bet-card,
  .page-cockfighting__promo-card {
    padding: 20px;
  }
  .page-cockfighting__feature-icon {
    width: 200px !important;
    height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__hero-section,
  .page-cockfighting__introduction-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__video-section,
  .page-cockfighting__types-of-bets-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 40px 0;
  }
}