/* style/khuyen-mai.css */

:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --text-main-color: #F3F8FF;
    --text-secondary-color: #AFC4E8;
    --card-bg-color: #10233F;
    --border-color: #244D84;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --button-text-color: #FFFFFF;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* Assuming this is the body background from shared.css */
}

.page-khuyen-mai {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* For dark body background */
    background-color: var(--deep-navy); /* Ensure consistency if body background isn't applied globally */
    line-height: 1.6;
}

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

.page-khuyen-mai__section-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

.page-khuyen-mai__section-description {
    font-size: 16px;
    color: var(--text-secondary-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Minimal top padding, relying on body for header offset */
    padding-bottom: 60px;
    background-color: var(--primary-color);
}

.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 50%;
    min-width: 300px;
    color: var(--text-main-color);
}

.page-khuyen-mai__hero-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-khuyen-mai__hero-description {
    font-size: 18px;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
}

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

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

/* CTA Buttons Group */
.page-khuyen-mai__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
}

.page-khuyen-mai__cta-buttons--center {
    justify-content: center;
}

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

.page-khuyen-mai__btn-primary {
    background: var(--button-gradient);
    color: var(--button-text-color);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

/* Intro Section */
.page-khuyen-mai__intro-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
}

/* Promo Types Section */
.page-khuyen-mai__promo-types-section {
    padding: 60px 0;
    background-color: var(--primary-color);
}

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

.page-khuyen-mai__promo-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-khuyen-mai__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-khuyen-mai__card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main-color);
    margin-bottom: 15px;
}

.page-khuyen-mai__card-text {
    font-size: 15px;
    color: var(--text-secondary-color);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Guide Section */
.page-khuyen-mai__guide-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
}

.page-khuyen-mai__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-khuyen-mai__guide-item {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    counter-increment: guide-step;
    position: relative;
}

.page-khuyen-mai__guide-item::before {
    content: "0" counter(guide-step);
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 36px;
    font-weight: 800;
    color: var(--gold-color);
    opacity: 0.3;
}

.page-khuyen-mai__guide-item strong {
    display: block;
    font-size: 20px;
    color: var(--text-main-color);
    margin-bottom: 10px;
    padding-left: 50px;
}

.page-khuyen-mai__guide-item p {
    font-size: 15px;
    color: var(--text-secondary-color);
    padding-left: 50px;
}

/* Terms Section */
.page-khuyen-mai__terms-section {
    padding: 60px 0;
    background-color: var(--primary-color);
}

.page-khuyen-mai__terms-list {
    list-style: disc;
    color: var(--text-secondary-color);
    font-size: 16px;
    max-width: 800px;
    margin: 40px auto;
    padding-left: 25px;
}

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

/* FAQ Section */
.page-khuyen-mai__faq-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
}

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

.page-khuyen-mai__faq-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    color: var(--text-main-color);
}

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

.page-khuyen-mai__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

.page-khuyen-mai__faq-toggle {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

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

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

/* Bottom CTA Section */
.page-khuyen-mai__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    text-align: center;
}

.page-khuyen-mai__cta-bottom-content {
    max-width: 900px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-khuyen-mai__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-khuyen-mai__hero-content {
        order: 2;
    }

    .page-khuyen-mai__hero-image {
        order: 1;
        margin-bottom: 30px;
    }

    .page-khuyen-mai__cta-buttons {
        justify-content: center;
    }

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

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

@media (max-width: 768px) {
    /* HERO Section */
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Ensure minimal padding */
        padding-bottom: 40px;
    }
    .page-khuyen-mai__hero-container {
        padding: 30px 15px;
        gap: 20px;
    }
    .page-khuyen-mai__hero-title {
        font-size: clamp(28px, 9vw, 40px);
    }
    .page-khuyen-mai__hero-description {
        font-size: 16px;
    }

    /* General Content Sections */
    .page-khuyen-mai__content-container {
        padding: 20px 15px;
    }
    .page-khuyen-mai__section-title {
        font-size: clamp(22px, 7vw, 32px);
        margin-bottom: 20px;
    }
    .page-khuyen-mai__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Promo Grid */
    .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: 20px;
    }
    .page-khuyen-mai__card-text {
        font-size: 14px;
    }

    /* Guide Section */
    .page-khuyen-mai__guide-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-khuyen-mai__guide-item {
        padding: 25px;
    }
    .page-khuyen-mai__guide-item strong {
        font-size: 18px;
        padding-left: 45px;
    }
    .page-khuyen-mai__guide-item p {
        font-size: 14px;
        padding-left: 45px;
    }
    .page-khuyen-mai__guide-item::before {
        font-size: 30px;
        top: 15px;
        left: 15px;
    }

    /* Terms Section */
    .page-khuyen-mai__terms-list {
        font-size: 15px;
        margin: 30px auto;
        padding-left: 20px;
    }

    /* FAQ Section */
    .page-khuyen-mai__faq-question {
        font-size: 16px;
        padding: 18px 20px;
    }
    .page-khuyen-mai__faq-toggle {
        font-size: 20px;
    }
    .page-khuyen-mai__faq-answer {
        font-size: 14px;
        padding: 0 20px 18px;
    }

    /* CTA Buttons */
    .page-khuyen-mai__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Images & Containers */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-khuyen-mai__hero-side-image {
        width: 100% !important;
        height: auto !important;
    }
    .page-khuyen-mai__section,
    .page-khuyen-mai__card,
    .page-khuyen-mai__container,
    .page-khuyen-mai__promo-card,
    .page-khuyen-mai__guide-item,
    .page-khuyen-mai__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}