/* style/khuyen-mai.css */
.page-khuyen-mai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background */
}

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

.page-khuyen-mai__section-title {
    font-size: 2.5em;
    color: #FF8C1A; /* Main color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-khuyen-mai__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF3E6;
}

/* HERO Section */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top spacing as per rule, relying on body for header offset */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Card BG to Background gradient */
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.page-khuyen-mai__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp as requested for H1 */
    color: #FF8C1A;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-khuyen-mai__hero-cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-khuyen-mai__hero-main-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block; /* Ensure no extra space below image */
    margin: 0 auto;
}

/* CTA Buttons */
.page-khuyen-mai__cta-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-khuyen-mai__btn-secondary {
    background: #17191F; /* Card BG */
    color: #FF8C1A; /* Main color */
    border: 2px solid #A84F0C; /* Border color */
}

.page-khuyen-mai__btn-secondary:hover {
    background: #0D0E12; /* Background */
    color: #FFA53A; /* Auxiliary color */
    border-color: #FF8C1A;
}

/* Promo List Section */
.page-khuyen-mai__promo-list-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background */
}

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

.page-khuyen-mai__promo-card {
    background-color: #17191F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #A84F0C; /* Border color */
}

.page-khuyen-mai__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 140, 26, 0.2);
}

.page-khuyen-mai__promo-card-media {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

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

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

.page-khuyen-mai__promo-card-title {
    font-size: 1.5em;
    color: #FF8C1A; /* Main color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-khuyen-mai__promo-card-title a {
    color: #FF8C1A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-khuyen-mai__promo-card-title a:hover {
    color: #FFA53A; /* Auxiliary color */
}

.page-khuyen-mai__promo-card-text {
    font-size: 1em;
    color: #FFF3E6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-khuyen-mai__btn-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    background: #A84F0C; /* Border color */
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    align-self: flex-start;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Why Promo Section */
.page-khuyen-mai__why-promo-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background */
}

.page-khuyen-mai__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

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

.page-khuyen-mai__text-content p {
    margin-bottom: 20px;
    color: #FFF3E6;
}

.page-khuyen-mai__feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-khuyen-mai__feature-list li {
    background-color: #17191F; /* Card BG */
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFF3E6;
    border-left: 4px solid #FF8C1A; /* Main color */
}

.page-khuyen-mai__feature-list li::before {
    content: '✅'; /* Unicode checkmark */
    font-size: 1.2em;
    color: #FF8C1A;
}

.page-khuyen-mai__image-content {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-khuyen-mai__responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

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

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

.page-khuyen-mai__faq-item {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF3E6;
}

.page-khuyen-mai__faq-item[open] {
    border-color: #FF8C1A; /* Main color when open */
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #FF8C1A; /* Main color */
    list-style: none; /* Remove default marker for summary */
}

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

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

.page-khuyen-mai__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #FFF3E6;
    transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar for open state */
}

.page-khuyen-mai__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #FFF3E6;
    line-height: 1.5;
}

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

    .page-khuyen-mai__hero-content,
    .page-khuyen-mai__hero-image,
    .page-khuyen-mai__text-content,
    .page-khuyen-mai__image-content {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .page-khuyen-mai__hero-cta-group {
        justify-content: center;
    }

    .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 small top spacing */
        padding-bottom: 40px;
    }
    .page-khuyen-mai__hero-container {
        padding: 30px 15px;
        gap: 20px;
    }
    .page-khuyen-mai__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        text-align: center;
    }
    .page-khuyen-mai__hero-description {
        font-size: 1em;
        text-align: center;
    }
    .page-khuyen-mai__hero-cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    /* General Button Responsive */
    .page-khuyen-mai__cta-button,
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary,
    .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;
        padding-right: 15px;
    }
    .page-khuyen-mai__hero-cta-group,
    .page-khuyen-mai__button-group,
    .page-khuyen-mai__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-khuyen-mai__hero-cta-group {
        display: flex;
        flex-direction: column; /* Explicitly stack buttons */
    }

    /* Promo List Section */
    .page-khuyen-mai__promo-list-section {
        padding: 40px 0;
    }
    .page-khuyen-mai__section-title {
        font-size: 2em;
    }
    .page-khuyen-mai__section-description {
        font-size: 0.95em;
    }
    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }
    .page-khuyen-mai__promo-card-media {
        height: 180px; /* Adjust height for mobile */
    }

    /* Why Promo Section */
    .page-khuyen-mai__why-promo-section {
        padding: 40px 0;
    }
    .page-khuyen-mai__content-wrapper {
        gap: 20px;
    }
    .page-khuyen-mai__feature-list li {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    /* FAQ Section */
    .page-khuyen-mai__faq-section {
        padding: 40px 0;
    }
    .page-khuyen-mai__faq-question {
        padding: 15px;
        font-size: 1em;
    }
    .page-khuyen-mai__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.95em;
    }

    /* Universal Image Responsive */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}