/* style/cockfighting.css */
.page-cockfighting {
  background-color: var(--bg-color, #08160F); /* Fallback to custom bg color, which is dark */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Space for footer */
}

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

.page-cockfighting__container--center {
  text-align: center;
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #08160F; /* Ensure hero section has the dark background */
}

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

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-cockfighting__hero-content {
  max-width: 800px;
  margin-top: 20px;
}

.page-cockfighting__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  color: #F2FFF6;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.2rem;
  color: #A7D9B8;
  margin-bottom: 30px;
}

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

.page-cockfighting__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't affect total width */
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: #F2FFF6;
  border: 2px solid #2E7A4E;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #11A84E;
  color: #F2FFF6;
}

/* Section styles */
.page-cockfighting__section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green for sections */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-cockfighting__section--alt {
  background-color: #08160F; /* Main background color for alternating sections */
}

.page-cockfighting__section--cta {
  background-color: #11271B;
  margin-top: 40px;
}

.page-cockfighting__section-title {
  font-size: 2.5rem;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-cockfighting__section-subtitle {
  font-size: 1.8rem;
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-cockfighting__text-block--center {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__video-caption {
  margin-top: 20px;
  font-style: italic;
  text-align: center;
  color: #A7D9B8;
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-cockfighting__list-item {
  color: #F2FFF6;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-cockfighting__list-item::before {
  content: '✓';
  color: #2AD16F;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-cockfighting__list--safety .page-cockfighting__list-item {
  color: #A7D9B8;
}

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

.page-cockfighting__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #F2FFF6;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__card-text {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow and push button to bottom */
}

.page-cockfighting__safety-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-cockfighting__safety-image {
  flex: 1 1 400px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-cockfighting__list--safety {
  flex: 1 1 400px;
}

.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #0A4B2C;
  border-radius: 8px;
}

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

.page-cockfighting__faq-item {
  background-color: #11271B;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2FFF6;
  background-color: #1E3A2A; /* Divider color for question background */
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2AD16F;
  margin-left: 20px;
}

.page-cockfighting__faq-answer {
  padding: 0 30px 20px;
  font-size: 1.1rem;
  color: #A7D9B8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 15px;
}

/* For details tag (preferred native solution) */
.page-cockfighting__faq-item details > summary {
  list-style: none;
}
.page-cockfighting__faq-item details > summary::-webkit-details-marker {
  display: none;
}
.page-cockfighting__faq-item details[open] .page-cockfighting__faq-answer {
  max-height: fit-content; /* Allow content to dictate height */
  padding-top: 15px;
}

/* Video section */
.page-cockfighting__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 20px 60px; /* Adjust padding as needed, top is handled by body */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F;
}

.page-cockfighting__video-container {
  width: 100%; /* Desktop width */
  max-width: 1000px; /* Example max width for video */
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-cockfighting__section-title {
    font-size: 2rem;
  }
  .page-cockfighting__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-cockfighting__hero-description {
    font-size: 1rem;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
  }
  .page-cockfighting__btn {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-cockfighting__section-subtitle {
    font-size: 1.5rem;
  }
  .page-cockfighting__text-block,
  .page-cockfighting__list-item,
  .page-cockfighting__card-text,
  .page-cockfighting__faq-answer {
    font-size: 0.95rem;
  }
  .page-cockfighting__card-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }
  .page-cockfighting__safety-content {
    flex-direction: column;
    gap: 20px;
  }

  /* Mobile image and video responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .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;
    overflow: hidden !important; /* Prevent overflow */
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-cockfighting__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure no filter on images */
.page-cockfighting img {
  filter: none !important;
}