/* style/khuynmi.css */

/* Base styles for the page */
.page-khuynmi {
    font-family: Arial, sans-serif;
    color: var(--text-main-color, #F2FFF6); /* Default text color from custom palette */
    background-color: var(--background-color, #08160F); /* Default background color from custom palette */
    line-height: 1.6;
}

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

.page-khuynmi__section {
    padding: 60px 0;
    text-align: center;
}

.page-khuynmi__dark-bg {
    background-color: var(--background-color, #08160F);
    color: var(--text-main-color, #F2FFF6);
}

.page-khuynmi__light-bg {
    background-color: #11271B; /* Card BG used as lighter section background */
    color: var(--text-main-color, #F2FFF6);
}

.page-khuynmi__section-title,
.page-khuynmi__sub-title,
.page-khuynmi__card-title,
.page-khuynmi__feature-title,
.page-khuynmi__vip-title,
.page-khuynmi__step-title,
.page-khuynmi__cta-title {
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-khuynmi__section-title {
    font-size: 2.5em;
}

.page-khuynmi__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
}

.page-khuynmi__text-block,
.page-khuynmi__description,
.page-khuynmi__card-text,
.page-khuynmi__feature-description,
.page-khuynmi__vip-description,
.page-khuynmi__step-description,
.page-khuynmi__cta-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-secondary-color, #A7D9B8);
}

.page-khuynmi__text-block a,
.page-khuynmi__description a,
.page-khuynmi__card-text a,
.page-khuynmi__feature-description a,
.page-khuynmi__vip-description a,
.page-khuynmi__step-description a,
.page-khuynmi__cta-description a {
    color: var(--glow-color, #57E38D);
    text-decoration: underline;
}

/* Hero Section */
.page-khuynmi__hero-section {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-khuynmi__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

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

.page-khuynmi__hero-content {
    max-width: 900px;
    padding: 0 20px 60px;
    text-align: center;
}

.page-khuynmi__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    margin-bottom: 20px;
    color: var(--text-main-color, #F2FFF6);
}

.page-khuynmi__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-secondary-color, #A7D9B8);
}

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

.page-khuynmi__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
}

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

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

.page-khuynmi__btn-secondary:hover {
    background-color: var(--glow-color, #57E38D);
    color: #08160F;
    transform: translateY(-2px);
}

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

.page-khuynmi__card {
    background-color: var(--card-bg-color, #11271B);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--border-color, #2E7A4E);
}

.page-khuynmi__card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-khuynmi__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-main-color, #F2FFF6);
}

.page-khuynmi__card-text {
    color: var(--text-secondary-color, #A7D9B8);
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Feature List */
.page-khuynmi__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-khuynmi__feature-item {
    background-color: var(--card-bg-color, #11271B);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color, #2E7A4E);
}

.page-khuynmi__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: none; /* Ensure no filter changes image color */
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px;
}

.page-khuynmi__feature-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--text-main-color, #F2FFF6);
}

.page-khuynmi__feature-description {
    color: var(--text-secondary-color, #A7D9B8);
}

/* Image Full Width */
.page-khuynmi__image-full-width {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* VIP Features */
.page-khuynmi__vip-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-khuynmi__vip-item {
    background-color: var(--card-bg-color, #11271B);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color, #2E7A4E);
}

.page-khuynmi__vip-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: none; /* Ensure no filter changes image color */
    min-width: 200px;
    min-height: 200px;
}

.page-khuynmi__vip-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--text-main-color, #F2FFF6);
}

.page-khuynmi__vip-description {
    color: var(--text-secondary-color, #A7D9B8);
}

/* Steps List */
.page-khuynmi__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-khuynmi__steps-list li {
    background-color: var(--card-bg-color, #11271B);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color, #2E7A4E);
    position: relative;
    padding-left: 60px;
}

.page-khuynmi__steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 25px;
    background-color: var(--glow-color, #57E38D);
    color: #08160F;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.page-khuynmi__step-title {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--text-main-color, #F2FFF6);
}

.page-khuynmi__step-description {
    font-size: 1em;
    margin-bottom: 0;
    color: var(--text-secondary-color, #A7D9B8);
}

/* FAQ List */
.page-khuynmi__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-khuynmi__faq-item {
    background-color: var(--card-bg-color, #11271B);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color, #2E7A4E);
    overflow: hidden;
}

.page-khuynmi__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    color: var(--text-main-color, #F2FFF6);
    list-style: none;
}

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

.page-khuynmi__faq-qtext {
    flex-grow: 1;
    color: var(--text-main-color, #F2FFF6);
}

.page-khuynmi__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--glow-color, #57E38D);
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-toggle {
    content: '−';
}

.page-khuynmi__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary-color, #A7D9B8);
    font-size: 1em;
}

/* CTA Section */
.page-khuynmi__cta-section {
    padding: 80px 0;
    background-color: var(--deep-green-color, #0A4B2C);
}

.page-khuynmi__cta-title {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: var(--text-main-color, #F2FFF6);
}

.page-khuynmi__cta-description {
    font-size: 1.15em;
    margin-bottom: 40px;
    color: var(--text-secondary-color, #A7D9B8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-khuynmi__container,
    .page-khuynmi__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-khuynmi__section {
        padding: 40px 0;
    }

    .page-khuynmi__section-title {
        font-size: 2em;
    }

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

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

    .page-khuynmi__card-title,
    .page-khuynmi__feature-title,
    .page-khuynmi__vip-title,
    .page-khuynmi__step-title {
        font-size: 1.3em;
    }

    .page-khuynmi__text-block,
    .page-khuynmi__description,
    .page-khuynmi__card-text,
    .page-khuynmi__feature-description,
    .page-khuynmi__vip-description,
    .page-khuynmi__step-description,
    .page-khuynmi__cta-description {
        font-size: 1em;
    }

    /* Images responsive */
    .page-khuynmi img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-khuynmi__hero-section,
    .page-khuynmi__section,
    .page-khuynmi__card,
    .page-khuynmi__container,
    .page-khuynmi__hero-image-wrapper,
    .page-khuynmi__card-grid,
    .page-khuynmi__feature-list,
    .page-khuynmi__vip-features,
    .page-khuynmi__cta-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }

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

    /* Buttons responsive */
    .page-khuynmi__btn-primary,
    .page-khuynmi__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        margin-bottom: 10px; /* Add some space between stacked buttons */
    }
    .page-khuynmi__hero-content .page-khuynmi__btn-primary {
        width: auto !important; /* Allow hero button to adapt to content, not full width */
        max-width: none !important;
    }

    .page-khuynmi__steps-list li {
        padding-left: 50px;
    }

    .page-khuynmi__steps-list li::before {
        left: 15px;
        top: 20px;
        width: 25px;
        height: 25px;
        font-size: 1em;
    }

    .page-khuynmi__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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

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