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

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

.page-cockfighting__section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #FFF1E8;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  padding-top: 10px; /* Minimal top padding */
}

.page-cockfighting__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #FFF1E8;
}

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

.page-cockfighting__btn--primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
}

.page-cockfighting__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-cockfighting__btn--secondary {
  background-color: #7E0D0D;
  color: #FFF1E8;
  border: 1px solid #6A1E1E;
}

.page-cockfighting__btn--secondary:hover {
  background-color: #C61F1F;
}

.page-cockfighting__btn--small {
  padding: 8px 15px;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
}

.page-cockfighting__btn--small:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-cockfighting__btn--center {
  display: block;
  margin: 40px auto 20px auto;
  max-width: 300px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #140C0C;
  padding-bottom: 50px; /* Space for content below image */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-cockfighting__hero-content {
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  margin: 0 auto;
  background-color: #140C0C;
  z-index: 10;
  position: relative;
}

.page-cockfighting__hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #F3C54D;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 900;
}

.page-cockfighting__hero-description {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Introduction Section */
.page-cockfighting__introduction-section {
  background-color: #140C0C;
  padding: 60px 0;
}

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

.page-cockfighting__feature-card {
  background-color: #2A1212;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #6A1E1E;
}

.page-cockfighting__feature-icon {
  width: 100%; /* Ensure image fills card */
  max-width: 300px; /* Keep reasonable size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__feature-title {
  font-size: 1.5rem;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-cockfighting__feature-text {
  color: #FFF1E8;
  font-size: 1rem;
}

/* How-to-play Section */
.page-cockfighting__how-to-play-section {
  background-color: #140C0C;
  padding: 60px 0;
}

.page-cockfighting__guide-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-cockfighting__guide-steps {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__guide-steps ol {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-cockfighting__guide-steps li {
  counter-increment: step-counter;
  margin-bottom: 25px;
  position: relative;
  padding-left: 50px;
}

.page-cockfighting__guide-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-cockfighting__guide-steps h3 {
  font-size: 1.3rem;
  color: #F3C54D;
  margin-bottom: 5px;
}

.page-cockfighting__guide-steps p {
  color: #FFF1E8;
}

.page-cockfighting__guide-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-cockfighting__guide-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Game Types Section */
.page-cockfighting__game-types-section {
  background-color: #140C0C;
  padding: 60px 0;
}

.page-cockfighting__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-cockfighting__game-tile {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #6A1E1E;
}

.page-cockfighting__game-tile:hover {
  transform: translateY(-5px) scale(1.02);
}

.page-cockfighting__game-tile img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  background-color: #140C0C;
  padding: 60px 0;
}

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

.page-cockfighting__promo-card {
  background-color: #2A1212;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #6A1E1E;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__promo-image {
  width: 100%;
  max-width: 400px; /* Keep reasonable size */
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__promo-title {
  font-size: 1.4rem;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-cockfighting__promo-text {
  color: #FFF1E8;
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: #140C0C;
  padding: 60px 0;
}

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

.page-cockfighting__faq-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  font-size: 1.2rem;
  color: #F3C54D;
  padding: 18px 25px;
  cursor: pointer;
  position: relative;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-cockfighting__faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #FFB04A;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: #FFF1E8;
}

.page-cockfighting__faq-answer p {
  margin-top: 0;
  margin-bottom: 18px;
}

/* Responsive Design */
@media (max-width: 849px) {
  .page-cockfighting__hero-section {
    padding-bottom: 30px;
  }

  .page-cockfighting__hero-image-wrapper {
    max-height: 400px;
  }

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

  .page-cockfighting__hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .page-cockfighting__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

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

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

  .page-cockfighting__guide-content {
    flex-direction: column;
  }

  .page-cockfighting__guide-image-wrapper {
    order: -1; /* Image above steps on mobile */
  }

  .page-cockfighting__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

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

  /* Ensure content images are not smaller than 200px and responsive */
  .page-cockfighting__introduction-section img,
  .page-cockfighting__how-to-play-section img,
  .page-cockfighting__game-types-section img,
  .page-cockfighting__promotions-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }

  .page-cockfighting__feature-icon,
  .page-cockfighting__guide-image,
  .page-cockfighting__game-tile img,
  .page-cockfighting__promo-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 549px) {
  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-cockfighting__section-description {
    font-size: 1rem;
  }

  .page-cockfighting__container {
    padding: 15px;
  }

  .page-cockfighting__hero-image-wrapper {
    max-height: 300px;
  }

  .page-cockfighting__hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .page-cockfighting__hero-description {
    font-size: 0.9rem;
  }

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

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

  .page-cockfighting__faq-answer {
    padding: 0 20px;
  }

  .page-cockfighting__guide-steps li {
    padding-left: 40px;
  }

  .page-cockfighting__guide-steps li::before {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}