.page-cockfighting {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
}

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

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

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
  max-height: 600px;
}

.page-cockfighting__hero-content {
  position: relative;
  text-align: center;
  color: #FFFFFF;
  padding: 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over image for visual flow, but not overlap the image itself */
  z-index: 1;
}

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

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

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

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

.page-cockfighting__button--register {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: none;
}

.page-cockfighting__button--register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__button--login {
  background-color: #6FA3FF;
  color: #FFFFFF;
  border: 1px solid #D6E2FF;
}

.page-cockfighting__button--login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-cockfighting__text-content {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #1F2D3D;
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__about-section, .page-cockfighting__features-section, .page-cockfighting__how-to-play-section, .page-cockfighting__cta-section {
  padding: 60px 0;
}

.page-cockfighting__features-section {
  background-color: #FFFFFF;
  border-radius: 15px;
  margin: 40px auto;
  padding: 40px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

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

.page-cockfighting__feature-item {
  background-color: #F4F7FB;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__feature-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #2F6BFF;
  margin-bottom: 15px;
}

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

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

.page-cockfighting__step-item {
  background-color: #FFFFFF;
  padding: 25px 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-left: 70px;
}

.page-cockfighting__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 25px;
  top: 25px;
  background-color: #2F6BFF;
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3rem;
}

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

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

.page-cockfighting__button--small {
  padding: 8px 15px;
  font-size: 0.9rem;
  margin-top: 15px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: none;
}

.page-cockfighting__button--small:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-section {
  text-align: center;
  background-color: #2F6BFF;
  color: #FFFFFF;
  padding: 80px 0;
  border-radius: 15px;
  margin: 60px auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
  color: #FFFFFF;
  margin-top: 0;
}

.page-cockfighting__cta-section .page-cockfighting__text-content {
  color: #D6E2FF;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-cockfighting__button--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: none;
  padding: 15px 35px;
  font-size: 1.1rem;
}

.page-cockfighting__button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

  .page-cockfighting__button {
    width: 80%;
    margin: 0 auto;
  }

  .page-cockfighting__section-title {
    font-size: 2rem;
    margin-top: 40px;
  }

  .page-cockfighting__about-section, .page-cockfighting__features-section, .page-cockfighting__how-to-play-section, .page-cockfighting__cta-section {
    padding: 40px 0;
  }

  .page-cockfighting__features-section {
    padding: 20px;
    margin: 20px auto;
  }

  .page-cockfighting__feature-item {
    padding: 20px;
  }

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

  .page-cockfighting__step-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    left: 15px;
    top: 20px;
  }

  .page-cockfighting__image-content {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px; /* Enforce min size for content images */
  }

  /* Ensure content images do not overflow on mobile */
  .page-cockfighting img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__hero-content {
    margin-top: -50px;
  }

  .page-cockfighting__button {
    width: 90%;
  }

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

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