/* style/khuyen-mai.css */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --text-main-color: #F3F8FF;
    --text-secondary-color: #AFC4E8;
    --card-bg-color: #10233F;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --deep-navy: #08162B;
}

.page-khuyen-mai {
    background-color: var(--deep-navy); /* Body background from shared.css is --deep-navy */
    color: var(--text-main-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--primary-color);
    color: var(--text-main-color);
}

.page-khuyen-mai__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 15px;
}

.page-khuyen-mai__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-khuyen-mai__hero-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-main-color);
}

.page-khuyen-mai__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary-color);
}

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

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    text-align: center;
}

.page-khuyen-mai__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-khuyen-mai__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-khuyen-mai__main-promo-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-khuyen-mai__promo-grid-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
    color: var(--text-main-color);
}

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

.page-khuyen-mai__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-khuyen-mai__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-secondary-color);
}

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

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

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

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

.page-khuyen-mai__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: var(--text-main-color);
}

.page-khuyen-mai__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-khuyen-mai__card-title a:hover {
    color: var(--glow-color);
}

.page-khuyen-mai__card-description {
    font-size: 0.95em;
    margin: 0 20px 20px;
    flex-grow: 1;
    color: var(--text-secondary-color);
}

.page-khuyen-mai__btn-link {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-khuyen-mai__btn-link:hover {
    background-color: var(--glow-color);
}

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

.page-khuyen-mai__guide-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.page-khuyen-mai__step-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    flex: 1 1 280px;
    max-width: 320px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--glow-color);
    margin-bottom: 15px;
    line-height: 1;
}

.page-khuyen-mai__step-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main-color);
}

.page-khuyen-mai__step-description {
    font-size: 0.95em;
    color: var(--text-secondary-color);
}

.page-khuyen-mai__guide-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-khuyen-mai__terms-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
    color: var(--text-main-color);
}

.page-khuyen-mai__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 30px;
    color: var(--text-secondary-color);
}

.page-khuyen-mai__terms-item {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-khuyen-mai__terms-note {
    margin-top: 30px;
    font-style: italic;
    color: var(--text-secondary-color);
}

.page-khuyen-mai__text-link {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-khuyen-mai__text-link:hover {
    color: #ffffff;
}

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

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

.page-khuyen-mai__faq-item {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main-color);
    list-style: none; /* Remove default marker */
}

.page-khuyen-mai__faq-question::-webkit-details-marker, /* Hide default marker for webkit */
.page-khuyen-mai__faq-question::marker { 
    display: none;
    content: '';
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--glow-color);
    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-top: 15px;
    font-size: 0.95em;
    color: var(--text-secondary-color);
    border-top: 1px solid var(--divider-color, #1B3357);
    margin-top: 15px;
}

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

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .page-khuyen-mai__hero-title {
        font-size: 2.4em;
    }
    .page-khuyen-mai__section-title {
        font-size: 2em;
    }
    .page-khuyen-mai__guide-steps {
        gap: 20px;
    }
    .page-khuyen-mai__step-item {
        max-width: 300px;
    }
}

@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-container {
        flex-direction: column;
        padding: 30px 15px;
        gap: 30px;
    }

    .page-khuyen-mai__hero-content,
    .page-khuyen-mai__hero-image {
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-khuyen-mai__hero-title {
        font-size: clamp(1.8em, 5vw, 2.2em);
        text-align: center;
    }

    .page-khuyen-mai__hero-description {
        font-size: 1em;
        text-align: center;
    }

    .page-khuyen-mai__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%; /* Ensure container takes full width */
        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;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-khuyen-mai__main-promo-image {
        border-radius: 8px;
    }

    .page-khuyen-mai__promo-grid-section,
    .page-khuyen-mai__guide-section,
    .page-khuyen-mai__terms-section,
    .page-khuyen-mai__faq-section {
        padding: 40px 0;
    }

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

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

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

    .page-khuyen-mai__promo-card {
        margin: 0 15px;
    }

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

    .page-khuyen-mai__card-title {
        font-size: 1.2em;
        margin: 15px;
    }

    .page-khuyen-mai__card-description {
        font-size: 0.9em;
        margin: 0 15px 15px;
    }

    .page-khuyen-mai__btn-link {
        margin: 0 15px 15px;
        width: calc(100% - 30px);
        box-sizing: border-box;
    }

    .page-khuyen-mai__guide-steps {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .page-khuyen-mai__step-item {
        max-width: calc(100% - 30px);
        padding: 20px;
    }

    .page-khuyen-mai__step-number {
        font-size: 2em;
    }

    .page-khuyen-mai__step-title {
        font-size: 1.1em;
    }

    .page-khuyen-mai__guide-image {
        border-radius: 8px;
    }

    .page-khuyen-mai__terms-list {
        padding-left: 20px;
        margin-top: 20px;
    }

    .page-khuyen-mai__terms-item {
        font-size: 0.95em;
    }

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

    .page-khuyen-mai__faq-item {
        margin: 0 15px 15px;
        padding: 15px 20px;
    }

    .page-khuyen-mai__faq-question {
        font-size: 1em;
    }

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

    .page-khuyen-mai__faq-answer {
        font-size: 0.9em;
        padding-top: 10px;
        margin-top: 10px;
    }

    /* Universal image responsiveness for content area */
    .page-khuyen-mai img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-khuyen-mai__container,
    .page-khuyen-mai__promo-card,
    .page-khuyen-mai__step-item,
    .page-khuyen-mai__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific override for elements that are already full width */
    .page-khuyen-mai__promo-card, .page-khuyen-mai__step-item, .page-khuyen-mai__faq-item {
        padding-left: 0;
        padding-right: 0;
    }
}