/* style/khuyen-mai.css */
.page-khuyen-mai {
    --main-color: #C61F1F;
    --accent-color: #E53030;
    --card-bg: #2A1212;
    --page-bg: #140C0C;
    --text-main: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--page-bg);
}

.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding as per requirement */
    padding-bottom: 60px;
    background-color: var(--deep-red-color);
    color: var(--text-main);
}

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

.page-khuyen-mai__hero-text {
    flex: 1;
}

.page-khuyen-mai__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color);
}

.page-khuyen-mai__hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-main);
}

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary,
.page-khuyen-mai__btn-card,
.page-khuyen-mai__btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-khuyen-mai__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #ffffff;
    border: none;
}

.page-khuyen-mai__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-khuyen-mai__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--deep-red-color);
}

.page-khuyen-mai__hero-image {
    flex: 1;
    text-align: center;
}

.page-khuyen-mai__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.page-khuyen-mai__dark-bg {
    background-color: var(--page-bg);
    color: var(--text-main);
}

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

.page-khuyen-mai__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--gold-color);
}

.page-khuyen-mai__section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
}

.page-khuyen-mai__promo-grid-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-khuyen-mai__promo-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--text-main);
}

.page-khuyen-mai__promo-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-khuyen-mai__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.page-khuyen-mai__card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--text-main);
}

.page-khuyen-mai__btn-card {
    margin-top: auto;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #ffffff;
    border: none;
    width: 100%;
}

.page-khuyen-mai__btn-card:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-khuyen-mai__how-to-get-promo-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--page-bg);
    color: var(--text-main);
}

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

.page-khuyen-mai__step-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
}

.page-khuyen-mai__step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--gold-color);
    color: var(--deep-red-color);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.page-khuyen-mai__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gold-color);
}

.page-khuyen-mai__step-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--text-main);
}

.page-khuyen-mai__btn-inline {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #ffffff;
    border: none;
    width: auto;
    min-width: 150px;
}

.page-khuyen-mai__btn-inline:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-khuyen-mai__promo-cta-bottom {
    display: flex;
    align-items: center;
    background-color: var(--deep-red-color);
    border-radius: 12px;
    margin-top: 60px;
    overflow: hidden;
    color: var(--text-main);
}

.page-khuyen-mai__promo-cta-bottom img {
    flex: 1 1 50%;
    max-width: 50%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-khuyen-mai__promo-cta-content {
    flex: 1 1 50%;
    padding: 40px;
    text-align: left;
}

.page-khuyen-mai__promo-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold-color);
}

.page-khuyen-mai__promo-cta-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-main);
}

.page-khuyen-mai__terms-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-khuyen-mai__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai__terms-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 40px;
    color: var(--text-main);
}

.page-khuyen-mai__terms-item::before {
    content: '•';
    position: absolute;
    left: 15px;
    color: var(--gold-color);
    font-size: 1.5rem;
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
}

.page-khuyen-mai__terms-note {
    text-align: center;
    font-size: 1rem;
    margin-top: 30px;
    color: var(--text-main);
}

.page-khuyen-mai__link-text {
    color: var(--gold-color);
    text-decoration: underline;
}

.page-khuyen-mai__link-text:hover {
    color: #FFF1E8;
}

.page-khuyen-mai__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--page-bg);
    color: var(--text-main);
}

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

.page-khuyen-mai__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--gold-color);
    list-style: none;
}

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

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

.page-khuyen-mai__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
}

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

.page-khuyen-mai__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

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

.page-khuyen-mai__final-cta-section {
    padding-top: 60px;
    padding-bottom: 80px;
    text-align: center;
}

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

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

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-khuyen-mai__hero-content-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }

    .page-khuyen-mai__hero-text {
        flex: none;
        width: 100%;
    }

    .page-khuyen-mai__hero-image {
        flex: none;
        width: 100%;
        margin-bottom: 30px;
    }

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

    .page-khuyen-mai__promo-cta-bottom {
        flex-direction: column;
    }

    .page-khuyen-mai__promo-cta-bottom img {
        max-width: 100%;
        width: 100%;
        flex: none;
    }

    .page-khuyen-mai__promo-cta-content {
        flex: none;
        width: 100%;
        text-align: center;
        padding: 30px;
    }
}

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

    .page-khuyen-mai__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-khuyen-mai__hero-content-wrapper,
    .page-khuyen-mai__content-area {
        padding: 20px 15px;
    }

    .page-khuyen-mai__main-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

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

    .page-khuyen-mai__cta-buttons,
    .page-khuyen-mai__cta-buttons-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary,
    .page-khuyen-mai__btn-card,
    .page-khuyen-mai__btn-inline {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* General image responsiveness for all img elements */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* All containers that might hold images or content */
    .page-khuyen-mai__hero-section,
    .page-khuyen-mai__promo-grid-section,
    .page-khuyen-mai__how-to-get-promo-section,
    .page-khuyen-mai__terms-section,
    .page-khuyen-mai__faq-section,
    .page-khuyen-mai__final-cta-section,
    .page-khuyen-mai__content-area,
    .page-khuyen-mai__promo-cards,
    .page-khuyen-mai__steps-grid,
    .page-khuyen-mai__faq-list,
    .page-khuyen-mai__promo-cta-bottom,
    .page-khuyen-mai__promo-cta-content,
    .page-khuyen-mai__promo-card,
    .page-khuyen-mai__step-item,
    .page-khuyen-mai__terms-list,
    .page-khuyen-mai__faq-item {
        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: 2rem;
        margin-bottom: 15px;
    }

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

    .page-khuyen-mai__promo-card img {
         /* Adjust height for mobile card images */
    }

    .page-khuyen-mai__card-title {
        font-size: 1.3rem;
    }

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

    .page-khuyen-mai__promo-cta-title {
        font-size: 1.6rem;
    }

    .page-khuyen-mai__promo-cta-text {
        font-size: 1rem;
    }

    .page-khuyen-mai__terms-item,
    .page-khuyen-mai__faq-question,
    .page-khuyen-mai__faq-answer {
        font-size: 0.95rem;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-khuyen-mai__faq-question {
        padding: 15px 15px;
    }

    .page-khuyen-mai__faq-answer {
        padding: 0 15px 15px;
    }

    .page-khuyen-mai__terms-item::before {
        left: 5px;
    }
}