.page-khuyen-mai {
    font-family: 'Arial', sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Body Background */
}

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

.page-khuyen-mai__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Main color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-khuyen-mai__sub-title {
    font-size: 1.8em;
    color: #FFD36B; /* Accent color for sub-titles */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-khuyen-mai p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.page-khuyen-mai ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-khuyen-mai ul li {
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Buttons */
.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    max-width: 100%; /* Base responsive */
    box-sizing: border-box; /* Base responsive */
    white-space: normal; /* Base responsive */
    word-wrap: break-word; /* Base responsive */
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A; /* Dark text for bright button */
    border-color: #FFD86A;
}

.page-khuyen-mai__btn-primary:hover {
    background: linear-gradient(180deg, #FFE699 0%, #E6B02A 100%);
    box-shadow: 0 0 15px #FFD36B; /* Glow */
}

.page-khuyen-mai__btn-secondary {
    background: #111111; /* Card BG */
    color: #F2C14E; /* Main color */
    border-color: #3A2A12; /* Border */
    margin-left: 15px;
}

.page-khuyen-mai__btn-secondary:hover {
    background: #222222;
    color: #FFD36B; /* Glow */
    border-color: #FFD36B;
}

.page-khuyen-mai__btn-large {
    padding: 15px 30px;
    font-size: 1.2em;
}

.page-khuyen-mai__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    width: 100%; /* Base responsive */
    max-width: 100%; /* Base responsive */
    box-sizing: border-box; /* Base responsive */
    overflow: hidden; /* Base responsive */
}

/* Hero Carousel Section */
.page-khuyen-mai__hero-carousel-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
    position: relative;
    overflow: hidden;
}

.page-khuyen-mai__hero-slider {
    position: relative;
    max-width: 1020px; /* Max width for the image */
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(242, 193, 78, 0.3);
}

.page-khuyen-mai__hero-slide {
    display: none;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    background-color: #111111; /* Card BG for slide background */
}

.page-khuyen-mai__hero-slide.is-active {
    display: flex;
}

.page-khuyen-mai__hero-slider img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 1020px; /* Ensuring image fills slider width */
    max-height: 351px; /* Ensuring image fills slider height */
    min-height: 200px; /* Minimum size */
}

.page-khuyen-mai__hero-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.page-khuyen-mai__main-title {
    font-size: clamp(2em, 4vw, 3em); /* H1 title font-size clamp */
    color: #F2C14E;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-khuyen-mai__hero-description {
    font-size: 1.2em;
    color: #FFF6D6;
    margin-bottom: 25px;
}

.page-khuyen-mai__hero-slider-prev,
.page-khuyen-mai__hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 5px;
    z-index: 10;
}

.page-khuyen-mai__hero-slider-prev {
    left: 10px;
}

.page-khuyen-mai__hero-slider-next {
    right: 10px;
}

/* Intro Section */
.page-khuyen-mai__intro-section {
    padding: 60px 0;
    text-align: center;
}

.page-khuyen-mai__section-description {
    max-width: 900px;
    margin: 0 auto 30px;
}

/* Guide Box (Five Vertical Team Cards) */
.page-khuyen-mai__guide-box {
    padding: 60px 0;
    background-color: #111111; /* Card BG */
    border-top: 1px solid #3A2A12; /* Border */
    border-bottom: 1px solid #3A2A12; /* Border */
}

.page-khuyen-mai__guide-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-khuyen-mai__guide-card {
    flex: 0 0 auto; /* No flex grow/shrink, base on content */
    width: 250px; /* Fixed width for desktop */
    text-align: center;
    text-decoration: none;
    color: #FFF6D6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #0A0A0A; /* Darker background for card */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__guide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(242, 193, 78, 0.5);
}

.page-khuyen-mai__guide-card img {
    width: 100%;
    height: 350px; /* Fixed height for vertical image */
    object-fit: cover; /* Ensure image covers the area */
    display: block;
    aspect-ratio: 250 / 350; /* Maintain aspect ratio */
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Vertical offset for guide cards */
.page-khuyen-mai__guide-card--pos-1, .page-khuyen-mai__guide-card--pos-5 {
    margin-top: 50px;
}
.page-khuyen-mai__guide-card--pos-2, .page-khuyen-mai__guide-card--pos-4 {
    margin-top: 25px;
}
.page-khuyen-mai__guide-card--pos-3 {
    margin-top: 0;
}


/* Home Content Box (Long-form content) */
.page-khuyen-mai__home-content-box {
    max-width: 1000px; /* Adjusted max-width for content */
    margin: 60px auto;
    padding: 30px;
    border: 5px solid #3A2A12; /* Border */
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(242, 193, 78, 0.3); /* Glow */
    background-color: #111111; /* Card BG */
    height: 700px; /* Desktop fixed height */
    box-sizing: border-box;
}

.page-khuyen-mai__home-content-inner {
    height: 100%;
    overflow-y: auto; /* Scroll for desktop */
    padding-right: 15px; /* For scrollbar */
}

.page-khuyen-mai__content-image {
    margin: 30px 0;
    text-align: center;
}

.page-khuyen-mai__content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-khuyen-mai__content-image figcaption {
    font-style: italic;
    font-size: 0.9em;
    color: #FFD36B;
    margin-top: 10px;
}

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

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

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

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #F2C14E;
    cursor: pointer;
    list-style: none; /* For details summary */
}

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

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

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

.page-khuyen-mai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    line-height: 1.6;
    color: #FFF6D6;
}

/* CTA Section */
.page-khuyen-mai__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #0A0A0A; /* Body BG */
}

/* Scrollbar styling for home-content-inner */
.page-khuyen-mai__home-content-inner::-webkit-scrollbar {
    width: 8px;
}

.page-khuyen-mai__home-content-inner::-webkit-scrollbar-track {
    background: #3A2A12; /* Border color for track */
    border-radius: 4px;
}

.page-khuyen-mai__home-content-inner::-webkit-scrollbar-thumb {
    background-color: #F2C14E; /* Main color for thumb */
    border-radius: 4px;
}

/* ==========================================================================
   Tablet Responsive Styles (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .page-khuyen-mai__container {
        padding: 20px;
    }

    .page-khuyen-mai__hero-slider {
        max-width: 90%;
    }

    .page-khuyen-mai__main-title {
        font-size: clamp(2em, 3.5vw, 2.5em);
    }

    /* Guide cards adjustment for tablets */
    .page-khuyen-mai__guide-grid {
        gap: 15px;
    }

    .page-khuyen-mai__guide-card {
        width: 200px; /* Slightly smaller for tablet */
    }

    .page-khuyen-mai__guide-card img {
        height: 280px; /* Adjust height */
    }

    .page-khuyen-mai__guide-card--pos-1, .page-khuyen-mai__guide-card--pos-5 {
        margin-top: 30px;
    }
    .page-khuyen-mai__guide-card--pos-2, .page-khuyen-mai__guide-card--pos-4 {
        margin-top: 15px;
    }

    .page-khuyen-mai__home-content-box {
        max-width: 90%;
        margin: 40px auto;
    }
}

/* ==========================================================================
   Mobile Responsive Styles (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .page-khuyen-mai {
        font-size: 14px;
    }

    .page-khuyen-mai__container {
        padding: 15px;
    }

    .page-khuyen-mai__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-khuyen-mai__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-khuyen-mai p,
    .page-khuyen-mai ul li {
        font-size: 1em;
        line-height: 1.6;
    }

    /* General image and button responsiveness */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset !important; /* Reset min-width for mobile */
        min-height: unset !important; /* Reset min-height for mobile */
    }

    .page-khuyen-mai__section,
    .page-khuyen-mai__card,
    .page-khuyen-mai__container,
    .page-khuyen-mai__home-content-box,
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .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__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 20px;
        padding-left: 0;
        padding-right: 0;
    }

    .page-khuyen-mai__btn-secondary {
        margin-left: 0;
    }

    /* 1. Top carousel */
    .page-khuyen-mai__hero-carousel-section {
        padding-top: 10px !important;
    }

    .page-khuyen-mai__hero-slider {
        border-radius: 0;
        box-shadow: none;
    }

    .page-khuyen-mai__hero-slider img {
        max-height: 250px;
    }

    .page-khuyen-mai__hero-content {
        padding: 15px;
    }

    .page-khuyen-mai__main-title {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

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

    .page-khuyen-mai__hero-slider-prev,
    .page-khuyen-mai__hero-slider-next {
        padding: 8px 12px;
        font-size: 1.2em;
    }

    /* 2. Guide box + five `team` vertical cards */
    .page-khuyen-mai__guide-box {
        padding: 30px 0;
    }

    .page-khuyen-mai__guide-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }

    .page-khuyen-mai__guide-card {
        width: auto;
        margin-top: 0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .page-khuyen-mai__guide-card--pos-1,
    .page-khuyen-mai__guide-card--pos-2 {
        grid-column: span 3;
    }

    .page-khuyen-mai__guide-card--pos-3,
    .page-khuyen-mai__guide-card--pos-4,
    .page-khuyen-mai__guide-card--pos-5 {
        grid-column: span 2;
    }

    .page-khuyen-mai__guide-card img {
        height: auto;
        max-height: 250px;
    }

    /* 3. `home_content` box (desktop 700px height, mobile auto height) */
    .page-khuyen-mai__home-content-box {
        margin: 30px auto;
        padding: 20px;
        height: auto !important;
        border-width: 3px;
        box-shadow: 0 0 10px rgba(242, 193, 78, 0.2);
    }

    .page-khuyen-mai__home-content-inner {
        height: auto !important;
        overflow: visible !important;
        padding-right: 0;
    }

    /* FAQ Section Mobile */
    .page-khuyen-mai__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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