.page-cockfighting {
  background-color: #F4F7FB;
  color: #1F2D3D;
  padding-top: 10px; /* Small top padding to respect header offset handled by body */
}

.page-cockfighting__hero-section {
  max-width: 1390px;
  margin: 0 auto 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column; /* Image on top, content below */
  background-color: #FFFFFF;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

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

.page-cockfighting__hero-content {
  padding: 30px 40px;
  text-align: center;
}

.page-cockfighting__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-cockfighting__hero-button,
.page-cockfighting__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-cockfighting__hero-button:hover,
.page-cockfighting__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-cockfighting__introduction-section,
.page-cockfighting__features-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__cta-section {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-cockfighting__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2F6BFF;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-cockfighting__paragraph {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: #1F2D3D;
}

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

.page-cockfighting__feature-card {
  background-color: #F4F7FB;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
}

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

.page-cockfighting__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-cockfighting__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-cockfighting__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1F2D3D;
  padding: 0 15px;
}

.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-cockfighting__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  position: relative;
  padding-left: 60px;
}

.page-cockfighting__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.3);
}

.page-cockfighting__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 5px;
}

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

.page-cockfighting__cta-section {
  text-align: center;
  margin-bottom: 80px;
}

@media (max-width: 1400px) {
  .page-cockfighting__hero-section {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

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

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

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

  .page-cockfighting__hero-button,
  .page-cockfighting__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__features-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__cta-section {
    margin-bottom: 40px;
    padding: 30px 15px;
  }

  .page-cockfighting__feature-image {
    height: 200px; /* Ensure minimum height for smaller screens */
  }

  .page-cockfighting__feature-card {
    padding-bottom: 15px;
  }

  .page-cockfighting__feature-card img {
    max-width: 100%;
    height: auto;
  }

  .page-cockfighting__card-title {
    font-size: 1.2rem;
  }

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

  .page-cockfighting__step-item {
    padding-left: 50px;
  }

  .page-cockfighting__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

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

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

  /* Mobile image overflow prevention */
  .page-cockfighting img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__section-title {
    font-size: 1.5rem;
  }

  .page-cockfighting__hero-button,
  .page-cockfighting__cta-button {
    width: 100%;
    max-width: 250px;
  }

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