.page-cockfighting {
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding to ensure content starts below header */
}

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

.page-cockfighting__hero-section {
  position: relative;
  text-align: center;
  padding-bottom: 40px;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-cockfighting__hero-content {
  padding: 20px;
  background-color: rgba(10, 10, 10, 0.7); /* Slightly transparent background for readability */
  margin-top: -80px; /* Pull content up slightly over the image for better flow */
  position: relative; /* Ensure it's above the image if any overlap happens */
  z-index: 1; /* Ensure content is above image */
}

.page-cockfighting__hero-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: bold;
  color: #F2C14E;
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #FFD36B;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 200px; /* Ensure minimum button width */
}

.page-cockfighting__btn--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
}

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

.page-cockfighting__btn--secondary {
  background: #111111;
  color: #FFD36B;
  border: 2px solid #3A2A12;
}

.page-cockfighting__btn--secondary:hover {
  background-color: #3A2A12;
  color: #FFF6D6;
}

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

.page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-cockfighting__text-content {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__text-content p {
  margin-bottom: 15px;
}

.page-cockfighting__image {
  flex: 1;
  min-width: 400px; /* Minimum image size for content area */
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  min-height: 200px; /* Ensure minimum height */
}

.page-cockfighting__image--large {
    min-width: 600px; /* Larger minimum for this specific image */
    width: 100%;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

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

.page-cockfighting__feature-card,
.page-cockfighting__step-card,
.page-cockfighting__game-card {
  background-color: #111111;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #3A2A12;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.page-cockfighting__feature-card:hover,
.page-cockfighting__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px #FFD36B;
}

.page-cockfighting__feature-title,
.page-cockfighting__step-title {
  font-size: 1.4em;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-cockfighting__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-cockfighting__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-cockfighting__game-card {
  text-decoration: none;
  color: #FFF6D6;
}

.page-cockfighting__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px #FFD36B;
}

.page-cockfighting__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency in cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-cockfighting__game-card-title {
  font-size: 1.3em;
  color: #F2C14E;
  margin: 0;
}

@media (max-width: 992px) {
  .page-cockfighting__content-grid {
    flex-direction: column;
  }
  .page-cockfighting__image {
    min-width: unset;
    width: 100%;
  }
  .page-cockfighting__image--large {
      min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-content {
    margin-top: -60px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(2em, 7vw, 2.8em);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }
  .page-cockfighting__btn {
    padding: 10px 20px;
    min-width: unset;
    width: 100%;
    max-width: 250px;
  }
  .page-cockfighting__image, .page-cockfighting__game-card-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum size even on mobile */
    min-height: 200px; /* Ensure minimum size even on mobile */
  }
  .page-cockfighting__features-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__game-cards-grid {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__feature-card,
  .page-cockfighting__step-card,
  .page-cockfighting__game-card {
    padding: 20px;
  }
  .page-cockfighting__about-section,
  .page-cockfighting__features-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__related-games-section {
    padding: 40px 0;
  }
}