.page-cockfighting {
  background-color: var(--bg-color, #08160F); /* Default background if shared.css doesn't define --bg-color */
  color: var(--text-main-color, #F2FFF6); /* Default text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above text */
  align-items: center;
  padding-bottom: 40px;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: 10px; /* Small top padding, body handles header-offset */
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for hero image */
  margin-bottom: 20px; /* Space between image and text content */
}

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cockfighting__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 15px;
}

.page-cockfighting__hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow-color, #57E38D);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--border-color, #2E7A4E);
  color: #ffffff;
}

.page-cockfighting__section {
  padding: 60px 0;
  box-sizing: border-box;
}

.page-cockfighting__dark-bg {
  background-color: var(--card-bg-color, #11271B); /* Using Card BG for dark sections */
  color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting__light-bg {
  background-color: #ffffff; /* Explicitly white for light sections */
  color: #333333; /* Dark text for light background */
}

.page-cockfighting__text-contrast-fix p,
.page-cockfighting__text-contrast-fix li {
  color: #333333; /* Ensure dark text on light background */
}
.page-cockfighting__text-contrast-fix h2,
.page-cockfighting__text-contrast-fix h3,
.page-cockfighting__text-contrast-fix h4 {
  color: var(--main-color, #11A84E); /* Use primary color for headings on light bg */
}
.page-cockfighting__text-contrast-fix a {
  color: var(--main-color, #11A84E); /* Links on light background */
}
.page-cockfighting__text-contrast-fix a:hover {
  color: var(--deep-green-color, #0A4B2C); /* Darker green on hover */
}


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

.page-cockfighting__section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--gold-color, #F2C14E); /* Use gold for titles on dark bg */
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
  color: var(--gold-color, #F2C14E);
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
  color: var(--deep-green-color, #0A4B2C); /* Dark green for titles on light bg */
}

.page-cockfighting__grid-layout {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

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

.page-cockfighting__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-cockfighting p {
  margin-bottom: 15px;
}

.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-cockfighting__ordered-list li,
.page-cockfighting__unordered-list li {
  margin-bottom: 10px;
}

.page-cockfighting__ordered-list strong {
  color: var(--gold-color, #F2C14E);
}

.page-cockfighting a {
  color: var(--main-color, #11A84E);
  text-decoration: underline;
}

.page-cockfighting a:hover {
  text-decoration: none;
  color: var(--glow-color, #57E38D);
}

.page-cockfighting__faq-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

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

.page-cockfighting__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color, #F2FFF6);
  border: 1px solid var(--divider-color, #1E3A2A);
}
.page-cockfighting__light-bg .page-cockfighting__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333333;
}


.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  user-select: none;
  color: var(--text-main-color, #F2FFF6);
}
.page-cockfighting__light-bg .page-cockfighting__faq-question {
  color: #333333;
}


.page-cockfighting__faq-question .page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--gold-color, #F2C14E);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}
.page-cockfighting__faq-item:not([open]) .page-cockfighting__faq-toggle {
  transform: rotate(0deg);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
}
.page-cockfighting__light-bg .page-cockfighting__faq-answer {
  color: #555555;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
}

/* Ensure details summary styling for cross-browser consistency */
.page-cockfighting__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}


/* Responsive styles */
@media (max-width: 992px) {
  .page-cockfighting__grid-layout {
    flex-direction: column;
  }
  .page-cockfighting__grid-layout--reverse {
    flex-direction: column; /* Stacks normally on mobile */
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Ensure small top padding on mobile */
    padding-bottom: 30px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

  .page-cockfighting__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-cockfighting__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  /* Ensure all image containers are responsive */
  .page-cockfighting__image-block,
  .page-cockfighting__text-block,
  .page-cockfighting__grid-layout {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting p,
  .page-cockfighting li,
  .page-cockfighting__faq-answer {
    font-size: 15px;
  }

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

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