:root {
    --color-primary: #11A84E; /* Main Green */
    --color-secondary: #22C768; /* Auxiliary Green */
    --color-bg-dark: #08160F; /* Background */
    --color-card-bg: #11271B; /* Card Background */
    --color-text-main: #F2FFF6; /* Main Text Color */
    --color-text-secondary: #A7D9B8; /* Secondary Text Color */
    --color-border: #2E7A4E; /* Border Color */
    --color-glow: #57E38D; /* Glow Effect */
    --color-gold: #F2C14E; /* Gold Accent */
    --color-divider: #1E3A2A; /* Divider Color */
    --color-deep-green: #0A4B2C; /* Deep Green */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-khuynmi {
    color: var(--color-text-main); /* Main text color for the page, assuming dark body bg */
    background-color: var(--color-bg-dark);
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

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

.page-khuynmi__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-khuynmi__light-bg {
    background-color: var(--color-deep-green); /* Using a slightly lighter green for contrast between sections */
    color: var(--color-text-main);
}

.page-khuynmi__section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--color-text-main);
    font-weight: bold;
}

.page-khuynmi__main-title {
    font-size: clamp(2rem, 5vw, 3.2rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.05em;
    color: var(--color-text-main);
    margin-bottom: 20px;
}

.page-khuynmi__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
    text-align: left;
}

.page-khuynmi__text-block a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.page-khuynmi__text-block a:hover {
    color: var(--color-glow);
}

.page-khuynmi__text-center {
    text-align: center;
}

.page-khuynmi__text-center-btn {
    display: inline-block;
    margin-top: 20px;
}

/* Hero Section */
.page-khuynmi__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden;
    text-align: center; /* Center content within the section */
}

.page-khuynmi__hero-image-wrapper {
    width: 100%;
    margin-bottom: 30px; /* Space between image and content */
}

.page-khuynmi__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly dim the background image for better text contrast */
    max-height: 500px; /* Limit height to prevent image being too tall */
}

.page-khuynmi__hero-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    color: var(--color-text-main);
    text-align: center;
}

.page-khuynmi__hero-description {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* Buttons */
.page-khuynmi__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.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.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%;
}

.page-khuynmi__btn-primary {
    background: var(--btn-gradient);
    color: var(--color-text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.page-khuynmi__btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-khuynmi__large-btn {
    padding: 18px 35px;
    font-size: 1.2rem;
}

/* Card Grid */
.page-khuynmi__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-khuynmi__card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuynmi__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px 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; /* Ensure image behaves as block for max-width */
}

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

.page-khuynmi__card-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Make text block take available space */
}

/* Content Flex (for image and text side-by-side) */
.page-khuynmi__content-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-khuynmi__content-flex .page-khuynmi__content-text,
.page-khuynmi__content-flex .page-khuynmi__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-khuynmi__image-wrapper {
    text-align: center;
}

.page-khuynmi__image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure image behaves as block for max-width */
    margin: 0 auto;
}

/* Lists */
.page-khuynmi__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}

.page-khuynmi__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

.page-khuynmi__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-size: 1.2em;
    line-height: 1;
}

.page-khuynmi__list--conditions .page-khuynmi__list-item::before {
    content: '⚠️'; /* Warning icon for conditions */
    color: var(--color-gold);
}


/* Step Grid */
.page-khuynmi__step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-khuynmi__step-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-khuynmi__step-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-khuynmi__faq-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuynmi__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--color-text-main);
}

.page-khuynmi__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    color: var(--color-text-main);
    list-style: none; /* Hide default marker */
}

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

.page-khuynmi__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-khuynmi__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-secondary);
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-toggle {
    content: '−'; /* Change to minus when open */
}

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

/* CTA Section */
.page-khuynmi__cta-section {
    padding: 80px 0;
    background-color: var(--color-deep-green); /* Using a different green for CTA */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-khuynmi__section-title {
        font-size: 2.2rem;
    }
    .page-khuynmi__main-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }
    .page-khuynmi__hero-image {
        max-height: 400px; /* Adjust for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-khuynmi__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }
    .page-khuynmi__hero-image-wrapper {
        margin-bottom: 20px; /* Smaller gap on mobile */
    }
    .page-khuynmi__hero-image {
        max-height: 300px; /* Adjust for mobile */
    }
    .page-khuynmi__hero-content {
        padding: 0 15px;
    }
    .page-khuynmi__main-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }
    .page-khuynmi__hero-description {
        font-size: 1rem;
    }
    .page-khuynmi__section {
        padding: 40px 0;
    }
    .page-khuynmi__section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    .page-khuynmi__text-block,
    .page-khuynmi__list-item,
    .page-khuynmi__card-text,
    .page-khuynmi__step-text,
    .page-khuynmi__faq-answer {
        font-size: 0.95rem;
    }
    .page-khuynmi__card-title,
    .page-khuynmi__step-title {
        font-size: 1.3rem;
    }
    .page-khuynmi__faq-item summary {
        font-size: 1.05rem;
        padding: 15px 20px;
    }
    .page-khuynmi__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-khuynmi__btn-primary,
    .page-khuynmi__btn-secondary {
        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;
    }
    .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__content-flex {
        flex-direction: column;
    }
    .page-khuynmi__content-flex .page-khuynmi__content-text,
    .page-khuynmi__content-flex .page-khuynmi__image-wrapper {
        min-width: unset;
        width: 100%;
    }

    /* Images and containers responsive styles */
    .page-khuynmi img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-khuynmi__section,
    .page-khuynmi__card,
    .page-khuynmi__container,
    .page-khuynmi__content-flex,
    .page-khuynmi__step-grid,
    .page-khuynmi__faq-list,
    .page-khuynmi__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-khuynmi__card-image {
      height: auto; /* Allow auto height for card images on mobile */
      min-height: 200px; /* Ensure minimum size */
    }
    .page-khuynmi__image {
      min-height: 200px; /* Ensure minimum size */
    }
}

/* Ensure no filter on images */
.page-khuynmi img {
    filter: none; /* Reset any potential filter */
}
.page-khuynmi__hero-image {
  filter: brightness(0.6); /* This is an intentional effect, not a color change filter */
}

/* Min image size enforcement */
.page-khuynmi__card-image,
.page-khuynmi__image {
  min-width: 200px;
  min-height: 200px;
}