.page-cockfighting {
  background-color: #FFFFFF;
  color: #333333; /* Default text color for contrast */
  font-family: Arial, sans-serif;
}

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

.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #017439;
  color: #FFFFFF;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding as per instruction */
}

.page-cockfighting__hero-visual {
  width: 100%;
  max-width: 100%;
}

.page-cockfighting__hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/5; /* Example aspect ratio, adjust as needed */
  object-fit: cover;
}

.page-cockfighting__hero-content {
  text-align: center;
  padding: 20px;
  max-width: 800px;
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  color: #FFFFFF;
  /* Using clamp for responsive font-size, as per instruction */
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.page-cockfighting__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-cockfighting__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-cockfighting__btn--register:hover {
  background-color: #A00707;
}

.page-cockfighting__btn--login {
  background-color: #C30808;
  color: #FFFF00;
  margin-right: 15px;
}

.page-cockfighting__btn--login:hover {
  background-color: #A00707;
}

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

.page-cockfighting__btn--download:hover {
  background-color: #005a2e;
  border-color: #F0F0F0;
}

.page-cockfighting__section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__intro-section, .page-cockfighting__bet-types-section, .page-cockfighting__advantages-section, .page-cockfighting__guide-section, .page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #F8F8F8;
  margin-bottom: 20px;
}

.page-cockfighting__intro-section {
  background-color: #FFFFFF;
}

.page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

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

.page-cockfighting__text-content p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-cockfighting__image-wrapper {
  flex: 1;
  min-width: 250px;
}

.page-cockfighting__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting__bet-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__bet-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-cockfighting__bet-card p {
  line-height: 1.6;
  color: #555555;
}

.page-cockfighting__betting-diagram {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting__advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-cockfighting__advantage-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__advantage-item img {
  
  
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  width: auto; /* Allow auto scaling based on min-width/height */
  height: auto; /* Allow auto scaling based on min-width/height */
  max-width: 250px; /* Ensure images don't get too large in small cards */
  max-height: 250px;
}

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

.page-cockfighting__advantage-item p {
  color: #555555;
  line-height: 1.6;
}

.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: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  padding-top: 50px; /* Space for step number */
}

.page-cockfighting__step-number {
  position: absolute;
  top: -20px; /* Adjust to place above the card */
  left: 50%;
  transform: translateX(-50%);
  background-color: #017439;
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__step-item p {
  color: #555555;
  line-height: 1.6;
}

.page-cockfighting__guide-cta {
  text-align: center;
  margin-top: 40px;
}

.page-cockfighting__guide-image {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 900px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

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

.page-cockfighting__faq-question {
  padding: 18px 25px;
  font-size: 1.15em;
  color: #017439;
  cursor: pointer;
  position: relative;
  margin: 0;
  font-weight: bold;
}

.page-cockfighting__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  display: none;
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-cockfighting__hero-visual img {
    aspect-ratio: 4/3;
  }

  .page-cockfighting__content-grid {
    flex-direction: column;
  }

  .page-cockfighting__hero-content {
    padding: 15px;
  }

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

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

  .page-cockfighting__btn--login {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-cockfighting__guide-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-cockfighting__advantage-item img, 
  .page-cockfighting__image-wrapper img, 
  .page-cockfighting__betting-diagram, 
  .page-cockfighting__guide-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__container {
    padding: 15px;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .page-cockfighting__hero-section, .page-cockfighting__intro-section, .page-cockfighting__bet-types-section, .page-cockfighting__advantages-section, .page-cockfighting__guide-section, .page-cockfighting__faq-section {
    padding: 40px 0;
  }

  /* Ensure all content area images are responsive and don't overflow */
  .page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .page-cockfighting {
    overflow-x: hidden;
  }
}

@media (max-width: 549px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.2rem, 7vw, 2.2rem);
  }

  .page-cockfighting__bet-cards, .page-cockfighting__advantage-grid, .page-cockfighting__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__btn {
    width: 100%;
    box-sizing: border-box;
  }
}

/* WCAG AA contrast check for text */
.page-cockfighting__hero-description {
  color: #F0F0F0; /* Sufficient contrast with #017439 background */
}
.page-cockfighting__text-content p, .page-cockfighting__bet-card p, .page-cockfighting__advantage-item p, .page-cockfighting__step-item p, .page-cockfighting__faq-answer {
  color: #333333; /* Sufficient contrast with #FFFFFF or #F8F8F8 background */
}

.page-cockfighting__main-title, .page-cockfighting__section-title, .page-cockfighting__card-title, .page-cockfighting__advantage-title, .page-cockfighting__step-title, .page-cockfighting__faq-question {
  color: #017439; /* Good contrast with light backgrounds */
}

.page-cockfighting__btn--register, .page-cockfighting__btn--login {
  background-color: #C30808;
  color: #FFFF00; /* High contrast */
}
.page-cockfighting__btn--download {
  background-color: #017439;
  color: #FFFFFF; /* High contrast */
}