/* General styles for the Khuyến Mãi page */
.page-khuyen-mai {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set body background as white */
}

.page-khuyen-mai__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.page-khuyen-mai__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-khuyen-mai__text-block {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Button styles */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-khuyen-mai__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    color: #FFFFFF;
}

.page-khuyen-mai__btn-secondary {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
}

.page-khuyen-mai__btn-secondary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
    color: #FFFFFF;
}

.page-khuyen-mai__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-khuyen-mai__text-link {
    color: #017439;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-khuyen-mai__text-link:hover {
    color: #005a2d;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    background-color: #f8f8f8; /* Light background for the hero section */
}

.page-khuyen-mai__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 24px;
}

.page-khuyen-mai__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    padding-right: 20px;
}

.page-khuyen-mai__hero-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 font size */
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-khuyen-mai__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
    line-height: 1.5;
}

.page-khuyen-mai__hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-khuyen-mai__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

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

/* Intro Section */
.page-khuyen-mai__intro-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background */
}

/* Promo Categories Section */
.page-khuyen-mai__promo-categories-section {
    padding: 60px 0;
    background-color: #f0fdf5; /* Very light green background */
}

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

.page-khuyen-mai__promo-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-khuyen-mai__card-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-khuyen-mai__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-khuyen-mai__card-description {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-khuyen-mai__card-features {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #444444;
    font-size: 0.9em;
}

.page-khuyen-mai__promo-card .page-khuyen-mai__btn-primary {
    margin-top: auto; /* Push button to the bottom */
    width: 100%; /* Make button full width in card */
}

/* How to Claim Section */
.page-khuyen-mai__how-to-claim-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* White text for dark background */
}

.page-khuyen-mai__how-to-claim-section .page-khuyen-mai__section-title {
    color: #FFFFFF; /* White title for dark background */
}

.page-khuyen-mai__steps-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-khuyen-mai__steps-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.page-khuyen-mai__steps-list li strong {
    color: #FFFF00; /* Highlight step numbers/titles */
    flex-shrink: 0;
}

.page-khuyen-mai__cta-wrapper {
    text-align: center;
}

/* Terms Section */
.page-khuyen-mai__terms-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background */
}

.page-khuyen-mai__terms-list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 30px;
    color: #555555;
    font-size: 1em;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
    padding: 60px 0;
    background-color: #f0fdf5; /* Light background */
}

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

.page-khuyen-mai__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    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;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #fcfcfc;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
    border-bottom: 1px solid #d0d0d0;
}

.page-khuyen-mai__faq-question::-webkit-details-marker {
    display: none;
}
.page-khuyen-mai__faq-question::marker {
    display: none;
}

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

.page-khuyen-mai__faq-toggle {
    font-size: 1.5em;
    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); /* Rotate '+' to 'x' or similar */
}

.page-khuyen-mai__faq-answer {
    padding: 15px 25px 20px;
    font-size: 0.95em;
    color: #555555;
    text-align: justify;
}

/* Final CTA Section */
.page-khuyen-mai__final-cta-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* White text */
    text-align: center;
}

.page-khuyen-mai__final-cta-section .page-khuyen-mai__section-title {
    color: #FFFFFF;
    margin-bottom: 25px;
}

.page-khuyen-mai__final-cta-content .page-khuyen-mai__text-block {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1em;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-khuyen-mai__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-khuyen-mai__hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .page-khuyen-mai__hero-cta-buttons {
        justify-content: center;
    }

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

    .page-khuyen-mai__steps-list li {
        font-size: 1em;
        padding: 18px 20px;
    }

    .page-khuyen-mai__faq-question {
        font-size: 1em;
        padding: 16px 20px;
    }
}


@media (max-width: 768px) {
    /* HERO Section */
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Small top padding, relies on body for header offset */
        padding-bottom: 30px;
    }

    .page-khuyen-mai__hero-container {
        padding: 30px 15px;
        gap: 20px;
    }

    .page-khuyen-mai__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-khuyen-mai__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-khuyen-mai__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Buttons */
    .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__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;
        display: flex;
        flex-direction: column;
    }

    /* Section titles */
    .page-khuyen-mai__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    /* Images (General) */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .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;
    }

    /* Promo Cards */
    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .page-khuyen-mai__promo-card {
        padding: 20px;
    }
    .page-khuyen-mai__card-image-wrapper {
        height: 180px; /* Slightly smaller fixed height for mobile cards */
    }
    .page-khuyen-mai__card-title {
        font-size: 1.3em;
    }
    .page-khuyen-mai__card-description {
        font-size: 0.9em;
    }
    .page-khuyen-mai__card-features {
        margin-left: 15px;
        font-size: 0.85em;
    }

    /* How to Claim Section */
    .page-khuyen-mai__steps-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-khuyen-mai__steps-list li strong {
        margin-bottom: 5px;
    }

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

    /* Final CTA Section */
    .page-khuyen-mai__final-cta-section {
        padding: 50px 0;
    }
    .page-khuyen-mai__final-cta-content .page-khuyen-mai__text-block {
        font-size: 1em;
        margin-bottom: 30px;
    }
}