/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
    background-color: #140C0C; /* Background color from custom scheme */
    color: #FFF1E8; /* Text Main color from custom scheme */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-khuyen-mai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per fixed header rule */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow from hero image */
}

.page-khuyen-mai__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of the hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-khuyen-mai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-khuyen-mai__hero-content {
    max-width: 900px;
    padding: 0 20px;
    margin-top: 20px;
}

.page-khuyen-mai__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    color: #F3C54D; /* Gold color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-khuyen-mai__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF1E8;
}

.page-khuyen-mai__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text from wrapping by default, let word-wrap handle it on mobile */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button gradient */
    color: #FFF1E8; /* Text Main for button */
    border: none;
}

.page-khuyen-mai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-khuyen-mai__btn-secondary {
    background: #2A1212; /* Card BG for secondary button */
    color: #F3C54D; /* Gold for secondary button text */
    border: 2px solid #F3C54D; /* Gold border */
}

.page-khuyen-mai__btn-secondary:hover {
    background: #F3C54D; /* Gold background on hover */
    color: #2A1212; /* Card BG text on hover */
}

.page-khuyen-mai__btn-outline {
    background: transparent;
    color: #F3C54D; /* Gold for outline button text */
    border: 1px solid #F3C54D; /* Gold border */
    padding: 8px 15px;
    font-size: 0.9rem;
    white-space: normal; /* Allow wrapping for card buttons */
}

.page-khuyen-mai__btn-outline:hover {
    background: #F3C54D;
    color: #2A1212;
}

/* General section styling */
.page-khuyen-mai__promo-types-section,
.page-khuyen-mai__terms-conditions-section,
.page-khuyen-mai__how-to-claim-section,
.page-khuyen-mai__why-choose-section,
.page-khuyen-mai__faq-section,
.page-khuyen-mai__cta-final-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-khuyen-mai__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #F3C54D;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-khuyen-mai__section-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF1E8;
}

/* Promo Cards Grid */
.page-khuyen-mai__promo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-khuyen-mai__promo-card {
    background-color: #2A1212; /* Card BG color */
    border: 1px solid #6A1E1E; /* Border color */
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%; /* Ensure cards are same height */
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.page-khuyen-mai__promo-card:hover {
    transform: translateY(-5px);
}

.page-khuyen-mai__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-khuyen-mai__card-title {
    font-size: 1.5rem;
    color: #F3C54D;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-khuyen-mai__card-text {
    font-size: 1rem;
    color: #FFF1E8;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* Terms & Conditions */
.page-khuyen-mai__content-block {
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.page-khuyen-mai__content-subtitle {
    font-size: 1.3rem;
    color: #E53030; /* Secondary color for subtitles */
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-khuyen-mai__content-block p {
    font-size: 1rem;
    color: #FFF1E8;
    margin-bottom: 15px;
}

/* How to Claim Steps */
.page-khuyen-mai__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-khuyen-mai__step-item {
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.page-khuyen-mai__step-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFB04A; /* Part of button gradient, stands out */
    margin-bottom: 15px;
    background: #7E0D0D; /* Deep Red background for number */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-khuyen-mai__step-title {
    font-size: 1.4rem;
    color: #F3C54D;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-khuyen-mai__step-text {
    font-size: 1rem;
    color: #FFF1E8;
    flex-grow: 1;
}

.page-khuyen-mai__step-text a {
    color: #FFB04A; /* Link color */
    text-decoration: none;
    font-weight: bold;
}

.page-khuyen-mai__step-text a:hover {
    text-decoration: underline;
}

.page-khuyen-mai__cta-buttons--center {
    margin-top: 40px;
}

/* Why Choose Section */
.page-khuyen-mai__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-khuyen-mai__feature-item {
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    box-sizing: border-box;
}

.page-khuyen-mai__feature-title {
    font-size: 1.4rem;
    color: #F3C54D;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-khuyen-mai__feature-text {
    font-size: 1rem;
    color: #FFF1E8;
}

/* FAQ Section */
.page-khuyen-mai__faq-list {
    margin-top: 30px;
}

.page-khuyen-mai__faq-item {
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: #F3C54D;
    list-style: none; /* Hide default marker for details/summary */
}

.page-khuyen-mai__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit */
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-khuyen-mai__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #FFF1E8;
    line-height: 1.6;
}

/* Final CTA Section */
.page-khuyen-mai__cta-final-section {
    text-align: center;
    background-color: #7E0D0D; /* Deep Red background */
    padding: 80px 20px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.page-khuyen-mai__cta-final-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #F3C54D;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-khuyen-mai__cta-final-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #FFF1E8;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .page-khuyen-mai {
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO Section */
    .page-khuyen-mai__hero-section {
        padding-top: 10px; /* Consistent small top padding */
        padding-bottom: 30px;
    }
    .page-khuyen-mai__hero-content {
        padding: 0 15px;
    }
    .page-khuyen-mai__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 for mobile */
    }
    .page-khuyen-mai__description {
        font-size: 1rem;
    }
    .page-khuyen-mai__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
    }
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__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;
    }

    /* General Section Padding */
    .page-khuyen-mai__promo-types-section,
    .page-khuyen-mai__terms-conditions-section,
    .page-khuyen-mai__how-to-claim-section,
    .page-khuyen-mai__why-choose-section,
    .page-khuyen-mai__faq-section,
    .page-khuyen-mai__cta-final-section {
        padding: 40px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-khuyen-mai__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-khuyen-mai__section-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Promo Cards Grid */
    .page-khuyen-mai__promo-cards-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-khuyen-mai__promo-card {
        padding: 20px;
    }
    .page-khuyen-mai__card-image {
        height: 180px; /* Adjust image height for mobile cards */
    }
    .page-khuyen-mai__card-title {
        font-size: 1.3rem;
    }

    /* Terms & Conditions */
    .page-khuyen-mai__content-block {
        padding: 20px;
    }
    .page-khuyen-mai__content-subtitle {
        font-size: 1.2rem;
    }

    /* How to Claim Steps */
    .page-khuyen-mai__steps-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-khuyen-mai__step-item {
        padding: 20px;
    }

    /* Why Choose Section */
    .page-khuyen-mai__feature-list {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-khuyen-mai__feature-item {
        padding: 20px;
    }
    .page-khuyen-mai__feature-title {
        font-size: 1.3rem;
    }

    /* FAQ Section */
    .page-khuyen-mai__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-khuyen-mai__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Final CTA Section */
    .page-khuyen-mai__cta-final-section {
        padding: 50px 15px;
    }
    .page-khuyen-mai__cta-final-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-khuyen-mai__cta-final-text {
        font-size: 1rem;
    }
    
    /* --- Required Mobile @media (max-width: 768px) Checklist Items (Placeholders for homepage-specific modules) --- */
    /* 1. HERO 主图区域 (already handled above) */

    /* 2. 长文金框区 */
    .page-khuyen-mai__home-content { 
        height: auto;
        overflow-y: visible;
        padding: 20px 15px;
    }
    .page-khuyen-mai__home-content h2 {
        font-size: 1.8rem;
    }

    /* 3. 游戏轮播 */
    .page-khuyen-mai__slider-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }
    .page-khuyen-mai__slider-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        scroll-snap-align: start;
    }
    .page-khuyen-mai__game-slide {
        flex: 0 0 160px;
        max-width: 160px;
        scroll-snap-align: center;
    }

    /* 4. 合作品牌六宫格 */
    .page-khuyen-mai__banners-top-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
    .page-khuyen-mai__banner-item img {
        
        
    }

    /* 5. 博客卡片区 */
    .page-khuyen-mai__blog-masonry {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: stretch;
    }
    .page-khuyen-mai__blog-card-link {
        flex-direction: column;
    }
    .page-khuyen-mai__blog-slider-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }
    .page-khuyen-mai__blog-slide {
        flex: 0 0 calc(90% - 10px);
        max-width: calc(90% - 10px);
        scroll-snap-align: start;
    }

    /* 6. 通用图片与容器 */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-khuyen-mai__section,
    .page-khuyen-mai__card,
    .page-khuyen-mai__container { /* General containers */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 7. 按钮与按钮容器 */
    .page-khuyen-mai__cta-buttons,
    .page-khuyen-mai__button-group,
    .page-khuyen-mai__btn-container { /* General button containers */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-khuyen-mai__cta-buttons {
        flex-direction: column;
    }
}