/* style/khuyen-mai.css */

/* Base styles for the page */
.page-khuyen-mai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default white */
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per rule */
    padding-bottom: 40px;
    background: linear-gradient(135deg, #26A9E0, #4AD0FF); /* Brand color gradient */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-khuyen-mai__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-khuyen-mai__hero-content {
    max-width: 900px;
    padding: 0 20px;
    color: #FFFFFF; /* White text on brand color background */
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-khuyen-mai__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-khuyen-mai__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 600px; /* Limit max width for buttons group */
    margin: 0 auto;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't exceed container width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-khuyen-mai__btn-primary {
    background-color: #EA7C07; /* Login/CTA color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-khuyen-mai__btn-primary:hover {
    background-color: #D16B00;
    border-color: #D16B00;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand color */
    border: 2px solid #FFFFFF;
}

.page-khuyen-mai__btn-secondary:hover {
    background-color: #F0F8FF;
    border-color: #F0F8FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* General Section Styling */
.page-khuyen-mai__section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Default background for sections */
    border-bottom: 1px solid #f0f0f0;
}

.page-khuyen-mai__section:last-of-type {
    border-bottom: none;
}

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

.page-khuyen-mai__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #26A9E0; /* Brand color for section titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-khuyen-mai__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #EA7C07; /* Accent color */
    border-radius: 2px;
}

.page-khuyen-mai__paragraph {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 20px;
    text-align: justify;
}

.page-khuyen-mai__paragraph a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

.page-khuyen-mai__highlight {
    color: #EA7C07; /* Accent color for highlights */
    font-weight: bold;
}

/* Promo Card List */
.page-khuyen-mai__promo-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-khuyen-mai__promo-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.page-khuyen-mai__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai__promo-figure {
    width: 100%;
    height: 200px; /* Fixed height for consistent card images */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-khuyen-mai__card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #26A9E0;
    margin: 0 20px 15px;
    text-align: center;
}

.page-khuyen-mai__card-text {
    font-size: 1em;
    color: #555555;
    margin: 0 20px 20px;
    flex-grow: 1; /* Allow text to grow and push button to bottom */
}

.page-khuyen-mai__btn-text {
    display: block;
    width: fit-content;
    margin: 0 auto; /* Center the button */
    padding: 10px 25px;
    background-color: #EA7C07;
    color: #FFFFFF;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-khuyen-mai__btn-text:hover {
    background-color: #D16B00;
}

/* List Styling */
.page-khuyen-mai__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-khuyen-mai__list-item {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-khuyen-mai__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    top: 0;
    color: #26A9E0;
    font-size: 1.2em;
}

/* Guide Section Steps */
.page-khuyen-mai__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-khuyen-mai__step-card {
    background-color: #F8F8F8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-khuyen-mai__step-card:hover {
    transform: translateY(-5px);
}

.page-khuyen-mai__step-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border: 3px solid #26A9E0;
    border-radius: 50%;
    background-color: #E0F7FA;
}

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

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

.page-khuyen-mai__guide-figure {
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* FAQ Section */
.page-khuyen-mai__faq-list {
    margin-top: 30px;
}

.page-khuyen-mai__faq-question-h3 {
    font-size: 1.3em;
    color: #26A9E0;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
    cursor: pointer; /* Indicate it's clickable even if no JS accordion */
}

.page-khuyen-mai__faq-question-h3:hover {
    color: #EA7C07;
}

.page-khuyen-mai__faq-answer-p {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #f0f0f0;
}

/* Final CTA Section */
.page-khuyen-mai__final-cta {
    background-color: #26A9E0; /* Brand color background */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 0;
}

.page-khuyen-mai__final-cta-content .page-khuyen-mai__section-title {
    color: #FFFFFF; /* White title on brand background */
}

.page-khuyen-mai__final-cta-content .page-khuyen-mai__section-title::after {
    background-color: #FFFFFF; /* White line for contrast */
}

.page-khuyen-mai__final-cta-content .page-khuyen-mai__paragraph {
    color: #FFFFFF;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-khuyen-mai__final-cta-content .page-khuyen-mai__paragraph a {
    color: #EA7C07; /* Accent color for links */
}

.page-khuyen-mai__final-cta-content .page-khuyen-mai__cta-buttons {
    margin-bottom: 50px;
}

.page-khuyen-mai__final-cta-content .page-khuyen-mai__btn-primary {
    background-color: #EA7C07;
    border-color: #EA7C07;
}

.page-khuyen-mai__final-cta-content .page-khuyen-mai__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border-color: #FFFFFF;
}

.page-khuyen-mai__final-cta-figure {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Top section title + dual CTA */
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-khuyen-mai__main-title {
        font-size: 2em !important; /* Adjust H1 for mobile */
        margin-bottom: 10px;
    }

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

    .page-khuyen-mai__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Single column long-form container */
    .page-khuyen-mai__section {
        padding: 40px 0;
    }

    .page-khuyen-mai__container {
        padding: 0 15px !important; /* Add horizontal padding for content */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-khuyen-mai__paragraph {
        font-size: 0.95em;
        margin-bottom: 15px;
    }

    /* General images and figures */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        object-fit: cover;
    }

    .page-khuyen-mai__hero-image-wrapper,
    .page-khuyen-mai__promo-figure,
    .page-khuyen-mai__guide-figure,
    .page-khuyen-mai__final-cta-figure {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 5px; /* Slightly smaller border-radius for mobile */
        margin-left: 0;
        margin-right: 0;
    }

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

    /* Promo cards */
    .page-khuyen-mai__promo-card-list {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }

    .page-khuyen-mai__card-title {
        font-size: 1.3em;
        margin: 0 15px 10px;
    }

    .page-khuyen-mai__card-text {
        font-size: 0.9em;
        margin: 0 15px 15px;
    }

    .page-khuyen-mai__btn-text {
        padding: 8px 20px;
        font-size: 0.9em;
    }

    /* Guide steps */
    .page-khuyen-mai__steps-grid {
        grid-template-columns: 1fr; /* Stack steps vertically */
        gap: 20px;
        margin-bottom: 30px;
    }

    .page-khuyen-mai__step-card {
        padding: 20px;
    }

    .page-khuyen-mai__step-number {
        font-size: 2em;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

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

    .page-khuyen-mai__list-item {
        font-size: 0.95em;
        padding-left: 25px;
        margin-bottom: 10px;
    }

    .page-khuyen-mai__list-item::before {
        font-size: 1em;
    }

    /* FAQ Section */
    .page-khuyen-mai__faq-question-h3 {
        font-size: 1.1em;
        margin-top: 20px;
        margin-bottom: 8px;
    }

    .page-khuyen-mai__faq-answer-p {
        font-size: 0.9em;
        margin-bottom: 10px;
    }

    /* Final CTA */
    .page-khuyen-mai__final-cta {
        padding: 50px 0;
    }

    .page-khuyen-mai__final-cta-content .page-khuyen-mai__section-title {
        font-size: 1.8em;
    }

    .page-khuyen-mai__final-cta-content .page-khuyen-mai__paragraph {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 15px;
    }
}