/* style/khuynmi.css */

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

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-khuynmi {
    color: var(--text-main); /* #F2FFF6 */
    background-color: var(--background); /* #08160F */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-khuynmi__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background); /* #08160F */
}

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

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

.page-khuynmi__hero-content {
    padding: 40px 20px;
    background-color: var(--card-bg); /* #11271B */
    color: var(--text-main); /* #F2FFF6 */
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    border-radius: 10px;
    margin-top: -80px; /* Overlap slightly with image for design */
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__hero-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--gold); /* #F2C14E */
    line-height: 1.2;
}

.page-khuynmi__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary); /* #A7D9B8 */
}

/* General Section Styling */
.page-khuynmi__section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--background); /* #08160F */
    color: var(--text-main); /* #F2FFF6 */
}

.page-khuynmi__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--gold); /* #F2C14E */
}

.page-khuynmi__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary); /* #A7D9B8 */
}

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

.page-khuynmi__card {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border); /* #2E7A4E */
    color: var(--text-main); /* #F2FFF6 */
}

.page-khuynmi__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-khuynmi__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--glow); /* #57E38D */
}

.page-khuynmi__card-text {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1; /* Allows text to push button to bottom */
    color: var(--text-secondary); /* #A7D9B8 */
}

/* Buttons */
.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuynmi__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__btn-primary:hover {
    background: linear-gradient(180deg, var(--deep-green) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__btn-secondary {
    background-color: transparent;
    color: var(--glow); /* #57E38D */
    border: 2px solid var(--glow); /* #57E38D */
}

.page-khuynmi__btn-secondary:hover {
    background-color: var(--glow); /* #57E38D */
    color: var(--card-bg); /* #11271B */
    border-color: var(--glow); /* #57E38D */
}

.page-khuynmi__btn-centered {
    margin: 30px auto 0 auto;
    display: block; /* Make it a block element to center with margin: auto */
    max-width: 300px;
}

/* How to Claim Section */
.page-khuynmi__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-khuynmi__list-item {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--border); /* #2E7A4E */
    color: var(--text-main); /* #F2FFF6 */
}

.page-khuynmi__list-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--glow); /* #57E38D */
}

.page-khuynmi__list-text {
    font-size: 0.95em;
    color: var(--text-secondary); /* #A7D9B8 */
}

/* Terms Summary Section */
.page-khuynmi__terms-list {
    list-style: disc;
    padding-left: 25px;
    text-align: left;
    max-width: 800px;
    margin: 40px auto 0 auto;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-khuynmi__terms-list .page-khuynmi__list-item {
    background-color: transparent; /* Override card background for list items */
    border: none;
    box-shadow: none;
    padding: 8px 0;
    margin-bottom: 8px;
    color: var(--text-secondary); /* #A7D9B8 */
}

/* FAQ Section */
.page-khuynmi__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-khuynmi__faq-item {
    background-color: var(--card-bg); /* #11271B */
    border: 1px solid var(--border); /* #2E7A4E */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main); /* #F2FFF6 */
}

.page-khuynmi__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    list-style: none; /* Hide default marker for details */
    font-weight: bold;
    font-size: 1.1em;
    color: var(--glow); /* #57E38D */
}

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

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

.page-khuynmi__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--text-main); /* #F2FFF6 */
}

.page-khuynmi__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95em;
    color: var(--text-secondary); /* #A7D9B8 */
    line-height: 1.5;
}

/* CTA Section */
.page-khuynmi__cta-section {
    background-color: var(--card-bg); /* #11271B */
    padding: 80px 20px;
    text-align: center;
    color: var(--text-main); /* #F2FFF6 */
}

.page-khuynmi__cta-title {
    font-size: clamp(2em, 4vw, 3em);
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--gold); /* #F2C14E */
}

.page-khuynmi__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-khuynmi__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 30px;
}

/* Apply custom colors to relevant elements for consistency */
.page-khuynmi__dark-bg {
    background-color: var(--card-bg);
    color: var(--text-main);
}
.page-khuynmi__light-bg {
    background-color: #ffffff; 
    color: #333333;
}
.page-khuynmi__medium-bg {
    background-color: var(--secondary-color);
    color: #000000;
}

/* Ensuring contrast for general text if it falls outside specific elements */
.page-khuynmi p,
.page-khuynmi li {
  color: var(--text-secondary); /* Ensure general text is readable */
}

.page-khuynmi h1, .page-khuynmi h2, .page-khuynmi h3, .page-khuynmi h4, .page-khuynmi h5, .page-khuynmi h6 {
    color: var(--gold); /* Headings use gold for emphasis */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuynmi__hero-content {
        margin-top: -60px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-khuynmi__container {
        padding: 15px;
    }

    .page-khuynmi__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is for visual padding */
    }

    .page-khuynmi__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
    }

    .page-khuynmi__hero-title {
        font-size: 2em; /* Smaller H1 for mobile */
    }

    .page-khuynmi__section-title {
        font-size: 1.8em;
    }

    .page-khuynmi__promo-cards,
    .page-khuynmi__steps-list {
        grid-template-columns: 1fr;
    }

    .page-khuynmi__card-image {
        height: 180px;
    }

    .page-khuynmi__btn-primary,
    .page-khuynmi__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-khuynmi__cta-buttons {
        flex-direction: column !important;
        gap: 15px;
    }

    /* Ensure all images are responsive on mobile */
    .page-khuynmi img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-khuynmi__section,
    .page-khuynmi__card,
    .page-khuynmi__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-khuynmi__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-khuynmi__faq-answer {
        padding: 0 20px 15px 20px;
    }
}