.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: #FFFFFF; /* Default body background */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  padding-top: 10px; /* As per fixed header spacing rule */
  padding-bottom: 40px;
  background-color: #FFFFFF;
  color: #333333;
}

.page-cockfighting__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-cockfighting__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: #333333;
}

.page-cockfighting__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #017439;
  max-width: 600px;
  margin-bottom: 20px;
  font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for responsive H1 */
}

.page-cockfighting__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 600px;
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-cockfighting__hero-image {
  flex: 1 1 45%;
  text-align: center;
  min-width: 300px;
}

.page-cockfighting__main-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* General Section Styling */
.page-cockfighting__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-cockfighting__section-title--white {
  color: #FFFFFF;
}

.page-cockfighting__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-cockfighting__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

/* About Section */
.page-cockfighting__about-section .page-cockfighting__content-grid {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.page-cockfighting__about-section .page-cockfighting__text-block {
  flex: 1 1 55%;
  min-width: 300px;
}

.page-cockfighting__about-section .page-cockfighting__image-block {
  flex: 1 1 35%;
  min-width: 250px;
  text-align: center;
}

.page-cockfighting__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-cockfighting__keyword-highlight {
  font-weight: bold;
  color: #017439; /* Use brand color for highlight */
}

/* Features Section */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #FFFFFF;
}

.page-cockfighting__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00; /* Contrast with dark green background */
}

.page-cockfighting__feature-description {
  font-size: 0.95em;
  line-height: 1.5;
}

.page-cockfighting__features-image {
  margin-top: 30px;
}

/* Guide Section */
.page-cockfighting__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__step-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-cockfighting__step-description {
  font-size: 0.95em;
}

.page-cockfighting__cta-single {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__guide-image {
  margin-top: 30px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFFFFF;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* Hide default marker for details/summary */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.page-cockfighting__final-cta-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-cockfighting__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
}

.page-cockfighting__btn-large {
  padding: 16px 40px;
  font-size: 1.1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-container,
  .page-cockfighting__about-section .page-cockfighting__content-grid {
    flex-direction: column;
    text-align: center;
  }

  .page-cockfighting__hero-content,
  .page-cockfighting__hero-image,
  .page-cockfighting__about-section .page-cockfighting__text-block,
  .page-cockfighting__about-section .page-cockfighting__image-block {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-cockfighting__main-title {
    max-width: none;
  }

  .page-cockfighting__intro-text {
    max-width: none;
  }

  .page-cockfighting__cta-buttons {
    justify-content: center;
  }

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

  .page-cockfighting__feature-title {
    font-size: 1.3em;
  }

  .page-cockfighting__step-title {
    font-size: 1.2em;
  }

  .page-cockfighting__faq-question {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* HERO Section - Stacking layout */
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
    padding-bottom: 30px;
  }

  .page-cockfighting__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__hero-content {
    text-align: center;
    order: 2; /* Content below image */
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__hero-image {
    order: 1; /* Image above content */
    margin-bottom: 20px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 size for smaller screens */
    margin-bottom: 15px;
  }

  .page-cockfighting__intro-text {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* General content area padding */
  .page-cockfighting__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  /* About Section - Single column */
  .page-cockfighting__about-section .page-cockfighting__content-grid {
    flex-direction: column;
  }

  .page-cockfighting__about-section .page-cockfighting__text-block,
  .page-cockfighting__about-section .page-cockfighting__image-block {
    flex: 1 1 100%;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Features Section - Single column */
  .page-cockfighting__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-item {
    padding: 20px;
  }

  /* Guide Section - Single column */
  .page-cockfighting__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__step-item {
    padding: 15px;
  }

  /* FAQ Section */
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  .page-cockfighting__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.9em;
  }

  /* Final CTA Section */
  .page-cockfighting__cta-final-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-cockfighting__final-cta-text {
    font-size: 1.05em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* Universal Image Responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Buttons Responsiveness */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    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;
  }
  
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }
}