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

/* Base styles for the page content wrapper */
.page-khuyen-mai {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--background);
}

/* Container for content sections */
.page-khuyen-mai__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-khuyen-mai__section-title {
    font-size: clamp(24px, 4vw, 36px);
    color: var(--gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-khuyen-mai__section-title--light {
    color: var(--text-main);
}

/* Text blocks */
.page-khuyen-mai__text-block {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-khuyen-mai__text-block--light {
    color: var(--text-secondary);
}

.page-khuyen-mai__text-block a {
    color: var(--gold);
    text-decoration: underline;
}

/* All images base responsive style */
.page-khuyen-mai img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* CTA Buttons */
.page-khuyen-mai__cta-button,
.page-khuyen-mai__card-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-khuyen-mai__btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border);
}

.page-khuyen-mai__btn-secondary:hover {
    background: rgba(46, 122, 78, 0.2);
    color: var(--gold);
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, not --header-offset */
    margin-bottom: 60px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-khuyen-mai__hero-image {
    width: 100%;
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.page-khuyen-mai__hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 300px;
    max-height: 600px;
    border-radius: 10px;
}

.page-khuyen-mai__hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
    margin-top: -100px;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.page-khuyen-mai__main-title {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.page-khuyen-mai__hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Intro Section */
.page-khuyen-mai__intro-section {
    padding: 60px 0;
    background-color: var(--background);
}

/* Promotions Grid */
.page-khuyen-mai__promotions-grid {
    padding: 60px 0;
    background-color: var(--deep-green);
}

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

.page-khuyen-mai__promo-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 30px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-khuyen-mai__promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--divider);
}

.page-khuyen-mai__card-title {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 15px;
    padding: 0 20px;
    font-weight: 700;
}

.page-khuyen-mai__card-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    padding: 0 20px;
    flex-grow: 1;
}

/* How To Claim Section */
.page-khuyen-mai__how-to-claim-section {
    padding: 60px 0;
    background-color: var(--background);
}

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

.page-khuyen-mai__step-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    color: var(--deep-green);
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(242, 193, 78, 0.4);
}

.page-khuyen-mai__step-title {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-khuyen-mai__step-description {
    font-size: 16px;
    color: var(--text-secondary);
}

.page-khuyen-mai__step-description a {
    color: var(--gold);
    text-decoration: underline;
}

/* Terms Section */
.page-khuyen-mai__terms-section {
    padding: 60px 0;
    background-color: var(--deep-green);
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
    padding: 60px 0;
    background-color: var(--background);
}

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

details.page-khuyen-mai__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question::-webkit-details-marker {
    display: none;
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question:hover {
    background: rgba(46, 122, 78, 0.2);
}
.page-khuyen-mai__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}
.page-khuyen-mai__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
    padding: 0 25px 20px;
    background: var(--deep-green);
    border-radius: 0 0 10px 10px;
}
.page-khuyen-mai__faq-answer p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* CTA Section at the bottom */
.page-khuyen-mai__cta-section {
    padding: 80px 0;
    background-color: var(--deep-green);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-khuyen-mai__cta-section .page-khuyen-mai__section-title {
    margin-bottom: 20px;
    color: var(--gold);
}

.page-khuyen-mai__cta-section .page-khuyen-mai__text-block {
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.page-khuyen-mai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.page-khuyen-mai__cta-section img {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-khuyen-mai__container {
        padding: 20px 30px;
    }
    .page-khuyen-mai__hero-content {
        padding: 30px;
    }
    .page-khuyen-mai__main-title {
        font-size: clamp(28px, 4.5vw, 40px);
    }
    .page-khuyen-mai__hero-description {
        font-size: 18px;
    }
    .page-khuyen-mai__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-khuyen-mai__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-khuyen-mai__promo-card img {
        
    }
    .page-khuyen-mai__card-title {
        font-size: 22px;
    }
    .page-khuyen-mai__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
        padding: 15px 20px;
    }
    .page-khuyen-mai__faq-qtext {
        font-size: 17px;
    }
    .page-khuyen-mai__faq-toggle {
        font-size: 24px;
        width: 25px;
    }
    details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-khuyen-mai__container,
    .page-khuyen-mai__section,
    .page-khuyen-mai__card,
    .page-khuyen-mai__promo-card,
    .page-khuyen-mai__step-item,
    details.page-khuyen-mai__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* HERO 主图区域 */
    .page-khuyen-mai__hero-section {
        padding-top: 10px;
        margin-bottom: 40px;
    }
    .page-khuyen-mai__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        max-height: 400px;
        min-height: unset;
        border-radius: 0;
    }
    .page-khuyen-mai__hero-content {
        padding: 25px 15px;
        margin-top: -50px;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: var(--card-bg);
    }
    .page-khuyen-mai__main-title {
        font-size: clamp(26px, 7vw, 36px);
        margin-bottom: 15px;
    }
    .page-khuyen-mai__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    /* Section titles */
    .page-khuyen-mai__section-title {
        font-size: clamp(22px, 6vw, 30px);
        margin-bottom: 30px;
        padding: 0 10px;
    }

    /* Text blocks */
    .page-khuyen-mai__text-block {
        font-size: 16px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    /* 通用图片与容器 */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 产品展示图区域 (Promotions Grid) */
    .page-khuyen-mai__promotions-grid {
        padding: 40px 0;
        overflow-x: hidden;
    }
    .page-khuyen-mai__grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-khuyen-mai__promo-card {
        padding-bottom: 20px;
        border-radius: 0;
        box-shadow: none;
    }
    .page-khuyen-mai__promo-card img {
        
        margin-bottom: 15px;
    }
    .page-khuyen-mai__card-title {
        font-size: 20px;
        margin-bottom: 10px;
        padding: 0 15px;
    }
    .page-khuyen-mai__card-description {
        font-size: 15px;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    .page-khuyen-mai__card-button {
        padding: 10px 20px;
        font-size: 15px;
    }

    /* How To Claim Section */
    .page-khuyen-mai__how-to-claim-section {
        padding: 40px 0;
    }
    .page-khuyen-mai__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-khuyen-mai__step-item {
        padding: 25px 15px;
        border-radius: 0;
        box-shadow: none;
    }
    .page-khuyen-mai__step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    .page-khuyen-mai__step-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .page-khuyen-mai__step-description {
        font-size: 15px;
    }

    /* Terms Section */
    .page-khuyen-mai__terms-section {
        padding: 40px 0;
    }

    /* FAQ Section */
    .page-khuyen-mai__faq-section {
        padding: 40px 0;
    }
    .page-khuyen-mai__faq-list {
        max-width: 100%;
        padding: 0 15px;
    }
    details.page-khuyen-mai__faq-item {
        margin-bottom: 10px;
        border-radius: 0;
        box-shadow: none;
    }
    details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
        padding: 15px;
    }
    .page-khuyen-mai__faq-qtext {
        font-size: 15px;
    }
    .page-khuyen-mai__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
        padding: 0 15px 15px;
    }
    .page-khuyen-mai__faq-answer p {
        font-size: 14px;
    }

    /* CTA Section */
    .page-khuyen-mai__cta-section {
        padding: 50px 0;
    }
    .page-khuyen-mai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    /* 按钮与按钮容器 */
    .page-khuyen-mai__cta-button,
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary,
    .page-khuyen-mai a[class*="button"],
    .page-khuyen-mai 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-khuyen-mai__cta-buttons,
.page-khuyen-mai__button-group,
.page-khuyen-mai__btn-container {
        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-section img {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
}