.page-khuynmi {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color, #FFF5E1); /* Default text color from custom palette */
    background-color: var(--background-color, #B71C1C); /* Default background from custom palette */
}

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

/* Hero Section */
.page-khuynmi__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above text */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    padding-bottom: 40px;
    background-color: #7A0E0E; /* Deep Red from custom palette */
    overflow: hidden;
}

.page-khuynmi__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for hero image */
}

.page-khuynmi__hero-content {
    text-align: center;
    padding: 30px 20px;
    max-width: 900px;
    z-index: 1;
    color: #FFF5E1;
}

.page-khuynmi__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFCC66; /* Gold Glow from custom palette */
    text-shadow: 0 0 10px rgba(255, 204, 102, 0.7);
}

.page-khuynmi__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuynmi__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

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

.page-khuynmi__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #7A0E0E; /* Deep Red for text */
    border: 2px solid #F4D34D; /* Gold border */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-khuynmi__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

.page-khuynmi__btn-secondary {
    background: #C91F17; /* Main color */
    color: #FFF5E1; /* Main text color */
    border: 2px solid #F4D34D; /* Gold border */
    box-shadow: 0 4px 15px rgba(201, 31, 23, 0.4);
}

.page-khuynmi__btn-secondary:hover {
    background: #E53935; /* Auxiliary color */
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-khuynmi__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #FFCC66; /* Gold Glow */
    text-shadow: 0 0 8px rgba(255, 204, 102, 0.5);
}

.page-khuynmi__section-description {
    font-size: 1.05em;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF5E1;
}

.page-khuynmi__dark-section {
    background-color: #7A0E0E; /* Deep Red */
    padding: 60px 0;
    color: #FFF5E1;
}

.page-khuynmi__promotions-types-section,
.page-khuynmi__terms-conditions-section,
.page-khuynmi__cta-bottom-section {
    background-color: #B71C1C; /* Background color */
    padding: 60px 0;
    color: #FFF5E1;
}

/* Why Choose Section */
.page-khuynmi__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-khuynmi__feature-card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for card background */
    border: 1px solid #F4D34D; /* Gold border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF5E1;
}

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

.page-khuynmi__feature-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD86A; /* Button gold for titles */
}

.page-khuynmi__feature-text {
    font-size: 1em;
    line-height: 1.6;
}

/* Promotions Types Section */
.page-khuynmi__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-khuynmi__promo-card {
    background: #D32F2F; /* Card BG from custom palette */
    border: 1px solid #F4D34D; /* Gold border */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #FFF5E1;
}

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

.page-khuynmi__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure image behaves as a block element */
}

.page-khuynmi__promo-title {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD86A; /* Button gold for titles */
}

.page-khuynmi__promo-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.page-khuynmi__step-card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
    border: 1px solid #F4D34D; /* Gold border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: #FFF5E1;
}

.page-khuynmi__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red */
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.page-khuynmi__step-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD86A; /* Button gold */
}

.page-khuynmi__step-text {
    font-size: 0.95em;
    line-height: 1.6;
}

.page-khuynmi__step-text a {
    color: #FFD86A; /* Gold link */
    text-decoration: underline;
}

.page-khuynmi__step-text a:hover {
    color: #FFCC66; /* Lighter gold on hover */
}

/* Terms and Conditions Section */
.page-khuynmi__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuynmi__term-item {
    background: rgba(255, 255, 255, 0.05); /* Lighter background for list items */
    border-left: 4px solid #F4D34D; /* Gold accent */
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1em;
    line-height: 1.6;
    color: #FFF5E1;
}

.page-khuynmi__read-more-terms {
    text-align: center;
    margin-top: 40px;
}

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

.page-khuynmi__faq-item {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
    border: 1px solid #F4D34D; /* Gold border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF5E1;
}

.page-khuynmi__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
    color: #FFD86A; /* Button gold for question */
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

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

.page-khuynmi__faq-item summary:hover {
    background: rgba(255, 255, 255, 0.12);
}

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

.page-khuynmi__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1;
    margin-left: 15px;
    color: #FFD86A;
}

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

.page-khuynmi__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.03);
    color: #FFF5E1;
}

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

/* Bottom CTA Section */
.page-khuynmi__cta-bottom-section {
    text-align: center;
    padding: 80px 0;
    background-color: #C91F17; /* Main color */
    color: #FFF5E1;
}

.page-khuynmi__cta-bottom-section .page-khuynmi__section-title {
    color: #FFCC66; /* Gold Glow */
    margin-bottom: 25px;
}

.page-khuynmi__cta-bottom-section .page-khuynmi__section-description {
    margin-bottom: 40px;
    color: #FFF5E1;
}

.page-khuynmi__cta-bottom-section .page-khuynmi__section-description a {
    color: #FFD86A;
    text-decoration: underline;
}

.page-khuynmi__cta-bottom-section .page-khuynmi__section-description a:hover {
    color: #FFCC66;
}

/* All images general responsive styling */
.page-khuynmi img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-khuynmi__container {
        padding: 15px;
    }

    .page-khuynmi__hero-content {
        padding: 20px 15px;
    }

    .page-khuynmi__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-khuynmi__section-title {
        font-size: clamp(1.6em, 4.5vw, 2.5em);
    }

    .page-khuynmi__btn-primary,
    .page-khuynmi__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-khuynmi__dark-section,
    .page-khuynmi__promotions-types-section,
    .page-khuynmi__terms-conditions-section,
    .page-khuynmi__cta-bottom-section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    /* HERO Chủ Đề Khu Vực */
    .page-khuynmi__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }
    .page-khuynmi__hero-image {
        max-height: 400px;
    }
    .page-khuynmi__hero-content {
        padding: 15px 10px;
    }
    .page-khuynmi__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-khuynmi__hero-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    /* Khu Vực Hiển Thị Sản Phẩm */
    .page-khuynmi__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-khuynmi__promo-image {
        height: 180px;
    }

    /* Hình Ảnh Chung và Vùng Chứa */
    .page-khuynmi img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-khuynmi__section,
    .page-khuynmi__card,
    .page-khuynmi__container,
    .page-khuynmi__feature-card,
    .page-khuynmi__promo-card,
    .page-khuynmi__step-card,
    .page-khuynmi__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Nút và Vùng Chứa Nút */
    .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;
    }
    .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-direction: column !important;
        gap: 10px;
    }

    /* Các Module Nội Dung Khác */
    .page-khuynmi {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-khuynmi__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
    }
    .page-khuynmi__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }
    .page-khuynmi__dark-section,
    .page-khuynmi__promotions-types-section,
    .page-khuynmi__terms-conditions-section,
    .page-khuynmi__cta-bottom-section {
        padding: 30px 0;
    }
    .page-khuynmi__features-grid,
    .page-khuynmi__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-khuynmi__feature-card,
    .page-khuynmi__step-card {
        padding: 20px;
    }
    .page-khuynmi__promo-card {
        padding: 20px;
    }
    .page-khuynmi__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-khuynmi__faq-answer {
        padding: 10px 20px 15px;
    }
}