/* style/khuyen-mai.css */
.page-khuyen-mai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #ffffff; /* Explicitly set for clarity */
}

.page-khuyen-mai__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
    background-color: #017439; /* Fallback background for hero */
}

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

.page-khuyen-mai__hero-content {
    position: relative; /* Not absolute, to be below image */
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(1, 116, 57, 0.8); /* Semi-transparent brand color background */
    color: #ffffff;
    transform: translateY(-50px); /* Slightly overlap the image for visual effect, but not cover text */
    margin-bottom: -50px; /* Adjust margin to compensate for transform */
}

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

.page-khuyen-mai__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
}

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

.page-khuyen-mai__section-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.page-khuyen-mai__section-title--white {
    color: #ffffff;
}

.page-khuyen-mai__text-block {
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai__text-block--white {
    color: #ffffff;
}

.page-khuyen-mai__intro-section {
    background-color: #ffffff;
    padding: 60px 0;
}

.page-khuyen-mai__types-section {
    background-color: #017439;
    padding: 60px 0;
    color: #ffffff;
}

.page-khuyen-mai__grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-khuyen-mai__promo-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.page-khuyen-mai__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

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

.page-khuyen-mai__card-description {
    font-size: 1rem;
    color: #555555;
    padding: 0 15px;
    margin-bottom: 25px;
    flex-grow: 1; /* Make description take available space */
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* For responsive buttons */
    word-wrap: break-word; /* For responsive buttons */
}

.page-khuyen-mai__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

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

.page-khuyen-mai__btn-primary--register {
    background-color: #C30808; /* Custom color for register */
    border-color: #C30808;
    color: #FFFF00; /* Custom font color for register */
}
.page-khuyen-mai__btn-primary--register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-khuyen-mai__btn-primary--login {
    background-color: #C30808; /* Custom color for login */
    border-color: #C30808;
    color: #FFFF00; /* Custom font color for login */
}
.page-khuyen-mai__btn-primary--login:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

.page-khuyen-mai__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2b;
    border-color: #005a2b;
}

.page-khuyen-mai__how-to-claim-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.page-khuyen-mai__steps-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    counter-reset: step-counter;
}

.page-khuyen-mai__step-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding-left: 70px; /* Space for step number */
}

.page-khuyen-mai__step-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    position: absolute;
    left: 25px;
    top: 25px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.page-khuyen-mai__step-title {
    font-size: 1.3rem;
    color: #017439;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-khuyen-mai__step-description {
    font-size: 1rem;
    color: #555555;
}
.page-khuyen-mai__step-description a {
    color: #017439;
    text-decoration: underline;
}
.page-khuyen-mai__step-description a:hover {
    color: #005a2b;
}

.page-khuyen-mai__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-khuyen-mai__benefits-section {
    background-color: #017439;
    padding: 60px 0;
    color: #ffffff;
}

.page-khuyen-mai__benefits-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-khuyen-mai__benefits-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.page-khuyen-mai__benefits-title {
    font-size: 1.4rem;
    color: #FFFF00; /* Yellow for benefit titles */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-khuyen-mai__benefits-description {
    font-size: 1rem;
    color: #f0f0f0;
}

.page-khuyen-mai__faq-section {
    background-color: #ffffff;
    padding: 60px 0;
}

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

.page-khuyen-mai__faq-item {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0; /* For opened state */
    list-style: none; /* For details/summary */
}

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

.page-khuyen-mai__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #017439;
    margin-left: 15px;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
    content: "−";
}

.page-khuyen-mai__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: #555555;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0; /* Add border for opened state */
    padding-top: 20px;
}

.page-khuyen-mai__cta-final-section {
    background-color: #017439; /* Using brand primary color */
    padding: 60px 0;
    text-align: center;
    color: #ffffff;
}

.page-khuyen-mai__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* Ensure container takes full width for responsive */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-khuyen-mai__container {
        padding: 30px 15px;
    }
    .page-khuyen-mai__grid-3-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .page-khuyen-mai__benefits-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-khuyen-mai__hero-content {
        padding: 30px 15px;
    }
    .page-khuyen-mai__main-title {
        font-size: clamp(2rem, 3.5vw, 3rem);
    }
    .page-khuyen-mai__section-title {
        font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    }
    .page-khuyen-mai__card-title {
        font-size: 1.3rem;
    }
    .page-khuyen-mai__step-item::before {
        left: 15px;
    }
    .page-khuyen-mai__step-item {
        padding-left: 60px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Small top padding */
    }
    .page-khuyen-mai__hero-image {
        max-height: 300px;
    }
    .page-khuyen-mai__hero-content {
        padding: 25px 15px;
        transform: translateY(-30px);
        margin-bottom: -30px;
    }
    .page-khuyen-mai__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-khuyen-mai__hero-description {
        font-size: 1rem;
    }

    /* 深色导语区 & 其他部分 */
    .page-khuyen-mai__intro-section,
    .page-khuyen-mai__types-section,
    .page-khuyen-mai__how-to-claim-section,
    .page-khuyen-mai__benefits-section,
    .page-khuyen-mai__faq-section,
    .page-khuyen-mai__cta-final-section {
        padding: 40px 0;
    }
    .page-khuyen-mai__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-khuyen-mai__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 25px;
    }
    .page-khuyen-mai__text-block {
        font-size: 0.95rem;
    }

    /* 博客网格 (Used for promo cards, adapting to 1 column) */
    .page-khuyen-mai__grid-3-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-khuyen-mai__promo-card {
        padding-bottom: 15px;
    }
    .page-khuyen-mai__card-image {
        height: 200px;
    }
    .page-khuyen-mai__card-title {
        font-size: 1.2rem;
    }
    .page-khuyen-mai__card-description {
        font-size: 0.9rem;
    }

    /* 通用图片与容器 */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    

    /* 按钮与按钮容器 */
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary,
    .page-khuyen-mai a[class*="button"],
    .page-khuyen-mai 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-khuyen-mai__cta-group,
    .page-khuyen-mai__cta-buttons {
        flex-direction: column !important;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
    }

    /* FAQ */
    .page-khuyen-mai__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-khuyen-mai__faq-answer {
        padding: 15px 20px;
    }
    .page-khuyen-mai__benefits-item {
        padding: 25px;
    }
    .page-khuyen-mai__benefits-title {
        font-size: 1.2rem;
    }
    .page-khuyen-mai__step-item::before {
        left: 15px;
        top: 20px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .page-khuyen-mai__step-item {
        padding-left: 55px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .page-khuyen-mai__step-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 549px) {
    .page-khuyen-mai__hero-content {
        padding: 20px 10px;
    }
    .page-khuyen-mai__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-khuyen-mai__section-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }
    .page-khuyen-mai__faq-question {
        font-size: 0.95rem;
    }
    .page-khuyen-mai__step-item::before {
        left: 10px;
        top: 15px;
    }
    .page-khuyen-mai__step-item {
        padding-left: 50px;
    }
}