.page-cockfighting {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
  background: var(--background-color, #08160F);
}

.page-cockfighting__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency */
  border-radius: 10px;
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp as per H1 rule */
}

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

.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

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

.page-cockfighting__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__introduction-section, .page-cockfighting__types-section, .page-cockfighting__betting-guide-section, .page-cockfighting__safety-section, .page-cockfighting__conclusion-section {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__history-section, .page-cockfighting__rules-section, .page-cockfighting__tips-section, .page-cockfighting__faq-section {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__paragraph {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__paragraph strong {
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__image-text-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-bottom: 30px;
}

.page-cockfighting__image-left {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-cockfighting__text-right {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-cockfighting__list-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__list-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gold, #F2C14E);
}

.page-cockfighting__list-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__image-center {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-cockfighting__rules-grid, .page-cockfighting__tips-grid, .page-cockfighting__safety-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__rule-card, .page-cockfighting__tip-card, .page-cockfighting__feature-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold, #F2C14E);
}

.page-cockfighting__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__sub-list {
  list-style: disc;
  padding-left: 20px;
  text-align: left;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__sub-list li {
  margin-bottom: 8px;
}

.page-cockfighting__ordered-list {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.page-cockfighting__feature-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__feature-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__faq-list {
  margin-top: 30px;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  background-color: var(--card-bg, #11271B);
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C);
}

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

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

.page-cockfighting__text-link {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

.page-cockfighting__cta-final {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-section {
    padding: 40px 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-cockfighting__hero-description {
    font-size: 1.1rem;
  }
  .page-cockfighting__section-title {
    font-size: 2rem;
  }
  .page-cockfighting__image-text-layout {
    flex-direction: column;
  }
  .page-cockfighting__image-left, .page-cockfighting__text-right {
    max-width: 100%;
  }
  .page-cockfighting__rules-grid, .page-cockfighting__tips-grid, .page-cockfighting__safety-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-cockfighting__hero-description {
    font-size: 1rem;
  }
  .page-cockfighting__btn-primary {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-cockfighting__container {
    padding: 20px 15px;
  }
  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-cockfighting__paragraph {
    font-size: 1rem;
  }
  .page-cockfighting__list-item {
    padding: 20px;
  }
  .page-cockfighting__list-title {
    font-size: 1.2rem;
  }
  .page-cockfighting__rule-card, .page-cockfighting__tip-card, .page-cockfighting__feature-item {
    padding: 20px;
  }
  .page-cockfighting__card-title {
    font-size: 1.3rem;
  }
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
  }
  
  /* Mobile responsive images */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile responsive containers for images/videos/buttons */
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__introduction-section,
  .page-cockfighting__history-section,
  .page-cockfighting__types-section,
  .page-cockfighting__rules-section,
  .page-cockfighting__betting-guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__safety-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__conclusion-section,
  .page-cockfighting__container,
  .page-cockfighting__hero-content,
  .page-cockfighting__btn-primary,
  .page-cockfighting__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  /* Buttons specific mobile styles */
  .page-cockfighting__btn-primary, .page-cockfighting__text-link {
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center;
  }
  
  .page-cockfighting__cta-final {
    margin-left: 0;
    margin-right: 0;
    width: 100% !important;
  }
  
  /* Video specific mobile styles */
  .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;
  }
}

/* Details/Summary for FAQ */
details.page-cockfighting__faq-item summary {
  list-style: none;
}
details.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-cockfighting__text-main {
  color: #F2FFF6;
}
.page-cockfighting__text-secondary {
  color: #A7D9B8;
}
.page-cockfighting__card-bg {
  background-color: #11271B;
}
.page-cockfighting__background {
  background-color: #08160F;
}
.page-cockfighting__border-color {
  border-color: #2E7A4E;
}
.page-cockfighting__glow {
  color: #57E38D;
}
.page-cockfighting__gold {
  color: #F2C14E;
}
.page-cockfighting__divider {
  background-color: #1E3A2A;
}
.page-cockfighting__deep-green {
  background-color: #0A4B2C;
}

/* Contrast Fixes */
.page-cockfighting__dark-bg {
  color: #ffffff; /* Deep Green background, white text */
}

.page-cockfighting__light-bg {
  color: #F2FFF6; /* Light background (or default), dark text */
}

/* Ensure text elements within sections inherit or explicitly set color for contrast */
.page-cockfighting__introduction-section .page-cockfighting__paragraph,
.page-cockfighting__types-section .page-cockfighting__paragraph,
.page-cockfighting__betting-guide-section .page-cockfighting__paragraph,
.page-cockfighting__safety-section .page-cockfighting__paragraph,
.page-cockfighting__conclusion-section .page-cockfighting__paragraph {
  color: var(--text-secondary, #A7D9B8); /* Use secondary text for paragraphs in light sections */
}

.page-cockfighting__introduction-section .page-cockfighting__section-title,
.page-cockfighting__types-section .page-cockfighting__section-title,
.page-cockfighting__betting-guide-section .page-cockfighting__section-title,
.page-cockfighting__safety-section .page-cockfighting__section-title,
.page-cockfighting__conclusion-section .page-cockfighting__section-title {
  color: var(--text-main, #F2FFF6); /* Main text for titles in light sections */
}

.page-cockfighting__hero-content .page-cockfighting__paragraph {
  color: var(--text-secondary, #A7D9B8);
}