/* style/khuynmi.css */
/* BEM Naming Convention: page-khuynmi__element-name */
/* Color Palette:
   Main: #11A84E
   Auxiliary: #22C768
   Button: 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
*/

/* General styles for the page content, ensuring contrast with body background #f8f8f8 */
.page-khuynmi {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* Body background is light */
}

.page-khuynmi h1,
.page-khuynmi h2,
.page-khuynmi h3,
.page-khuynmi h4,
.page-khuynmi h5,
.page-khuynmi h6 {
    color: #0A4B2C; /* Deep Green for headings, ensuring contrast */
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

/* Hero Section */
.page-khuynmi__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #08160F; /* Dark background for hero */
    padding: 60px 0; /* Minimal padding-top, body has header-offset */
    color: #F2FFF6; /* Light text for dark hero background */
}

.page-khuynmi__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-khuynmi__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-khuynmi__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    color: #F2C14E; /* Gold for main title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-khuynmi__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #F2FFF6; /* Text Main for description */
}

/* CTA Button */
.page-khuynmi__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-khuynmi__cta-button--small {
    padding: 12px 25px;
    font-size: 1rem;
}

/* Section Title */
.page-khuynmi__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 40px;
    color: #0A4B2C; /* Deep Green */
    font-weight: bold;
}

/* Promotions Overview */
.page-khuynmi__promotions-overview {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background for overview */
    color: #333333; /* Dark text */
}

.page-khuynmi__promotions-overview .page-khuynmi__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
}

/* Promotion Categories */
.page-khuynmi__promotion-categories {
    padding: 80px 0;
    background-color: #08160F; /* Dark background for categories */
    color: #F2FFF6; /* Light text */
}

.page-khuynmi__promotion-categories .page-khuynmi__section-title {
    color: #F2C14E; /* Gold for section title */
}

.page-khuynmi__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-khuynmi__category-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding: 25px;
    color: #F2FFF6; /* Text Main for card text */
    border: 1px solid #2E7A4E; /* Border */
}

.page-khuynmi__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-khuynmi__card-title {
    font-size: 1.4rem;
    color: #F2C14E; /* Gold for card title */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-khuynmi__card-text {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #A7D9B8; /* Text Secondary */
}

.page-khuynmi__card-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuynmi__card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

/* How to Claim */
.page-khuynmi__how-to-claim {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333; /* Dark text */
}

.page-khuynmi__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-khuynmi__step-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #11A84E; /* Main color as accent */
}

.page-khuynmi__step-title {
    font-size: 1.3rem;
    color: #11A84E; /* Main color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-khuynmi__step-text {
    font-size: 1rem;
    color: #555555;
}

/* FAQ Section */
.page-khuynmi__faq-section {
    padding: 80px 0;
    background-color: #08160F; /* Dark background */
    color: #F2FFF6; /* Light text */
}

.page-khuynmi__faq-section .page-khuynmi__section-title {
    color: #F2C14E; /* Gold for section title */
}

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

.page-khuynmi__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
}

.page-khuynmi__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: #F2FFF6; /* Text Main */
    list-style: none; /* Remove default marker */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

.page-khuynmi__faq-qtext {
    flex-grow: 1;
    color: #F2C14E; /* Gold for question text */
}

.page-khuynmi__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.2s;
    color: #2AD16F; /* Button color */
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-khuynmi__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

/* Final CTA */
.page-khuynmi__cta-final {
    padding: 80px 0;
    text-align: center;
    background-color: #f8f8f8; /* Light background */
    color: #333333; /* Dark text */
}

.page-khuynmi__cta-final .page-khuynmi__section-title {
    color: #0A4B2C; /* Deep Green */
}

.page-khuynmi__cta-final .page-khuynmi__text-block {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #555555;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-khuynmi {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-khuynmi__hero-section {
        padding: 40px 0;
    }

    .page-khuynmi__main-title {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    .page-khuynmi__description {
        font-size: 1rem;
    }

    .page-khuynmi__cta-button {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-khuynmi__cta-button--small {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-khuynmi__section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-khuynmi__promotions-overview,
    .page-khuynmi__promotion-categories,
    .page-khuynmi__how-to-claim,
    .page-khuynmi__faq-section,
    .page-khuynmi__cta-final {
        padding: 40px 0;
    }

    .page-khuynmi__category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-khuynmi__category-card {
        padding: 20px;
    }

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

    .page-khuynmi__card-title {
        font-size: 1.2rem;
    }

    .page-khuynmi__card-text {
        font-size: 0.95rem;
    }

    .page-khuynmi__card-button {
        font-size: 0.9rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-khuynmi__step-item {
        padding: 20px;
    }

    .page-khuynmi__step-title {
        font-size: 1.1rem;
    }

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

    .page-khuynmi__faq-qtext {
        color: #F2C14E; /* Gold for question text */
    }

    .page-khuynmi__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }
    
    /* Mobile image and container responsiveness */
    .page-khuynmi img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-khuynmi__hero-image-wrapper,
    .page-khuynmi__container,
    .page-khuynmi__category-card,
    .page-khuynmi__step-item,
    .page-khuynmi__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    
    /* Specific padding for hero content to avoid double padding */
    .page-khuynmi__hero-content {
        padding: 0 15px !important;
    }
    
    /* Ensure no video-specific padding-top for header offset */
    .page-khuynmi__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    /* Video responsiveness (if any, though not explicitly in current HTML draft) */
    .page-khuynmi video,
    .page-khuynmi__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-khuynmi__video-section,
    .page-khuynmi__video-container,
    .page-khuynmi__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}