/* General styles for the Khuyến Mãi page */
.page-khuyen-mai {
    font-family: Arial, sans-serif;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* Background */
    line-height: 1.6;
}

.page-khuyen-mai__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-khuyen-mai__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: #E53935; /* Primary color for titles */
    margin-bottom: 25px;
    text-align: center;
}

.page-khuyen-mai__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    background-color: #F5F7FA;
    color: #333333;
}

.page-khuyen-mai__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 40px 16px;
    gap: 30px;
}

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

.page-khuyen-mai__hero-title {
    font-size: clamp(2.5em, 4vw, 3.5em);
    font-weight: 700;
    color: #E53935; /* Primary color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-khuyen-mai__hero-description {
    font-size: 1.2em;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 600px;
}

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

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

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-khuyen-mai__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-khuyen-mai__btn-secondary {
    background-color: #ffffff; /* Card BG */
    color: #E53935; /* Primary color */
    border: 2px solid #E53935;
}

.page-khuyen-mai__btn-secondary:hover {
    background-color: #E53935;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2);
}

.page-khuyen-mai__btn-link {
    background: none;
    color: #E53935;
    padding: 0;
    font-size: 1em;
    border: none;
    text-decoration: underline;
}

.page-khuyen-mai__btn-link:hover {
    color: #FF5A4F;
}

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

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

/* Promotion Section */
.page-khuyen-mai__promo-section {
    padding: 60px 0;
    background-color: #F5F7FA;
}

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

.page-khuyen-mai__promo-card {
    background-color: #ffffff; /* Card BG */
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-khuyen-mai__promo-card-image {
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-khuyen-mai__promo-card-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #E53935; /* Primary color */
    margin: 0 15px 10px;
}

.page-khuyen-mai__promo-card-description {
    font-size: 1em;
    color: #555555;
    line-height: 1.5;
    margin: 0 15px 20px;
    flex-grow: 1;
}

.page-khuyen-mai__btn-small {
    padding: 10px 20px;
    font-size: 0.95em;
}

/* Guide Section */
.page-khuyen-mai__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-khuyen-mai__guide-item {
    background-color: #ffffff; /* Card BG */
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.page-khuyen-mai__guide-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #E53935; /* Primary color */
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.page-khuyen-mai__guide-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #E53935; /* Primary color */
    margin-bottom: 15px;
}

.page-khuyen-mai__guide-description {
    font-size: 1em;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Terms Section */
.page-khuyen-mai__terms-section {
    padding: 60px 0;
    background-color: #F5F7FA;
}

.page-khuyen-mai__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    font-size: 1em;
    color: #555555;
}

.page-khuyen-mai__terms-list li {
    margin-bottom: 10px;
}

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

.page-khuyen-mai__faq-item {
    background-color: #ffffff; /* Card BG */
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.page-khuyen-mai__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-khuyen-mai__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333; /* Text Main */
    transition: background-color 0.3s ease;
}

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

.page-khuyen-mai__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #E53935;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-question {
    background-color: #f0f0f0;
    border-bottom: 1px solid #E0E0E0;
    border-radius: 12px 12px 0 0;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate to - */
}

.page-khuyen-mai__faq-answer {
    padding: 20px 25px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
    background-color: #fcfcfc;
    border-radius: 0 0 12px 12px;
}

/* Final CTA Section */
.page-khuyen-mai__cta-section {
    background-color: #E53935; /* Primary color */
    color: #ffffff;
    text-align: center;
    padding: 80px 16px;
}

.page-khuyen-mai__cta-section .page-khuyen-mai__section-title,
.page-khuyen-mai__cta-section .page-khuyen-mai__text-block {
    color: #ffffff; /* Ensure white text on dark background */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai__cta-section .page-khuyen-mai__btn-primary {
    margin-top: 30px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-khuyen-mai__hero-title {
        font-size: clamp(2.2em, 3.5vw, 3em);
    }
    .page-khuyen-mai__promo-grid,
    .page-khuyen-mai__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-khuyen-mai__content-area {
        padding: 30px 15px !important;
    }
    .page-khuyen-mai__section-title {
        font-size: 1.8em !important;
        margin-bottom: 20px !important;
    }
    .page-khuyen-mai__text-block {
        font-size: 1em !important;
        text-align: left !important; /* Adjust text alignment for mobile readability */
    }

    /* HERO Section */
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Small top padding, no var(--header-offset) */
        padding-bottom: 40px !important;
    }
    .page-khuyen-mai__hero-container {
        flex-direction: column !important;
        text-align: center !important;
        padding: 30px 15px !important;
        gap: 20px !important;
    }
    .page-khuyen-mai__hero-content {
        flex: 1 1 100% !important;
        text-align: center !important;
    }
    .page-khuyen-mai__hero-title {
        font-size: clamp(2em, 6vw, 2.5em) !important;
        margin-bottom: 15px !important;
    }
    .page-khuyen-mai__hero-description {
        font-size: 1.1em !important;
        margin-bottom: 25px !important;
    }
    .page-khuyen-mai__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary,
    .page-khuyen-mai__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-khuyen-mai__hero-image {
        flex: 1 1 100% !important;
    }
    .page-khuyen-mai__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Promo Section */
    .page-khuyen-mai__promo-section {
        padding: 40px 0 !important;
    }
    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-khuyen-mai__promo-card {
        padding-bottom: 20px !important;
    }
    .page-khuyen-mai__promo-card-image {
        height: 180px !important;
    }
    .page-khuyen-mai__promo-card-title {
        font-size: 1.2em !important;
    }
    .page-khuyen-mai__promo-card-description {
        font-size: 0.95em !important;
    }

    /* Guide Section */
    .page-khuyen-mai__guide-steps {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-khuyen-mai__guide-item {
        padding: 25px !important;
    }
}