/* style/khuyen-mai.css */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg-color: #17191F;
    --background-color: #0D0E12;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
}

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

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

.page-khuyen-mai__section-title {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
}

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    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: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
    color: #ffffff;
    border: 2px solid var(--secondary-color);
}

.page-khuyen-mai__btn-primary:hover {
    background: linear-gradient(180deg, var(--deep-orange-color) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

.page-khuyen-mai__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-khuyen-mai__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

/* HERO Section */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Minimal top padding, rely on body for header offset */
    padding-bottom: 60px;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.page-khuyen-mai__hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-khuyen-mai__hero-content {
    flex: 1;
    min-width: 300px;
    color: var(--text-main-color);
}

.page-khuyen-mai__main-title {
    font-size: 3.5em;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 140, 26, 0.6);
}

.page-khuyen-mai__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-main-color);
}

.page-khuyen-mai__cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-khuyen-mai__main-promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-khuyen-mai__intro-section {
    background-color: var(--card-bg-color);
    padding: 80px 0;
}

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

.page-khuyen-mai__feature-item {
    background-color: #2a2d34; /* Slightly lighter than card-bg for contrast */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--text-main-color);
}

.page-khuyen-mai__feature-item:hover {
    transform: translateY(-10px);
}

.page-khuyen-mai__icon-box-media {
    width: 200px;
    height: 200px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 140, 26, 0.5);
}

.page-khuyen-mai__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Ensure image inside is also round */
    display: block;
}

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

.page-khuyen-mai__feature-description {
    font-size: 1em;
    color: var(--text-main-color);
}

/* Promotions List Section */
.page-khuyen-mai__promotions-list {
    background-color: var(--background-color);
    padding: 80px 0;
}

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

.page-khuyen-mai__promo-card {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main-color);
    display: flex;
    flex-direction: column;
}

.page-khuyen-mai__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    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.7em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-khuyen-mai__promo-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--text-main-color);
}

/* Guide Section */
.page-khuyen-mai__guide-section {
    background-color: var(--card-bg-color);
    padding: 80px 0;
}

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

.page-khuyen-mai__guide-step {
    background-color: #2a2d34;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-main-color);
    position: relative;
    padding-top: 70px;
}

.page-khuyen-mai__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    border: 3px solid var(--secondary-color);
}

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

.page-khuyen-mai__step-description {
    font-size: 1em;
    color: var(--text-main-color);
}

/* Terms Section */
.page-khuyen-mai__terms-section {
    background-color: var(--background-color);
    padding: 80px 0;
}

.page-khuyen-mai__content-block {
    background-color: var(--card-bg-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--text-main-color);
}

.page-khuyen-mai__content-block p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-main-color);
}

.page-khuyen-mai__terms-list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

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

.page-khuyen-mai__terms-list strong {
    color: var(--primary-color);
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
    background-color: var(--card-bg-color);
    padding: 80px 0;
}

.page-khuyen-mai__faq-list {
    display: grid;
    gap: 20px;
}

.page-khuyen-mai__faq-item {
    background-color: #2a2d34;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main-color);
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
}

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

.page-khuyen-mai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--secondary-color);
}

.page-khuyen-mai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-main-color);
}

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

/* CTA Bottom Section */
.page-khuyen-mai__cta-bottom-section {
    background-color: var(--background-color);
    padding: 80px 0;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-khuyen-mai__main-title {
        font-size: 3em;
    }

    .page-khuyen-mai__section-title {
        font-size: 2.5em;
    }

    .page-khuyen-mai__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-khuyen-mai__hero-content {
        order: 2;
    }

    .page-khuyen-mai__hero-image {
        order: 1;
        margin-bottom: 40px;
    }

    .page-khuyen-mai__cta-group {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Fixed top padding for mobile */
        padding-bottom: 40px;
    }

    .page-khuyen-mai__hero-container {
        padding-top: 30px;
        padding-bottom: 30px;
        gap: 30px;
    }

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

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

    .page-khuyen-mai__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .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;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    /* Module 1: Intro Section (Feature Grid) */
    .page-khuyen-mai__intro-section {
        padding: 60px 0;
    }

    .page-khuyen-mai__feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-khuyen-mai__icon-box-media {
        width: 180px; /* Maintain square aspect ratio */
        height: 180px;
        border-width: 3px;
    }

    .page-khuyen-mai__feature-title {
        font-size: 1.5em;
    }

    /* Promotions List Section (Promo Grid) */
    .page-khuyen-mai__promotions-list {
        padding: 60px 0;
    }

    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

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

    .page-khuyen-mai__promo-content {
        padding: 20px;
    }

    /* Guide Section (Steps) */
    .page-khuyen-mai__guide-section {
        padding: 60px 0;
    }

    .page-khuyen-mai__guide-steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-khuyen-mai__guide-step {
        padding: 60px 20px 30px;
    }

    .page-khuyen-mai__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
        top: 15px;
    }

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

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

    .page-khuyen-mai__content-block {
        padding: 30px;
    }

    .page-khuyen-mai__content-block p,
    .page-khuyen-mai__terms-list li {
        font-size: 0.95em;
    }

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

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

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

    /* CTA Bottom Section */
    .page-khuyen-mai__cta-bottom-section {
        padding: 60px 0;
    }

    /* General image responsiveness for content images */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* All containers that hold images or content */
    .page-khuyen-mai__container,
    .page-khuyen-mai__hero-container,
    .page-khuyen-mai__feature-grid,
    .page-khuyen-mai__promo-grid,
    .page-khuyen-mai__guide-steps,
    .page-khuyen-mai__content-block,
    .page-khuyen-mai__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
}