.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background-main, #08160F); /* Main background color */
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure some space at the bottom */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-cockfighting__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, var(--background-main, #08160F) 50%);
  border-radius: 15px;
  padding-top: 120px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--gold-color, #F2C14E);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__description {
  font-size: 1.15rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__cta-button {
  display: inline-block;
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
  border: none;
}

.page-cockfighting__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-cockfighting__cta-button--small {
  padding: 12px 25px;
  font-size: 1rem;
}

/* Section Titles */
.page-cockfighting__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--gold-color, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  padding-top: 40px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-cockfighting__text-block {
  font-size: 1.05rem;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* About Section */
.page-cockfighting__about-section {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C);
}

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

.page-cockfighting__feature-item {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #2E7A4E);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__feature-icon {
  width: 200px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 2px solid var(--glow-color, #57E38D);
}

.page-cockfighting__feature-title {
  font-size: 1.6rem;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__feature-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Gameplay Section */
.page-cockfighting__gameplay-section {
  padding: 60px 0;
}

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

.page-cockfighting__list-item {
  background-color: var(--card-bg, #11271B);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--divider-color, #1E3A2A);
}

.page-cockfighting__list-title {
  font-size: 1.4rem;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-cockfighting__list-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Strategy Section */
.page-cockfighting__strategy-section {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C);
}

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

.page-cockfighting__strategy-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #2E7A4E);
  transition: transform 0.3s ease;
}

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

.page-cockfighting__strategy-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__strategy-card .page-cockfighting__card-title {
  padding: 20px 20px 10px;
  font-size: 1.5rem;
  color: var(--text-main, #F2FFF6);
  font-weight: 600;
}

.page-cockfighting__strategy-card .page-cockfighting__card-text {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

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

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

.page-cockfighting__promo-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #2E7A4E);
  text-align: center;
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
  font-size: 1.6rem;
  color: var(--gold-color, #F2C14E);
  padding: 20px 20px 10px;
  font-weight: 600;
}

.page-cockfighting__promo-card .page-cockfighting__card-text {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  padding: 0 20px 20px;
}

.page-cockfighting__promo-card .page-cockfighting__card-button {
  display: inline-block;
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  box-shadow: 0 3px 10px rgba(17, 168, 78, 0.3);
  border: none;
}

.page-cockfighting__promo-card .page-cockfighting__card-button:hover {
  transform: translateY(-2px);
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C);
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-color, #F2C14E);
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-item summary:hover {
  background-color: rgba(46, 122, 78, 0.2);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -80px;
    padding-top: 100px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
    padding-top: 80px;
    border-radius: 10px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
    margin-bottom: 15px;
  }

  .page-cockfighting__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-cockfighting__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    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-button--small {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-cockfighting__about-section,
  .page-cockfighting__gameplay-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section {
    padding: 40px 0;
  }

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

  .page-cockfighting__features-grid,
  .page-cockfighting__bet-types-list,
  .page-cockfighting__strategy-grid,
  .page-cockfighting__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-cockfighting__feature-item,
  .page-cockfighting__list-item,
  .page-cockfighting__strategy-card,
  .page-cockfighting__promo-card {
    padding: 20px;
  }

  .page-cockfighting__feature-icon {
    width: 150px;
    height: 112px;
  }

  .page-cockfighting__feature-title {
    font-size: 1.4rem;
  }

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

  .page-cockfighting__strategy-image,
  .page-cockfighting__promo-image {
    height: 180px;
  }

  .page-cockfighting__strategy-card .page-cockfighting__card-title,
  .page-cockfighting__promo-card .page-cockfighting__card-title {
    font-size: 1.4rem;
    padding: 15px 15px 8px;
  }

  .page-cockfighting__strategy-card .page-cockfighting__card-text,
  .page-cockfighting__promo-card .page-cockfighting__card-text {
    padding: 0 15px 15px;
  }

  .page-cockfighting__promo-card .page-cockfighting__card-button {
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .page-cockfighting__faq-item summary {
    font-size: 1.1rem;
    padding: 15px;
  }

  .page-cockfighting__faq-answer {
    font-size: 0.95rem;
    padding: 0 15px 15px;
  }

  /* Mobile responsive image styles */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__promo-card,
  .page-cockfighting__strategy-card,
  .page-cockfighting__feature-item,
  .page-cockfighting__list-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px;
    padding-right: 15px; */ /* Handled by .page-cockfighting__container */
    overflow: hidden !important;
  }

  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body 已承担 --header-offset，此处禁止 var(--header-offset) */
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

  .page-cockfighting__hero-content {
    margin-top: -40px;
    padding-top: 60px;
  }

  .page-cockfighting__cta-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .page-cockfighting__faq-item summary {
    font-size: 1rem;
  }

  .page-cockfighting__faq-toggle {
    font-size: 1.5rem;
  }
}