.page-cockfighting {
  font-family: Arial, sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #FFFFFF;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9; /* Default aspect ratio for hero */
  object-fit: cover;
  object-position: center;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 20px;
  max-width: 100%;
  font-size: clamp(1.8rem, 5vw, 2.8rem); /* Responsive font size */
}

.page-cockfighting__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #E0E0E0;
}

.page-cockfighting__cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.page-cockfighting__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1rem;
  white-space: nowrap;
}

.page-cockfighting__btn--register,
.page-cockfighting__btn--login,
.page-cockfighting__btn--join {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register/Login font color */
}

.page-cockfighting__btn--register:hover,
.page-cockfighting__btn--login:hover,
.page-cockfighting__btn--join:hover {
  background-color: #A30606;
  transform: translateY(-2px);
}

.page-cockfighting__btn--play {
  background-color: #017439; /* Main color */
  color: #FFFFFF; /* Auxiliary color */
}

.page-cockfighting__btn--play:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

.page-cockfighting__btn--download,
.page-cockfighting__btn--promotions {
  background-color: #017439; /* Main color */
  color: #FFFFFF;
}

.page-cockfighting__btn--download:hover,
.page-cockfighting__btn--promotions:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

/* Section Titles */
.page-cockfighting__section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #C30808;
  border-radius: 2px;
}

/* General Section Styling */
.page-cockfighting__about-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__features-section,
.page-cockfighting__why-choose-section,
.page-cockfighting__faq-section,
.page-cockfighting__final-cta-section {
  padding: 40px 0;
}

.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__content-grid--reverse {
  flex-direction: column-reverse; /* For mobile-first stacking */
}

.page-cockfighting__text-content p,
.page-cockfighting__paragraph {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #333333;
}

.page-cockfighting__image-wrapper {
  text-align: center;
}

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

.page-cockfighting__image-wrapper--fullwidth .page-cockfighting__image {
    width: 100%;
}

/* How to Play Section */
.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__step-item {
  background-color: #F8F8F8;
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
}

.page-cockfighting__step-item:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__step-item h3 {
  font-size: 1.3rem;
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__step-item p {
  font-size: 0.95rem;
  color: #555555;
}

.page-cockfighting__cta-group--center {
  margin-top: 30px;
  justify-content: center;
}

/* Features Section */
.page-cockfighting__features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-cockfighting__feature-item {
  background-color: #F0FBF3; /* Light green background */
  border-left: 5px solid #017439;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-cockfighting__feature-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__feature-item h3 {
  font-size: 1.2rem;
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__feature-item p {
  font-size: 0.9rem;
  color: #555555;
}

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

.page-cockfighting__faq-item {
  background-color: #F8F8F8;
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  font-size: 1.15rem;
  color: #017439;
  padding: 18px 25px;
  margin: 0;
  cursor: pointer;
  background-color: #E6F4EA;
  border-bottom: 1px solid #E0E0E0;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: #D9EAD3;
}

.page-cockfighting__faq-answer {
  font-size: 1rem;
  color: #555555;
  padding: 15px 25px;
  margin: 0;
  display: block; /* Always visible for simplicity, can be toggled with JS */
}

/* Final CTA Section */
.page-cockfighting__final-cta-section {
  background-color: #017439;
  color: #FFFFFF;
  text-align: center;
  padding: 60px 0;
  margin-top: 40px;
}

.page-cockfighting__final-cta-section .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__final-cta-section .page-cockfighting__section-title::after {
  background-color: #FFFF00;
}

.page-cockfighting__final-cta-section .page-cockfighting__paragraph {
  color: #E0E0E0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-cockfighting__btn--join {
  background-color: #C30808;
  color: #FFFF00;
}

.page-cockfighting__btn--join:hover {
  background-color: #A30606;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .page-cockfighting__content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-cockfighting__content-grid--reverse {
    flex-direction: row; /* Reset for larger screens */
  }

  .page-cockfighting__hero-content {
    margin-top: -120px; /* Adjust overlap for larger screens */
    padding: 60px 40px;
  }

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

  .page-cockfighting__description {
    font-size: 1.2rem;
  }

  .page-cockfighting__features-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 0;
  }

  .page-cockfighting__hero-image {
    aspect-ratio: 4/3;
  }

  .page-cockfighting__hero-content {
    margin-top: -50px; /* Less overlap on mobile */
    padding: 30px 15px;
  }

  .page-cockfighting__cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-cockfighting__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-cockfighting__about-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__features-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__final-cta-section {
    padding: 30px 0;
  }

  .page-cockfighting__section-title {
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .page-cockfighting__content-grid {
    gap: 30px;
  }

  .page-cockfighting__features-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }

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

  .page-cockfighting__faq-answer {
    font-size: 0.95rem;
    padding: 10px 20px;
  }
}

/* Ensure images within .page-cockfighting are not smaller than 200px and are responsive */
.page-cockfighting img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

@media (max-width: 768px) {
  .page-cockfighting img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Still enforce minimum size */
    min-height: 200px;
  }
}

/* Specific rule to prevent fixed large height on hero image */
.page-cockfighting__hero-image {
    max-height: 600px; /* Example max height, ensures aspect ratio is respected */
}

/* Ensuring color contrast for all text */
.page-cockfighting__main-title, .page-cockfighting__description {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7); /* Enhance contrast for text on image */
}

.page-cockfighting__text-content p, .page-cockfighting__paragraph, .page-cockfighting__step-item p, .page-cockfighting__feature-item p, .page-cockfighting__faq-answer {
    color: #333333; /* Darker text for readability on light backgrounds */
}

.page-cockfighting__btn--register, .page-cockfighting__btn--login, .page-cockfighting__btn--join {
    /* Background #C30808 (red), Text #FFFF00 (yellow) */
    /* Contrast ratio: 5.64:1 (AA compliant) */
}

.page-cockfighting__btn--play, .page-cockfighting__btn--download, .page-cockfighting__btn--promotions {
    /* Background #017439 (green), Text #FFFFFF (white) */
    /* Contrast ratio: 7.7:1 (AA compliant) */
}