.page-cockfighting {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding as per rules */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile first, will adjust for desktop */
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
  padding: 40px 20px;
  border-radius: 10px;
  margin-bottom: 40px;
  overflow: hidden;
}

.page-cockfighting__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
  order: 2; /* Content below image by default */
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-description {
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-button {
  display: inline-block;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-height: 44px; /* Ensure touch target size */
}

.page-cockfighting__hero-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-cockfighting__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  order: 1; /* Image above content by default */
  margin-bottom: 30px;
}

/* General Section Styles */
.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__intro-text {
  text-align: center;
  font-size: 1.1rem;
  color: #1F2D3D;
  margin-bottom: 30px;
}

/* About Section (Features) */
.page-cockfighting__about-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-cockfighting__feature-card {
  background-color: #F4F7FB;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
  min-height: 200px; /* Ensure content area images are not too small */
}

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

.page-cockfighting__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-cockfighting__card-description {
  font-size: 1rem;
  color: #1F2D3D;
}

/* Game Types Section */
.page-cockfighting__game-types-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-cockfighting__game-tile {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-cockfighting__game-tile:hover {
  transform: scale(1.03);
}

.page-cockfighting__game-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* How To Play Section */
.page-cockfighting__how-to-play-section {
  background-color: #FFFFFF;
  padding: 60px 0;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-cockfighting__step-card {
  background-color: #F4F7FB;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-cockfighting__step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-cockfighting__cta-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-height: 44px; /* Ensure touch target size */
}

.page-cockfighting__cta-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

/* Final CTA Section */
.page-cockfighting__cta-section {
  padding: 60px 20px;
  background: linear-gradient(90deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #FFFFFF;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-cockfighting__cta-inner {
  max-width: 900px;
}

.page-cockfighting__cta-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-cockfighting__cta-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFFFFF;
}

/* Responsive Adjustments */
@media (min-width: 850px) {
  .page-cockfighting__hero-section {
    flex-direction: row; /* Desktop: image and content side-by-side */
    justify-content: space-between;
    text-align: left;
    padding: 60px 40px;
  }

  .page-cockfighting__hero-content {
    margin-bottom: 0;
    margin-right: 40px;
    order: 1; /* Content on left */
  }

  .page-cockfighting__hero-image {
    margin-bottom: 0;
    order: 2; /* Image on right */
    max-width: 50%;
  }
}

@media (max-width: 849px) {
  .page-cockfighting__hero-image, .page-cockfighting__feature-image, .page-cockfighting__game-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }
  .page-cockfighting__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjust for smaller screens */
  }
}

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

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

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

  .page-cockfighting__hero-button, .page-cockfighting__cta-button {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-cockfighting__grid, .page-cockfighting__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__feature-card, .page-cockfighting__step-card {
    padding: 25px;
  }

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

  .page-cockfighting__cta-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-cockfighting__cta-description {
    font-size: 1rem;
  }
  
  /* Mobile content area image safety */
  .page-cockfighting img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 549px) {
  .page-cockfighting__hero-section {
    padding: 30px 15px;
  }

  .page-cockfighting__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Further adjust for very small screens */
  }
}