.page-khuyen-mai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main */
    background: #B71C1C; /* Background */
}

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

.page-khuyen-mai__text-center {
    text-align: center;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding as per rule */
    padding-bottom: 60px;
    background: #B71C1C; /* Background color */
    color: #FFF5E1; /* Text Main */
}

.page-khuyen-mai__hero-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-khuyen-mai__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-khuyen-mai__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFD86A; /* Gold color for title */
}

.page-khuyen-mai__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 600px;
    color: #FFF5E1; /* Text Main */
}

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

.page-khuyen-mai__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.page-khuyen-mai__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping */
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
    transform: translateY(-2px);
}

.page-khuyen-mai__btn-secondary {
    background: #C91F17; /* Primary color */
    color: #FFF5E1; /* Text Main */
    border: 2px solid #FFD86A; /* Gold border */
    box-shadow: 0 4px 15px rgba(201, 31, 23, 0.4);
}

.page-khuyen-mai__btn-secondary:hover {
    background: #E53935; /* Auxiliary color */
    border-color: #F4D34D; /* Gold */
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
    transform: translateY(-2px);
}

.page-khuyen-mai__btn-ghost {
    background: transparent;
    color: #FFD86A; /* Gold */
    border: 1px solid #FFD86A;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.page-khuyen-mai__btn-ghost:hover {
    background: #FFD86A;
    color: #7A0E0E; /* Deep Red */
}

/* General Section Styling */
.page-khuyen-mai__intro-section,
.page-khuyen-mai__promo-categories,
.page-khuyen-mai__guide-section,
.page-khuyen-mai__faq-section,
.page-khuyen-mai__cta-final-section {
    padding: 60px 0;
    background: #B71C1C; /* Background */
    color: #FFF5E1; /* Text Main */
}

.page-khuyen-mai__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD86A; /* Gold color */
}

.page-khuyen-mai__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #FFF5E1; /* Text Main */
}

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

.page-khuyen-mai__promo-card {
    background: #D32F2F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: #FFF5E1; /* Text Main */
}

.page-khuyen-mai__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

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

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

.page-khuyen-mai__promo-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD86A; /* Gold */
}

.page-khuyen-mai__promo-text {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Guide Section */
.page-khuyen-mai__guide-content {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.page-khuyen-mai__guide-steps {
    flex: 2;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.page-khuyen-mai__step-item {
    background: #D32F2F; /* Card BG */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: #FFF5E1; /* Text Main */
}

.page-khuyen-mai__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
    color: #7A0E0E; /* Deep Red */
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(255, 216, 106, 0.5);
}

.page-khuyen-mai__step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFD86A; /* Gold */
}

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

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

.page-khuyen-mai__guide-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-khuyen-mai__faq-item {
    background: #D32F2F; /* Card BG */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    color: #FFF5E1; /* Text Main */
    overflow: hidden; /* Ensure content is hidden when closed */
}

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

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

.page-khuyen-mai__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 15px;
    color: #FFD86A; /* Gold */
}

.page-khuyen-mai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.5;
    color: #FFF5E1; /* Text Main */
}

/* Final CTA Section */
.page-khuyen-mai__cta-final-section .page-khuyen-mai__cta-buttons {
    justify-content: center;
    margin-top: 30px;
}

/* Global image responsiveness */
.page-khuyen-mai img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-khuyen-mai__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-khuyen-mai__hero-content {
        text-align: center;
    }
    .page-khuyen-mai__hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .page-khuyen-mai__cta-buttons {
        justify-content: center;
    }
    .page-khuyen-mai__guide-content {
        flex-direction: column-reverse; /* Image above steps on tablet */
    }
}

@media (max-width: 768px) {
    .page-khuyen-mai {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Fixed top padding */
        padding-bottom: 40px;
    }
    .page-khuyen-mai__main-title {
        font-size: 2.2rem;
    }
    .page-khuyen-mai__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-khuyen-mai__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to button container */
        width: 100%; /* Ensure container takes full width */
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary,
    .page-khuyen-mai__btn-ghost {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 1rem;
    }

    .page-khuyen-mai__intro-section,
    .page-khuyen-mai__promo-categories,
    .page-khuyen-mai__guide-section,
    .page-khuyen-mai__faq-section,
    .page-khuyen-mai__cta-final-section {
        padding: 40px 0;
    }
    .page-khuyen-mai__section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .page-khuyen-mai__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    /* Promo Categories */
    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-khuyen-mai__promo-card {
        padding: 0; /* Remove padding from card itself, content will have it */
    }
    .page-khuyen-mai__promo-image {
        height: 180px; /* Adjust image height */
    }
    .page-khuyen-mai__promo-content {
        padding: 20px;
    }
    .page-khuyen-mai__promo-title {
        font-size: 1.25rem;
    }
    .page-khuyen-mai__promo-text {
        font-size: 0.95rem;
    }

    /* Guide Section */
    .page-khuyen-mai__guide-content {
        gap: 20px;
    }
    .page-khuyen-mai__guide-steps {
        grid-template-columns: 1fr; /* Single column */
        gap: 15px;
    }
    .page-khuyen-mai__step-item {
        padding: 20px;
    }
    .page-khuyen-mai__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    .page-khuyen-mai__step-title {
        font-size: 1.1rem;
    }

    /* FAQ Section */
    .page-khuyen-mai__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-khuyen-mai__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* Universal image responsiveness for content area */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-khuyen-mai__container,
    .page-khuyen-mai__hero-container,
    .page-khuyen-mai__promo-grid,
    .page-khuyen-mai__guide-content,
    .page-khuyen-mai__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}