/* style/khuyen-mai.css */
.page-khuyen-mai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #F5F7FA; /* Background color from custom palette */
}

/* General Section Styling */
.page-khuyen-mai__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E53935;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Hero Section */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    padding-bottom: 60px;
    background-color: #F5F7FA; /* Light background for hero */
}

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

.page-khuyen-mai__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #333333; /* Dark text for light background */
}

.page-khuyen-mai__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size, not fixed large */
    font-weight: 800;
    color: #E53935;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-khuyen-mai__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #333333;
}

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

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

.page-khuyen-mai__hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

/* Buttons */
.page-khuyen-mai__cta-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button fits container */
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

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

.page-khuyen-mai__btn-secondary {
    background-color: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Intro Section (Module 1) */
.page-khuyen-mai__intro-section {
    padding: 80px 0;
}

.page-khuyen-mai__light-bg {
    background-color: #F5F7FA;
    color: #333333;
}

.page-khuyen-mai__dark-bg {
    background-color: #E53935;
    color: #ffffff;
}
.page-khuyen-mai__dark-bg .page-khuyen-mai__section-title,
.page-khuyen-mai__dark-bg .page-khuyen-mai__cta-full-width-title {
    color: #ffffff;
}
.page-khuyen-mai__dark-bg .page-khuyen-mai__section-description,
.page-khuyen-mai__dark-bg .page-khuyen-mai__cta-full-width-description {
    color: #f0f0f0;
}


.page-khuyen-mai__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-khuyen-mai__icon-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-khuyen-mai__icon-box {
    flex: 1 1 30%;
    min-width: 280px;
    max-width: 380px;
    text-align: center;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-khuyen-mai__icon-box:hover {
    transform: translateY(-8px);
}

.page-khuyen-mai__icon-box-media {
    width: 180px; /* Fixed width for square */
    height: 180px; /* Fixed height for square */
    aspect-ratio: 1 / 1;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #FF5A4F;
    box-shadow: 0 0 0 5px rgba(255, 90, 79, 0.3);
}

.page-khuyen-mai__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%; /* Ensure image is also round */
}

.page-khuyen-mai__icon-box-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E53935;
    margin-bottom: 15px;
}

.page-khuyen-mai__icon-box-text {
    font-size: 1rem;
    color: #555555;
}

/* Promotion Section */
.page-khuyen-mai__promo-section {
    padding: 80px 0;
}

.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: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

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

.page-khuyen-mai__promo-content {
    padding: 25px;
}

.page-khuyen-mai__promo-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #E53935;
    margin-bottom: 15px;
}

.page-khuyen-mai__promo-text {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 25px;
}

/* Benefits Section */
.page-khuyen-mai__benefits-section {
    padding: 80px 0;
}

.page-khuyen-mai__benefit-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-khuyen-mai__benefit-item {
    flex: 1 1 30%;
    min-width: 280px;
    max-width: 380px;
    text-align: center;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-khuyen-mai__benefit-icon {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: contain; /* Use contain for icons/illustrations */
    margin-bottom: 20px;
    display: block;
}

.page-khuyen-mai__benefit-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E53935;
    margin-bottom: 15px;
}

.page-khuyen-mai__benefit-text {
    font-size: 1rem;
    color: #555555;
}

/* Full Width CTA Section */
.page-khuyen-mai__cta-full-width-section {
    padding: 80px 0;
    text-align: center;
}

.page-khuyen-mai__cta-full-width-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-khuyen-mai__cta-full-width-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.page-khuyen-mai__cta-full-width-description {
    font-size: 1.1rem;
    color: #f0f0f0;
    max-width: 900px;
    margin-bottom: 30px;
}

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

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

.page-khuyen-mai__faq-item {
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    position: relative;
    list-style: none; /* For details/summary */
}

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


.page-khuyen-mai__faq-toggle {
    font-size: 1.8rem;
    font-weight: 500;
    color: #E53935;
    margin-left: 15px;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-khuyen-mai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #555555;
    line-height: 1.7;
}
.page-khuyen-mai__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}


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

    .page-khuyen-mai__content-area {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-khuyen-mai__section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-khuyen-mai__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* HERO Section */
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-khuyen-mai__hero-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px 15px;
    }
    .page-khuyen-mai__hero-content,
    .page-khuyen-mai__hero-image {
        flex: 1 1 100%;
        min-width: unset;
        width: 100%;
    }
    .page-khuyen-mai__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        text-align: center;
    }
    .page-khuyen-mai__hero-description {
        font-size: 1rem;
        text-align: center;
    }
    .page-khuyen-mai__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    /* Buttons mobile adaptation */
    .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-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;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-khuyen-mai__hero-cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* Module 1 (Intro Section) */
    .page-khuyen-mai__intro-section {
        padding: 50px 0;
    }
    .page-khuyen-mai__icon-boxes {
        flex-direction: column;
        gap: 20px;
    }
    .page-khuyen-mai__icon-box {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 20px;
    }
    .page-khuyen-mai__icon-box-media {
        width: 120px; /* Smaller square for mobile */
        height: 120px;
        margin-bottom: 15px;
        border-width: 3px;
    }
    .page-khuyen-mai__icon-box-title {
        font-size: 1.3rem;
    }
    .page-khuyen-mai__icon-box-text {
        font-size: 0.95rem;
    }

    /* Promo Section */
    .page-khuyen-mai__promo-section {
        padding: 50px 0;
    }
    .page-khuyen-mai__promo-grid {
        grid-template-columns: 1fr; /* Single column for promos */
        gap: 20px;
    }
    .page-khuyen-mai__promo-image {
        height: 180px; /* Smaller fixed height for mobile */
    }
    .page-khuyen-mai__promo-title {
        font-size: 1.25rem;
    }
    .page-khuyen-mai__promo-text {
        font-size: 0.95rem;
    }
    
    /* Benefits Section */
    .page-khuyen-mai__benefits-section {
        padding: 50px 0;
    }
    .page-khuyen-mai__benefit-items {
        flex-direction: column;
        gap: 20px;
    }
    .page-khuyen-mai__benefit-item {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 20px;
    }
    .page-khuyen-mai__benefit-icon {
        height: 150px;
    }
    .page-khuyen-mai__benefit-title {
        font-size: 1.3rem;
    }
    .page-khuyen-mai__benefit-text {
        font-size: 0.95rem;
    }

    /* Full Width CTA Section */
    .page-khuyen-mai__cta-full-width-section {
        padding: 50px 0;
    }
    .page-khuyen-mai__cta-full-width-title {
        font-size: 1.8rem;
    }
    .page-khuyen-mai__cta-full-width-description {
        font-size: 1rem;
    }

    /* FAQ Section */
    .page-khuyen-mai__faq-section {
        padding: 50px 0;
    }
    .page-khuyen-mai__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-khuyen-mai__faq-toggle {
        font-size: 1.5rem;
    }
    .page-khuyen-mai__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* General image responsiveness for content area */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Exception for square images in intro section */
    .page-khuyen-mai__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}