/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F3F8FF; /* Text Main for dark background */
    background-color: #08162B; /* Deep Navy for overall body content areas, assuming shared.css sets body to #000 */
}

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

/* Hero Section */
.page-khuyen-mai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as body padding-top is handled by shared.css */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, #113B7A 0%, #08162B 100%); /* Brand color gradient */
}

.page-khuyen-mai__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.page-khuyen-mai__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-khuyen-mai__description {
    font-size: 1.15rem;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__btn-secondary {
    background: #10233F; /* Card BG */
    color: #F2C14E; /* Gold */
    border: 2px solid #244D84; /* Border */
}

.page-khuyen-mai__btn-secondary:hover {
    background: #244D84; /* Border color for hover */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__btn-text {
    background: transparent;
    color: #4FA8FF; /* Glow */
    border: none;
    padding: 8px 0;
    font-size: 1rem;
    font-weight: 500;
}

.page-khuyen-mai__btn-text:hover {
    color: #F2C14E; /* Gold */
}

.page-khuyen-mai__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-khuyen-mai__btn-text:hover .page-khuyen-mai__arrow {
    transform: translateX(5px);
}

/* General Sections */
.page-khuyen-mai__section {
    padding: 60px 0;
    background-color: #08162B; /* Deep Navy */
}

.page-khuyen-mai__dark-section {
    background-color: #000;
    color: #F3F8FF;
}

.page-khuyen-mai__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-khuyen-mai__section-intro {
    font-size: 1.05rem;
    color: #AFC4E8; /* Text Secondary */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-khuyen-mai__text-secondary {
    color: #AFC4E8;
}

/* Promotion Grid */
.page-khuyen-mai__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-khuyen-mai__card {
    background-color: #10233F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-khuyen-mai__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-khuyen-mai__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-khuyen-mai__card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-khuyen-mai__card-text {
    font-size: 1rem;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-khuyen-mai__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    color: #AFC4E8; /* Text Secondary */
}

.page-khuyen-mai__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.page-khuyen-mai__list li::before {
    content: '✓';
    color: #4FA8FF; /* Glow */
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* CTA Banner Section */
.page-khuyen-mai__cta-banner-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #113B7A; /* Primary color */
    border-radius: 12px;
    overflow: hidden;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-top: 50px;
}

.page-khuyen-mai__cta-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 0;
}

.page-khuyen-mai__cta-banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-khuyen-mai__cta-banner-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-khuyen-mai__cta-banner-text {
    font-size: 1.1rem;
    color: #F3F8FF; /* Text Main */
    margin-bottom: 30px;
}

/* Info Grid (Conditions) */
.page-khuyen-mai__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.page-khuyen-mai__info-card {
    background-color: #10233F; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #244D84; /* Border */
}

.page-khuyen-mai__info-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-khuyen-mai__info-text {
    font-size: 1rem;
    color: #F3F8FF; /* Text Main */
}

.page-khuyen-mai__full-terms {
    text-align: center;
    margin-top: 20px;
}

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

.page-khuyen-mai__step-card {
    background-color: #10233F; /* Card BG */
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #244D84; /* Border */
}

.page-khuyen-mai__step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__step-title {
    font-size: 1.6rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-khuyen-mai__step-text {
    font-size: 1rem;
    color: #F3F8FF; /* Text Main */
}

.page-khuyen-mai__step-text a {
    color: #4FA8FF; /* Glow */
    text-decoration: none;
    font-weight: 600;
}

.page-khuyen-mai__step-text a:hover {
    text-decoration: underline;
    color: #F2C14E; /* Gold */
}

.page-khuyen-mai__cta-bottom {
    text-align: center;
    margin-top: 30px;
}

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

.page-khuyen-mai__faq-item {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F2C14E; /* Gold */
    cursor: pointer;
    background-color: #1B3357; /* Divider */
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
    border-bottom: 1px solid #244D84; /* Border */
    background-color: #10233F; /* Card BG */
}

.page-khuyen-mai__faq-question:hover {
    background-color: #113B7A; /* Primary color */
}

.page-khuyen-mai__faq-qtext {
    flex-grow: 1;
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
    transform: rotate(45deg); /* Change + to X */
}

.page-khuyen-mai__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #F3F8FF; /* Text Main */
    line-height: 1.7;
}

.page-khuyen-mai__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-khuyen-mai__final-cta {
    text-align: center;
    padding-bottom: 80px;
    background: linear-gradient(180deg, #08162B 0%, #113B7A 100%);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-khuyen-mai__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-khuyen-mai__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-khuyen-mai__card-title {
        font-size: 1.4rem;
    }
    .page-khuyen-mai__info-title,
    .page-khuyen-mai__step-title {
        font-size: 1.3rem;
    }
    .page-khuyen-mai__faq-question {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }
    .page-khuyen-mai__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-khuyen-mai__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-khuyen-mai__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* 按钮与按钮容器 */
    .page-khuyen-mai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .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 !important;
        padding-right: 15px !important;
    }
    .page-khuyen-mai__cta-bottom {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

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

    /* 長文区 (General sections, info/steps grids) */
    .page-khuyen-mai__section {
        padding: 40px 0;
    }
    .page-khuyen-mai__section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-bottom: 20px;
    }
    .page-khuyen-mai__section-intro {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .page-khuyen-mai__card-title {
        font-size: 1.3rem;
    }
    .page-khuyen-mai__info-title,
    .page-khuyen-mai__step-title {
        font-size: 1.2rem;
    }
    .page-khuyen-mai__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-khuyen-mai__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    .page-khuyen-mai__promotion-grid,
    .page-khuyen-mai__info-grid,
    .page-khuyen-mai__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-khuyen-mai__cta-banner-section {
        padding: 30px;
    }
    .page-khuyen-mai__cta-banner-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    .page-khuyen-mai__cta-banner-text {
        font-size: 1rem;
    }
}