/* style/cockfighting.css */
:root {
  --kp88-primary: #11A84E;
  --kp88-secondary: #22C768;
  --kp88-background: #08160F;
  --kp88-card-bg: #11271B;
  --kp88-text-main: #F2FFF6;
  --kp88-text-secondary: #A7D9B8;
  --kp88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --kp88-border: #2E7A4E;
  --kp88-glow: #57E38D;
  --kp88-gold: #F2C14E;
  --kp88-divider: #1E3A2A;
  --kp88-deep-green: #0A4B2C;
}

/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--kp88-text-main);
  background-color: var(--kp88-background);
  line-height: 1.6;
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-cockfighting__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: var(--kp88-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-cockfighting__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--kp88-text-secondary);
  margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--kp88-button-gradient);
  color: var(--kp88-text-main);
  border: 2px solid var(--kp88-glow);
  box-shadow: 0 0 15px var(--kp88-glow);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 20px var(--kp88-glow);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--kp88-glow);
  color: var(--kp88-background);
  transform: translateY(-3px) scale(1.02);
}

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

.page-cockfighting__dark-bg {
  background-color: var(--kp88-background);
  color: var(--kp88-text-main);
}

.page-cockfighting__light-bg {
  background-color: #11271B; /* Using Card BG for contrast */
  color: var(--kp88-text-main);
}

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

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--kp88-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: var(--kp88-primary);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--kp88-text-secondary);
  text-align: justify;
}

.page-cockfighting__list,
.page-cockfighting__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--kp88-text-secondary);
}

.page-cockfighting__ordered-list {
  list-style-type: decimal;
}

.page-cockfighting__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-cockfighting__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--kp88-border);
}

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

.page-cockfighting__card {
  background-color: var(--kp88-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--kp88-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--kp88-text-main);
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__card-title {
  font-size: 1.5em;
  color: var(--kp88-primary);
  padding: 15px 20px 10px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: var(--kp88-text-secondary);
  padding: 0 20px 20px;
  text-align: justify;
}

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

.page-cockfighting__faq-item {
  background-color: var(--kp88-card-bg);
  border: 1px solid var(--kp88-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--kp88-primary);
  background-color: #11271B; /* Same as card bg for consistency */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--kp88-gold);
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 18px;
  font-size: 1.1em;
  color: var(--kp88-text-secondary);
  text-align: justify;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    padding: 30px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 4.5vw, 3em);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(0.9em, 1.8vw, 1.1em);
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-cockfighting__hero-section {
    padding: 10px 15px 40px;
  }
  .page-cockfighting__hero-content {
    padding: 20px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 5vw, 2.5em);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(0.9em, 2.5vw, 1em);
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-cockfighting__section {
    padding: 40px 15px;
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.4em, 4vw, 2em);
    margin-bottom: 30px;
  }
  .page-cockfighting__sub-title {
    font-size: clamp(1.2em, 3vw, 1.6em);
  }
  .page-cockfighting__paragraph,
  .page-cockfighting__list-item {
    font-size: 1em;
  }

  .page-cockfighting__image-content,
  .page-cockfighting__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__container,
  .page-cockfighting__cards-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__card,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-cockfighting__card {
    padding-bottom: 15px;
  }
  .page-cockfighting__card-title {
    font-size: 1.3em;
    padding: 15px;
  }
  .page-cockfighting__card-text {
    padding: 0 15px 15px;
  }
  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.2em, 6vw, 2em);
  }
  .page-cockfighting__hero-description {
    font-size: clamp(0.8em, 3vw, 0.9em);
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
  .page-cockfighting__section-title {
    font-size: clamp(1.2em, 5vw, 1.8em);
  }
  .page-cockfighting__sub-title {
    font-size: clamp(1em, 4vw, 1.4em);
  }
}