/* General styles for the promotions page */
.page-khuynmi {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-khuynmi__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding for hero section, body handles header offset */
    background-color: #08160F; /* Deep Green background for hero */
    overflow: hidden;
}

.page-khuynmi__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.page-khuynmi__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px; /* Ensure hero image is not too small */
}

.page-khuynmi__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.page-khuynmi__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-khuynmi__intro-text {
    font-size: 1.15rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Section Styling */
.page-khuynmi__section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
    border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-khuynmi__section:last-of-type {
    border-bottom: none;
}

.page-khuynmi__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.page-khuynmi__text-block {
    font-size: 1rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    text-align: justify;
}

.page-khuynmi__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

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

.page-khuynmi__card {
    background-color: #11271B; /* Card B G */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #2E7A4E; /* Border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-khuynmi__card-title {
    font-size: 1.5rem;
    color: #2AD16F; /* A lighter green for titles */
    margin-bottom: 20px;
    font-weight: 700;
    text-align: left;
}

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

.page-khuynmi__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.page-khuynmi__list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #F2FFF6; /* Text Main */
}

.page-khuynmi__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #57E38D; /* Glow */
}

.page-khuynmi__list--columns {
    columns: 1;
    margin-top: 20px;
}

.page-khuynmi__list--columns li {
    break-inside: avoid-column;
}

/* Buttons */
.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuynmi__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__btn-primary--large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.page-khuynmi__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Primary color for text */
    border: 2px solid #2AD16F; /* Primary color for border */
}

.page-khuynmi__btn-secondary:hover {
    background-color: #2AD16F; /* Primary color */
    color: #F2FFF6; /* Text Main */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__card .page-khuynmi__btn-primary,
.page-khuynmi__card .page-khuynmi__btn-secondary {
    margin-top: auto;
    width: 100%;
}

/* How To Join Section */
.page-khuynmi__steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.page-khuynmi__steps-list li {
    background-color: #11271B; /* Card B G */
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 70px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid #2E7A4E; /* Border */
}

.page-khuynmi__steps-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2AD16F; /* A lighter green */
    color: #08160F; /* Background */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.page-khuynmi__steps-list li strong {
    color: #F2C14E; /* Gold */
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.page-khuynmi__steps-list li p {
    margin: 0;
    color: #A7D9B8; /* Text Secondary */
}

.page-khuynmi__steps-list li a {
    color: #57E38D; /* Glow */
    text-decoration: none;
    font-weight: bold;
}

.page-khuynmi__steps-list li a:hover {
    text-decoration: underline;
}

.page-khuynmi__cta-banner {
    position: relative;
    margin-top: 50px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #11271B; /* Card B G */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #2E7A4E; /* Border */
}

.page-khuynmi__cta-banner-content {
    padding: 30px;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-khuynmi__cta-banner-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 700;
}

.page-khuynmi__cta-banner-text {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 25px;
}

/* FAQ Section */
.page-khuynmi__faq-list {
    margin-top: 40px;
}

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

.page-khuynmi__faq-item[open] {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #F2FFF6; /* Text Main */
    list-style: none;
    position: relative;
}

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

.page-khuynmi__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: #2AD16F; /* A lighter green */
    transition: transform 0.3s ease;
}

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

.page-khuynmi__faq-answer {
    padding: 0 25px 20px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 1rem;
    line-height: 1.7;
    max-height: 0; /* For smooth transition if JS-based */
    overflow: hidden; /* For smooth transition if JS-based */
    transition: max-height 0.3s ease-out;
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-answer {
    max-height: 500px; /* Adjust as needed */
    transition: max-height 0.5s ease-in;
}

.page-khuynmi__faq-answer p {
    margin: 0;
}

/* Final CTA */
.page-khuynmi__cta-final {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Styles */
@media (min-width: 769px) {
    .page-khuynmi__list--columns {
        columns: 2;
        column-gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-khuynmi__container {
        padding: 15px;
    }

    .page-khuynmi__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-khuynmi__main-title {
        font-size: 2.2rem;
    }

    .page-khuynmi__intro-text {
        font-size: 1rem;
    }

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

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

    .page-khuynmi__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

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

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

    .page-khuynmi__steps-list li {
        padding: 20px 20px 20px 60px;
    }

    .page-khuynmi__steps-list li::before {
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .page-khuynmi__cta-banner-content {
        padding: 20px;
    }

    .page-khuynmi__cta-banner-title {
        font-size: 1.8rem;
    }

    .page-khuynmi__cta-banner-text {
        font-size: 0.95rem;
    }

    .page-khuynmi__faq-question {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .page-khuynmi__faq-answer {
        padding: 0 20px 18px;
        font-size: 0.95rem;
    }

    /* Images and containers responsiveness */
    .page-khuynmi img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-khuynmi__hero-image-wrapper,
    .page-khuynmi__image,
    .page-khuynmi__card-image,
    .page-khuynmi__cta-banner,
    .page-khuynmi__section,
    .page-khuynmi__card,
    .page-khuynmi__container,
    .page-khuynmi__promo-grid,
    .page-khuynmi__steps-list,
    .page-khuynmi__cta-banner-content,
    .page-khuynmi__faq-list,
    .page-khuynmi__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-khuynmi__section,
    .page-khuynmi__card,
    .page-khuynmi__faq-item {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-khuynmi__section {
        padding: 40px 0;
    }
}