/* Variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-btn-bg: #C30808;
    --login-btn-bg: #C30808;
    --register-login-text: #FFFF00;
    --dark-bg-primary: #100224; /* Deep purple-black */
    --dark-bg-secondary: #1a033c; /* Slightly lighter dark */
    --dark-bg-card: #2b065c; /* Card background */
    --orange-red-gradient: linear-gradient(90deg, #ff9500, #ff5e3a);
}

/* Base styles for the page content */
.page-khuynmi {
    background-color: var(--dark-bg-primary);
    color: var(--secondary-color);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    padding-top: 0; /* body will handle padding-top for header offset */
}

/* Hero Section */
.page-khuynmi__hero-section {
    padding-top: 10px; /* Small top padding as per rules */
    background-color: var(--primary-color); /* Primary brand color for hero background */
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-khuynmi__hero-image {
    width: 100%;
    max-width: 1920px;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/5; /* Wider aspect ratio for visual impact */
    margin-bottom: 20px;
}

.page-khuynmi__hero-content {
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Ensure content is above image if needed, but not overlapping */
    z-index: 1;
}

.page-khuynmi__main-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--register-login-text); /* Yellow for emphasis */
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-khuynmi__hero-cta {
    display: inline-block;
    background: var(--orange-red-gradient);
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-khuynmi__hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 94, 58, 0.4);
}

/* Section Titles */
.page-khuynmi__section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    background: linear-gradient(90deg, var(--register-login-text), var(--primary-color)); /* Gold to green gradient for titles */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Promotions Grid Section */
.page-khuynmi__promotions-grid {
    padding: 60px 20px;
    background-color: var(--dark-bg-secondary);
}

.page-khuynmi__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-khuynmi__promotion-card {
    background-color: var(--dark-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-khuynmi__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-khuynmi__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--register-login-text); /* Yellow for card titles */
    margin: 20px 20px 10px;
}

.page-khuynmi__card-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ccc;
    padding: 0 20px;
    flex-grow: 1;
}

.page-khuynmi__card-cta {
    display: block;
    background-color: var(--register-btn-bg); /* Red for CTA buttons */
    color: var(--register-login-text); /* Yellow text */
    padding: 10px 20px;
    margin: 20px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-khuynmi__card-cta:hover {
    background-color: #a00606;
}

/* Featured Promotion Section */
.page-khuynmi__featured-promotion {
    padding: 60px 20px;
    background-color: var(--dark-bg-primary);
    display: flex;
    flex-direction: column; /* Mobile first */
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-khuynmi__feature-content {
    text-align: center;
    max-width: 600px;
}

.page-khuynmi__feature-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--register-login-text);
    margin-bottom: 20px;
}

.page-khuynmi__feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 30px;
}

.page-khuynmi__feature-cta {
    display: inline-block;
    background-color: var(--primary-color); /* Primary green color */
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-khuynmi__feature-cta:hover {
    background-color: #015a2e;
    transform: translateY(-2px);
}

.page-khuynmi__feature-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-khuynmi__faq-section {
    padding: 60px 20px;
    background-color: var(--dark-bg-secondary);
}

.page-khuynmi__faq-item {
    background-color: var(--dark-bg-card);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--register-login-text);
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-khuynmi__faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    display: block;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-khuynmi__hero-section {
        padding-bottom: 60px;
    }
    .page-khuynmi__hero-image {
        aspect-ratio: 1920/600; /* Example desktop aspect ratio */
    }
    .page-khuynmi__hero-content {
        padding: 40px 20px;
    }
    .page-khuynmi__main-title {
        font-size: 3rem;
    }
    .page-khuynmi__promotions-grid {
        padding: 80px 40px;
    }
    .page-khuynmi__grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .page-khuynmi__card-image {
        height: 250px;
    }
    .page-khuynmi__featured-promotion {
        flex-direction: row; /* Desktop: image and content side-by-side */
        text-align: left;
        padding: 80px 40px;
    }
    .page-khuynmi__feature-content {
        text-align: left;
        flex: 1;
    }
    .page-khuynmi__feature-image {
        flex: 1;
        max-width: 50%;
    }
    .page-khuynmi__faq-section {
        padding: 80px 40px;
    }
}

/* Mobile specific adjustments (max-width: 768px) */
@media (max-width: 768px) {
    .page-khuynmi img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    .page-khuynmi {
        overflow-x: hidden;
    }
    .page-khuynmi__hero-image {
        aspect-ratio: 4/3;
    }
    .page-khuynmi__main-title {
        font-size: 2rem;
    }
    .page-khuynmi__section-title {
        font-size: 1.8rem;
    }
    .page-khuynmi__card-image {
        height: 180px; /* Slightly smaller height for mobile cards */
    }
    .page-khuynmi__faq-question {
        font-size: 1.1rem;
    }
    .page-khuynmi__faq-answer {
        font-size: 0.9rem;
    }
}