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

.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  background-color: #017439;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Adjust based on 16:9 ratio for 1200 width */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin-top: 20px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-cockfighting__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-cockfighting__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1rem;
}

.page-cockfighting__button--primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-cockfighting__button--primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

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

.page-cockfighting__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-cockfighting__intro-section,
.page-cockfighting__advantages-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-cockfighting__section-title {
  font-size: 2.2rem;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-cockfighting__text-content {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__text-content a {
  color: #017439;
  text-decoration: underline;
}

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

.page-cockfighting__advantage-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  min-height: 200px; /* Ensure min height for content */
}

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

.page-cockfighting__advantage-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-cockfighting__advantage-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555555;
}

.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__step-item {
  background-color: #f0fdf4; /* Light green background */
  border-left: 5px solid #017439;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-cockfighting__step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #444444;
}

.page-cockfighting__step-description a {
  color: #017439;
  text-decoration: underline;
}

.page-cockfighting__cta-area {
  text-align: center;
  margin-top: 40px;
}

.page-cockfighting__button--play-now {
  background-color: #C30808;
  color: #FFFF00;
  padding: 15px 35px;
  font-size: 1.1rem;
  border-radius: 10px;
  border: none;
}

.page-cockfighting__button--play-now:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-cockfighting__promo-list {
  list-style: disc;
  margin-left: 25px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444444;
}

.page-cockfighting__promo-item {
  margin-bottom: 10px;
}

.page-cockfighting__button--view-all {
  background-color: #017439;
  color: #FFFFFF;
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
}

.page-cockfighting__button--view-all:hover {
  background-color: #005f2f;
  transform: translateY(-2px);
}

.page-cockfighting__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-question {
  font-size: 1.15rem;
  color: #017439;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 600;
}

.page-cockfighting__faq-answer {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-cockfighting__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-cockfighting__hero-content {
    margin-top: 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    margin-bottom: 10px;
  }

  .page-cockfighting__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__button {
    width: 80%;
    max-width: 300px;
  }

  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-cockfighting__intro-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section {
    padding: 30px 15px;
  }

  .page-cockfighting__advantage-grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__advantage-image,
  .page-cockfighting__hero-image {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
    min-width: 200px; /* Maintain minimum size */
    min-height: 200px; /* Maintain minimum size */
  }

  /* Critical: Mobile content area images must not overflow */
  .page-cockfighting img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  .page-cockfighting__button {
    width: 90%;
  }

  .page-cockfighting__section-title {
    font-size: 1.6rem;
  }
}