/* style/khuyen-mai.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --border-color: #E0E0E0;
    --button-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.page-khuyen-mai {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color);
}

.page-khuyen-mai__section {
    padding: 40px 0;
    margin-bottom: 20px;
}

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

.page-khuyen-mai__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-khuyen-mai__section-title--light {
    color: #ffffff;
}

.page-khuyen-mai__section-description {
    font-size: 18px;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Hero Section */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Adjusted for shared header offset */
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    color: #ffffff;
    text-align: center;
}

.page-khuyen-mai__hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.page-khuyen-mai__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-khuyen-mai__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
}

.page-khuyen-mai__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
}

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

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
}

.page-khuyen-mai__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-khuyen-mai__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Why Choose Us Section */
.page-khuyen-mai__why-choose-us {
    background-color: var(--background-color);
}

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

.page-khuyen-mai__feature-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai__feature-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai__feature-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-khuyen-mai__feature-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main-color);
}

/* Promotion Types Section */
.page-khuyen-mai__promotion-types {
    background-color: var(--primary-color);
    color: #ffffff;
}

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

.page-khuyen-mai__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-khuyen-mai__promo-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-khuyen-mai__promo-image {
    width: 100%;
    height: 250px;
    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: 22px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-khuyen-mai__promo-text {
    font-size: 16px;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-khuyen-mai__btn-link {
    background-color: #ffffff;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    align-self: flex-start;
    border: none;
}

.page-khuyen-mai__btn-link:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
}

/* Guide Section */
.page-khuyen-mai__guide-section {
    background-color: var(--background-color);
}

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

.page-khuyen-mai__step-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-khuyen-mai__step-icon {
    width: 100%;
    height: auto;
    max-width: 180px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
}

.page-khuyen-mai__step-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-khuyen-mai__step-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main-color);
}

.page-khuyen-mai__step-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* Terms and Conditions Section */
.page-khuyen-mai__terms-conditions {
    background-color: var(--background-color);
}

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

.page-khuyen-mai__term-item {
    background-color: var(--card-bg-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.page-khuyen-mai__term-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-khuyen-mai__term-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main-color);
}

.page-khuyen-mai__terms-cta {
    text-align: center;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
    background-color: var(--background-color);
}

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

.page-khuyen-mai__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.page-khuyen-mai__faq-item[open] > .page-khuyen-mai__faq-question {
    background-color: #f0f0f0;
}

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

.page-khuyen-mai__faq-item details > summary {
    list-style: none;
}

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

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

.page-khuyen-mai__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
}

.page-khuyen-mai__faq-answer {
    padding: 15px 25px 20px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main-color);
    background-color: var(--card-bg-color);
}

.page-khuyen-mai__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* Conclusion Section */
.page-khuyen-mai__conclusion-section {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
}

.page-khuyen-mai__conclusion-section .page-khuyen-mai__section-description {
    margin-bottom: 30px;
}

.page-khuyen-mai__text-link--light {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

.page-khuyen-mai__text-link--light:hover {
    color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-khuyen-mai__container {
        padding: 0 15px;
    }
    .page-khuyen-mai__section-title {
        font-size: 30px;
    }
    .page-khuyen-mai__hero-description {
        font-size: 18px;
    }
    .page-khuyen-mai__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-khuyen-mai {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-khuyen-mai__hero-section {
        min-height: 350px;
        padding-top: 10px !important;
    }
    .page-khuyen-mai__hero-image {
        object-fit: contain !important; /* Ensure image is not cropped on mobile */
        opacity: 0.2;
    }
    .page-khuyen-mai__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        padding: 0 10px;
    }
    .page-khuyen-mai__hero-description {
        font-size: 16px;
        padding: 0 15px;
    }
    .page-khuyen-mai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    /* General Images & Containers */
    .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__feature-grid,
    .page-khuyen-mai__promo-grid,
    .page-khuyen-mai__guide-steps,
    .page-khuyen-mai__terms-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    /* Why Choose Us Section */
    .page-khuyen-mai__feature-card {
        padding: 25px;
    }
    .page-khuyen-mai__feature-icon {
        max-width: 150px;
    }

    /* Promotion Types Section */
    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-khuyen-mai__promo-image {
        height: 200px;
    }

    /* Guide Section */
    .page-khuyen-mai__step-icon {
        max-width: 120px;
    }
    .page-khuyen-mai__step-title {
        font-size: 20px;
    }

    /* Terms and Conditions Section */
    .page-khuyen-mai__terms-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ Section */
    .page-khuyen-mai__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-khuyen-mai__faq-toggle {
        font-size: 20px;
    }
    .page-khuyen-mai__faq-answer {
        padding: 15px 20px;
    }

    /* Conclusion Section */
    .page-khuyen-mai__section-title {
        font-size: 28px;
    }
    .page-khuyen-mai__section-description {
        font-size: 16px;
    }
}