/* General styles for the Khuyến Mãi page */
.page-khuyen-mai {
    font-family: Arial, sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
    padding-bottom: 50px; /* General padding to avoid footer overlap */
}

/* Fixed header offset - assuming body has padding-top from shared.css */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding, body handles main offset */
}

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

.page-khuyen-mai__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-khuyen-mai__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* H1 font size clamp */
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai__description {
    font-size: 1.2em;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-khuyen-mai__text-block {
    font-size: 1.1em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    text-align: justify;
}

.page-khuyen-mai__text-block strong {
    color: #F2C14E; /* Gold */
}

.page-khuyen-mai__text-link {
    color: #2AD16F; /* Button top gradient color */
    text-decoration: underline;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.page-khuyen-mai__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
}

.page-khuyen-mai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for hero image */
}

.page-khuyen-mai__hero-content-wrapper {
    position: relative; 
    z-index: 2;
    padding: 40px 20px;
    background: linear-gradient(0deg, #08160F 0%, rgba(8, 22, 15, 0.7) 100%); /* Gradient to blend with background */
    margin-top: -100px; /* Pull content up over the bottom of the image for overlap effect */
}

.page-khuyen-mai__hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-outline,
.page-khuyen-mai__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrap on desktop */
    word-wrap: break-word; /* Allow break for mobile */
    box-sizing: border-box;
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    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: #11271B; /* Card BG */
    color: #2AD16F;
    border: 2px solid #2AD16F;
}

.page-khuyen-mai__btn-secondary:hover {
    background: #2AD16F;
    color: #11271B;
    border-color: #11271B;
}

.page-khuyen-mai__btn-outline {
    background: transparent;
    color: #2AD16F;
    border: 1px solid #2AD16F;
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 15px; /* For card context */
}

.page-khuyen-mai__btn-outline:hover {
    background: #2AD16F;
    color: #11271B;
}

.page-khuyen-mai__btn-link {
    background: transparent;
    color: #F2C14E; /* Gold */
    border: 1px solid #F2C14E;
    padding: 8px 15px;
    font-size: 0.9em;
    display: inline-block;
    margin-top: 10px;
}

.page-khuyen-mai__btn-link:hover {
    background: #F2C14E;
    color: #08160F;
}

/* Introduction Section */
.page-khuyen-mai__introduction-section {
    padding: 50px 0;
    background-color: #0A4B2C; /* Deep Green */
    margin-bottom: 50px;
}

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

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

.page-khuyen-mai__promotion-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.page-khuyen-mai__card-title {
    font-size: 1.5em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-khuyen-mai__card-description {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* Guide Section */
.page-khuyen-mai__guide-section {
    padding: 50px 0;
    background-color: #0A4B2C; /* Deep Green */
    margin-bottom: 50px;
}

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

.page-khuyen-mai__step-item {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-khuyen-mai__step-title {
    font-size: 1.3em;
    color: #F2C14E; /* Gold */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-khuyen-mai__step-description {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
    flex-grow: 1;
}

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

.page-khuyen-mai__terms-list {
    list-style: disc;
    padding-left: 25px;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 30px;
}

.page-khuyen-mai__terms-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-khuyen-mai__terms-item strong {
    color: #F2C14E; /* Gold */
}

/* Tips Section */
.page-khuyen-mai__tips-section {
    padding: 50px 0;
    background-color: #0A4B2C; /* Deep Green */
    margin-bottom: 50px;
}

.page-khuyen-mai__tips-list {
    list-style: decimal;
    padding-left: 25px;
    color: #F2FFF6; /* Text Main */
    margin-top: 30px;
}

.page-khuyen-mai__tips-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
    padding: 50px 0;
    margin-bottom: 50px;
}

.page-khuyen-mai__faq-section .page-khuyen-mai__container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
}

.page-khuyen-mai__faq-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 45%; /* Adjust as needed */
}

.page-khuyen-mai__faq-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.page-khuyen-mai__faq-list {
    flex: 2;
    min-width: 400px;
    max-width: 50%; /* Adjust as needed */
}

.page-khuyen-mai__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #F2C14E; /* Gold */
    cursor: pointer;
    list-style: none; /* Hide default marker */
    position: relative;
}

/* Custom toggle icon for details/summary */
.page-khuyen-mai__faq-question::-webkit-details-marker {
    display: none;
}
.page-khuyen-mai__faq-question::marker {
    display: none;
}

.page-khuyen-mai__faq-toggle {
    display: block;
    width: 24px;
    height: 24px;
    background-color: #2E7A4E; /* Border color */
    color: #F2FFF6;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 1.5em;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' or similar */
}
/* Using a simpler +/- for toggle */
.page-khuyen-mai__faq-toggle::before {
    content: '+';
}
.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle::before {
    content: '-';
}


.page-khuyen-mai__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.6;
}

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

/* Conclusion Section */
.page-khuyen-mai__conclusion-section {
    padding: 50px 0;
    background-color: #0A4B2C; /* Deep Green */
}

.page-khuyen-mai__cta-buttons--bottom {
    margin-top: 40px;
}

/* Global Image and Button Responsive Styles */
.page-khuyen-mai img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-khuyen-mai__cta-button,
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-outline,
.page-khuyen-mai__btn-link,
.page-khuyen-mai a[class*="button"],
.page-khuyen-mai a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap on desktop for safety */
    word-wrap: break-word; /* Allow break for mobile */
}

.page-khuyen-mai__cta-buttons,
.page-khuyen-mai__button-group,
.page-khuyen-mai__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

    .page-khuyen-mai__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-khuyen-mai__description {
        font-size: 1em;
    }

    .page-khuyen-mai__hero-content-wrapper {
        padding: 20px 15px;
        margin-top: -50px; /* Adjust overlap for mobile */
    }

    .page-khuyen-mai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary,
    .page-khuyen-mai__btn-outline,
    .page-khuyen-mai__btn-link,
    .page-khuyen-mai a[class*="button"],
    .page-khuyen-mai a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
    }

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

    /* Promotions Grid */
    .page-khuyen-mai__card-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 25px;
    }

    .page-khuyen-mai__card-image {
        height: 200px; /* Adjust card image height */
    }

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

    /* Guide Section */
    .page-khuyen-mai__steps-list {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 25px;
    }

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

    /* FAQ Section */
    .page-khuyen-mai__faq-section .page-khuyen-mai__container {
        flex-direction: column;
        gap: 25px;
    }

    .page-khuyen-mai__faq-image-wrapper,
    .page-khuyen-mai__faq-list {
        max-width: 100%;
        min-width: unset;
    }

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

    .page-khuyen-mai__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* General image container handling for mobile */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-khuyen-mai__section,
    .page-khuyen-mai__card,
    .page-khuyen-mai__container,
    .page-khuyen-mai__promotion-card,
    .page-khuyen-mai__step-item,
    .page-khuyen-mai__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Adjust padding for sections to avoid double padding */
    .page-khuyen-mai__introduction-section,
    .page-khuyen-mai__promotions-grid,
    .page-khuyen-mai__guide-section,
    .page-khuyen-mai__terms-section,
    .page-khuyen-mai__tips-section,
    .page-khuyen-mai__faq-section,
    .page-khuyen-mai__conclusion-section {
        padding-left: 0;
        padding-right: 0;
    }
}