/* style/khuynmi.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-color-dark: #08160F;
    --card-bg-color: #11271B;
    --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%);
}

.page-khuynmi {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page, matches dark background */
    background-color: var(--bg-color-dark);
}

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

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

.page-khuynmi__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px; /* Ensure image is not too small */
}

.page-khuynmi__hero-content {
    position: relative; /* Changed from absolute to relative for "上图下文" rule */
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Adjust to slightly overlap the image for visual flow */
    background: rgba(17, 39, 27, 0.9); /* Card BG with slight transparency */
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transform: translateY(-50px); /* Lift content slightly */
}

.page-khuynmi__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-main-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.7);
}

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

.page-khuynmi__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

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

.page-khuynmi__cta-button--center {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 350px;
}

.page-khuynmi__cta-button--large {
    padding: 18px 35px;
    font-size: 1.2rem;
    max-width: 400px;
}

/* General Section Styles */
.page-khuynmi__overview-section,
.page-khuynmi__promo-types-section,
.page-khuynmi__how-to-claim-section,
.page-khuynmi__terms-conditions-section,
.page-khuynmi__faq-section,
.page-khuynmi__cta-final-section {
    padding: 60px 0;
}

.page-khuynmi__overview-section, .page-khuynmi__how-to-claim-section, .page-khuynmi__faq-section {
    background-color: var(--card-bg-color);
}

.page-khuynmi__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

.page-khuynmi__text-block {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    text-align: justify;
}

/* Promo Grid */
.page-khuynmi__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-khuynmi__promo-card {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

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

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

.page-khuynmi__card-title {
    font-size: 1.4rem;
    color: var(--text-main-color);
    padding: 15px 20px 10px;
    font-weight: 600;
    line-height: 1.4;
}

.page-khuynmi__card-description {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    padding: 0 20px 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.page-khuynmi__card-button {
    display: block;
    margin: 0 20px 20px;
    padding: 12px 20px;
    background: var(--button-gradient);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
}

.page-khuynmi__card-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* How To Claim Steps */
.page-khuynmi__steps-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-khuynmi__step-item {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    flex: 1 1 300px;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-khuynmi__step-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
}

.page-khuynmi__step-title {
    font-size: 1.5rem;
    color: var(--text-main-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-khuynmi__step-description {
    font-size: 1rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
}

/* Terms and Conditions */
.page-khuynmi__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-khuynmi__terms-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-khuynmi__link {
    color: var(--glow-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
    text-align: center;
    margin-top: 30px;
}

.page-khuynmi__link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.page-khuynmi__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-khuynmi__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main-color);
    cursor: pointer;
    user-select: none;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* For details/summary */
}

.page-khuynmi__faq-item[open] > .page-khuynmi__faq-question {
    border-bottom: 1px solid var(--border-color);
}

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

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

.page-khuynmi__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--glow-color);
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-toggle {
    transform: rotate(45deg);
}

.page-khuynmi__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
}

.page-khuynmi__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-khuynmi__cta-final-section {
    text-align: center;
    background-color: var(--bg-color-dark);
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuynmi__hero-content {
        padding: 30px 20px;
        margin-top: -80px;
        transform: translateY(-40px);
    }
    .page-khuynmi__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-khuynmi__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-khuynmi__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-khuynmi__step-item {
        flex: 1 1 280px;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .page-khuynmi__hero-content {
        padding: 25px 15px;
        margin-top: -60px;
        transform: translateY(-30px);
    }
    .page-khuynmi__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-khuynmi__description {
        font-size: 1rem;
    }
    .page-khuynmi__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-khuynmi__cta-button--center, .page-khuynmi__cta-button--large {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-khuynmi__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 30px;
    }
    .page-khuynmi__text-block {
        font-size: 0.95rem;
    }
    .page-khuynmi__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-khuynmi__promo-card {
        margin: 0 auto;
        max-width: 400px;
    }
    .page-khuynmi__card-button {
        max-width: calc(100% - 40px) !important;
        width: calc(100% - 40px) !important;
    }
    .page-khuynmi__steps-container {
        flex-direction: column;
        align-items: center;
    }
    .page-khuynmi__step-item {
        max-width: 400px;
        width: 100%;
    }
    .page-khuynmi__hero-image,
    .page-khuynmi__card-image,
    .page-khuynmi__step-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-khuynmi__container,
    .page-khuynmi__overview-section,
    .page-khuynmi__promo-types-section,
    .page-khuynmi__how-to-claim-section,
    .page-khuynmi__terms-conditions-section,
    .page-khuynmi__faq-section,
    .page-khuynmi__cta-final-section,
    .page-khuynmi__promo-card,
    .page-khuynmi__step-item,
    .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;
        overflow: hidden !important;
    }
    .page-khuynmi__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-khuynmi__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-khuynmi__hero-content {
        margin-top: -40px;
        transform: translateY(-20px);
    }
    .page-khuynmi__hero-section,
    .page-khuynmi__overview-section,
    .page-khuynmi__promo-types-section,
    .page-khuynmi__how-to-claim-section,
    .page-khuynmi__terms-conditions-section,
    .page-khuynmi__faq-section,
    .page-khuynmi__cta-final-section {
        padding: 40px 0;
    }
    .page-khuynmi__promo-card {
        padding: 0;
    }
    .page-khuynmi__card-title {
        font-size: 1.2rem;
    }
    .page-khuynmi__card-description {
        font-size: 0.9rem;
    }
    .page-khuynmi__card-button {
        font-size: 0.95rem;
    }
}