/* style/khuyen-mai.css */

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

.page-khuyen-mai__container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-khuyen-mai__section {
    padding: 40px 0;
}

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

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

.page-khuyen-mai a {
    color: #FFA53A; /* Auxiliary color for links */
    text-decoration: none;
}

.page-khuyen-mai a:hover {
    text-decoration: underline;
}

/* Buttons */
.page-khuyen-mai__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FFF3E6; /* Text Main for button text */
    border: none;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-khuyen-mai__btn--primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button gradient */
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

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

.page-khuyen-mai__btn--secondary {
    background: #17191F; /* Card BG as secondary button background */
    border: 2px solid #FFA53A; /* Auxiliary color border */
    color: #FFA53A; /* Auxiliary color for text */
}

.page-khuyen-mai__btn--secondary:hover {
    background: #FFA53A;
    color: #17191F;
}

.page-khuyen-mai__btn--small {
    padding: 8px 18px;
    font-size: 0.9em;
}

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

/* Hero Section */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Approximately 10px top padding */
    position: relative;
    background-color: #0D0E12; /* Background color */
}

.page-khuyen-mai__hero-section .page-khuyen-mai__container {
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    align-items: center;
    gap: 30px;
}

.page-khuyen-mai__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    max-height: 675px; /* Limit height for aesthetic */
}

.page-khuyen-mai__hero-content {
    text-align: center;
    max-width: 800px;
    margin-bottom: 30px;
}

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

.page-khuyen-mai__description {
    font-size: 1.2em;
    color: #FFF3E6;
    margin-bottom: 30px;
}

.page-khuyen-mai__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 600px; /* Limit max width for CTA group */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Introduction Section */
.page-khuyen-mai__introduction p {
    text-align: justify;
}

/* Promo Highlights Section */
.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 color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border: 1px solid #A84F0C; /* Border color */
}

.page-khuyen-mai__promo-figure {
    margin: 0;
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-khuyen-mai__promo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-khuyen-mai__promo-card:hover .page-khuyen-mai__promo-image {
    transform: scale(1.05);
}

.page-khuyen-mai__promo-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

/* Terms and Conditions & How-To Claim Sections */
.page-khuyen-mai__info-card,
.page-khuyen-mai__promo-box {
    background-color: #17191F; /* Card BG color */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C; /* Border color */
}

.page-khuyen-mai__info-figure,
.page-khuyen-mai__how-to-figure {
    margin: 20px auto;
    max-width: 680px;
    text-align: center;
}

.page-khuyen-mai__info-image,
.page-khuyen-mai__how-to-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.page-khuyen-mai__terms-list,
.page-khuyen-mai__steps-list,
.page-khuyen-mai__benefits-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #FFF3E6;
}

.page-khuyen-mai__terms-list li,
.page-khuyen-mai__steps-list li,
.page-khuyen-mai__benefits-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-khuyen-mai__terms-list strong,
.page-khuyen-mai__steps-list strong,
.page-khuyen-mai__benefits-list strong {
    color: #FFA53A;
}

.page-khuyen-mai__steps-list {
    list-style-type: decimal;
    padding-left: 25px;
}

.page-khuyen-mai__final-tip {
    font-style: italic;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
    color: #FFF3E6;
}

.page-khuyen-mai__cta-final {
    text-align: center;
    margin-top: 30px;
}

/* Why Choose Section */
.page-khuyen-mai__why-choose-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.page-khuyen-mai__why-choose-figure {
    flex: 1;
    margin: 0;
    min-width: 300px;
}

.page-khuyen-mai__why-choose-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.page-khuyen-mai__benefits-list {
    flex: 2;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.page-khuyen-mai__benefits-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-khuyen-mai__benefits-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFA53A;
    font-size: 1.2em;
    line-height: 1;
}

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

.page-khuyen-mai__faq-question {
    font-size: 1.3em;
    color: #FFA53A;
    margin-top: 20px;
    margin-bottom: 10px;
    cursor: default; /* FAQ is not interactive, just text */
    font-weight: bold;
}

.page-khuyen-mai__faq-answer {
    font-size: 1.1em;
    color: #FFF3E6;
    margin-bottom: 15px;
    padding-left: 10px;
}

/* Conclusion Section */
.page-khuyen-mai__conclusion p {
    text-align: center;
    margin-bottom: 30px;
}

/* Global image responsiveness */
.page-khuyen-mai img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles for Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-khuyen-mai__section-title {
        font-size: 2em;
    }

    .page-khuyen-mai__main-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }

    .page-khuyen-mai__promo-figure {
        height: 200px; /* Adjust height for tablet */
    }

    .page-khuyen-mai__why-choose-content {
        flex-direction: column;
        align-items: center;
    }

    .page-khuyen-mai__why-choose-figure {
        max-width: 600px;
    }

    .page-khuyen-mai__benefits-list {
        margin-top: 20px;
        width: 100%;
    }
}

/* Responsive Styles for Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Top Section (Hero) */
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Fixed top padding */
    }

    .page-khuyen-mai__hero-image {
        border-radius: 0; /* Remove border-radius on mobile for full width */
    }

    .page-khuyen-mai__hero-content {
        margin-bottom: 20px;
    }

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

    .page-khuyen-mai__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-khuyen-mai__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    /* General Section Padding & Font Sizes */
    .page-khuyen-mai__section {
        padding: 20px 0;
    }

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

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

    .page-khuyen-mai p {
        font-size: 1em;
    }

    /* Single Column Article Wrap / Info Cards */
    .page-khuyen-mai__info-card,
    .page-khuyen-mai__promo-box {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* General Images & Figures */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-khuyen-mai__promo-figure {
        height: auto;
    }

    .page-khuyen-mai__info-figure,
    .page-khuyen-mai__how-to-figure {
        margin: 15px auto;
    }

    /* Buttons & Button Containers */
    .page-khuyen-mai__btn,
    .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-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__cta-group {
        flex-direction: column;
    }

    /* Promo Card adjustments for mobile */
    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-khuyen-mai__promo-figure {
        height: 200px;
    }

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

    /* Why Choose Section */
    .page-khuyen-mai__why-choose-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .page-khuyen-mai__why-choose-figure {
        max-width: 100%;
    }

    .page-khuyen-mai__benefits-list {
        padding-left: 0;
        margin-top: 0;
    }

    .page-khuyen-mai__benefits-list li {
        padding-left: 25px;
        font-size: 1em;
    }

    /* FAQ Section (Tutorial/FAQ blocks) */
    .page-khuyen-mai__faq-question {
        font-size: 1.1em;
        margin-top: 15px;
    }

    .page-khuyen-mai__faq-answer {
        font-size: 1em;
        padding-left: 5px;
    }

    .page-khuyen-mai__terms-list,
    .page-khuyen-mai__steps-list,
    .page-khuyen-mai__benefits-list {
        margin-left: 15px;
    }

    .page-khuyen-mai__terms-list li,
    .page-khuyen-mai__steps-list li,
    .page-khuyen-mai__benefits-list li {
        font-size: 1em;
    }
}