.page-khuyen-mai {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --card-bg: #10233F;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --border-color: #244D84;
    --deep-navy: #08162B;
    --gold-color: #F2C14E;
    color: var(--text-main);
    background-color: var(--deep-navy); /* Assuming body background is dark from shared.css */
}

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

.page-khuyen-mai__hero-section {
    position: relative;
    padding-top: 10px; /* Fixed top padding, not --header-offset */
    background-color: var(--deep-navy);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 40px;
}

.page-khuyen-mai__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height of image container */
    overflow: hidden;
}

.page-khuyen-mai__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-khuyen-mai__hero-content {
    position: relative;
    z-index: 10;
    padding: 30px 20px;
    max-width: 900px;
    margin-top: -100px; /* Adjust to slightly overlap the image, but text is below */
    background: rgba(16, 35, 63, 0.9); /* Semi-transparent background for readability */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.page-khuyen-mai__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-khuyen-mai__hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-khuyen-mai__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* Always white for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
}

.page-khuyen-mai__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-khuyen-mai__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-khuyen-mai__dark-section {
    background-color: var(--deep-navy);
    color: var(--text-main);
    padding: 60px 0;
}

.page-khuyen-mai__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-khuyen-mai__text-block {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-khuyen-mai__promo-categories {
    padding: 60px 0;
    background-color: var(--card-bg);
}

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

.page-khuyen-mai__promo-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-khuyen-mai__promo-card.page-khuyen-mai__light-bg {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-khuyen-mai__promo-card.page-khuyen-mai__light-bg .page-khuyen-mai__card-title a,
.page-khuyen-mai__promo-card.page-khuyen-mai__light-bg .page-khuyen-mai__card-description {
    color: #333333;
}

.page-khuyen-mai__promo-card.page-khuyen-mai__light-bg .page-khuyen-mai__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
}

.page-khuyen-mai__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-khuyen-mai__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-khuyen-mai__card-title a {
    color: var(--gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-khuyen-mai__promo-card.page-khuyen-mai__light-bg .page-khuyen-mai__card-title a {
    color: var(--primary-color);
}

.page-khuyen-mai__card-title a:hover {
    color: var(--secondary-color);
}

.page-khuyen-mai__card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-khuyen-mai__promo-details {
    padding: 60px 0;
}

.page-khuyen-mai__ordered-list,
.page-khuyen-mai__unordered-list {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 30px;
}

.page-khuyen-mai__ordered-list li,
.page-khuyen-mai__unordered-list li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.page-khuyen-mai__ordered-list li strong {
    color: var(--gold-color);
}

.page-khuyen-mai__terms-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.page-khuyen-mai__faq-section {
    padding: 60px 0;
}

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

.page-khuyen-mai__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-khuyen-mai__faq-item[open] {
    background-color: var(--deep-navy);
    border-color: var(--gold-color);
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    list-style: none;
}

.page-khuyen-mai__faq-question::-webkit-details-marker,
.page-khuyen-mai__faq-question::marker {
    display: none;
}

.page-khuyen-mai__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-qtext {
    color: var(--gold-color);
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--gold-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
    transform: rotate(45deg);
}

.page-khuyen-mai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.page-khuyen-mai__cta-bottom {
    padding: 60px 0;
    background-color: var(--primary-color);
    text-align: center;
}

.page-khuyen-mai__cta-bottom .page-khuyen-mai__section-title {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.page-khuyen-mai__cta-bottom .page-khuyen-mai__text-block {
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

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

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .page-khuyen-mai__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .page-khuyen-mai__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }

    .page-khuyen-mai__hero-content {
        margin-top: -60px;
        padding: 20px 15px;
    }

    .page-khuyen-mai__hero-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

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

    .page-khuyen-mai__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-khuyen-mai__section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .page-khuyen-mai__text-block {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .page-khuyen-mai__promo-categories,
    .page-khuyen-mai__promo-details,
    .page-khuyen-mai__terms-section,
    .page-khuyen-mai__faq-section,
    .page-khuyen-mai__cta-bottom {
        padding: 40px 0;
    }

    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-khuyen-mai__card-image {
        height: 180px;
    }

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

    .page-khuyen-mai__card-description {
        font-size: 0.85rem;
    }

    .page-khuyen-mai__ordered-list,
    .page-khuyen-mai__unordered-list {
        margin-left: 0;
        padding-left: 20px;
    }

    .page-khuyen-mai__ordered-list li,
    .page-khuyen-mai__unordered-list li {
        font-size: 0.9rem;
    }

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

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

    /* Ensure all images are responsive */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-khuyen-mai__hero-image-wrapper,
    .page-khuyen-mai__promo-card,
    .page-khuyen-mai__faq-item,
    .page-khuyen-mai__cta-buttons,
    .page-khuyen-mai__button-group,
    .page-khuyen-mai__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}