/* Base Styles */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #F5F7FA;
  line-height: 1.6;
}

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

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-cockfighting__btn-secondary {
  background-color: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #E53935;
  color: #ffffff;
}

.page-cockfighting__btn-full-width {
  width: 100%;
  margin-top: 20px;
}

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__card {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__card-title {
  font-size: 20px;
  color: #E53935;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__card-text {
  font-size: 15px;
  color: #333333;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 500px; /* Fixed height for desktop, adjust for mobile */
  object-fit: cover;
  display: block;
}

.page-cockfighting__hero-content {
  position: relative;
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin: -200px auto 0; /* Adjust margin to bring content over image */
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.page-cockfighting__main-title {
  font-size: clamp(28px, 3.5vw, 48px);
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.page-cockfighting__description {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
  padding: 40px 0;
  background-color: #F5F7FA;
}

/* How to Bet Section */
.page-cockfighting__how-to-bet-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-cockfighting__step-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__step-list .page-cockfighting__list-item {
  background-color: #fcfcfc;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  counter-increment: step-counter;
  position: relative;
}

.page-cockfighting__step-list .page-cockfighting__list-item::before {
  content: "0" counter(step-counter);
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 48px;
  font-weight: 800;
  color: rgba(229, 57, 53, 0.1);
  z-index: 0;
}

.page-cockfighting__step-list .page-cockfighting__list-title {
  font-size: 22px;
  color: #E53935;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.page-cockfighting__step-list .page-cockfighting__list-item p {
  font-size: 15px;
  color: #333333;
  position: relative;
  z-index: 1;
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-cockfighting__bet-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__bet-list .page-cockfighting__list-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-cockfighting__bet-list .page-cockfighting__list-title {
  font-size: 20px;
  color: #E53935;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Tips Section */
.page-cockfighting__tips-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

/* Benefits Section */
.page-cockfighting__benefits-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-cockfighting__benefit-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__benefit-list .page-cockfighting__list-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-cockfighting__benefit-list .page-cockfighting__list-title {
  font-size: 20px;
  color: #E53935;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-cockfighting__promo-cards .page-cockfighting__card {
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.page-cockfighting__promo-cards .page-cockfighting__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 20px;
}

.page-cockfighting__promo-cards .page-cockfighting__card-title {
  padding: 0 20px;
  margin-bottom: 10px;
}

.page-cockfighting__promo-cards .page-cockfighting__card-text {
  padding: 0 20px 20px;
  font-size: 14px;
}

.page-cockfighting__promo-cards .page-cockfighting__btn-secondary {
  margin-bottom: 20px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #FFFFFF;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
}

.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-cockfighting__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #E53935;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: #333333;
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer p {
  margin: 0;
  font-size: 15px;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  padding: 60px 0;
  background-color: #E53935;
  color: #ffffff;
  text-align: center;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
  color: #ffffff;
}

.page-cockfighting__cta-final-section .page-cockfighting__text-block {
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-cockfighting__cta-final-section .page-cockfighting__btn-primary {
  background: #ffffff;
  color: #E53935;
  box-shadow: none;
}

.page-cockfighting__cta-final-section .page-cockfighting__btn-primary:hover {
  background: #f0f0f0;
  color: #E53935;
}

.page-cockfighting__cta-final-section .page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-cockfighting__cta-final-section .page-cockfighting__btn-secondary:hover {
  background-color: #ffffff;
  color: #E53935;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__container {
    padding: 15px;
  }

  .page-cockfighting__section-title {
    font-size: 28px;
  }

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

  .page-cockfighting__hero-content {
    margin-top: -150px;
    padding: 30px 20px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(24px, 4vw, 40px);
  }

  .page-cockfighting__description {
    font-size: 16px;
  }

  .page-cockfighting__step-list,
  .page-cockfighting__bet-list,
  .page-cockfighting__tip-cards,
  .page-cockfighting__benefit-list,
  .page-cockfighting__promo-cards {
    gap: 20px;
  }

  .page-cockfighting__step-list .page-cockfighting__list-title,
  .page-cockfighting__bet-list .page-cockfighting__list-title,
  .page-cockfighting__benefit-list .page-cockfighting__list-title {
    font-size: 18px;
  }

  .page-cockfighting__card-title {
    font-size: 18px;
  }

  .page-cockfighting__faq-qtext {
    font-size: 16px;
  }
}

@media (max-width: 849px) {
  .page-cockfighting__hero-image {
    object-fit: contain; /* Banner 849px object-fit:contain */
    height: auto;
  }
}

@media (max-width: 768px) {
  /* General Image Adaptation */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Button Adaptation */
  .page-cockfighting__cta-button,
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Force column for multiple buttons */
    gap: 10px;
  }

  /* Hero Section Mobile */
  .page-cockfighting__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-image {
    height: 250px;
  }

  .page-cockfighting__hero-content {
    margin-top: -80px; /* Adjust for smaller hero image */
    padding: 25px 15px;
    border-radius: 10px;
  }

  .page-cockfighting__main-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-cockfighting__description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Introduction Section Mobile */
  .page-cockfighting__introduction-section,
  .page-cockfighting__how-to-bet-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__benefits-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 30px 0;
  }

  .page-cockfighting__section-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .page-cockfighting__text-block {
    font-size: 15px;
  }

  /* How to Bet Section Mobile */
  .page-cockfighting__step-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
  }

  .page-cockfighting__step-list .page-cockfighting__list-item::before {
    font-size: 36px;
    top: -10px;
    left: 15px;
  }

  .page-cockfighting__step-list .page-cockfighting__list-title {
    font-size: 18px;
  }

  /* Bet Types Section Mobile */
  .page-cockfighting__bet-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
  }

  .page-cockfighting__bet-list .page-cockfighting__list-title {
    font-size: 18px;
  }

  /* Tips Section Mobile */
  .page-cockfighting__tip-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  /* Benefits Section Mobile */
  .page-cockfighting__benefit-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
  }

  .page-cockfighting__benefit-list .page-cockfighting__list-title {
    font-size: 18px;
  }

  /* Promotions Section Mobile */
  .page-cockfighting__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-cockfighting__promo-cards .page-cockfighting__promo-image {
    height: 200px;
  }

  .page-cockfighting__promo-cards .page-cockfighting__card-title {
    font-size: 18px;
  }

  /* FAQ Section Mobile */
  .page-cockfighting__faq-list {
    margin-top: 20px;
  }

  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    padding: 15px 20px;
  }

  .page-cockfighting__faq-qtext {
    font-size: 15px;
  }

  .page-cockfighting__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

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

  .page-cockfighting__cta-final-section .page-cockfighting__btn-primary,
  .page-cockfighting__cta-final-section .page-cockfighting__btn-secondary {
    font-size: 15px;
    padding: 10px 20px;
  }

  /* CSS for homepage-specific elements, included as per '必写清单' */
  /* __access-links - (Not used in this inner page HTML, but CSS included as required) */
  .page-cockfighting__access-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-cockfighting__access-links .page-cockfighting__btn-primary,
  .page-cockfighting__access-links .page-cockfighting__btn-secondary {
    width: 100%;
  }

  /* __category-lobby - (Not used in this inner page HTML, but CSS included as required) */
  .page-cockfighting__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-cockfighting__category-card-link img {
    aspect-ratio: 1/1;
    width: 100%;
    object-fit: contain;
    border: none;
    box-shadow: none;
  }

  /* __blog-slider - (Not used in this inner page HTML, but CSS included as required) */
  .page-cockfighting__blog-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .page-cockfighting__blog-slider-track > * {
    flex: 0 0 90%; /* Show one card at a time with some peek */
    scroll-snap-align: start;
    margin-right: 15px;
  }
  .page-cockfighting__blog-slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  .page-cockfighting__blog-slider-prev,
  .page-cockfighting__blog-slider-next {
    background-color: #E53935;
    color: #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
  }
  .page-cockfighting__blog-slider-prev:hover,
  .page-cockfighting__blog-slider-next:hover {
    opacity: 0.8;
  }
}