/* style/cockfighting.css */
.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text is light */
  background-color: #121212; /* Fallback, but shared.css sets body background */
}

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

.page-cockfighting__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Auxiliary color for titles */
}

.page-cockfighting__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: #f0f0f0;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-text,
.page-cockfighting__btn-primary-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  white-space: nowrap;
  word-wrap: break-word; /* Allow text wrapping for buttons */
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-cockfighting__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
}

.page-cockfighting__btn-text {
  background: none;
  border: none;
  color: #FFD700;
  padding: 8px 0;
  font-size: 15px;
  text-decoration: underline;
}

.page-cockfighting__btn-text:hover {
  color: #e6c200;
  text-decoration: none;
}

.page-cockfighting__btn-primary-small {
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 6px;
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-cockfighting__btn-primary-small:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

/* Images */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space */
}

/* HERO Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 20px;
  background-color: #1A202C;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Apply header offset here if body padding is not set by shared.css */
}

.page-cockfighting__hero-content {
  flex: 1;
  max-width: 50%;
  text-align: left;
}

.page-cockfighting__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Auxiliary color for main title */
}

.page-cockfighting__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-cockfighting__hero-buttons {
  display: flex;
  gap: 20px;
}

.page-cockfighting__hero-image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

/* Why Choose Section */
.page-cockfighting__why-choose-section {
  padding: 80px 0;
  background-color: #1A202C;
}

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

.page-cockfighting__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__feature-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px; /* Fixed size for icons */
  height: 64px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-cockfighting__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-cockfighting__feature-description {
  font-size: 16px;
  color: #cccccc;
}

/* Types Section */
.page-cockfighting__types-section {
  padding: 80px 0;
  background-color: #121212;
}

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

.page-cockfighting__type-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__type-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-cockfighting__type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-cockfighting__type-title {
  font-size: 20px;
  font-weight: bold;
  padding: 15px 20px 0;
  color: #FFD700;
}

.page-cockfighting__type-description {
  font-size: 15px;
  color: #cccccc;
  padding: 10px 20px 20px;
}

/* How To Bet Section */
.page-cockfighting__how-to-bet-section {
  padding: 80px 0;
  background-color: #1A202C;
}

.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-cockfighting__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__step-icon {
  width: 50px;
  height: 50px;
  background-color: #FFD700;
  color: #1A202C;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-cockfighting__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-cockfighting__step-description {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

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

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

.page-cockfighting__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__promotion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-cockfighting__promotion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-cockfighting__promotion-content {
  padding: 20px;
}

.page-cockfighting__promotion-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-cockfighting__promotion-description {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Security & Support Section */
.page-cockfighting__security-support-section {
  padding: 80px 0;
  background-color: #1A202C;
}

.page-cockfighting__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-cockfighting__info-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__info-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__info-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px; /* Fixed size for icons */
  height: 64px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__info-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-cockfighting__info-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-cockfighting__info-description {
  font-size: 16px;
  color: #cccccc;
}

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

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

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #cccccc;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* Ensure content expands fully */
  padding: 20px !important;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: #1A202C;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background-color: #2a3340;
  border-color: #FFD700;
}

.page-cockfighting__faq-question:active {
  background-color: #3a4555;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* News Section */
.page-cockfighting__news-section {
  padding: 80px 0;
  background-color: #1A202C;
}

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

.page-cockfighting__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__news-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-cockfighting__news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-cockfighting__news-title {
  font-size: 20px;
  font-weight: bold;
  padding: 15px 20px 0;
  color: #FFD700;
}

.page-cockfighting__news-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-cockfighting__news-title a:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-cockfighting__news-excerpt {
  font-size: 15px;
  color: #cccccc;
  padding: 10px 20px 20px;
}

.page-cockfighting__view-all-news {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .page-cockfighting__hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .page-cockfighting__hero-title {
    font-size: 40px;
  }

  .page-cockfighting__hero-description {
    font-size: 17px;
  }

  .page-cockfighting__hero-buttons {
    justify-content: center;
  }

  .page-cockfighting__hero-image {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

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

  .page-cockfighting__section-description {
    font-size: 16px;
  }

  .page-cockfighting__feature-title,
  .page-cockfighting__step-title,
  .page-cockfighting__info-title,
  .page-cockfighting__type-title,
  .page-cockfighting__promotion-title,
  .page-cockfighting__news-title {
    font-size: 20px;
  }

  .page-cockfighting__feature-description,
  .page-cockfighting__step-description,
  .page-cockfighting__info-description,
  .page-cockfighting__type-description,
  .page-cockfighting__promotion-description,
  .page-cockfighting__news-excerpt {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__hero-section {
    padding: 40px 15px;
    gap: 30px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing if shared doesn't provide */
  }

  .page-cockfighting__hero-title {
    font-size: 32px;
  }

  .page-cockfighting__hero-description {
    font-size: 16px;
  }

  .page-cockfighting__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-text,
  .page-cockfighting__btn-primary-small,
  .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__hero-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-cockfighting__section-description {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .page-cockfighting__why-choose-section,
  .page-cockfighting__types-section,
  .page-cockfighting__how-to-bet-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__security-support-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__news-section {
    padding: 60px 0;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__step-card,
  .page-cockfighting__info-item,
  .page-cockfighting__type-card,
  .page-cockfighting__promotion-card,
  .page-cockfighting__news-card {
    padding: 25px;
  }

  .page-cockfighting__type-image,
  .page-cockfighting__promotion-image,
  .page-cockfighting__news-image {
    height: 180px;
  }

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

  .page-cockfighting__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }

  .page-cockfighting__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

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

  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }

  .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;
  }

  /* LOGO轮播项必须单独设置，保持固定尺寸，此页面无此模块，但保留以示遵守 */
  /* .page-cockfighting__logo-item { */
  /*   width: 80px !important; */
  /*   height: 80px !important; */
  /*   max-width: 80px !important; */
  /*   box-sizing: border-box; */
  /* } */
}