/* style/cockfighting.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-cockfighting {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Main content background should be transparent to show body background */
}

/* Ensure headings maintain good contrast */
.page-cockfighting h1,
.page-cockfighting h2,
.page-cockfighting h3,
.page-cockfighting h4,
.page-cockfighting h5,
.page-cockfighting h6 {
  color: #ffffff;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* H1 specific style, no fixed large font-size */
.page-cockfighting__main-title {
  font-weight: 700;
  line-height: 1.1;
  max-width: 900px; /* Constraint for large screens */
  margin-bottom: 20px;
  text-align: center;
  /* Using clamp for responsive font size, avoiding overly large fixed values */
  font-size: clamp(2.2rem, 4vw, 3.5rem); 
}

/* Section container for consistent padding and max-width */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Default horizontal padding */
  box-sizing: border-box;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: #0a0a0a; /* Match body background for seamless transition */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-cockfighting__hero-content {
  position: relative; /* Ensure text is below image in normal flow */
  z-index: 2; /* Ensure content is above image if any slight overlap occurs, though main rule is no overlap */
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
}

.page-cockfighting__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for body text */
}

/* General Section Styling */
.page-cockfighting__section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background for sections */
  color: #ffffff;
}

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

.page-cockfighting__paragraph {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-cockfighting__highlight {
  color: #26A9E0; /* Highlight brand color */
  font-weight: bold;
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
}

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

.page-cockfighting__btn-primary:hover {
  background-color: #1e87b7; /* Darker shade on hover */
  border-color: #1e87b7;
}

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

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

/* Image styles within content sections */
.page-cockfighting__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Grid layout for advantages section */
.page-cockfighting__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent light background for cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%; /* Ensure cards are same height in a row */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15); /* Subtle border */
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-cockfighting__card-text {
  font-size: 1rem;
  color: #f0f0f0;
}

/* How-to-play step list */
.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__list-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #26A9E0;
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #ffffff;
}

.page-cockfighting__list-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-cockfighting__list-text {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Video section */
.page-cockfighting__live-streams {
  background-color: #0d0d0d; /* Slightly different dark background */
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%; /* Desktop width */
  margin: 30px auto;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  /* Aspect ratio trick for responsive video, adjust padding-bottom for 16:9 */
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer; /* Indicate video is clickable */
}

/* Call to action section with brand color background */
.page-cockfighting__call-to-action .page-cockfighting__container {
  background-color: #26A9E0; /* Primary brand color */
  padding: 50px 20px;
  border-radius: 12px;
  text-align: center;
}

.page-cockfighting__call-to-action .page-cockfighting__section-title {
  color: #ffffff; /* White text on brand color background */
  margin-bottom: 20px;
}

.page-cockfighting__call-to-action .page-cockfighting__paragraph {
  color: #e0f2f7; /* Slightly lighter white for paragraph */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__call-to-action .page-cockfighting__btn-primary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-cockfighting__call-to-action .page-cockfighting__btn-primary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-cockfighting__call-to-action .page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

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

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

.page-cockfighting__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-cockfighting__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

/* Rotate the toggle icon when details is open */
.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes an X or similar */
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    padding: 30px 20px;
  }

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

  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }
}

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

  .page-cockfighting__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem); /* Smaller on mobile */
    margin-bottom: 15px;
  }

  .page-cockfighting__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Ensure button containers also adapt */
  .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;
  }

  .page-cockfighting__section {
    padding: 40px 0;
  }

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

  .page-cockfighting__paragraph {
    font-size: 1rem;
  }

  .page-cockfighting__grid {
    grid-template-columns: 1fr; /* Single column for cards */
  }

  .page-cockfighting__card {
    padding: 25px;
  }

  .page-cockfighting__card-title {
    font-size: 1.2rem;
  }

  .page-cockfighting__list-item {
    padding: 15px 20px;
  }

  .page-cockfighting__list-title {
    font-size: 1.1rem;
  }

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

  .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;
  }

  /* Image 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

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

  .page-cockfighting__call-to-action .page-cockfighting__container {
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .page-cockfighting__section-title {
    font-size: 1.5rem;
  }
}