:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

/* Base styles for the page, inheriting from body's background */
.page-cockfighting {
  background-color: var(--color-background); /* #08160F */
  color: var(--color-text-main); /* #F2FFF6 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Headings */
.page-cockfighting h1,
.page-cockfighting h2,
.page-cockfighting h3,
.page-cockfighting h4 {
  color: var(--color-text-main);
  font-weight: bold;
  line-height: 1.2;
}
.page-cockfighting h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-cockfighting h2 {
  font-size: 2.5em; /* Example, adjust for visual hierarchy */
  margin-bottom: 0.8em;
}
.page-cockfighting h3 {
  font-size: 1.8em;
  margin-bottom: 0.6em;
  color: var(--color-primary); /* Use primary for subheadings */
}
.page-cockfighting h4 {
  font-size: 1.4em;
  margin-bottom: 0.5em;
  color: var(--color-text-secondary); /* Use secondary for deeper headings */
}

/* Paragraphs and lists */
.page-cockfighting p {
  margin-bottom: 1em;
  color: var(--color-text-main);
}
.page-cockfighting ul,
.page-cockfighting ol {
  margin-left: 20px;
  margin-bottom: 1em;
  color: var(--color-text-main);
}
.page-cockfighting ul li,
.page-cockfighting ol li {
  margin-bottom: 0.5em;
}
.page-cockfighting__numbered-list {
  list-style: none;
  padding-left: 0;
}
.page-cockfighting__numbered-list li {
  counter-increment: step-counter;
  margin-bottom: 20px;
  text-align: left;
}
.page-cockfighting__numbered-list li::before {
  content: counter(step-counter);
  background-color: var(--color-primary);
  color: var(--color-text-main);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  font-weight: bold;
  flex-shrink: 0;
}
.page-cockfighting__numbered-list li h4 {
  display: inline;
  margin: 0;
  color: var(--color-gold);
}
.page-cockfighting__numbered-list li p {
  margin-top: 10px;
  margin-left: 45px; /* Align with text after counter */
}

/* Links */
.page-cockfighting a {
  color: var(--color-gold); /* Gold for links to stand out */
  text-decoration: none;
}
.page-cockfighting a:hover {
  text-decoration: underline;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  max-width: 100%; /* Ensure buttons adapt to container */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
  background: var(--color-button-gradient);
  color: var(--color-text-main); /* White text on dark gradient */
  border: 2px solid transparent;
}
.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.page-cockfighting__btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Sections & Containers */
.page-cockfighting__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: var(--color-gold);
  text-align: center;
}
.page-cockfighting__section-description {
  font-size: 1.1em;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}
.page-cockfighting__section {
  padding: 60px 20px;
  text-align: center;
}
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--color-deep-green); /* Example background for hero */
}
.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-bottom: 30px; /* Space between image and text */
}
.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.page-cockfighting__hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.page-cockfighting__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  margin-bottom: 20px;
  color: var(--color-text-main);
  font-weight: 700;
}
.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
}
.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 .page-cockfighting__btn-primary,
.page-cockfighting__cta-buttons .page-cockfighting__btn-secondary {
  min-width: 180px; /* Ensure buttons are not too small */
}

/* Content Area */
.page-cockfighting__content-area {
  padding: 60px 20px;
  background-color: var(--color-background);
  color: var(--color-text-main);
}
.page-cockfighting__content-area .page-cockfighting__container {
  text-align: left;
}
.page-cockfighting__content-area h2 {
  color: var(--color-primary);
  margin-bottom: 20px;
  text-align: center;
}
.page-cockfighting__content-area h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Card Layouts */
.page-cockfighting__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.page-cockfighting__card {
  background-color: var(--color-card-bg); /* #11271B */
  color: var(--color-text-main); /* #F2FFF6 */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.page-cockfighting__card-image-wrapper {
  margin-bottom: 15px;
}
.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.page-cockfighting__card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--color-gold);
}
.page-cockfighting__card-description {
  font-size: 0.95em;
  color: var(--color-text-secondary);
  flex-grow: 1;
}
.page-cockfighting__card-link {
  margin-top: 15px;
  text-align: right;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 20px;
  background-color: var(--color-deep-green);
  color: var(--color-text-main);
}
.page-cockfighting__faq-section .page-cockfighting__container {
  text-align: left;
}
.page-cockfighting__faq-section h2 {
  color: var(--color-text-main);
  margin-bottom: 40px;
}
.page-cockfighting__faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.page-cockfighting__faq-item {
  background-color: var(--color-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--color-gold);
  background-color: var(--color-divider);
  transition: background-color 0.3s ease;
}
.page-cockfighting__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.7); /* Slightly lighter border color on hover */
}
.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--color-gold);
}
.page-cockfighting__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  color: var(--color-text-secondary);
  font-size: 0.95em;
}
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 500px; /* Sufficiently large for content */
  padding: 15px 25px 25px;
}

/* Video Section */
.page-cockfighting__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--color-deep-green);
}
.page-cockfighting__video-link {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.page-cockfighting__video-container {
  width: 100%; /* Important for desktop */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.page-cockfighting__video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block; /* Ensure no extra space below video */
}
.page-cockfighting__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}
.page-cockfighting__video-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}
.page-cockfighting__play-button {
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-text-main);
  font-size: 2em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.page-cockfighting__play-button::before {
  content: '▶';
  margin-left: 5px;
}
.page-cockfighting__cta-buttons--video {
  margin-top: 30px;
}

/* General image styling */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents extra space below images */
}

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

  .page-cockfighting h1 {
    font-size: clamp(2em, 8vw, 2.8em);
  }
  .page-cockfighting h2 {
    font-size: 2em;
  }
  .page-cockfighting h3 {
    font-size: 1.5em;
  }

  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }
  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-cockfighting__cta-buttons .page-cockfighting__btn-primary,
  .page-cockfighting__cta-buttons .page-cockfighting__btn-secondary {
    width: 100%; /* Full width buttons */
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__content-area,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section,
  .page-cockfighting__video-section {
    padding: 30px 15px; /* Adjust padding for mobile */
  }
  .page-cockfighting__container {
    padding: 0 10px;
  }

  /* Mobile image and video responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }
  .page-cockfighting__card-grid {
    grid-template-columns: 1fr; /* Single column for cards */
  }

  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-cockfighting__video-section {
    padding-top: 10px !important;
  }
}