.page-cockfighting {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

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

.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #2F6BFF;
  color: #FFFFFF;
  text-align: center;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden; /* Ensure no overflow from image */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-cockfighting__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  color: #FFFFFF;
  /* No fixed font-size, rely on clamp if needed, but prefer flexible */
}

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

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

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

.page-cockfighting__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
}

.page-cockfighting__introduction-section,
.page-cockfighting__game-types-section,
.page-cockfighting__features-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section {
  padding: 40px 0;
}

.page-cockfighting__introduction-section .page-cockfighting__content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-cockfighting__content-wrapper--reverse {
  flex-direction: column-reverse;
}

.page-cockfighting__paragraph {
  font-size: 1.05em;
  line-height: 1.7;
  color: #1F2D3D;
  text-align: justify;
}

.page-cockfighting__content-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__type-card,
.page-cockfighting__feature-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF;
}

.page-cockfighting__type-card:hover,
.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__type-image,
.page-cockfighting__feature-icon {
  width: 100%;
  height: auto;
  max-width: 400px; /* Card images should be large */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-cockfighting__type-title,
.page-cockfighting__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #000000;
  margin-bottom: 10px;
}

.page-cockfighting__type-text,
.page-cockfighting__feature-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #1F2D3D;
}

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

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #1F2D3D;
}

.page-cockfighting__tip-item {
  background-color: #FFFFFF;
  border-left: 5px solid #2F6BFF;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 1.05em;
  line-height: 1.6;
}

.page-cockfighting__tip-item strong {
  color: #000000;
}

.page-cockfighting__cta-section--bottom {
  background-color: #2F6BFF;
  color: #FFFFFF;
  text-align: center;
  padding: 60px 20px;
  margin-top: 40px;
}

.page-cockfighting__cta-section--bottom .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__cta-section--bottom .page-cockfighting__paragraph {
  color: #D6E2FF;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-list {
  margin-top: 30px;
}

.page-cockfighting__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  font-size: 1.2em;
  font-weight: 600;
  color: #000000;
  padding: 18px 25px;
  cursor: pointer;
  position: relative;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #F8F9FA;
}

.page-cockfighting__faq-question::after {
  content: '+';
  font-size: 1.5em;
  color: #2F6BFF;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-question.active::after {
  content: '-';
  transform: rotate(0deg);
}

.page-cockfighting__faq-answer {
  font-size: 1em;
  line-height: 1.6;
  color: #1F2D3D;
  padding: 0 25px 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-cockfighting__faq-question.active + .page-cockfighting__faq-answer {
  max-height: 200px; /* Adjust as needed for content */
  padding: 10px 25px 20px;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-cockfighting__introduction-section .page-cockfighting__content-wrapper,
  .page-cockfighting__tips-section .page-cockfighting__content-wrapper {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .page-cockfighting__content-wrapper--reverse {
    flex-direction: row-reverse;
  }
  .page-cockfighting__introduction-section .page-cockfighting__paragraph,
  .page-cockfighting__tips-section .page-cockfighting__tips-list {
    flex: 1;
    max-width: 48%;
  }
  .page-cockfighting__introduction-section .page-cockfighting__content-image,
  .page-cockfighting__tips-section .page-cockfighting__content-image {
    flex: 1;
    max-width: 48%;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__main-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-cockfighting__type-card,
  .page-cockfighting__feature-card {
    padding: 20px;
  }
  .page-cockfighting__type-title,
  .page-cockfighting__feature-title {
    font-size: 1.3em;
  }
  .page-cockfighting__type-text,
  .page-cockfighting__feature-description {
    font-size: 0.9em;
  }
  .page-cockfighting__content-image,
  .page-cockfighting__type-image,
  .page-cockfighting__feature-icon {
    max-width: 100%;
    width: 100%;
    height: auto;
  }
  /* Mobile content area images must not cause horizontal scroll */
  .page-cockfighting img {
    max-width: 100%;
    height: auto;
  }
  /* Ensure content area images are not smaller than 200px */
  .page-cockfighting__content-image,
  .page-cockfighting__type-image,
  .page-cockfighting__feature-icon {
    min-width: 200px;
    min-height: 200px;
  }
  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 10px;
  }
  .page-cockfighting__faq-question.active + .page-cockfighting__faq-answer {
    padding: 10px 20px 15px;
  }
}