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

/* Base styles for the page content */
.page-khuynmi {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--background-color); /* Page background */
}

.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);
    color: var(--text-main);
}

.page-khuynmi__light-bg {
    background-color: var(--text-main);
    color: var(--dark-text-on-light);
}

.page-khuynmi__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold-color); /* Use gold for titles for contrast */
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

/* Hero Section */
.page-khuynmi__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    overflow: hidden;
}

.page-khuynmi__hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.page-khuynmi__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-khuynmi__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-khuynmi__hero-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

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

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

/* Buttons */
.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: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuynmi__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text on dark gradient */
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 15px var(--glow-color), inset 0 0 8px rgba(255, 255, 255, 0.3);
}

.page-khuynmi__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--glow-color), inset 0 0 12px rgba(255, 255, 255, 0.5);
}

.page-khuynmi__btn-secondary {
    background-color: transparent;
    color: var(--glow-color); /* Green text on transparent */
    border: 2px solid var(--glow-color);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.2);
}

.page-khuynmi__btn-secondary:hover {
    background-color: rgba(var(--glow-color), 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--glow-color), inset 0 0 12px rgba(255, 255, 255, 0.3);
}

.page-khuynmi__btn-small {
    padding: 10px 20px;
    font-size: 0.95em;
    min-width: auto;
}

/* Promotions List */
.page-khuynmi__promotions-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);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

.page-khuynmi__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color);
}

.page-khuynmi__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-khuynmi__card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--gold-color);
    margin: 20px 20px 10px 20px;
}

.page-khuynmi__card-text {
    font-size: 1em;
    color: var(--text-secondary);
    margin: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-khuynmi__card .page-khuynmi__btn-primary {
    margin: 0 20px 20px 20px;
    align-self: flex-start;
}

/* How to Claim Section */
.page-khuynmi__how-to-claim {
    background-color: var(--text-main);
    color: var(--dark-text-on-light);
}

.page-khuynmi__how-to-claim .page-khuynmi__section-title {
    color: var(--deep-green);
}

.page-khuynmi__how-to-claim .page-khuynmi__section-description {
    color: var(--dark-text-on-light);
}

.page-khuynmi__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-khuynmi__step-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e0e0e0;
}

.page-khuynmi__step-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.page-khuynmi__step-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--deep-green);
    margin-bottom: 10px;
}

.page-khuynmi__step-text {
    font-size: 0.95em;
    color: var(--dark-text-on-light);
}

.page-khuynmi__cta-bottom {
    margin-top: 60px;
    text-align: center;
}

/* Terms & Conditions Section */
.page-khuynmi__terms-conditions {
    text-align: left;
}

.page-khuynmi__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-khuynmi__terms-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.page-khuynmi__terms-subtitle {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
}

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

.page-khuynmi__terms-disclaimer {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 30px;
    text-align: center;
}

/* FAQ Section */
.page-khuynmi__faq-section {
    text-align: left;
}

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

.page-khuynmi__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--dark-text-on-light);
}

.page-khuynmi__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--deep-green);
    transition: background-color 0.3s ease;
    list-style: none;
}

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

.page-khuynmi__faq-item[open] > .page-khuynmi__faq-question {
    background-color: #f5f5f5;
}

.page-khuynmi__faq-question:hover {
    background-color: #f9f9f9;
}

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

.page-khuynmi__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
}

.page-khuynmi__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--dark-text-on-light);
}

/* Final CTA Section */
.page-khuynmi__cta-final-section {
    padding: 80px 0;
}

.page-khuynmi__final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Contrast Fixes */
.page-khuynmi__text-contrast-fix {
    color: var(--dark-text-on-light) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuynmi__hero-content {
        padding: 30px 15px;
    }
    .page-khuynmi__hero-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-khuynmi__section-title {
        font-size: 2em;
    }
    .page-khuynmi__promotions-grid,
    .page-khuynmi__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-khuynmi {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-khuynmi__section {
        padding: 40px 0;
    }
    .page-khuynmi__hero-section {
        padding-bottom: 40px;
    }
    .page-khuynmi__hero-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-khuynmi__section-title {
        font-size: 1.8em;
    }
    .page-khuynmi__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-khuynmi__hero-cta-buttons,
    .page-khuynmi__final-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-khuynmi__btn-primary,
    .page-khuynmi__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-khuynmi__container,
    .page-khuynmi__card,
    .page-khuynmi__step-card,
    .page-khuynmi__faq-item,
    .page-khuynmi__terms-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-khuynmi__promotions-grid,
    .page-khuynmi__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-khuynmi img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-khuynmi__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-khuynmi__card-image {
        height: 180px;
    }
    .page-khuynmi__step-image {
        height: 150px;
    }
    .page-khuynmi__faq-question {
        font-size: 1.05em;
        padding: 15px 20px;
    }
    .page-khuynmi__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-khuynmi__section-title {
        font-size: 1.5em;
    }
    .page-khuynmi__hero-description {
        font-size: 0.95em;
    }
    .page-khuynmi__card-title {
        font-size: 1.3em;
    }
    .page-khuynmi__step-title {
        font-size: 1.2em;
    }
}