/* style/cockfighting.css */
/* Custom Colors */
:root {
  --abc8-bg-dark: #08160F;
  --abc8-card-bg: #11271B;
  --abc8-text-main: #F2FFF6;
  --abc8-text-secondary: #A7D9B8;
  --abc8-border: #2E7A4E;
  --abc8-glow: #57E38D;
  --abc8-gold: #F2C14E;
  --abc8-divider: #1E3A2A;
  --abc8-deep-green: #0A4B2C;
  --abc8-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --abc8-primary-color: #11A84E;
  --abc8-secondary-color: #22C768;
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-cockfighting {
  background-color: var(--abc8-bg-dark); /* Ensure consistency if body background is not fully covering */
  color: var(--abc8-text-main); /* Light text for dark background */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

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

/* Section styles */
.page-cockfighting__hero-section,
.page-cockfighting__introduction-section,
.page-cockfighting__thomo-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__why-choose-section,
.page-cockfighting__faq-section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__dark-section {
  background-color: var(--abc8-card-bg); /* Use card background for contrast sections */
  color: var(--abc8-text-main);
}

.page-cockfighting__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 80px;
  background-color: var(--abc8-bg-dark);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 40px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area without distortion */
}

.page-cockfighting__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-cockfighting__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--abc8-gold); /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.2rem;
  color: var(--abc8-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--abc8-gold);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--abc8-glow);
  border-radius: 2px;
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  color: var(--abc8-text-main);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left; /* Align text blocks left */
}

.page-cockfighting__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--abc8-border);
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-cockfighting__list li {
  background-color: var(--abc8-card-bg);
  color: var(--abc8-text-main);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  border-left: 5px solid var(--abc8-glow);
  font-size: 1.1rem;
}

/* Call to Action Buttons */
.page-cockfighting__hero-cta-buttons,
.page-cockfighting__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Ensure container takes full width for flex-wrap */
  max-width: 100%;
  box-sizing: border-box;
}

.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: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  max-width: 100%; /* Ensure buttons adapt to mobile */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: var(--abc8-btn-gradient);
  color: var(--abc8-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__btn-secondary {
  background: none;
  color: var(--abc8-glow);
  border: 2px solid var(--abc8-glow);
  box-shadow: none;
}

.page-cockfighting__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1); /* Light hover effect */
  transform: translateY(-3px);
}

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

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

.page-cockfighting__faq-item summary {
  list-style: none; /* Hide default marker */
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--abc8-gold);
  cursor: pointer;
  background-color: var(--abc8-card-bg);
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: var(--abc8-deep-green); /* Slightly darker on hover */
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--abc8-glow);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--abc8-text-secondary);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

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

/* Fallback for non-details FAQ (if JS is used with div structure) */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 500px !important;
  padding-top: 10px !important;
}

/* Ensure contrast for text on various backgrounds */
.page-cockfighting h1, .page-cockfighting h2, .page-cockfighting h3, .page-cockfighting h4, .page-cockfighting h5, .page-cockfighting h6 {
  color: var(--abc8-gold); /* Headings use gold for visibility */
}

.page-cockfighting p, .page-cockfighting li {
  color: var(--abc8-text-main); /* Main text uses light color */
}

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

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

  .page-cockfighting__hero-title {
    font-size: 2rem; /* Smaller H1 on mobile */
  }

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

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

  .page-cockfighting__text-block {
    font-size: 1rem;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    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;
    min-width: unset; /* Remove min-width on mobile */
  }

  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px; /* Add padding to button containers */
  }

  /* Image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsiveness (if any) - Placeholder for future video element */
  .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; /* Small top padding for video section */
  }

  /* General container padding for mobile */
  .page-cockfighting__container,
  .page-cockfighting__introduction-section,
  .page-cockfighting__thomo-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__faq-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

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

  .page-cockfighting__faq-answer {
    font-size: 0.95rem;
    padding: 0 20px 15px;
  }
}