/* style/cockfighting.css */

/* --- General Page Styles --- */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #ffffff; /* Explicitly set for clarity, though shared might define */
}

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

.page-cockfighting__section-title {
    font-size: 36px;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    object-fit: cover;
}

.page-cockfighting__image-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Gradient background for visual appeal */
    overflow: hidden;
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    color: #ffffff; /* White text for gradient background */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__hero-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.page-cockfighting__hero-description {
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* --- CTA Button Styles (General) --- */
.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-cockfighting__btn-primary:hover {
    background: #d46f06;
    border-color: #d46f06;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
    background: #FFFFFF;
    color: #26A9E0; /* Brand primary color for secondary action */
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
    background: #e0f2f7;
    border-color: #1a87b8;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-buttons--center {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

/* --- Features Section --- */
.page-cockfighting__features-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color as background */
    color: #ffffff; /* White text for dark background */
}

.page-cockfighting__features-section .page-cockfighting__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-cockfighting__features-section .page-cockfighting__text-block {
    color: #f0f0f0;
}

.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: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__feature-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

/* --- How-To-Play Section --- */
.page-cockfighting__how-to-play-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-cockfighting__step-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    background: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

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

/* --- Promotions Section --- */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color as background */
    color: #ffffff; /* White text for dark background */
}

.page-cockfighting__promotions-section .page-cockfighting__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-cockfighting__promotions-section .page-cockfighting__text-block {
    color: #f0f0f0;
}

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

.page-cockfighting__promotion-card {
    background: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__card-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

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

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

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

/* FAQ容器样式 */
.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* FAQ默认状态 - 答案隐藏 */
.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; /* Adjusted padding for desktop */
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important and a large value */
  padding: 20px !important; /* Adjusted padding for desktop */
  opacity: 1;
  background: #f0f7fb; /* Light background for answer */
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px; /* Adjusted padding for desktop */
  background: #26A9E0; /* Brand primary color for question background */
  color: #ffffff; /* White text for question */
  border: 1px solid #26A9E0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-cockfighting__faq-question:active {
  background: #16719b;
}

/* 问题标题样式 */
.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Adjusted font size for desktop */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #ffffff; /* Ensure title is white */
}

/* 切换图标 */
.page-cockfighting__faq-toggle {
  font-size: 28px; /* Adjusted font size for desktop */
  font-weight: bold;
  line-height: 1;
  color: #ffffff; /* White color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px; /* Adjusted margin for desktop */
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Adjusted size for desktop */
  height: 32px; /* Adjusted size for desktop */
}

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

/* --- CTA Banner Section --- */
.page-cockfighting__cta-banner {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color as background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
}

.page-cockfighting__cta-banner-content {
    max-width: 900px;
}

.page-cockfighting__cta-banner .page-cockfighting__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-cockfighting__cta-banner .page-cockfighting__text-block {
    color: #f0f0f0;
    font-size: 20px;
    margin-bottom: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__hero-content h1 {
        font-size: 44px;
    }
    .page-cockfighting__hero-description {
        font-size: 20px;
    }
    .page-cockfighting__cta-button {
        font-size: 18px;
        padding: 12px 30px;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 30px 15px;
    }

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

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

    /* Hero Section Mobile */
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile override */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 18px;
        margin-bottom: 30px;
    }
    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }
    .page-cockfighting__cta-button {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__cta-buttons--center {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 40px auto 0 auto;
    }


    /* Image Responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !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;
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__feature-item,
    .page-cockfighting__step-item,
    .page-cockfighting__promotion-card {
        padding: 20px;
        border-radius: 8px;
    }
    .page-cockfighting__feature-title,
    .page-cockfighting__step-title,
    .page-cockfighting__card-title {
        font-size: 20px;
    }

    /* FAQ Mobile */
    .page-cockfighting__faq-question {
      padding: 15px;
      flex-wrap: wrap;
      border-radius: 6px;
    }

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

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

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

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

    .page-cockfighting__faq-item {
        border-radius: 6px;
    }

    /* CTA Banner Mobile */
    .page-cockfighting__cta-banner .page-cockfighting__text-block {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-content h1 {
        font-size: 28px;
    }
    .page-cockfighting__hero-description {
        font-size: 16px;
    }
    .page-cockfighting__section-title {
        font-size: 24px;
    }
}