/* style/khuyen-mai.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --btn-register: #C30808;
    --btn-login: #C30808;
    --font-register-login: #FFFF00;
}

.page-khuyen-mai {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default for light background */
    background-color: var(--secondary-color); /* Assuming shared.css sets body background to light */
}

/* If body background is dark, override default text color */
.page-khuyen-mai.page-content {
    /* Assuming shared.css sets body background to var(--accent-color) which is #017439 (dark) */
    color: var(--text-light); /* Use light text for dark body background */
}

.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    background-color: var(--primary-color);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.page-khuyen-mai__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 60px 16px;
    gap: 40px;
}

.page-khuyen-mai__hero-content {
    flex: 1 1 50%;
    max-width: 50%;
    z-index: 1;
}

.page-khuyen-mai__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--font-register-login); /* Using font-register-login for H1 on dark background */
}

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

.page-khuyen-mai__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-khuyen-mai__btn-primary {
    background-color: var(--btn-register);
    color: var(--font-register-login);
    border: 2px solid var(--btn-register);
}

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

.page-khuyen-mai__btn-secondary {
    background-color: transparent;
    color: var(--font-register-login);
    border: 2px solid var(--font-register-login);
}

.page-khuyen-mai__btn-secondary:hover {
    background-color: var(--font-register-login);
    color: var(--primary-color);
}

.page-khuyen-mai__hero-image {
    flex: 1 1 40%;
    text-align: center;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-khuyen-mai__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-khuyen-mai__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
}

.page-khuyen-mai__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
}

.page-khuyen-mai__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherits from section, ensuring contrast */
}

.page-khuyen-mai__dark-section .page-khuyen-mai__section-title {
    color: var(--font-register-login);
}

.page-khuyen-mai__section-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-khuyen-mai__promo-card {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-khuyen-mai__promo-card:hover {
    transform: translateY(-5px);
}

.page-khuyen-mai__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-khuyen-mai__promo-card h3 {
    padding: 15px 20px 10px;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.page-khuyen-mai__promo-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-khuyen-mai__promo-card h3 a:hover {
    text-decoration: underline;
}

.page-khuyen-mai__card-text {
    padding: 0 20px 15px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.page-khuyen-mai__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 0 20px 20px;
}

.page-khuyen-mai__how-to-claim-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

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

.page-khuyen-mai__step-item {
    text-align: center;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.page-khuyen-mai__step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.page-khuyen-mai__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

.page-khuyen-mai__step-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-khuyen-mai__step-text a:hover {
    text-decoration: underline;
}

.page-khuyen-mai__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-khuyen-mai__faq-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-light); /* Light text */
}

.page-khuyen-mai__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

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

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

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

.page-khuyen-mai__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-khuyen-mai__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-khuyen-mai__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--text-light);
}

.page-khuyen-mai__faq-answer p {
    margin: 0;
}

.page-khuyen-mai__faq-answer a {
    color: var(--font-register-login);
    text-decoration: underline;
}

.page-khuyen-mai__final-cta-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-khuyen-mai__text-center {
    text-align: center;
}

.page-khuyen-mai__btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    margin-top: 30px;
}

/* General image responsiveness */
.page-khuyen-mai img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .page-khuyen-mai__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 16px;
    }

    .page-khuyen-mai__hero-content {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .page-khuyen-mai__hero-image {
        flex: 1 1 100%;
        order: -1; /* Image above text */
        margin-bottom: 30px;
    }

    .page-khuyen-mai__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .page-khuyen-mai__hero-description {
        font-size: 1rem;
    }

    .page-khuyen-mai__cta-buttons {
        justify-content: center;
    }

    .page-khuyen-mai__section-title {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
    }
}

@media (max-width: 768px) {
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

    .page-khuyen-mai__hero-container {
        padding: 30px 15px;
    }

    .page-khuyen-mai__main-title {
        font-size: 2rem !important; /* Specific mobile font size */
        margin-bottom: 15px;
    }

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

    .page-khuyen-mai__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .page-khuyen-mai__dark-section,
    .page-khuyen-mai__how-to-claim-section,
    .page-khuyen-mai__faq-section,
    .page-khuyen-mai__final-cta-section {
        padding: 40px 0;
    }

    .page-khuyen-mai__content-area {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-khuyen-mai__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
    }

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

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

    .page-khuyen-mai__promo-card {
        margin-left: 0;
        margin-right: 0;
    }

    .page-khuyen-mai__card-image {
        height: 180px;
    }

    .page-khuyen-mai__promo-card h3 {
        font-size: 1.2rem;
        padding: 12px 15px 8px;
    }

    .page-khuyen-mai__card-text {
        font-size: 0.85rem;
        padding: 0 15px 12px;
    }

    .page-khuyen-mai__btn-small {
        margin: 0 15px 15px;
    }

    .page-khuyen-mai__steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-khuyen-mai__step-item {
        padding: 20px;
    }

    .page-khuyen-mai__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

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

    .page-khuyen-mai__faq-list {
        margin-top: 30px;
    }

    .page-khuyen-mai__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-khuyen-mai__faq-toggle {
        font-size: 1.3rem;
    }

    .page-khuyen-mai__faq-answer {
        padding: 12px 20px 15px;
        font-size: 0.9rem;
    }

    .page-khuyen-mai__btn-large {
        padding: 14px 28px;
        font-size: 1rem;
        margin-top: 25px;
    }

    /* Universal image responsive styles for mobile */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-khuyen-mai__hero-side-image {
        height: auto !important;
    }

    .page-khuyen-mai__promo-card .page-khuyen-mai__card-image {
        height: 180px !important;
    }

    .page-khuyen-mai__promo-grid,
    .page-khuyen-mai__steps-container,
    .page-khuyen-mai__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}