.page-khuyen-mai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Assuming body background is light */
}

/* Hero Section */
.page-khuyen-mai__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
    background-color: #26A9E0; /* Brand color for hero background */
    color: #FFFFFF; /* White text for dark background */
    overflow: hidden; /* Ensure content stays within bounds */
}

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

.page-khuyen-mai__hero-content {
    position: relative; /* Changed from absolute to relative to be below image */
    padding: 40px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.page-khuyen-mai__main-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-khuyen-mai__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #F0F0F0; /* Slightly off-white for description */
}

.page-khuyen-mai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-outline {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure buttons adapt to container */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    text-align: center;
}

.page-khuyen-mai__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-khuyen-mai__btn-primary:hover {
    background-color: #d66b00;
    border-color: #d66b00;
}

.page-khuyen-mai__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-khuyen-mai__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
}

/* General Section Styling */
.page-khuyen-mai__section {
    padding: 60px 20px;
}

.page-khuyen-mai__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding */
    box-sizing: border-box;
}

.page-khuyen-mai__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand color for titles */
}

.page-khuyen-mai__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Dark Section */
.page-khuyen-mai__dark-section {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-khuyen-mai__dark-section .page-khuyen-mai__section-title,
.page-khuyen-mai__dark-section .page-khuyen-mai__section-description,
.page-khuyen-mai__dark-section .page-khuyen-mai__terms-title,
.page-khuyen-mai__dark-section .page-khuyen-mai__terms-text {
    color: #FFFFFF;
}

/* Grid Promotions */
.page-khuyen-mai__grid-promotions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-khuyen-mai__promotion-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; /* Ensure cards are same height */
    box-sizing: border-box;
}

.page-khuyen-mai__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-khuyen-mai__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-khuyen-mai__card-description {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-khuyen-mai__btn-outline {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin-top: auto; /* Push button to bottom */
}

.page-khuyen-mai__btn-outline:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Terms and Conditions List */
.page-khuyen-mai__terms-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-khuyen-mai__terms-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for items on dark background */
    border-radius: 10px;
    padding: 25px;
    height: 100%;
    box-sizing: border-box;
}

.page-khuyen-mai__terms-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-khuyen-mai__terms-text {
    font-size: 1rem;
    color: #F0F0F0;
}

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

.page-khuyen-mai__step-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-khuyen-mai__step-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-khuyen-mai__step-description {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Reasons Grid */
.page-khuyen-mai__reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-khuyen-mai__reason-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-khuyen-mai__reason-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforcing minimum size for reason icons as well */
    min-height: 200px; /* Enforcing minimum size for reason icons as well */
}

.page-khuyen-mai__reason-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-khuyen-mai__reason-text {
    font-size: 1rem;
    color: #F0F0F0;
    flex-grow: 1;
}

/* FAQ Section */
.page-khuyen-mai__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-khuyen-mai__faq-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #26A9E0;
    list-style: none; /* Hide default marker for details */
}

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

.page-khuyen-mai__faq-qtext {
    flex-grow: 1;
    pointer-events: none; /* Allow click on whole summary */
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    transition: transform 0.3s ease;
    pointer-events: none; /* Allow click on whole summary */
}

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

.page-khuyen-mai__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #555555;
}

/* CTA Bottom Section */
.page-khuyen-mai__cta-bottom {
    padding: 80px 20px;
    text-align: center;
}

.page-khuyen-mai__cta-bottom .page-khuyen-mai__section-title {
    color: #FFFFFF;
}

.page-khuyen-mai__cta-bottom .page-khuyen-mai__section-description {
    color: #F0F0F0;
    margin-bottom: 40px;
}

/* Text alignment helpers */
.page-khuyen-mai__text-center {
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-khuyen-mai__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }
    .page-khuyen-mai__section-title {
        font-size: 2rem;
    }
    .page-khuyen-mai__card-title {
        font-size: 1.4rem;
    }
    .page-khuyen-mai__step-title {
        font-size: 1.5rem;
    }
    .page-khuyen-mai__reason-title {
        font-size: 1.3rem;
    }
    .page-khuyen-mai__hero-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-khuyen-mai {
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO 主图区域 */
    .page-khuyen-mai__hero-section {
        padding-top: 10px; /* Keep small top padding */
    }
    .page-khuyen-mai__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: 300px; /* Adjust hero image height for mobile */
    }
    .page-khuyen-mai__hero-content {
        padding: 30px 15px;
    }
    .page-khuyen-mai__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-khuyen-mai__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* 按钮与按钮容器 */
    .page-khuyen-mai__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
    }
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary,
    .page-khuyen-mai__btn-outline {
        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-khuyen-mai__button-group,
    .page-khuyen-mai__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;
    }
    
    /* General Section Styling */
    .page-khuyen-mai__section {
        padding: 40px 15px;
    }
    .page-khuyen-mai__container {
        padding: 0 10px;
    }
    .page-khuyen-mai__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-khuyen-mai__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* 通用图片与容器 */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-khuyen-mai__section,
    .page-khuyen-mai__card,
    .page-khuyen-mai__container,
    .page-khuyen-mai__promotion-card,
    .page-khuyen-mai__terms-item,
    .page-khuyen-mai__step-card,
    .page-khuyen-mai__reason-item,
    .page-khuyen-mai__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 网格布局 (应用于 promotions, terms, steps, reasons) */
    .page-khuyen-mai__grid-promotions,
    .page-khuyen-mai__terms-list,
    .page-khuyen-mai__steps-grid,
    .page-khuyen-mai__reasons-grid {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        gap: 20px;
    }

    /* 卡片图片 */
    .page-khuyen-mai__card-image {
        height: auto; /* Allow height to adjust */
        min-width: 200px;
        min-height: 200px;
    }
    .page-khuyen-mai__reason-icon {
        width: 100px; /* Adjust size for mobile */
        height: 100px;
        min-width: 100px; /* Enforcing minimum size for reason icons as well */
        min-height: 100px; /* Enforcing minimum size for reason icons as well */
    }

    /* FAQ */
    .page-khuyen-mai__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-khuyen-mai__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* CTA Bottom */
    .page-khuyen-mai__cta-bottom {
        padding: 50px 15px;
    }

    /* Long text gold frame, game carousel, cooperation brand six-grid, blog card section - N/A for this page type */
    /* These are not applicable for a non-homepage 'Khuyến Mãi' page, so no specific mobile rules are needed for them. */
}