.page-khuyen-mai {
    font-family: 'Arial', sans-serif;
    background-color: #140C0C; /* Custom background color */
    color: #FFF1E8; /* Custom text main color for dark background */
}

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

/* Hero Promo Section */
.page-khuyen-mai__hero-promo-section {
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #7E0D0D 0%, #140C0C 100%); /* Deep Red to Background */
    text-align: center;
}

.page-khuyen-mai__hero-promo-section .page-khuyen-mai__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-khuyen-mai__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1, no fixed large size */
    font-weight: 700;
    line-height: 1.2;
    color: #F3C54D; /* Gold color for main title */
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFF1E8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.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 {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button gradient */
    color: #FFF1E8; /* Text Main for contrast */
    border: none;
}

.page-khuyen-mai__btn-primary:hover {
    background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
    transform: translateY(-2px);
}

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

.page-khuyen-mai__btn-secondary:hover {
    background-color: #F3C54D;
    color: #140C0C; /* Background color for hover text */
    transform: translateY(-2px);
}

.page-khuyen-mai__hero-image {
    margin-top: 40px;
}

.page-khuyen-mai__hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-khuyen-mai__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #F3C54D; /* Gold for section titles */
    text-align: center;
    margin-bottom: 20px;
}

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

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

.page-khuyen-mai__promo-card {
    background-color: #2A1212; /* Custom card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
    transition: transform 0.3s ease;
}

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

.page-khuyen-mai__promo-card-img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.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.5rem;
    font-weight: 600;
    color: #F3C54D; /* Gold for card titles */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-khuyen-mai__promo-card-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #FFF1E8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-khuyen-mai__btn-text {
    color: #FFB04A; /* Gold-orange for text links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-khuyen-mai__btn-text:hover {
    color: #F3C54D; /* Lighter gold on hover */
    text-decoration: underline;
}

/* Terms and Conditions Section */
.page-khuyen-mai__terms-conditions-section {
    padding: 60px 0;
    background-color: #7E0D0D; /* Deep Red background */
}

.page-khuyen-mai__terms-conditions-section .page-khuyen-mai__section-title {
    color: #FFF1E8; /* White text on deep red */
}

.page-khuyen-mai__terms-conditions-section .page-khuyen-mai__section-intro {
    color: #FFF1E8;
}

.page-khuyen-mai__terms-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai__terms-item {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFF1E8;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.page-khuyen-mai__terms-item:last-child {
    border-bottom: none;
}

.page-khuyen-mai__terms-conditions-section .page-khuyen-mai__btn-secondary {
    display: block;
    margin: 0 auto;
    max-width: 300px;
    color: #FFF1E8; /* White text on deep red */
    border-color: #FFF1E8; /* White border */
}

.page-khuyen-mai__terms-conditions-section .page-khuyen-mai__btn-secondary:hover {
    background-color: #FFF1E8;
    color: #7E0D0D; /* Deep Red text on white hover */
}

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

.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-card {
    background-color: #2A1212; /* Custom card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #FFF1E8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.page-khuyen-mai__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #F3C54D; /* Gold for step titles */
    margin-bottom: 10px;
}

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

.page-khuyen-mai__cta-row {
    margin-top: 50px;
    text-align: center;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
    padding: 60px 0;
    background-color: #2A1212; /* Custom card background */
}

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

.page-khuyen-mai__faq-item {
    background-color: #140C0C; /* Background color for FAQ item */
    border: 1px solid #6A1E1E; /* Custom border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF1E8;
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F3C54D; /* Gold for FAQ questions */
    cursor: pointer;
    list-style: none; /* Remove default marker */
}

.page-khuyen-mai__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}
.page-khuyen-mai__faq-item summary::marker {
    display: none; /* Hide default marker for other browsers */
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: #FFB04A; /* Gold-orange for toggle icon */
    transition: transform 0.3s ease;
}

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

.page-khuyen-mai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #FFF1E8;
}

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

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

.page-khuyen-mai__cta-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 700;
    color: #F3C54D; /* Gold for CTA title */
    margin-bottom: 15px;
}

.page-khuyen-mai__cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #FFF1E8;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    /* General Mobile Adaptations */
    .page-khuyen-mai__container {
        padding: 0 15px;
    }

    .page-khuyen-mai__main-title {
        font-size: 2.2rem;
        max-width: 100%;
    }

    .page-khuyen-mai__description {
        font-size: 1rem;
        max-width: 100%;
    }

    .page-khuyen-mai__section-title {
        font-size: 2rem;
    }

    .page-khuyen-mai__section-intro {
        font-size: 0.95rem;
        max-width: 100%;
    }

    /* HERO Promo Section */
    .page-khuyen-mai__hero-promo-section {
        padding-top: 10px !important; /* Small top padding, assuming body handles header offset */
        padding-bottom: 40px;
    }

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

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

    .page-khuyen-mai__hero-image {
        margin-top: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-khuyen-mai__hero-img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Minimum size requirement */
        min-height: 200px; /* Minimum size requirement */
    }

    /* Promo List Section */
    .page-khuyen-mai__promo-list-section {
        padding: 40px 0;
    }

    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .page-khuyen-mai__promo-card-img {
        height: 200px; /* Adjust height for mobile */
        min-width: 200px; /* Minimum size requirement */
        min-height: 200px; /* Minimum size requirement */
    }

    .page-khuyen-mai__promo-card-title {
        font-size: 1.3rem;
    }

    .page-khuyen-mai__promo-card-text {
        font-size: 0.95rem;
    }

    /* Terms and Conditions Section */
    .page-khuyen-mai__terms-conditions-section {
        padding: 40px 0;
    }

    .page-khuyen-mai__terms-item {
        font-size: 0.95rem;
    }

    .page-khuyen-mai__terms-conditions-section .page-khuyen-mai__btn-secondary {
        max-width: 100%;
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* How to Claim Section */
    .page-khuyen-mai__how-to-claim-section {
        padding: 40px 0;
    }

    .page-khuyen-mai__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

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

    .page-khuyen-mai__step-text {
        font-size: 0.95rem;
    }

    .page-khuyen-mai__cta-row .page-khuyen-mai__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

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

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

    .page-khuyen-mai__faq-toggle {
        font-size: 1.5rem;
    }

    .page-khuyen-mai__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* Final CTA Section */
    .page-khuyen-mai__cta-section {
        padding: 40px 0;
    }

    .page-khuyen-mai__cta-title {
        font-size: 2rem;
    }

    .page-khuyen-mai__cta-description {
        font-size: 1rem;
    }

    .page-khuyen-mai__cta-section .page-khuyen-mai__cta-buttons {
        padding: 0 15px; /* Ensure buttons in final CTA also have padding */
    }

    /* Universal image responsive rule */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-khuyen-mai__hero-promo-section,
    .page-khuyen-mai__promo-list-section,
    .page-khuyen-mai__terms-conditions-section,
    .page-khuyen-mai__how-to-claim-section,
    .page-khuyen-mai__faq-section,
    .page-khuyen-mai__cta-section,
    .page-khuyen-mai__promo-card,
    .page-khuyen-mai__step-card,
    .page-khuyen-mai__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}