/* style/khuynmi.css */

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

.page-khuynmi {
    font-family: 'Arial', sans-serif; /* Example font, actual font from shared.css */
    color: var(--text-main-color); /* Default text color for the page */
    background-color: var(--background-color); /* Default background for the page */
    line-height: 1.6;
    font-size: 16px;
}

/* Ensure all images are responsive by default */
.page-khuynmi img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Section */
.page-khuynmi__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically */
    text-align: center;
    color: var(--text-main-color);
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-khuynmi__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    /* No filter to change color */
}

.page-khuynmi__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    margin-top: 50px; /* Push content down slightly from top of image */
    margin-bottom: 50px;
}

.page-khuynmi__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold-color); /* Using gold for main title */
    line-height: 1.2;
}

.page-khuynmi__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuynmi__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--button-text-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-khuynmi__section {
    padding: 60px 0;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--divider-color);
}

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

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

.page-khuynmi__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Subtle glow */
}

.page-khuynmi__text-block {
    margin-bottom: 20px;
    color: var(--text-main-color);
    text-align: justify;
}

/* Promotion Types Grid */
.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: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main-color); /* Ensure card text is readable */
}

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

.page-khuynmi__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for visual consistency */
    object-fit: cover;
    /* No filter to change color */
}

.page-khuynmi__promo-card .page-khuynmi__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 20px 10px 20px;
    color: var(--gold-color);
}

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

.page-khuynmi__promo-card .page-khuynmi__btn-secondary {
    display: inline-block;
    background: var(--deep-green-color); /* Use deep green for secondary buttons */
    color: var(--text-main-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--primary-color);
    margin: 0 20px 20px 20px;
    text-align: center;
}

.page-khuynmi__promo-card .page-khuynmi__btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

/* Lists */
.page-khuynmi__list,
.page-khuynmi__steps-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.page-khuynmi__list-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    color: var(--text-main-color);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.page-khuynmi__list-item::before {
    content: '✅'; /* Checkmark icon */
    font-size: 1.2em;
    line-height: 1;
    color: var(--glow-color);
    flex-shrink: 0;
}

.page-khuynmi__steps-list .page-khuynmi__list-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    color: var(--text-main-color);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.page-khuynmi__steps-list .page-khuynmi__list-item:nth-child(1)::before { content: '1.'; }
.page-khuynmi__steps-list .page-khuynmi__list-item:nth-child(2)::before { content: '2.'; }
.page-khuynmi__steps-list .page-khuynmi__list-item:nth-child(3)::before { content: '3.'; }
.page-khuynmi__steps-list .page-khuynmi__list-item:nth-child(4)::before { content: '4.'; }
.page-khuynmi__steps-list .page-khuynmi__list-item:nth-child(5)::before { content: '5.'; }


/* Secondary Button */
.page-khuynmi__btn-primary {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--button-text-color);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.page-khuynmi__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-1px);
}

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

.page-khuynmi__faq-item {
    background-color: var(--card-bg-color);
    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: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main-color);
    cursor: pointer;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for summary */
}

.page-khuynmi__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-khuynmi__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'minus' effect */
}

.page-khuynmi__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    background-color: var(--card-bg-color);
}

/* CTA Group in Conclusion */
.page-khuynmi__cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Links within text */
.page-khuynmi__text-block a,
.page-khuynmi__list-item a,
.page-khuynmi__faq-answer a {
    color: var(--gold-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-khuynmi__text-block a:hover,
.page-khuynmi__list-item a:hover,
.page-khuynmi__faq-answer a:hover {
    color: var(--glow-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-khuynmi__hero-content {
        padding: 30px 15px;
    }

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

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

    .page-khuynmi__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

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

    /* Mobile image responsiveness */
    .page-khuynmi img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness - no video in this page, but keeping for completeness if it were */
    .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;
    }

    /* Mobile button responsiveness */
    .page-khuynmi__cta-button,
    .page-khuynmi__btn-primary,
    .page-khuynmi__btn-secondary,
    .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__cta-group,
    .page-khuynmi__button-group,
    .page-khuynmi__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px; /* Space between stacked buttons */
        overflow: hidden !important;
    }


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

    .page-khuynmi__hero-content {
        padding: 20px 10px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

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

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

    .page-khuynmi__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

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

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

    .page-khuynmi__promo-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 25px;
    }

    .page-khuynmi__promo-image {
        height: 180px; /* Adjust height for smaller screens */
    }

    .page-khuynmi__promo-card .page-khuynmi__card-title {
        font-size: 1.3rem;
        margin: 15px 15px 8px 15px;
    }

    .page-khuynmi__promo-card .page-khuynmi__card-description {
        margin: 0 15px 15px 15px;
    }

    .page-khuynmi__promo-card .page-khuynmi__btn-secondary {
        margin: 0 15px 15px 15px;
    }

    .page-khuynmi__list-item {
        padding: 12px 15px;
        margin-bottom: 10px;
    }

    .page-khuynmi__faq-question {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .page-khuynmi__faq-answer {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-khuynmi__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .page-khuynmi__section-title {
        font-size: 1.6rem;
    }
}