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

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

.page-khuyen-mai__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-khuyen-mai__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-khuyen-mai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-khuyen-mai__btn-primary {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF; /* White text for contrast */
    border: 2px solid #017439;
}

.page-khuyen-mai__btn-primary:hover {
    background-color: #005f2c; /* Slightly darker green */
    border-color: #005f2c;
}

.page-khuyen-mai__btn-secondary {
    background-color: #FFFFFF; /* White background */
    color: #017439; /* Brand primary color text */
    border: 2px solid #017439;
}

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

.page-khuyen-mai__btn-link {
    background-color: transparent;
    color: #017439;
    border: 1px solid #017439;
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-khuyen-mai__btn-link:hover {
    background-color: #017439;
    color: #FFFFFF;
}

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

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

.page-khuyen-mai__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
    color: #333333;
}

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

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

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

.page-khuyen-mai__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element for max-width/height:auto */
}

/* Intro Section (Why Choose) */
.page-khuyen-mai__intro-section {
    background-color: #FFFFFF; /* Light background */
    padding: 80px 0;
}

.page-khuyen-mai__icon-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.page-khuyen-mai__icon-box {
    flex: 1 1 30%; /* Three columns */
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    padding: 25px;
    background-color: #fdfdfd;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-khuyen-mai__icon-box:hover {
    transform: translateY(-10px);
}

.page-khuyen-mai__icon-box-media {
    width: 240px; /* Fixed width for square */
    height: 240px; /* Fixed height for square */
    margin: 0 auto 25px;
    border-radius: 50%; /* Make it circular */
    overflow: hidden;
    border: 5px solid #017439; /* Brand border */
    box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2);
}

.page-khuyen-mai__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the circle */
    display: block;
}

.page-khuyen-mai__icon-box-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-khuyen-mai__icon-box-text {
    font-size: 1em;
    color: #666666;
}

/* Promotion Section */
.page-khuyen-mai__promo-section {
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* White text */
    padding: 80px 0;
}

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

.page-khuyen-mai__promo-section .page-khuyen-mai__section-description {
    color: #f0f0f0;
}

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

.page-khuyen-mai__promo-card {
    background-color: #fdfdfd;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #333333; /* Dark text for card content */
}

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

.page-khuyen-mai__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
}

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

.page-khuyen-mai__promo-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-khuyen-mai__promo-title a {
    color: #017439; /* Brand color for promo titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-khuyen-mai__promo-title a:hover {
    color: #005f2c;
}

.page-khuyen-mai__promo-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Guide Section */
.page-khuyen-mai__guide-section {
    background-color: #FFFFFF; /* Light background */
    padding: 80px 0;
}

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

.page-khuyen-mai__guide-step {
    background-color: #fdfdfd;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 5px solid #017439;
}

.page-khuyen-mai__step-icon {
    font-size: 2.5em;
    color: #017439;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

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

.page-khuyen-mai__step-text {
    font-size: 1em;
    color: #666666;
}

.page-khuyen-mai__step-text a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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

.page-khuyen-mai__guide-image-wrapper {
    margin-top: 60px;
    text-align: center;
}

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

/* Terms Section */
.page-khuyen-mai__terms-section {
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* White text */
    padding: 80px 0;
}

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

.page-khuyen-mai__terms-section .page-khuyen-mai__section-description {
    color: #f0f0f0;
}

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

.page-khuyen-mai__terms-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1em;
    color: #FFFFFF;
    position: relative;
    padding-left: 35px;
}

.page-khuyen-mai__terms-list li::before {
    content: '✓';
    color: #FFFF00; /* Yellow checkmark */
    position: absolute;
    left: 10px;
    font-weight: bold;
}

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

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

.page-khuyen-mai__faq-item {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-khuyen-mai__faq-question:hover {
    background-color: #e6e6e6;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
    background-color: #e6e6e6;
    border-bottom-color: transparent;
}

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

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

.page-khuyen-mai__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    margin-left: 15px;
}

.page-khuyen-mai__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
}

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

.page-khuyen-mai__faq-answer a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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

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

.page-khuyen-mai__cta-section .page-khuyen-mai__section-title {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.page-khuyen-mai__cta-section .page-khuyen-mai__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-khuyen-mai__cta-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Responsive Design --- */
/* Universal image responsiveness */
.page-khuyen-mai img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile specific styles for all sections (max-width: 768px) */
@media (max-width: 768px) {
    .page-khuyen-mai {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-khuyen-mai__content-area {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-khuyen-mai__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

    /* HERO section */
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-khuyen-mai__hero-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }

    .page-khuyen-mai__hero-content {
        text-align: center;
        flex: 1 1 100%;
    }

    .page-khuyen-mai__main-title {
        font-size: 2em; /* Ensure H1 is not too large */
        margin-bottom: 15px;
    }

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

    .page-khuyen-mai__hero-image {
        flex: 1 1 100%;
    }

    /* Buttons Mobile */
    .page-khuyen-mai__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary,
    .page-khuyen-mai__btn-link {
        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;
    }

    /* Intro Section Mobile */
    .page-khuyen-mai__intro-section {
        padding: 40px 0;
    }

    .page-khuyen-mai__icon-boxes {
        flex-direction: column;
        gap: 20px;
    }

    .page-khuyen-mai__icon-box {
        max-width: 100%; /* Full width for mobile */
        min-width: unset;
        padding: 20px;
    }

    .page-khuyen-mai__icon-box-media {
        width: 200px; /* Still square, but smaller */
        height: 200px;
        margin-bottom: 15px;
    }

    .page-khuyen-mai__icon-box-title {
        font-size: 1.3em;
    }

    /* Promo Section Mobile */
    .page-khuyen-mai__promo-section {
        padding: 40px 0;
    }

    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }

    .page-khuyen-mai__promo-image {
        height: 200px; /* Adjust height for mobile */
    }

    .page-khuyen-mai__promo-title {
        font-size: 1.2em;
    }

    /* Guide Section Mobile */
    .page-khuyen-mai__guide-section {
        padding: 40px 0;
    }

    .page-khuyen-mai__guide-steps {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }

    .page-khuyen-mai__guide-step {
        padding: 25px;
    }

    .page-khuyen-mai__step-icon {
        font-size: 2em;
    }

    .page-khuyen-mai__guide-image-wrapper {
        margin-top: 30px;
    }

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

    .page-khuyen-mai__terms-list {
        margin-top: 30px;
    }

    .page-khuyen-mai__terms-list li {
        padding: 12px 15px 12px 35px;
        font-size: 0.95em;
    }

    /* FAQ Section Mobile */
    .page-khuyen-mai__faq-section {
        padding: 40px 0;
    }

    .page-khuyen-mai__faq-list {
        margin-top: 30px;
    }

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

    .page-khuyen-mai__faq-toggle {
        font-size: 1.3em;
    }

    .page-khuyen-mai__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }

    /* Final CTA Section Mobile */
    .page-khuyen-mai__cta-section {
        padding: 40px 0;
    }

    .page-khuyen-mai__cta-section .page-khuyen-mai__section-title {
        font-size: 1.8em;
    }

    .page-khuyen-mai__cta-section .page-khuyen-mai__section-description {
        font-size: 1em;
    }
}