/* style/cockfighting.css */
:root {
  --primary-color-dark: #0A2239;
  --secondary-color-gold: #FFD700;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-light: #ffffff;
  --background-dark: #0A2239;
  --border-color-light: #e0e0e0;
}

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

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

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--text-color-light);
  padding: 20px;
}

.page-cockfighting__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color-gold);
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color-dark);
}

.page-cockfighting__sub-section-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color-dark);
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__introduction-section,
.page-cockfighting__rules-and-odds-section,
.page-cockfighting__advantages-section,
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__registration-guide-section,
.page-cockfighting__cta-final-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-title,
.page-cockfighting__promotions-section .page-cockfighting__section-title,
.page-cockfighting__registration-guide-section .page-cockfighting__section-title,
.page-cockfighting__cta-final-section .page-cockfighting__section-title {
  color: var(--secondary-color-gold);
}

.page-cockfighting__how-to-play-section .page-cockfighting__text-block,
.page-cockfighting__promotions-section .page-cockfighting__text-block,
.page-cockfighting__registration-guide-section .page-cockfighting__text-block,
.page-cockfighting__cta-final-section .page-cockfighting__text-block {
  color: var(--text-color-light);
}

.page-cockfighting__image-row {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-cockfighting__image-item {
  width: calc(50% - 10px);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-cockfighting__numbered-list,
.page-cockfighting__bullet-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item {
  counter-increment: list-counter;
  margin-bottom: 15px;
  padding-left: 40px;
  position: relative;
  font-size: 1.1em;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: var(--secondary-color-gold);
  font-size: 1.2em;
}

.page-cockfighting__bullet-list .page-cockfighting__list-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 1.1em;
}

.page-cockfighting__bullet-list .page-cockfighting__list-item::before {
  content: "\2022"; /* Bullet point */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color-gold);
  font-size: 1.2em;
}

.page-cockfighting__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-cockfighting__card {
  background: var(--background-light);
  color: var(--text-color-dark);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__dark-bg-card {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__dark-bg-card .page-cockfighting__card-title {
  color: var(--secondary-color-gold);
}

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

.page-cockfighting__card-text {
  font-size: 1em;
}

.page-cockfighting__icon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__icon-list .page-cockfighting__list-item {
  text-align: center;
}

.page-cockfighting__list-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-cockfighting__list-text {
  font-size: 1em;
  color: var(--text-color-dark);
}

.page-cockfighting__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__guide-step {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  border-left: 5px solid var(--secondary-color-gold);
}

.page-cockfighting__step-title {
  font-size: 1.6em;
  color: var(--secondary-color-gold);
  margin-bottom: 15px;
}

.page-cockfighting__step-text {
  font-size: 1.1em;
  color: var(--text-color-light);
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-cockfighting__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color-gold);
  border: 2px solid var(--secondary-color-gold);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--secondary-color-gold);
  color: var(--primary-color-dark);
}

.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background: var(--background-light);
  border: 1px solid var(--border-color-light);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color-dark);
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: #f0f0f0;
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-color-dark);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to reveal content */
  padding: 15px 25px 20px;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
  color: var(--secondary-color-gold);
}

.page-cockfighting__dark-bg .page-cockfighting__text-block,
.page-cockfighting__dark-bg .page-cockfighting__numbered-list .page-cockfighting__list-item,
.page-cockfighting__dark-bg .page-cockfighting__bullet-list .page-cockfighting__list-item {
  color: var(--text-color-light);
}

/* Ensure all images are responsive and meet minimum size */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 2.8em;
  }
  .page-cockfighting__hero-description {
    font-size: 1.1em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__sub-section-title {
    font-size: 1.5em;
  }
  .page-cockfighting__image-item {
    width: 100%;
  }
  .page-cockfighting__icon-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__hero-section {
    min-height: 450px;
    padding: 40px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-cockfighting__hero-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__sub-section-title {
    font-size: 1.3em;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }
  .page-cockfighting__image-item {
    width: 100% !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !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 video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__cards-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__card {
    padding: 20px;
  }
  .page-cockfighting__icon-list {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__list-icon {
    min-width: 200px !important; /* Ensure icons are large enough on mobile */
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 20px 20px;
  }
}