.page-khuyen-mai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though body is default white */
}

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

/* Hero Section */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Adhering to fixed header spacing rule */
    padding-bottom: 60px;
    background-color: #F8F8F8; /* Light background for hero */
}

.page-khuyen-mai__hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.page-khuyen-mai__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-khuyen-mai__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 font size constraint */
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-khuyen-mai__hero-description {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
}

.page-khuyen-mai__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Button container width */
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__card-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    max-width: 100%; /* Button responsive constraint */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuyen-mai__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-khuyen-mai__btn-primary:hover {
    background-color: #d16e06;
    border-color: #d16e06;
}

.page-khuyen-mai__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-khuyen-mai__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

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

.page-khuyen-mai__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure no extra space below image */
}

/* General Section Styling */
.page-khuyen-mai__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-khuyen-mai__section-description {
    font-size: 1.1rem;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* Promo Grid Section */
.page-khuyen-mai__promo-grid-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

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

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

.page-khuyen-mai__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum image size constraint */
}

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

.page-khuyen-mai__card-title {
    font-size: 1.4rem;
    color: #26A9E0;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 600;
}

.page-khuyen-mai__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-khuyen-mai__card-title a:hover {
    color: #007bff; /* A slightly different blue for hover */
}

.page-khuyen-mai__card-text {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-khuyen-mai__card-button {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
    padding: 10px 20px;
    font-size: 0.95rem;
    align-self: flex-start;
}

.page-khuyen-mai__card-button:hover {
    background-color: #1f8ec4;
    border-color: #1f8ec4;
}

/* Benefits Section */
.page-khuyen-mai__benefits-section {
    padding: 60px 0;
    background-color: #F0F7FA; /* Light blue background */
}

.page-khuyen-mai__benefit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-khuyen-mai__benefit-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-khuyen-mai__benefit-item:hover {
    transform: translateY(-5px);
}

.page-khuyen-mai__benefit-heading {
    font-size: 1.3rem;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-khuyen-mai__benefit-text {
    font-size: 1rem;
    color: #666666;
}

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

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

.page-khuyen-mai__step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: step-counter;
}

.page-khuyen-mai__step-item {
    background-color: #F8F8F8;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-khuyen-mai__step-number {
    counter-increment: step-counter;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #26A9E0;
    color: #FFFFFF;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__step-heading {
    font-size: 1.25rem;
    color: #26A9E0;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-khuyen-mai__step-text {
    font-size: 1rem;
    color: #666666;
}

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

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

.page-khuyen-mai__faq-item {
    background-color: #FFFFFF;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 0; /* Reset default padding */
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    color: #333333;
    font-weight: 600;
    cursor: pointer;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker */
}

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

.page-khuyen-mai__faq-question:hover {
    background-color: #F8F8F8;
}

.page-khuyen-mai__faq-qtext {
    flex-grow: 1;
    color: #26A9E0;
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    color: #26A9E0;
    margin-left: 15px;
    line-height: 1;
}

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

/* Outro Section */
.page-khuyen-mai__outro-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

/* Universal Image Styling */
.page-khuyen-mai img {
    max-width: 100%;
    height: auto;
    display: block;
    /* No filter property allowed */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-khuyen-mai {
        font-size: 16px;
        line-height: 1.6;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    
    .page-khuyen-mai__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO Section */
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 40px !important;
    }
    
    .page-khuyen-mai__hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 0;
    }

    .page-khuyen-mai__hero-content {
        min-width: unset;
        width: 100%;
    }

    .page-khuyen-mai__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

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

    .page-khuyen-mai__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        align-items: center;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary,
    .page-khuyen-mai__card-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-khuyen-mai__hero-image {
        min-width: unset;
        width: 100%;
    }

    .page-khuyen-mai__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-khuyen-mai__promo-cards {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

    .page-khuyen-mai__card-image {
        height: 200px; /* Adjust height for mobile cards */
        min-height: 200px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Override fixed height, but min-height still applies */
    }

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

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

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

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

    .page-khuyen-mai__benefit-list {
        grid-template-columns: 1fr; /* Single column for benefits */
        gap: 20px;
    }

    .page-khuyen-mai__benefit-item {
        padding: 25px;
    }

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

    .page-khuyen-mai__step-list {
        grid-template-columns: 1fr; /* Single column for steps */
        gap: 40px; /* More gap for better visual separation */
    }

    .page-khuyen-mai__step-item {
        padding: 25px;
    }

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

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

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

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

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

    /* General image and container rules for mobile */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-khuyen-mai__section,
    .page-khuyen-mai__card,
    .page-khuyen-mai__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}