/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
    background-color: var(--background-color, #08160F); /* Fallback to custom background if shared doesn't define */
    color: #F2FFF6; /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Ensure default text in p and li is readable on this background */
.page-khuyen-mai p,
.page-khuyen-mai li {
    color: #F2FFF6;
}

/* Section padding and max-width for content */
.page-khuyen-mai__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    margin-bottom: 40px;
    background-color: #08160F; /* Ensure hero has a dark background */
}

.page-khuyen-mai__hero-image {
    width: 100%;
    overflow: hidden;
}

.page-khuyen-mai__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for hero image */
}

.page-khuyen-mai__hero-content {
    text-align: center;
    padding: 30px 15px;
    max-width: 900px;
    margin: 0 auto;
}

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

.page-khuyen-mai__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #A7D9B8; /* Secondary text color */
}

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__card-link {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    border: 2px solid transparent;
}

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

.page-khuyen-mai__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Gold text */
    border: 2px solid #F2C14E; /* Gold border */
}

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

/* Section Titles and Descriptions */
.page-khuyen-mai__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold for section titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

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

/* Card Grid for Promotion Types */
.page-khuyen-mai__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-khuyen-mai__card {
    background-color: #11271B; /* Card BG color */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai__card img {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it's a block element */
}

.page-khuyen-mai__card-title {
    font-size: 1.5em;
    color: #F2FFF6;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-khuyen-mai__card-text {
    font-size: 0.95em;
    color: #A7D9B8;
    margin-bottom: 20px;
}

.page-khuyen-mai__card-link {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9em;
}

.page-khuyen-mai__card-link:hover {
    opacity: 0.9;
}

/* Promotion Details Section */
.page-khuyen-mai__details-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green for this section */
}

.page-khuyen-mai__promotion-item {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #2E7A4E;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__promotion-title {
    font-size: 1.8em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-khuyen-mai__promotion-text {
    font-size: 1em;
    color: #F2FFF6;
    margin-bottom: 20px;
}

.page-khuyen-mai__promotion-meta {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-khuyen-mai__promotion-meta li {
    margin-bottom: 8px;
    color: #A7D9B8;
}

.page-khuyen-mai__promotion-meta li strong {
    color: #F2FFF6;
}

/* How to Participate Section */
.page-khuyen-mai__how-to-participate {
    padding: 60px 0;
}

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

.page-khuyen-mai__step-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E;
}

.page-khuyen-mai__step-title {
    font-size: 1.4em;
    color: #F2FFF6;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-khuyen-mai__step-text {
    font-size: 0.95em;
    color: #A7D9B8;
}

.page-khuyen-mai__step-text a {
    color: #2AD16F; /* Link color */
    text-decoration: underline;
}

.page-khuyen-mai__subtitle {
    font-size: 1.8em;
    color: #F2C14E;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-khuyen-mai__list {
    max-width: 800px;
    margin: 0 auto 30px auto;
    list-style: disc;
    padding-left: 25px;
    color: #F2FFF6;
}

.page-khuyen-mai__list li {
    margin-bottom: 10px;
    color: #A7D9B8;
}

/* Benefits Section */
.page-khuyen-mai__benefits-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-khuyen-mai__benefit-item {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E;
}

.page-khuyen-mai__benefit-item img {
    width: 100%;
     /* Fixed height for benefit images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-khuyen-mai__benefit-title {
    font-size: 1.4em;
    color: #F2FFF6;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-khuyen-mai__benefit-text {
    font-size: 0.95em;
    color: #A7D9B8;
}

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

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

.page-khuyen-mai__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.15em;
    color: #F2FFF6;
    font-weight: 600;
    background-color: #11271B;
    position: relative;
    list-style: none; /* Hide default details marker */
}

.page-khuyen-mai__faq-question::-webkit-details-marker {
    display: none;
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #2AD16F; /* Green */
    transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
    transform: rotate(45deg);
}

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

.page-khuyen-mai__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Bottom CTA Section */
.page-khuyen-mai__cta-bottom-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
    text-align: center;
}

.page-khuyen-mai__cta-content {
    max-width: 900px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-khuyen-mai__hero-image img {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-khuyen-mai__hero-section {
        margin-bottom: 30px;
    }

    .page-khuyen-mai__hero-image img {
        max-height: 350px;
    }

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

    .page-khuyen-mai__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-khuyen-mai__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .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;
        padding: 12px 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Long Text / General Content */
    .page-khuyen-mai__container,
    .page-khuyen-mai__section,
    .page-khuyen-mai__card {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    /* Card Grid */
    .page-khuyen-mai__card-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

    .page-khuyen-mai__card img,
    .page-khuyen-mai__benefit-item img,
    .page-khuyen-mai img {
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Promotion Details */
    .page-khuyen-mai__promotion-item {
        padding: 20px;
        margin-bottom: 20px;
    }

    .page-khuyen-mai__promotion-title {
        font-size: 1.5em;
    }

    .page-khuyen-mai__promotion-text,
    .page-khuyen-mai__promotion-meta li {
        font-size: 0.9em;
    }

    /* How to Participate */
    .page-khuyen-mai__steps-grid {
        grid-template-columns: 1fr; /* Single column for steps */
        gap: 20px;
    }

    .page-khuyen-mai__subtitle {
        font-size: 1.5em;
    }

    .page-khuyen-mai__list {
        padding-left: 20px;
        font-size: 0.9em;
    }

    /* Benefits Section */
    .page-khuyen-mai__benefits-grid {
        grid-template-columns: 1fr; /* Single column for benefits */
        gap: 20px;
    }

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

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

    /* Mobile specific adjustments for general text */
    .page-khuyen-mai {
        font-size: 16px;
        line-height: 1.6;
    }
}