/* style/khuynmi.css */

/* Custom Properties for Colors */
:root {
    --primary-color: #F2C14E; /* Main color */
    --secondary-color: #FFD36B; /* Accent color */
    --card-bg: #111111; /* Card Background */
    --site-bg-dark: #0A0A0A; /* Page Background */
    --text-main: #FFF6D6; /* Main text color */
    --border-color: #3A2A12; /* Border color */
    --glow-color: #FFD36B; /* Glow effect color */
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    --text-dark: #333333; /* Dark text for light backgrounds */
    --text-light: #ffffff; /* Light text for dark backgrounds */
}

/* Base styles for the page content */
.page-khuynmi {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Assuming dark body background, use light text */
    background-color: var(--site-bg-dark); /* Explicitly set page background */
    padding-bottom: 50px;
}

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

.page-khuynmi h1,
.page-khuynmi h2,
.page-khuynmi h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.page-khuynmi h1 {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
    line-height: 1.2;
    letter-spacing: 0.5px;
    max-width: 900px; /* Limit H1 width for better readability */
    margin-left: auto;
    margin-right: auto;
}

.page-khuynmi h2 {
    font-size: clamp(24px, 3.5vw, 40px);
    padding-top: 40px;
    margin-bottom: 30px;
}

.page-khuynmi h3 {
    font-size: clamp(20px, 2.5vw, 28px);
}

.page-khuynmi p {
    margin-bottom: 15px;
    text-align: center;
}

.page-khuynmi__dark-bg {
    background-color: var(--site-bg-dark);
    color: var(--text-main);
    padding: 60px 0;
}

.page-khuynmi__medium-bg {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: var(--text-main);
    padding: 60px 0;
}

/* HERO Section */
.page-khuynmi__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure no overflow */
}

.page-khuynmi__hero-container {
    position: relative;
    max-width: 100%; /* Ensure it takes full width of parent */
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-khuynmi__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.page-khuynmi__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 15px;
}

.page-khuynmi__hero-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-main);
}

.page-khuynmi__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--text-dark); /* Dark text for button with light gradient */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* Intro Section */
.page-khuynmi__intro-section p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-main);
}

.page-khuynmi__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-khuynmi__feature-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuynmi__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__feature-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
}

.page-khuynmi__feature-item h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.page-khuynmi__feature-item p {
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.6;
}

/* Promotions List */
.page-khuynmi__promotions-list h2 {
    margin-bottom: 20px;
}

.page-khuynmi__promotions-list > p {
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-main);
}

.page-khuynmi__promo-card {
    display: flex;
    flex-direction: row;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-khuynmi__promo-card img {
    width: 40%;
    height: auto;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
    border-right: 1px solid var(--border-color);
}

.page-khuynmi__card-content {
    padding: 30px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align text to left within card */
    text-align: left;
}

.page-khuynmi__card-content h3 {
    color: var(--primary-color);
    margin-top: 0;
    text-align: left;
    font-size: clamp(18px, 2vw, 24px);
}

.page-khuynmi__card-content p {
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 15px;
}

.page-khuynmi__promo-date {
    font-size: 13px;
    color: #999;
    margin-top: auto; /* Pushes date to bottom */
    text-align: left;
}

.page-khuynmi__card-content .page-khuynmi__cta-button {
    margin-top: 20px;
    padding: 10px 25px;
    font-size: 16px;
}

/* How to Join Section */
.page-khuynmi__how-to-join p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-main);
}

.page-khuynmi__steps-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: left;
}

.page-khuynmi__steps-list li {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-main);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

.page-khuynmi__steps-list li strong {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

/* Terms & Conditions Section */
.page-khuynmi__terms-conditions p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-main);
}

.page-khuynmi__terms-list {
    list-style: disc;
    padding-left: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-main);
    text-align: left;
}

.page-khuynmi__terms-list li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
}

/* FAQ Section */
.page-khuynmi__faq-section h2 {
    margin-bottom: 40px;
}

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

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

details.page-khuynmi__faq-item summary.page-khuynmi__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--primary-color);
    font-weight: 600;
}

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

details.page-khuynmi__faq-item summary.page-khuynmi__faq-question:hover {
    background: #1c1c1c; /* Slightly lighter dark background on hover */
}

.page-khuynmi__faq-qtext {
    flex: 1;
    font-size: 17px;
    line-height: 1.5;
    text-align: left;
}

.page-khuynmi__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-khuynmi__faq-item .page-khuynmi__faq-answer {
    padding: 0 25px 20px;
    background: #0f0f0f; /* Slightly different background for answer */
    border-radius: 0 0 10px 10px;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.6;
}

/* CTA Section */
.page-khuynmi__cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.page-khuynmi__cta-section p {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuynmi__promo-card {
        flex-direction: column;
    }

    .page-khuynmi__promo-card img {
        width: 100%;
        height: 250px;
        border-radius: 10px 10px 0 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .page-khuynmi__card-content {
        width: 100%;
        padding: 25px;
        align-items: center;
        text-align: center;
    }

    .page-khuynmi__card-content h3,
    .page-khuynmi__card-content p,
    .page-khuynmi__promo-date {
        text-align: center;
    }
}

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

    .page-khuynmi__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-khuynmi__hero-image {
        border-radius: 8px;
    }

    .page-khuynmi__hero-image img {
        border-radius: 8px;
    }

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

    .page-khuynmi__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-khuynmi__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-khuynmi h1 {
        font-size: 26px;
    }

    .page-khuynmi h2 {
        font-size: 22px;
        padding-top: 30px;
        margin-bottom: 20px;
    }

    .page-khuynmi h3 {
        font-size: 18px;
    }

    .page-khuynmi__intro-section p,
    .page-khuynmi__promotions-list > p,
    .page-khuynmi__how-to-join p,
    .page-khuynmi__terms-conditions p,
    .page-khuynmi__cta-section p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .page-khuynmi__feature-item {
        padding: 20px;
    }

    .page-khuynmi__feature-item img {
        
    }

    .page-khuynmi__feature-item h3 {
        font-size: 19px;
    }

    .page-khuynmi__promo-card {
        margin-bottom: 20px;
    }

    .page-khuynmi__promo-card img {
        height: 200px;
    }

    .page-khuynmi__card-content {
        padding: 20px;
    }

    .page-khuynmi__card-content h3 {
        font-size: 20px;
    }

    .page-khuynmi__card-content p {
        font-size: 14px;
    }

    .page-khuynmi__card-content .page-khuynmi__cta-button {
        padding: 10px 20px;
        font-size: 15px;
    }

    .page-khuynmi__steps-list li {
        padding: 15px 20px;
        font-size: 15px;
    }

    .page-khuynmi__steps-list li strong {
        font-size: 16px;
    }

    .page-khuynmi__terms-list {
        padding-left: 15px;
    }

    .page-khuynmi__terms-list li {
        font-size: 14px;
    }

    details.page-khuynmi__faq-item summary.page-khuynmi__faq-question {
        padding: 15px 20px;
    }

    .page-khuynmi__faq-qtext {
        font-size: 15px;
    }

    .page-khuynmi__faq-toggle {
        font-size: 20px;
        width: 24px;
    }

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

    .page-khuynmi__cta-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    /* Ensure all images are responsive */
    .page-khuynmi img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-khuynmi__section,
    .page-khuynmi__card,
    .page-khuynmi__container,
    .page-khuynmi__hero-container,
    .page-khuynmi__features-grid,
    .page-khuynmi__promo-card,
    .page-khuynmi__steps-list,
    .page-khuynmi__terms-list,
    .page-khuynmi__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsive */
    .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;
    }
    
    /* Button containers responsive */
    .page-khuynmi__cta-buttons,
    .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-wrap: wrap !important;
        gap: 10px;
    }
    .page-khuynmi__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}