/* style/khuyen-mai.css */

.page-khuyen-mai {
    color: #FFF6D6; /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #0A0A0A; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    background-color: #0A0A0A;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.page-khuyen-mai__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2C14E; /* Brand color for H1 */
}

.page-khuyen-mai__intro-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF6D6;
}

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

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

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for light button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-khuyen-mai__btn-secondary {
    background: #111111; /* Card BG color */
    color: #F2C14E; /* Brand color text */
    border: 2px solid #F2C14E;
}

.page-khuyen-mai__btn-secondary:hover {
    background: #F2C14E;
    color: #111111;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

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

/* Section Title & Description */
.page-khuyen-mai__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #F2C14E;
    position: relative;
    padding-bottom: 10px;
}

.page-khuyen-mai__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFD86A 0%, #DDA11D 100%);
    border-radius: 2px;
}

.page-khuyen-mai__section-description {
    font-size: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #FFF6D6;
}

/* Promo Grid Section */
.page-khuyen-mai__promo-grid-section {
    background-color: #0A0A0A;
    padding: 60px 0;
}

.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: #111111; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-khuyen-mai__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-khuyen-mai__promo-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

.page-khuyen-mai__promo-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFD36B; /* Glow color for titles */
}

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

.page-khuyen-mai__promo-card-title a:hover {
    color: #F2C14E;
}

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

.page-khuyen-mai__btn-text-link {
    color: #F2C14E;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-khuyen-mai__btn-text-link:hover {
    text-decoration: underline;
    color: #FFD36B;
}

/* Guide Section */
.page-khuyen-mai__guide-section {
    background-color: #0A0A0A;
    padding: 60px 0;
}

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

.page-khuyen-mai__guide-step {
    background-color: #111111;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border color */
}

.page-khuyen-mai__step-icon {
    margin-bottom: 20px;
    width: 100px; /* Fixed size for guide icons */
    height: 100px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-khuyen-mai__step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Icons should be contained */
    display: block;
    min-
    min-
}

.page-khuyen-mai__step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #F2C14E;
}

.page-khuyen-mai__step-text {
    font-size: 0.95rem;
    color: #FFF6D6;
}

.page-khuyen-mai__cta-section {
    text-align: center;
    margin-top: 50px;
}

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

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

.page-khuyen-mai__faq-item {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-khuyen-mai__faq-item[open] {
    background-color: #1A1A1A;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #F2C14E;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    position: relative;
    user-select: none;
}

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

.page-khuyen-mai__faq-qtext {
    flex-grow: 1;
    text-align: left;
    padding-right: 15px;
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #FFD36B;
    width: 24px;
    text-align: center;
}

.page-khuyen-mai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #FFF6D6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding-top: 10px;
}

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

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

    /* HERO Section */
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

    .page-khuyen-mai__hero-container {
        flex-direction: column;
        padding: 20px 15px;
    }

    .page-khuyen-mai__hero-content {
        order: 2; /* Content below image */
        text-align: center;
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-khuyen-mai__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Smaller H1 for mobile */
    }

    .page-khuyen-mai__intro-description {
        font-size: 1rem;
    }

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

    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-khuyen-mai__hero-image {
        order: 1; /* Image above content */
        flex: 1 1 100%;
        min-width: unset;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-khuyen-mai__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Section Title & Description */
    .page-khuyen-mai__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-khuyen-mai__section-description {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Promo Grid Section */
    .page-khuyen-mai__promo-grid-section {
        padding: 40px 0;
    }

    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }

    .page-khuyen-mai__promo-card {
        margin: 0 15px;
        box-sizing: border-box;
    }

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

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

    /* Guide Section */
    .page-khuyen-mai__guide-section {
        padding: 40px 0;
    }

    .page-khuyen-mai__guide-steps {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }

    .page-khuyen-mai__guide-step {
        margin: 0 15px;
        padding: 25px;
        box-sizing: border-box;
    }

    .page-khuyen-mai__step-icon {
        width: 80px;
        height: 80px;
    }

    .page-khuyen-mai__step-title {
        font-size: 1.2rem;
    }

    .page-khuyen-mai__cta-section {
        padding: 0 15px;
    }

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

    .page-khuyen-mai__faq-list {
        margin: 30px 15px 0;
    }

    .page-khuyen-mai__faq-item {
        margin-bottom: 10px;
    }

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

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

    /* General image and container rules for mobile */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-khuyen-mai__section,
    .page-khuyen-mai__card,
    .page-khuyen-mai__container,
    .page-khuyen-mai__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-khuyen-mai__content-area {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}