/* style/cockfighting.css */
.page-cockfighting {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* General page background */
  line-height: 1.6;
}

/* Hero Section */
.page-cockfighting__hero-section {
  width: 100%;
  display: flex;
  flex-direction: column; /* Stack image and content vertically */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #F5F7FA; /* Background for the whole section */
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Limit image width for desktop */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__hero-content {
  max-width: 900px;
  width: 100%; /* Ensure it takes full width within max-width */
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 30px; /* Space between image and text content */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  background-color: #ffffff; /* Explicitly set light background for content */
  color: #333333;
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  color: #E53935; /* Brand color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #333333;
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Custom button gradient */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-cockfighting__btn-secondary {
  background-color: #ffffff;
  color: #E53935; /* Brand color for text */
  border: 2px solid #E53935;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #E53935;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2);
}

/* General Layout */
.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #E53935;
}

.page-cockfighting__section-title--white {
  color: #ffffff;
}

.page-cockfighting__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

.page-cockfighting__text-block--white {
  color: #ffffff;
}

.page-cockfighting__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
  box-sizing: border-box;
}

/* About Section */
.page-cockfighting__about-section {
  padding: 80px 0;
  background-color: #ffffff; /* Card BG */
  box-sizing: border-box;
  overflow: hidden;
}

/* Features Section */
.page-cockfighting__features-section {
  padding: 80px 0;
  background-color: #E53935; /* Main brand color for dark section */
  color: #ffffff;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-cockfighting__feature-card,
.page-cockfighting__step-card {
  background-color: #ffffff; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333; /* Text color for cards */
  box-sizing: border-box;
}

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

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

.page-cockfighting__card-description {
  font-size: 1em;
  color: #333333;
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Background color */
  box-sizing: border-box;
  overflow: hidden;
}

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

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 80px 0;
  background-color: #FF5A4F; /* Auxiliary brand color for medium background */
  color: #ffffff;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Card BG */
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting__faq-item {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #E0E0E0; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #333333;
  box-sizing: border-box;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #E53935;
  cursor: pointer;
  background-color: #f9f9f9;
  box-sizing: border-box;
}

.page-cockfighting__faq-question:hover {
  background-color: #f0f0f0;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #E53935;
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #333333;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: 200px; /* Adjust as needed */
  padding-top: 15px;
  transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: "−";
}
.page-cockfighting__faq-item:not([open]) .page-cockfighting__faq-toggle {
  content: "+";
}

/* Links within content */
.page-cockfighting__text-block a,
.page-cockfighting__faq-answer a {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
}

.page-cockfighting__text-block a:hover,
.page-cockfighting__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    padding: 25px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-cockfighting__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-cockfighting__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-cockfighting__hero-content {
    margin-top: 20px;
    padding: 30px 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

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

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-cockfighting__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-cockfighting__about-section,
  .page-cockfighting__features-section,
  .page-cockfighting__how-to-play-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section {
    padding: 50px 0;
  }

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

  .page-cockfighting__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.2em, 8vw, 2em);
  }
  .page-cockfighting__section-title {
    font-size: 1.5em;
  }
}

/* Ensure all content area images and containers are responsive */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
  box-sizing: border-box;
}

.page-cockfighting__section,
.page-cockfighting__card,
.page-cockfighting__container,
.page-cockfighting__features-grid,
.page-cockfighting__steps-grid,
.page-cockfighting__faq-list {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}