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

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

.page-khuynmi__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

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

.page-khuynmi__container--flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-khuynmi__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-khuynmi__section-description {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-khuynmi__sub-title {
    font-size: clamp(22px, 3vw, 30px);
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-khuynmi__text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.page-khuynmi__list-item {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.page-khuynmi__list-icon {
    color: var(--gold-color);
    margin-right: 10px;
    font-size: 20px;
    line-height: 1;
}

/* Hero Section */
.page-khuynmi__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--body-bg);
}

.page-khuynmi__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
}

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

.page-khuynmi__hero-content {
    max-width: 900px;
    padding: 40px 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    margin-top: -80px; /* Overlap with image slightly */
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-color);
}

.page-khuynmi__main-title {
    font-size: clamp(32px, 5vw, 50px);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

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

.page-khuynmi__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary,
.page-khuynmi__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
}

.page-khuynmi__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-khuynmi__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

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

.page-khuynmi__btn-tertiary {
    background-color: var(--deep-green-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-size: 15px;
}

.page-khuynmi__btn-tertiary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Promotion Grid */
.page-khuynmi__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-khuynmi__promotion-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-khuynmi__promotion-card:hover {
    transform: translateY(-5px);
}

.page-khuynmi__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-khuynmi__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-khuynmi__card-list li {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.page-khuynmi__card-list li::before {
    content: '✓';
    color: var(--glow-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* VIP Program */
.page-khuynmi__vip-program {
    background-color: var(--deep-green-color);
}

.page-khuynmi__vip-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-khuynmi__vip-details {
    flex: 1;
}

.page-khuynmi__vip-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-khuynmi__vip-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Guide Steps */
.page-khuynmi__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-khuynmi__step-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-khuynmi__step-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--glow-color);
    margin-bottom: 15px;
    display: block;
}

.page-khuynmi__step-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* FAQ Section */
.page-khuynmi__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-khuynmi__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-khuynmi__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-khuynmi__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-khuynmi__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: var(--glow-color);
    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 25px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

/* Call to Action */
.page-khuynmi__call-to-action {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(to right, var(--deep-green-color), var(--primary-color));
}

.page-khuynmi__cta-content {
    flex: 1;
    text-align: left;
}

.page-khuynmi__cta-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.page-khuynmi__cta-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-khuynmi__cta-title {
    font-size: clamp(28px, 4vw, 40px);
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-khuynmi__cta-description {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 40px;
    line-height: 1.7;
}

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

/* Global Image/Video/Button Responsiveness */
.page-khuynmi img,
.page-khuynmi video {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-khuynmi__hero-image-wrapper,
.page-khuynmi__vip-image-wrapper,
.page-khuynmi__cta-image-wrapper,
.page-khuynmi__promotion-card,
.page-khuynmi__step-card,
.page-khuynmi__hero-cta-buttons,
.page-khuynmi__cta-buttons,
.page-khuynmi__promotion-grid,
.page-khuynmi__guide-steps,
.page-khuynmi__faq-list {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .page-khuynmi__section {
        padding: 40px 0;
    }

    .page-khuynmi__container {
        padding: 0 15px;
    }

    .page-khuynmi__container--flex {
        flex-direction: column;
        text-align: center;
    }

    .page-khuynmi__cta-content {
        text-align: center;
    }

    .page-khuynmi__cta-buttons {
        justify-content: center;
    }

    .page-khuynmi__hero-content {
        margin-top: -40px;
        padding: 30px 15px;
    }

    .page-khuynmi__main-title {
        font-size: 30px;
    }

    .page-khuynmi__hero-description {
        font-size: 16px;
    }

    .page-khuynmi__section-title {
        font-size: 28px;
    }

    .page-khuynmi__section-description {
        font-size: 16px;
    }

    .page-khuynmi__promotion-grid,
    .page-khuynmi__guide-steps {
        grid-template-columns: 1fr;
    }

    .page-khuynmi__vip-content {
        flex-direction: column-reverse;
    }

    .page-khuynmi__vip-image-wrapper,
    .page-khuynmi__cta-image-wrapper {
        justify-content: center;
        order: -1; /* Image first on mobile */
        margin-bottom: 30px;
    }

    .page-khuynmi img,
    .page-khuynmi video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-khuynmi__section,
    .page-khuynmi__card,
    .page-khuynmi__container,
    .page-khuynmi__hero-section,
    .page-khuynmi__vip-program,
    .page-khuynmi__guide-promotions,
    .page-khuynmi__faq-section,
    .page-khuynmi__call-to-action,
    .page-khuynmi__promotion-card,
    .page-khuynmi__step-card,
    .page-khuynmi__faq-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    .page-khuynmi__hero-section {
        padding-top: 10px !important; /* body đã có padding-top */
    }

    .page-khuynmi__btn-primary,
    .page-khuynmi__btn-secondary,
    .page-khuynmi__btn-tertiary,
    .page-khuynmi a[class*="button"],
    .page-khuynmi 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-khuynmi__hero-cta-buttons,
    .page-khuynmi__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-khuynmi__faq-answer {
        font-size: 14px;
        padding: 0 20px 15px 20px;
    }
}