/* Base styles for the page */
.page-khuyen-mai {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background: #F4F7FB; /* Background */
}

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

.page-khuyen-mai__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-khuyen-mai__section-subtitle {
    font-size: 18px;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
}

.page-khuyen-mai__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.page-khuyen-mai__highlight {
    color: #2F6BFF; /* Main color */
    font-weight: 600;
}

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

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-khuyen-mai__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-khuyen-mai__btn-secondary {
    background: #FFFFFF; /* Card BG */
    color: #2F6BFF; /* Main color */
    border: 2px solid #2F6BFF; /* Main color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__btn-secondary:hover {
    background: #F4F7FB; /* Background */
    color: #2F6BFF;
    border-color: #2F6BFF;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 50px;
    overflow: hidden;
}

.page-khuyen-mai__hero-image {
    width: 100%;
    height: 550px; /* Fixed height for desktop */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
}

.page-khuyen-mai__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Desktop: cover to fill space */
    display: block;
    border-radius: 10px;
}

.page-khuyen-mai__hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.page-khuyen-mai__hero-title {
    font-size: clamp(32px, 5vw, 48px); /* H1 font size with clamp */
    font-weight: 800;
    color: #2F6BFF; /* Main color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-khuyen-mai__hero-description {
    font-size: 20px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Intro Section */
.page-khuyen-mai__intro-section {
    padding: 60px 0;
    margin-bottom: 50px;
    background: #2F6BFF; /* Main color */
    color: #FFFFFF;
}

.page-khuyen-mai__intro-section .page-khuyen-mai__section-title {
    color: #FFFFFF;
}

.page-khuyen-mai__intro-section .page-khuyen-mai__text-block {
    color: #F4F7FB; /* Lighter text for dark background */
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai__intro-section .page-khuyen-mai__highlight {
    color: #A5C4FF; /* Glow color for highlight on dark background */
}

.page-khuyen-mai__intro-section a {
    color: #A5C4FF; /* Link color on dark background */
    text-decoration: underline;
}

.page-khuyen-mai__intro-section a:hover {
    color: #FFFFFF;
}

/* Promotions Grid Section */
.page-khuyen-mai__promotions-grid-section {
    padding: 50px 0;
    margin-bottom: 50px;
}

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

.page-khuyen-mai__promotion-card {
    background: #FFFFFF; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 25px;
}

.page-khuyen-mai__promotion-card img {
    width: 100%;
    height: 250px; /* Fixed height for card images */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-khuyen-mai__promotion-card .page-khuyen-mai__card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
    padding: 0 20px;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-khuyen-mai__promotion-card .page-khuyen-mai__card-text {
    font-size: 15px;
    color: #1F2D3D; /* Text Main */
    padding: 0 20px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-khuyen-mai__promotion-card .page-khuyen-mai__btn-primary {
    align-self: center;
}

/* Guide Section */
.page-khuyen-mai__guide-section {
    padding: 60px 0;
    background: #F4F7FB; /* Background */
    margin-bottom: 50px;
}

.page-khuyen-mai__guide-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-khuyen-mai__guide-text-block {
    flex: 1;
}

.page-khuyen-mai__guide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-khuyen-mai__guide-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.page-khuyen-mai__guide-list li {
    background: #FFFFFF; /* Card BG */
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
    line-height: 1.6;
}

.page-khuyen-mai__guide-list li:last-child {
    margin-bottom: 0;
}

.page-khuyen-mai__guide-list .page-khuyen-mai__list-title {
    color: #2F6BFF; /* Main color */
    font-size: 18px;
    margin-bottom: 5px;
    display: block;
}

/* Terms Section */
.page-khuyen-mai__terms-section {
    padding: 60px 0;
    background: #2F6BFF; /* Main color */
    color: #F4F7FB; /* Background color for text */
    margin-bottom: 50px;
}

.page-khuyen-mai__terms-section .page-khuyen-mai__section-title {
    color: #FFFFFF;
}

.page-khuyen-mai__terms-section .page-khuyen-mai__text-block {
    color: #F4F7FB;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai__terms-section .page-khuyen-mai__highlight {
    color: #A5C4FF; /* Glow color */
}

.page-khuyen-mai__terms-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-khuyen-mai__terms-list li {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #FFFFFF;
}

.page-khuyen-mai__terms-list li:last-child {
    margin-bottom: 0;
}

.page-khuyen-mai__terms-list .page-khuyen-mai__list-title {
    color: #A5C4FF; /* Glow color */
    font-size: 18px;
    margin-bottom: 5px;
    display: block;
}

.page-khuyen-mai__terms-section a {
    color: #A5C4FF; /* Link color on dark background */
    text-decoration: underline;
}

.page-khuyen-mai__terms-section a:hover {
    color: #FFFFFF;
}

/* Why Choose Section */
.page-khuyen-mai__why-choose-section {
    padding: 50px 0;
    margin-bottom: 50px;
}

.page-khuyen-mai__why-choose-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-khuyen-mai__why-choose-list li {
    background: #FFFFFF; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-khuyen-mai__why-choose-list .page-khuyen-mai__list-title {
    color: #2F6BFF; /* Main color */
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-khuyen-mai__why-choose-section a {
    color: #2F6BFF; /* Main color */
    text-decoration: underline;
}

.page-khuyen-mai__why-choose-section a:hover {
    color: #6FA3FF; /* Auxiliary color */
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
    padding: 50px 0;
    background: #F4F7FB; /* Background */
}

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

details.page-khuyen-mai__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #D6E2FF; /* Border */
    overflow: hidden;
    background: #FFFFFF; /* Card BG */
}
details.page-khuyen-mai__faq-item summary.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    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: #F4F7FB; /* Background */
}
.page-khuyen-mai__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #1F2D3D; /* Text Main */
}
.page-khuyen-mai__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #2F6BFF; /* Main color */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer {
    padding: 0 20px 20px;
    background: #F4F7FB; /* Background */
    border-radius: 0 0 10px 10px;
    color: #1F2D3D; /* Text Main */
}
details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer p {
    margin-bottom: 0;
}
details.page-khuyen-mai__faq-item .page-khuyen-mai__faq-answer a {
    color: #2F6BFF;
    text-decoration: underline;
}

/* ========================================= */
/* Responsive Styles (Mobile First) */
/* ========================================= */

/* General mobile adjustments */
@media (max-width: 768px) {
    .page-khuyen-mai {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-khuyen-mai__container {
        padding: 0 15px;
    }

    .page-khuyen-mai__section-title {
        font-size: clamp(24px, 7vw, 32px);
        margin-bottom: 20px;
    }

    .page-khuyen-mai__section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-khuyen-mai__text-block {
        font-size: 15px;
        text-align: left;
    }

    /* HERO 主图区域 */
    .page-khuyen-mai__hero-section {
        padding-top: 10px;
        margin-bottom: 30px;
    }

    .page-khuyen-mai__hero-image {
        height: 250px;
        margin-bottom: 20px;
        border-radius: 0;
    }

    .page-khuyen-mai__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        border-radius: 0;
    }

    .page-khuyen-mai__hero-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 15px;
    }

    .page-khuyen-mai__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
        text-align: center;
    }
}