/* style/cockfighting.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-bg-color: #0a0a0a;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --button-login-color: #EA7C07;
}

.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark); /* Default text color for dark body background */
  background-color: var(--dark-bg-color); /* Inherit from body, but explicitly set for contrast logic */
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  color: var(--text-on-dark);
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-cockfighting__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-cockfighting__section {
  padding: 60px 0;
  box-sizing: border-box;
}

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

.page-cockfighting__heading {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-size: 2.5em;
}

.page-cockfighting__text-block {
  margin-bottom: 20px;
  color: var(--text-on-dark);
  font-size: 1.05em;
}

.page-cockfighting__intro-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section {
  background-color: var(--dark-bg-color);
  color: var(--text-on-dark);
}

.page-cockfighting__game-types-section,
.page-cockfighting__faq-section {
  background-color: var(--secondary-color);
  color: var(--text-on-light);
}

.page-cockfighting__game-types-section .page-cockfighting__heading,
.page-cockfighting__faq-section .page-cockfighting__heading {
  color: var(--primary-color);
}

.page-cockfighting__game-types-section .page-cockfighting__text-block,
.page-cockfighting__faq-section .page-cockfighting__description {
  color: var(--text-on-light);
}

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

.page-cockfighting__card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-on-light);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-cockfighting__card-text {
  font-size: 0.95em;
  color: var(--text-on-light);
  padding: 0 15px;
}

.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__list-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for list items on dark sections */
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: var(--text-on-dark);
}

.page-cockfighting__list-item .page-cockfighting__list-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-cockfighting__list-item .page-cockfighting__list-text {
  color: var(--text-on-dark);
}

.page-cockfighting__list-item a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-cockfighting__list-item a:hover {
  color: var(--secondary-color);
}

.page-cockfighting__why-choose-section {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

.page-cockfighting__why-choose-section .page-cockfighting__heading {
  color: var(--secondary-color);
}

.page-cockfighting__why-choose-section .page-cockfighting__text-block {
  color: var(--secondary-color);
}

.page-cockfighting__why-choose-section .page-cockfighting__list-item {
  background: rgba(255, 255, 255, 0.15);
  border-left-color: var(--secondary-color);
  color: var(--secondary-color);
}

.page-cockfighting__why-choose-section .page-cockfighting__list-item .page-cockfighting__list-title {
  color: var(--secondary-color);
}

.page-cockfighting__why-choose-section .page-cockfighting__list-item .page-cockfighting__list-text {
  color: var(--secondary-color);
}

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

.page-cockfighting__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-on-dark);
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-cockfighting__promo-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-cockfighting__promo-text {
  font-size: 0.95em;
  color: var(--text-on-dark);
  padding: 0 15px;
  margin-bottom: 20px;
}

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

.page-cockfighting__faq-item {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-on-light);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary-color);
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: 1px solid var(--primary-color);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  color: var(--text-on-light);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-cockfighting__faq-answer {
  padding: 15px 20px;
  color: var(--text-on-light);
  font-size: 0.95em;
}

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

.page-cockfighting__faq-item summary {
  list-style: none;
}

.page-cockfighting__conclusion-section {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  text-align: center;
}

.page-cockfighting__conclusion-section .page-cockfighting__heading {
  color: var(--secondary-color);
}

.page-cockfighting__conclusion-section .page-cockfighting__text-block {
  color: var(--secondary-color);
  margin-bottom: 30px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-cockfighting__hero-content {
    padding: 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
    margin-bottom: 15px;
  }

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

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    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__section {
    padding: 30px 0;
  }

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

  .page-cockfighting__heading {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__card-image,
  .page-cockfighting__promo-image {
    height: auto;
  }

  .page-cockfighting__grid-container,
  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__list-item {
    padding: 15px;
    margin-bottom: 15px;
  }

  .page-cockfighting__list-item .page-cockfighting__list-title {
    font-size: 1.2em;
  }

  .page-cockfighting__faq-question {
    padding: 12px 15px;
  }

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

  .page-cockfighting__faq-qtext {
    font-size: 1em;
  }
}

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

  .page-cockfighting__heading {
    font-size: 1.8em;
  }
}