/* style/khuynmi.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-khuynmi {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background-color-page); /* Page specific background */
}

/* General Section Styling */
.page-khuynmi__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-khuynmi__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-khuynmi__section-title {
    font-size: 2.8em;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 25px;
    line-height: 1.2;
}

.page-khuynmi__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-khuynmi__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body already handles --header-offset, small top padding */
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

.page-khuynmi__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-khuynmi__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-khuynmi__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly for visual effect, but not over image itself */
    background-color: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-50px);
}

.page-khuynmi__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 900;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-khuynmi__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-khuynmi__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    width: auto; /* Default for desktop */
}

.page-khuynmi__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-khuynmi__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color);
}

.page-khuynmi__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-khuynmi__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--background-color-page);
    transform: translateY(-3px);
}

.page-khuynmi__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-khuynmi__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Promo Categories Section */
.page-khuynmi__promo-categories {
    background-color: var(--background-color-page);
}

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

.page-khuynmi__card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-khuynmi__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-color);
}

.page-khuynmi__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
}

.page-khuynmi__card-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.4;
}

.page-khuynmi__card-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* How to Claim Section */
.page-khuynmi__how-to-claim {
    background-color: #0d1e16;
}

.page-khuynmi__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-khuynmi__step-item {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-khuynmi__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--gold-color);
    background-color: var(--deep-green);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.4);
}

.page-khuynmi__step-title {
    font-size: 1.3em;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-khuynmi__step-description {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-khuynmi__image-center {
    margin-top: 50px;
    text-align: center;
}

.page-khuynmi__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

/* Terms and Conditions Section */
.page-khuynmi__terms-conditions {
    background-color: var(--deep-green);
}

.page-khuynmi__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuynmi__list-item {
    font-size: 1.05em;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.7;
    position: relative;
    padding-left: 30px;
}

.page-khuynmi__list-item::before {
    content: '✓';
    color: var(--gold-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-khuynmi__list--numbered {
    list-style: decimal;
    padding-left: 25px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuynmi__list--numbered .page-khuynmi__list-item::before {
    content: none;
}

/* Why Choose Section */
.page-khuynmi__why-choose {
    background-color: #0d1e16;
}

/* FAQ Section */
.page-khuynmi__faq-section {
    background-color: var(--background-color-page);
}

.page-khuynmi__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-khuynmi__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.page-khuynmi__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* For details/summary */
}

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

.page-khuynmi__faq-question:hover {
    background-color: var(--primary-color);
}

.page-khuynmi__faq-toggle {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-khuynmi__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
    background-color: var(--card-bg);
}

/* Final CTA Section */
.page-khuynmi__cta-final {
    background-color: var(--deep-green);
    padding: 80px 0;
}

.page-khuynmi__cta-content {
    max-width: 800px;
}

/* Dark/Light background utility classes for contrast */
.page-khuynmi__dark-bg {
    color: var(--text-main); /* Deep green/dark backgrounds */
    background-color: var(--background-color-page);
}

.page-khuynmi__light-bg {
    color: #333333; /* For sections that might be light */
    background-color: #ffffff;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-khuynmi__section-title {
        font-size: 2.2em;
    }

    .page-khuynmi__hero-content {
        margin-top: -80px;
        transform: translateY(-40px);
        padding: 30px 15px;
    }

    .page-khuynmi__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

    .page-khuynmi__hero-description {
        font-size: 1.1em;
    }

    .page-khuynmi__card-grid {
        gap: 20px;
    }

    .page-khuynmi__steps-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-khuynmi__section {
        padding: 40px 0;
    }

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

    .page-khuynmi__text-block {
        font-size: 1em;
    }

    .page-khuynmi__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-khuynmi__hero-content {
        margin-top: -60px;
        transform: translateY(-30px);
        padding: 25px 10px;
    }

    .page-khuynmi__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-khuynmi__hero-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-khuynmi__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-khuynmi__btn-primary,
    .page-khuynmi__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-khuynmi__btn-large {
        padding: 15px 25px;
        font-size: 1.1em;
    }

    .page-khuynmi__card-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-khuynmi__card-image {
        height: 180px;
    }

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

    .page-khuynmi__card-text {
        font-size: 0.9em;
    }

    .page-khuynmi__steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-khuynmi__list-item {
        font-size: 0.95em;
        padding-left: 25px;
    }

    .page-khuynmi__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-khuynmi__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.9em;
    }

    .page-khuynmi img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-khuynmi__hero-section,
    .page-khuynmi__promo-categories,
    .page-khuynmi__how-to-claim,
    .page-khuynmi__terms-conditions,
    .page-khuynmi__why-choose,
    .page-khuynmi__faq-section,
    .page-khuynmi__cta-final,
    .page-khuynmi__card,
    .page-khuynmi__step-item,
    .page-khuynmi__faq-item,
    .page-khuynmi__container,
    .page-khuynmi__cta-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-khuynmi__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .page-khuynmi__hero-image {
        border-radius: 0;
    }

    .page-khuynmi__hero-content {
        border-radius: 0 0 15px 15px;
    }

    .page-khuynmi__cta-group {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-khuynmi__section-title {
        font-size: 1.6em;
    }

    .page-khuynmi__main-title {
        font-size: clamp(1.6em, 8vw, 2em);
    }

    .page-khuynmi__hero-description {
        font-size: 0.9em;
    }

    .page-khuynmi__card-title {
        font-size: 1.2em;
    }

    .page-khuynmi__step-title {
        font-size: 1.1em;
    }

    .page-khuynmi__faq-question {
        font-size: 0.95em;
    }
}