/* style/cockfighting.css */

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #FFFFFF;
}

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

.page-cockfighting__dark-section {
  background-color: #017439;
  color: #FFFFFF;
}

.page-cockfighting__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-cockfighting__hero-section {
  text-align: center;
  padding: 80px 20px;
  padding-top: calc(80px + var(--header-offset, 120px)); /* Ensure header offset */
}

.page-cockfighting__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFFFF;
}

.page-cockfighting__subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFFFF;
}

.page-cockfighting__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: inherit; /* Inherit from parent section */
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: inherit; /* Inherit from parent section */
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cockfighting__cta-buttons--center {
  margin-top: 50px;
}

.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;
  border: 2px solid transparent;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button font color */
  border-color: #C30808;
}

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

.page-cockfighting__btn-secondary {
  background-color: #017439; /* Main color */
  color: #FFFFFF;
  border-color: #017439;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

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

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
}

/* Features Section */
.page-cockfighting__features-section,
.page-cockfighting__tournaments-section,
.page-cockfighting__guide-section,
.page-cockfighting__tips-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-bottom {
  padding: 60px 20px;
}

.page-cockfighting__feature-grid,
.page-cockfighting__tournament-list,
.page-cockfighting__steps-grid,
.page-cockfighting__tips-grid,
.page-cockfighting__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-card,
.page-cockfighting__tournament-item,
.page-cockfighting__step-card,
.page-cockfighting__tip-card,
.page-cockfighting__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-cockfighting__feature-card:hover,
.page-cockfighting__tournament-item:hover,
.page-cockfighting__step-card:hover,
.page-cockfighting__tip-card:hover,
.page-cockfighting__promo-card:hover {
  transform: translateY(-10px);
}

.page-cockfighting__feature-icon,
.page-cockfighting__tournament-image,
.page-cockfighting__promo-image {
  width: 100%;
  height: auto;
  max-width: 250px; /* Adjust as needed for visual balance */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-cockfighting__card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
}

/* Tournament Specific */
.page-cockfighting__tournament-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-cockfighting__tournament-item .page-cockfighting__btn-secondary {
  margin-top: 20px;
  background-color: #FFFFFF;
  color: #017439;
  border-color: #017439;
}

.page-cockfighting__tournament-item .page-cockfighting__btn-secondary:hover {
  background-color: #e0e0e0;
}

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

.page-cockfighting__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #333333;
  font-weight: bold;
  font-size: 1.1em;
  border-bottom: 1px solid #eee;
}

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

.page-cockfighting__faq-title {
  margin: 0;
  color: #017439; /* Use brand color for question title */
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

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

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #FFFFFF;
  color: #555555;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* General image styling for content area */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Enforce min-size for content area images */
  min-width: 200px;
  min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.5em;
  }

  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__feature-grid,
  .page-cockfighting__tournament-list,
  .page-cockfighting__steps-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 60px 15px;
    padding-top: calc(60px + var(--header-offset, 120px));
  }

  .page-cockfighting__main-title {
    font-size: 2em;
  }

  .page-cockfighting__subtitle {
    font-size: 1em;
  }

  .page-cockfighting__section-title {
    font-size: 1.8em;
  }

  .page-cockfighting__section-description {
    font-size: 0.95em;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__video-section,
  .page-cockfighting__features-section,
  .page-cockfighting__tournaments-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-bottom {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__video-wrapper {
    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;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__feature-grid,
  .page-cockfighting__tournament-list,
  .page-cockfighting__steps-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__tournament-item,
  .page-cockfighting__step-card,
  .page-cockfighting__tip-card,
  .page-cockfighting__promo-card {
    padding: 20px;
  }

  .page-cockfighting__feature-icon,
  .page-cockfighting__tournament-image,
  .page-cockfighting__promo-image {
    max-width: 100%;
    height: auto;
  }

  .page-cockfighting__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-cockfighting__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 1.8em;
  }

  .page-cockfighting__section-title {
    font-size: 1.6em;
  }

  .page-cockfighting__cta-buttons {
    gap: 10px;
  }
}