/* style/cockfighting.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-cockfighting {
  color: #ffffff; /* Light text for readability on dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Section general styles */
.page-cockfighting__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
}

.page-cockfighting__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-cockfighting__text-block {
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for body text */
}

.page-cockfighting__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-cockfighting__list li {
  margin-bottom: 10px;
}

.page-cockfighting__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #1a1a1a; /* Dark background for hero section */
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and content */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
}

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

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%; /* Ensure content takes full width up to max-width */
  z-index: 1;
}

.page-cockfighting__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #FFFFFF;
  margin-bottom: 20px;
  /* Using clamp for responsive font size, avoiding fixed large values */
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.page-cockfighting__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__cta-buttons--centered {
  justify-content: center;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  box-sizing: border-box; /* Include padding in width calculation */
  min-width: 180px; /* Minimum width for buttons */
}

.page-cockfighting__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-cockfighting__btn-primary:hover {
  background-color: #1e87bb; /* Slightly darker on hover */
  border-color: #1e87bb;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand color for text */
  border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Section Specific Styles */
.page-cockfighting__intro-section,
.page-cockfighting__registration-guide-section,
.page-cockfighting__safety-section,
.page-cockfighting__conclusion-section {
  background-color: #1a1a1a; /* Dark background for light-bg sections */
  color: #f0f0f0;
}

.page-cockfighting__betting-types-section,
.page-cockfighting__strategies-section,
.page-cockfighting__faq-section,
.page-cockfighting__video-section {
  background-color: #0d0d0d; /* Even darker background for dark-bg sections */
  color: #ffffff;
}

/* Image in content */
.page-cockfighting__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 30px;
}

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

.page-cockfighting__faq-item summary {
  list-style: none; /* Hide default marker for details tag */
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  color: #FFFFFF;
  background-color: #26A9E0; /* Brand color for FAQ questions */
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

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

/* Video Section */
.page-cockfighting__video-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Ensure desktop width is set */
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100%) */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block; /* Make the entire link block-level */
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure video is block level */
}

/* No CSS filter on images */
.page-cockfighting img {
  filter: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2rem;
  }

  .page-cockfighting__sub-title {
    font-size: 1.6rem;
  }

  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .page-cockfighting__hero-description {
    font-size: 1.1rem;
  }

  .page-cockfighting__content-area {
    padding: 40px 15px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__content-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Video responsiveness */
  .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__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Button responsiveness */
  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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; /* Add padding to text inside button */
    padding-right: 15px;
  }

  /* General content areas */
  .page-cockfighting__content-area {
    padding: 30px 15px;
  }

  .page-cockfighting__hero-section {
    padding: 30px 15px;
    padding-top: 10px;
  }

  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .page-cockfighting__sub-title {
    font-size: 1.4rem;
  }

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

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