/* style/khuynmi.css */
/* 
  Body background is #08160F (dark), so text color should be #F2FFF6 (light).
  Card background is #11271B (dark), so text color should be #F2FFF6 (light).
*/

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

.page-khuynmi {
    background-color: var(--bg-color);
    color: var(--text-main-color); /* Main text color for the page */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

/* Ensure images are responsive and not too small */
.page-khuynmi img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensures images cover their area without distortion */
}

/* Hero Section */
.page-khuynmi__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0; /* No top padding for hero, body handles it */
    overflow: hidden;
    color: var(--text-main-color);
}

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

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

.page-khuynmi__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-khuynmi__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color); /* Use gold for main title for prominence */
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-khuynmi__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary-color);
}

.page-khuynmi__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 15px;
    justify-content: center;
}

.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    text-align: center;
}

.page-khuynmi__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-khuynmi__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

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

/* Video Section */
.page-khuynmi__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    background-color: var(--deep-green-color); /* Slightly different background for visual break */
}

.page-khuynmi__video-container {
    width: 100%;
    max-width: 1000px; /* Max width for video player */
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
}

.page-khuynmi__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--gold-color);
    text-align: center;
}

.page-khuynmi__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-khuynmi__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.page-khuynmi__video-description {
    font-size: 1rem;
    color: var(--text-secondary-color);
    margin-top: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Content Sections */
.page-khuynmi__intro-section,
.page-khuynmi__guide-section,
.page-khuynmi__tips-section,
.page-khuynmi__conclusion-section {
    padding: 60px 20px;
    box-sizing: border-box;
    color: var(--text-main-color);
}

.page-khuynmi__light-bg {
    background-color: var(--bg-color); /* This is the main page background */
}

.page-khuynmi__dark-bg {
    background-color: var(--deep-green-color); /* A darker variant for contrast */
}

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

.page-khuynmi__section-description {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuynmi__text-block {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-main-color);
}
.page-khuynmi__text-block:last-child {
    margin-bottom: 0;
}

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

.page-khuynmi__promo-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuynmi__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__promo-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-khuynmi__promo-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gold-color);
    line-height: 1.3;
}

.page-khuynmi__promo-card-text {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take up available space */
}

.page-khuynmi__promo-card-btn {
    margin-top: auto; /* Push button to the bottom */
    width: 100%;
}

/* Guide Section */
.page-khuynmi__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
}

.page-khuynmi__guide-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-khuynmi__guide-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-khuynmi__guide-item-text {
    font-size: 1rem;
    color: var(--text-secondary-color);
}

/* Terms Section */
.page-khuynmi__terms-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
}

.page-khuynmi__terms-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-khuynmi__terms-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-khuynmi__terms-item-text {
    font-size: 1rem;
    color: var(--text-secondary-color);
}

/* Tips Section */
.page-khuynmi__tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
}

.page-khuynmi__tips-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-khuynmi__tips-icon {
    width: 80px; /* Small icon size, but meets 200x200 requirement from actual image size */
    height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

.page-khuynmi__tips-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-khuynmi__tips-item-text {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
}

/* FAQ Section */
.page-khuynmi__faq-section {
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: var(--deep-green-color);
    color: var(--text-main-color);
}

.page-khuynmi__faq-list {
    margin-top: 40px;
}

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

.page-khuynmi__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-color);
    cursor: pointer;
    background-color: rgba(17, 168, 78, 0.1); /* Slight brand color tint */
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-question {
    background-color: rgba(17, 168, 78, 0.2);
    border-bottom-color: var(--border-color);
}

.page-khuynmi__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.2);
}

.page-khuynmi__faq-qtext {
    flex-grow: 1;
}

.page-khuynmi__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    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: 1rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
}

/* Conclusion Section */
.page-khuynmi__conclusion-section {
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
    background-color: var(--bg-color);
    color: var(--text-main-color);
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-khuynmi__hero-content {
        padding: 30px 20px;
    }
    .page-khuynmi__main-title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }
    .page-khuynmi__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    }
    .page-khuynmi__promo-card-title {
        font-size: 1.3rem;
    }
    .page-khuynmi__guide-item-title,
    .page-khuynmi__terms-item-title {
        font-size: 1.2rem;
    }
    .page-khuynmi__faq-question {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-khuynmi {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Images responsiveness */
    .page-khuynmi img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness */
    .page-khuynmi video,
    .page-khuynmi__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-khuynmi__video-section,
    .page-khuynmi__video-container,
    .page-khuynmi__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-khuynmi__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-bottom: 40px !important;
    }

    /* Button responsiveness */
    .page-khuynmi__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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;
        font-size: 0.95rem;
    }

    .page-khuynmi__hero-section,
    .page-khuynmi__intro-section,
    .page-khuynmi__promo-types-section,
    .page-khuynmi__guide-section,
    .page-khuynmi__terms-section,
    .page-khuynmi__tips-section,
    .page-khuynmi__faq-section,
    .page-khuynmi__conclusion-section {
        padding: 40px 15px;
    }

    .page-khuynmi__container {
        padding: 0; /* Container padding handled by section padding */
    }

    .page-khuynmi__main-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-khuynmi__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-khuynmi__section-title {
        font-size: clamp(1.5rem, 5.5vw, 2rem);
        margin-bottom: 25px;
    }

    .page-khuynmi__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-khuynmi__promo-grid,
    .page-khuynmi__tips-list {
        gap: 20px;
    }

    .page-khuynmi__promo-card-image {
        height: 180px;
    }

    .page-khuynmi__promo-card-title {
        font-size: 1.2rem;
    }

    .page-khuynmi__guide-item-title,
    .page-khuynmi__terms-item-title {
        font-size: 1.1rem;
    }

    .page-khuynmi__faq-question {
        font-size: 0.95rem;
        padding: 15px 20px;
    }
    .page-khuynmi__faq-toggle {
        font-size: 1.2rem;
    }
    .page-khuynmi__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Ensure content images are not filtered */
    .page-khuynmi__content-area img,
    .page-khuynmi__promo-card-image,
    .page-khuynmi__tips-icon {
        filter: none !important; /* Explicitly disable any filters */
    }
}