.page-khuyen-mai {
    font-family: 'Arial', sans-serif;
    background-color: #B71C1C; /* Custom background color for the main content area */
    color: #FFF5E1; /* Custom text color for contrast on dark background */
    line-height: 1.6;
}

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

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

/* Hero Section */
.page-khuyen-mai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding if body handles header offset */
    background-color: #7A0E0E; /* Deep Red for hero section background */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Ensure image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 40px;
}

.page-khuyen-mai__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
}

.page-khuyen-mai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop, will be contain for mobile */
}

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

.page-khuyen-mai__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: #FFF5E1; /* Text Main color */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Subtle shadow for readability */
}

.page-khuyen-mai__lead-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #FFF5E1; /* Text Main color */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-tertiary,
.page-khuyen-mai__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons adapt to container width */
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom Button color */
    color: #333333; /* Dark text for light gradient button */
    border: 2px solid #F2B544; /* Custom Border color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai__btn-secondary {
    background-color: #7A0E0E; /* Deep Red */
    color: #FFF5E1; /* Text Main color */
    border: 2px solid #F2B544; /* Custom Border color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__btn-secondary:hover {
    background-color: #5C0B0B;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai__btn-tertiary {
    background-color: #D32F2F; /* Card BG color */
    color: #FFF5E1; /* Text Main color */
    border: 1px solid #F2B544; /* Custom Border color */
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-khuyen-mai__btn-tertiary:hover {
    background-color: #C91F17; /* Main color */
}

.page-khuyen-mai__btn-link {
    color: #FFD86A; /* Gold-like color for links */
    text-decoration: underline;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.page-khuyen-mai__btn-link:hover {
    color: #E6B800; /* Darker gold on hover */
}

.page-khuyen-mai__inline-link {
    color: #FFD86A; /* Gold-like color for inline links */
    text-decoration: underline;
    font-weight: bold;
}

.page-khuyen-mai__inline-link:hover {
    color: #E6B800; /* Darker gold on hover */
}

/* General Section Styling */
.page-khuyen-mai__section {
    padding: 40px 0;
    margin-bottom: 20px;
    background-color: #B71C1C; /* Custom Background color */
    color: #FFF5E1; /* Text Main color */
}

.page-khuyen-mai__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #FFF5E1; /* Text Main color */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #FFF5E1; /* Text Main color */
}

.page-khuyen-mai__text-block--center {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Promotion Cards */
.page-khuyen-mai__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-khuyen-mai__promo-card {
    background-color: #D32F2F; /* Custom Card BG color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    color: #FFF5E1; /* Text Main color */
    border: 1px solid #F2B544; /* Custom Border color */
    transition: transform 0.3s ease;
}

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

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

.page-khuyen-mai__card-title {
    font-size: 1.35rem;
    font-weight: 600;
    padding: 15px 20px 10px;
    color: #FFD86A; /* Gold for card titles */
}

.page-khuyen-mai__card-description {
    font-size: 0.95rem;
    padding: 0 20px 15px;
    flex-grow: 1;
    color: #FFF5E1; /* Text Main color */
}

.page-khuyen-mai__promo-card .page-khuyen-mai__btn-tertiary {
    margin: 0 20px 20px;
    align-self: flex-start;
}

/* Step-by-step Guide */
.page-khuyen-mai__step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-khuyen-mai__step-item {
    background-color: #D32F2F; /* Custom Card BG color */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #FFF5E1; /* Text Main color */
    border: 1px solid #F2B544; /* Custom Border color */
}

.page-khuyen-mai__step-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #7A0E0E; /* Deep Red background for images */
}

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

.page-khuyen-mai__step-description {
    font-size: 0.95rem;
    color: #FFF5E1; /* Text Main color */
    margin-bottom: 15px;
}

/* Terms & Conditions List */
.page-khuyen-mai__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    color: #FFF5E1; /* Text Main color */
}

.page-khuyen-mai__terms-item {
    background-color: #7A0E0E; /* Deep Red */
    border-left: 5px solid #F2B544; /* Custom Border color */
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-khuyen-mai__faq-list {
    margin-top: 30px;
}

.page-khuyen-mai__faq-item {
    background-color: #D32F2F; /* Custom Card BG color */
    border: 1px solid #F2B544; /* Custom Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #FFD86A; /* Gold for FAQ questions */
    cursor: pointer;
    background-color: #7A0E0E; /* Deep Red */
    border-bottom: 1px solid transparent;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
    border-bottom-color: #F2B544; /* Border color when open */
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #FFF5E1; /* Text Main color */
    margin-left: 10px;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
    content: "−";
}

.page-khuyen-mai__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
    color: #FFF5E1; /* Text Main color */
}

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

/* Final CTA Section */
.page-khuyen-mai__cta-final {
    padding-bottom: 60px;
}

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

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

    .page-khuyen-mai__main-title {
        font-size: 3rem;
    }

    .page-khuyen-mai__lead-text {
        font-size: 1.1rem;
    }

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

    .page-khuyen-mai__card-grid,
    .page-khuyen-mai__step-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-khuyen-mai__promo-card {
        padding-bottom: 15px;
    }
}

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

    .page-khuyen-mai__hero-image {
        object-fit: contain !important; /* Mobile: contain to avoid cropping */
        height: auto !important;
        aspect-ratio: unset !important; /* Remove aspect ratio if set */
        max-height: none !important; /* No max height for contain */
    }

    .page-khuyen-mai__main-title {
        font-size: 2.5rem !important; /* Smaller H1 for mobile */
        margin-bottom: 10px;
    }

    .page-khuyen-mai__lead-text {
        font-size: 1rem !important;
        margin-bottom: 20px;
    }

    .page-khuyen-mai__cta-buttons {
        flex-direction: column !important; /* Buttons stack vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsive */
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary,
    .page-khuyen-mai__btn-tertiary,
    .page-khuyen-mai__btn-link,
    .page-khuyen-mai a[class*="button"],
    .page-khuyen-mai a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: center;
    }
    
    /* General Section Styling */
    .page-khuyen-mai__section {
        padding: 30px 0;
    }

    .page-khuyen-mai__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .page-khuyen-mai__text-block {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .page-khuyen-mai__container,
    .page-khuyen-mai__card-grid,
    .page-khuyen-mai__step-list,
    .page-khuyen-mai__terms-list,
    .page-khuyen-mai__faq-list {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-khuyen-mai__promo-card,
    .page-khuyen-mai__step-item,
    .page-khuyen-mai__terms-item,
    .page-khuyen-mai__faq-item {
        margin-bottom: 15px;
    }

    .page-khuyen-mai__card-image {
        height: 180px; /* Adjust card image height for mobile */
    }

    .page-khuyen-mai__card-title {
        font-size: 1.2rem;
        padding: 10px 15px;
    }

    .page-khuyen-mai__card-description {
        font-size: 0.9rem;
        padding: 0 15px 10px;
    }

    .page-khuyen-mai__promo-card .page-khuyen-mai__btn-tertiary {
        margin: 0 15px 15px;
        width: calc(100% - 30px); /* Adjust width for padding */
    }

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

    .page-khuyen-mai__step-image {
        height: 150px;
        object-fit: contain !important;
    }

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