/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
    font-family: Arial, sans-serif;
    color: #FFF1E8; /* Main text color for dark background */
    background-color: #140C0C; /* Overall page background */
}

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

.page-khuyen-mai__section-title {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #F3C54D; /* Gold color for titles */
    line-height: 1.2;
}

.page-khuyen-mai__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: #FFF1E8;
}

/* HERO Section */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #7E0D0D 0%, #140C0C 100%); /* Deep Red to Background color gradient */
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-khuyen-mai__hero-text-block {
    flex: 1 1 45%;
    min-width: 300px;
    color: #FFF1E8;
    text-align: left;
}

.page-khuyen-mai__main-title {
    font-size: 3.5em; /* Clamp might be better, but for now use this as per general H1 guidance */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #F3C54D; /* Gold color for main title */
}

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

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #ffffff;
    border: none;
}

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

.page-khuyen-mai__btn-secondary {
    background: transparent;
    color: #F3C54D; /* Gold text */
    border: 2px solid #F3C54D; /* Gold border */
}

.page-khuyen-mai__btn-secondary:hover {
    background: #F3C54D;
    color: #140C0C; /* Dark background color */
}

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

.page-khuyen-mai__hero-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image */
}

/* Intro Section */
.page-khuyen-mai__intro-section {
    padding: 60px 0;
    background-color: #140C0C; /* Deep Red */
}

.page-khuyen-mai__dark-bg {
    background-color: #140C0C;
    color: #FFF1E8;
}

.page-khuyen-mai__feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-khuyen-mai__feature-item {
    flex: 1 1 calc(33.333% - 40px);
    min-width: 280px;
    background-color: #2A1212; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.page-khuyen-mai__icon-box-media {
    width: 200px; /* Adjusted from 240px to 200px for better fit in 3-column */
    height: 200px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #F3C54D; /* Gold border */
    box-shadow: 0 0 15px rgba(243, 197, 77, 0.5);
}

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

.page-khuyen-mai__feature-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #F3C54D; /* Gold color */
}

.page-khuyen-mai__feature-text {
    font-size: 1em;
    line-height: 1.6;
    color: #FFF1E8;
}

/* Promotion List Section */
.page-khuyen-mai__promo-list-section {
    padding: 60px 0;
    background-color: #140C0C;
}

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

.page-khuyen-mai__promo-card {
    background-color: #2A1212; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

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

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

.page-khuyen-mai__promo-card-title {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F3C54D; /* Gold color */
    line-height: 1.3;
}

.page-khuyen-mai__promo-card-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #FFF1E8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-khuyen-mai__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: auto; /* Push button to bottom */
}

/* How to Claim Section */
.page-khuyen-mai__how-to-claim-section {
    padding: 60px 0;
    background-color: #140C0C;
}

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

.page-khuyen-mai__step-item {
    background-color: #2A1212; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #F3C54D; /* Gold */
    color: #140C0C; /* Dark text */
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(243, 197, 77, 0.7);
}

.page-khuyen-mai__step-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #F3C54D; /* Gold */
}

.page-khuyen-mai__step-text {
    font-size: 1em;
    line-height: 1.6;
    color: #FFF1E8;
}

.page-khuyen-mai__step-text a {
    color: #FFB04A; /* Highlight links */
    text-decoration: none;
    font-weight: bold;
}

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

/* FAQ Section */
.page-khuyen-mai__faq-section {
    padding: 60px 0;
    background-color: #140C0C;
}

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

.page-khuyen-mai__faq-item {
    background-color: #2A1212; /* Card BG */
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: #FFF1E8;
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #F3C54D; /* Gold */
    cursor: pointer;
    background-color: #2A1212;
    list-style: none; /* For <summary> */
    user-select: none; /* Prevent text selection on click */
}

/* Hide default details marker */
.page-khuyen-mai__faq-item > summary::-webkit-details-marker,
.page-khuyen-mai__faq-item > summary::marker {
    display: none;
    content: "";
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' */
}

.page-khuyen-mai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #FFF1E8;
    transition: max-height 0.3s ease-out;
}

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

.page-khuyen-mai__more-faq-text {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: #FFF1E8;
}

.page-khuyen-mai__more-faq-text a {
    color: #FFB04A; /* Highlight links */
    text-decoration: none;
    font-weight: bold;
}

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


/* CTA Bottom Section */
.page-khuyen-mai__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(180deg, #140C0C 0%, #7E0D0D 100%); /* Background color to Deep Red gradient */
}

.page-khuyen-mai__cta-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-khuyen-mai__section-title {
        font-size: 2.5em;
    }
    .page-khuyen-mai__main-title {
        font-size: 3em;
    }
    .page-khuyen-mai__hero-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-khuyen-mai__hero-text-block {
        text-align: center;
    }
    .page-khuyen-mai__cta-buttons {
        justify-content: center;
    }
    .page-khuyen-mai__feature-item {
        flex: 1 1 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }
    .page-khuyen-mai__hero-content-wrapper {
        padding: 30px 15px;
        gap: 20px;
    }
    .page-khuyen-mai__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-khuyen-mai__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-khuyen-mai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary {
        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__hero-image {
        order: 1;
    }
    .page-khuyen-mai__hero-text-block {
        order: 2;
    }

    /* General Content Sections */
    .page-khuyen-mai__content-container {
        padding: 30px 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: 0.95em;
        margin-bottom: 30px;
    }

    /* Intro Section (Module 1) */
    .page-khuyen-mai__intro-section {
        padding: 40px 0;
    }
    .page-khuyen-mai__feature-grid {
        flex-direction: column;
        gap: 20px;
    }
    .page-khuyen-mai__feature-item {
        flex: 1 1 100%;
        min-width: unset;
        padding: 25px;
    }
    .page-khuyen-mai__icon-box-media {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }
    .page-khuyen-mai__feature-title {
        font-size: 1.5em;
    }
    .page-khuyen-mai__feature-text {
        font-size: 0.9em;
    }

    /* Promotion List Section */
    .page-khuyen-mai__promo-list-section {
        padding: 40px 0;
    }
    .page-khuyen-mai__promo-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-khuyen-mai__promo-card {
        flex-direction: column;
    }
    .page-khuyen-mai__promo-card-image {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
    }
    .page-khuyen-mai__promo-card-content {
        padding: 20px;
    }
    .page-khuyen-mai__promo-card-title {
        font-size: 1.3em;
    }
    .page-khuyen-mai__promo-card-description {
        font-size: 0.85em;
    }
    .page-khuyen-mai__btn-small {
        padding: 10px 15px;
        font-size: 0.85em;
    }

    /* How to Claim Section */
    .page-khuyen-mai__how-to-claim-section {
        padding: 40px 0;
    }
    .page-khuyen-mai__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-khuyen-mai__step-item {
        padding: 25px;
    }
    .page-khuyen-mai__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-khuyen-mai__step-title {
        font-size: 1.5em;
    }
    .page-khuyen-mai__step-text {
        font-size: 0.9em;
    }

    /* FAQ Section */
    .page-khuyen-mai__faq-section {
        padding: 40px 0;
    }
    .page-khuyen-mai__faq-list {
        margin-top: 30px;
    }
    .page-khuyen-mai__faq-item {
        margin-bottom: 15px;
    }
    .page-khuyen-mai__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-khuyen-mai__faq-toggle {
        font-size: 1.5em;
    }
    .page-khuyen-mai__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9em;
    }
    .page-khuyen-mai__more-faq-text {
        font-size: 1em;
        margin-top: 20px;
    }

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

    /* Universal image responsive styles for content areas */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    /* Module 1 circular images exception */
    .page-khuyen-mai__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }

    /* Ensure all containers are responsive */
    .page-khuyen-mai__hero-content-wrapper,
    .page-khuyen-mai__feature-grid,
    .page-khuyen-mai__promo-card-grid,
    .page-khuyen-mai__steps-grid,
    .page-khuyen-mai__faq-list,
    .page-khuyen-mai__cta-bottom-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Remove padding for elements that have it from content-container already */
    .page-khuyen-mai__content-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}