/* style/cockfighting.css */

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

.page-cockfighting {
  background-color: var(--page-cockfighting-bg);
  color: var(--page-cockfighting-text-main); /* Ensure contrast with dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%; /* Ensure width 100% for desktop flex */
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-cockfighting-deep-green); /* Fallback/base for hero */
}

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

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability, not color change */
}

.page-cockfighting__hero-content {
  padding: 40px 20px 60px;
  max-width: 900px;
  z-index: 1;
}

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

.page-cockfighting__description {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 30px;
}

/* Call to Action Buttons */
.page-cockfighting__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-btn-gradient);
  color: #ffffff; /* White text for contrast on green gradient */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--page-cockfighting-text-main);
  border: 2px solid var(--page-cockfighting-border);
}

.page-cockfighting__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--page-cockfighting-text-main);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-cockfighting__section {
  padding: 60px 0;
  background-color: var(--page-cockfighting-bg);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--page-cockfighting-gold);
  text-align: center;
  margin-bottom: 40px;
}

.page-cockfighting__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--page-cockfighting-text-secondary);
}

/* Image-Text Layout */
.page-cockfighting__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__image-text-layout--reverse {
  flex-direction: row-reverse;
}

.page-cockfighting__content-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__text-content {
  flex: 1;
}

.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
  list-style-position: inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__list-item {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__list-item strong {
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__list-item a {
  color: var(--page-cockfighting-gold);
  text-decoration: underline;
}

.page-cockfighting__list-item a:hover {
  color: var(--page-cockfighting-glow);
}

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

.page-cockfighting__card {
  background-color: var(--page-cockfighting-card-bg); /* Dark card background */
  color: var(--page-cockfighting-text-main); /* Light text on dark card */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--page-cockfighting-gold);
  margin-bottom: 15px;
}

.page-cockfighting__card-text {
  font-size: 1rem;
  color: var(--page-cockfighting-text-secondary);
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: var(--page-cockfighting-deep-green);
  padding: 60px 0;
}

.page-cockfighting__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--page-cockfighting-text-main);
  background-color: var(--page-cockfighting-card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

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

/* Fallback for div-based FAQ if JS is active */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Larger value to ensure content fits */
  padding-top: 10px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  content: '−'; /* Change to minus sign */
}

/* Bottom CTA Section */
.page-cockfighting__cta-bottom-section .page-cockfighting__container {
  background-color: var(--page-cockfighting-deep-green); /* Use deep green for this CTA */
  padding: 50px 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--page-cockfighting-border);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-cockfighting__hero-content {
    padding: 30px 15px 40px;
  }

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

  .page-cockfighting__description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }

  .page-cockfighting__image-text-layout {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__image-text-layout--reverse {
    flex-direction: column; /* Stacks normally on mobile */
  }

  .page-cockfighting__content-image {
    max-width: 100%;
  }

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

  .page-cockfighting__section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .page-cockfighting__card {
    padding: 25px;
  }

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

@media (max-width: 768px) {
  /* General mobile container padding */
  .page-cockfighting__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__image-text-layout,
  .page-cockfighting__content-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Ensure all sections/cards/containers adapt */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-cockfighting__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Buttons responsive */
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }

  /* FAQ specific adjustments */
  .page-cockfighting__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

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

  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, small top padding for section */
  }

  /* Text readability enhancements */
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-cockfighting__text-block,
  .page-cockfighting__card-text,
  .page-cockfighting__list-item {
    font-size: 0.95rem;
  }
}