.page-cockfighting {
    color: #ffffff; /* Default text color for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #000000; /* Ensure consistency with body background */
}

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

/* Header offset for fixed header */
.page-cockfighting__hero-section {
    position: relative;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: var(--header-offset, 120px); /* Desktop default 120px */
    margin-top: 0;
    overflow: hidden;
    background-color: #0A2463; /* Main brand color */
}

.page-cockfighting__hero-container {
    position: relative;
    width: 100%;
    min-height: 500px; /* Minimum height for hero section */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.page-cockfighting__hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #F2B807; /* Auxiliary color for title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

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

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

.page-cockfighting__section-title {
    font-size: 2.8em;
    color: #F2B807;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #F2B807;
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
    color: #f0f0f0;
}

.page-cockfighting__dark-bg {
    background-color: #0A2463;
    color: #ffffff;
}

.page-cockfighting__light-bg {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

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

.page-cockfighting__btn-primary {
    background-color: #F2B807;
    color: #0A2463;
    border: 2px solid #F2B807;
}

.page-cockfighting__btn-primary:hover {
    background-color: #ffcd38;
    border-color: #ffcd38;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(242, 184, 7, 0.4);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: #F2B807;
    color: #0A2463;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(242, 184, 7, 0.4);
}

/* Advantages Section */
.page-cockfighting__advantages-grid,
.page-cockfighting__types-grid,
.page-cockfighting__tips-grid,
.page-cockfighting__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__advantage-card,
.page-cockfighting__type-card,
.page-cockfighting__tip-card,
.page-cockfighting__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(242, 184, 7, 0.3);
    color: #ffffff;
}

.page-cockfighting__advantage-card:hover,
.page-cockfighting__type-card:hover,
.page-cockfighting__tip-card:hover,
.page-cockfighting__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__advantage-icon,
.page-cockfighting__type-image,
.page-cockfighting__tip-image,
.page-cockfighting__feature-icon {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    border: 2px solid #F2B807;
}

.page-cockfighting__feature-icon {
    max-width: 150px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    object-fit: cover;
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: #F2B807;
    margin-bottom: 15px;
}

.page-cockfighting__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Guide Section */
.page-cockfighting__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(242, 184, 7, 0.2);
    color: #ffffff;
}

.page-cockfighting__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #F2B807;
    color: #0A2463;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__step-title {
    font-size: 1.6em;
    color: #F2B807;
    margin-bottom: 15px;
}

.page-cockfighting__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Promotions Section */
.page-cockfighting__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
}

.page-cockfighting__promo-list li {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 5px solid #F2B807;
    transition: background-color 0.3s ease;
}

.page-cockfighting__promo-list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__promo-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    display: block;
}

.page-cockfighting__promo-link:hover {
    color: #F2B807;
    text-decoration: underline;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

/* FAQ容器样式 */
.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(242, 184, 7, 0.2);
}

/* 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 15px;
    opacity: 0;
    color: #f0f0f0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #0A2463;
    border: 1px solid #F2B807;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #ffffff;
}

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

.page-cockfighting__faq-question:active {
    background: #071c4c;
}

/* 问题标题样式 */
.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #F2B807;
}

/* 切换图标 */
.page-cockfighting__faq-toggle {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    color: #F2B807;
    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: 30px;
    height: 30px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg);
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.5em;
    }
    .page-cockfighting__section-title {
        font-size: 2.2em;
    }
    .page-cockfighting__container {
        padding: 40px 15px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 400px; /* Adjust min height for mobile hero */
    }
    .page-cockfighting__hero-overlay {
        padding: 20px;
        max-width: 90%;
    }
    .page-cockfighting__hero-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-cockfighting__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-cockfighting__cta-wrapper {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        font-size: 0.95em;
    }
    .page-cockfighting__advantages-grid,
    .page-cockfighting__types-grid,
    .page-cockfighting__tips-grid,
    .page-cockfighting__security-features,
    .page-cockfighting__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__advantage-card,
    .page-cockfighting__type-card,
    .page-cockfighting__tip-card,
    .page-cockfighting__feature-item,
    .page-cockfighting__step-item {
        padding: 20px;
    }
    .page-cockfighting__card-title,
    .page-cockfighting__step-title {
        font-size: 1.3em;
    }
    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 1.1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-cockfighting__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 1.8em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }

    /* Image responsiveness */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-cockfighting__container,
    .page-cockfighting__hero-container,
    .page-cockfighting__advantages-grid,
    .page-cockfighting__types-grid,
    .page-cockfighting__tips-grid,
    .page-cockfighting__security-features,
    .page-cockfighting__guide-steps,
    .page-cockfighting__faq-list,
    .page-cockfighting__promo-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}