/* Base styles for the Khuyến Mãi page */
.page-khuyen-mai {
    font-family: Arial, sans-serif;
    color: var(--text-main, #1F2D3D); /* Default text color */
    background-color: var(--background, #F4F7FB); /* Default background */
    line-height: 1.6;
}

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

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

.page-khuyen-mai__section-description {
    font-size: 1.1em;
    color: var(--text-main, #1F2D3D);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Hero Section */
.page-khuyen-mai__hero-section {
    padding-top: 10px; /* Adhering to fixed header rule */
    padding-bottom: 60px;
    background: var(--background, #F4F7FB); /* Light background for hero */
}

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

.page-khuyen-mai__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: var(--text-main, #1F2D3D);
    text-align: left;
}

.page-khuyen-mai__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main, #1F2D3D);
}

.page-khuyen-mai__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-main, #1F2D3D);
}

.page-khuyen-mai__hero-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

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

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

/* Buttons */
.page-khuyen-mai__btn-primary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuyen-mai__btn-primary:hover {
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
    transform: translateY(-2px);
}

.page-khuyen-mai__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--primary-color, #2F6BFF);
    border: 2px solid var(--primary-color, #2F6BFF);
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuyen-mai__btn-secondary:hover {
    background: var(--primary-color, #2F6BFF);
    color: #ffffff;
}

.page-khuyen-mai__btn-small {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuyen-mai__btn-small:hover {
    opacity: 0.9;
}

.page-khuyen-mai__btn-text {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color, #2F6BFF);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-khuyen-mai__btn-text:hover {
    color: var(--secondary-color, #6FA3FF);
}

.page-khuyen-mai__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-khuyen-mai__btn-text:hover .page-khuyen-mai__arrow {
    transform: translateX(5px);
}

.page-khuyen-mai__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Dark Section styling */
.page-khuyen-mai__dark-section {
    background: var(--primary-color, #2F6BFF);
    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 h3 {
    color: #ffffff;
}

/* Promo Categories Section */
.page-khuyen-mai__promo-categories-section {
    padding: 80px 0;
}

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

.page-khuyen-mai__category-card {
    background: var(--card-bg, #FFFFFF);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main, #1F2D3D);
}

.page-khuyen-mai__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai__category-icon-box-media {
    width: 120px;
    height: 120px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--secondary-color, #6FA3FF);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.3); /* Inner glow effect */
}

.page-khuyen-mai__category-icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.page-khuyen-mai__category-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main, #1F2D3D);
}

.page-khuyen-mai__category-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-main, #1F2D3D);
}

/* Promo List Section */
.page-khuyen-mai__promo-list-section {
    padding: 80px 0;
    background: var(--background, #F4F7FB);
}

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

.page-khuyen-mai__promo-card {
    background: var(--card-bg, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

.page-khuyen-mai__promo-card-content {
    padding: 25px;
    color: var(--text-main, #1F2D3D);
}

.page-khuyen-mai__promo-card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-khuyen-mai__promo-card-title a {
    color: var(--text-main, #1F2D3D);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-khuyen-mai__promo-card-title a:hover {
    color: var(--primary-color, #2F6BFF);
}

.page-khuyen-mai__promo-card-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: var(--text-main, #1F2D3D);
}

/* How To Claim Section */
.page-khuyen-mai__how-to-claim-section {
    padding: 80px 0;
}

.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: var(--card-bg, #FFFFFF);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    color: var(--text-main, #1F2D3D);
}

.page-khuyen-mai__step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-color, #6FA3FF);
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
}

.page-khuyen-mai__step-item .page-khuyen-mai__step-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main, #1F2D3D);
}

.page-khuyen-mai__step-item .page-khuyen-mai__step-description {
    font-size: 1em;
    color: var(--text-main, #1F2D3D);
}

.page-khuyen-mai__center-cta {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-khuyen-mai__faq-section {
    padding: 80px 0;
    background: var(--background, #F4F7FB);
}

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

.page-khuyen-mai__faq-item {
    background: var(--card-bg, #FFFFFF);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: var(--text-main, #1F2D3D);
}

.page-khuyen-mai__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-main, #1F2D3D);
    position: relative;
    transition: background-color 0.3s ease;
}

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

.page-khuyen-mai__faq-item summary:hover {
    background-color: rgba(47, 107, 255, 0.05);
}

.page-khuyen-mai__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color, #2F6BFF);
    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: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main, #1F2D3D);
    opacity: 0.9;
}

/* Call to Action Bottom Section */
.page-khuyen-mai__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
}

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

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

    .page-khuyen-mai__hero-content {
        text-align: center;
    }

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

    .page-khuyen-mai__promo-categories-grid,
    .page-khuyen-mai__promo-grid,
    .page-khuyen-mai__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-khuyen-mai__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-khuyen-mai__hero-section {
        padding-top: 10px !important; /* Fixed header rule */
        padding-bottom: 40px;
    }

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

    .page-khuyen-mai__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-khuyen-mai__hero-description {
        font-size: 1.1em;
    }

    .page-khuyen-mai__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Buttons */
    .page-khuyen-mai__btn-primary,
    .page-khuyen-mai__btn-secondary,
    .page-khuyen-mai__btn-small,
    .page-khuyen-mai__btn-large,
    .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__hero-cta-buttons,
    .page-khuyen-mai__center-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Promo Categories Section */
    .page-khuyen-mai__promo-categories-section,
    .page-khuyen-mai__promo-list-section,
    .page-khuyen-mai__how-to-claim-section,
    .page-khuyen-mai__faq-section,
    .page-khuyen-mai__cta-bottom-section {
        padding: 60px 0;
    }

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

    .page-khuyen-mai__section-title {
        font-size: 1.8em;
    }

    .page-khuyen-mai__section-description {
        font-size: 1em;
    }

    .page-khuyen-mai__promo-categories-grid,
    .page-khuyen-mai__promo-grid,
    .page-khuyen-mai__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-khuyen-mai__category-icon-box-media {
        width: 100px; /* Still square */
        height: 100px; /* Still square */
        margin-bottom: 15px;
    }

    .page-khuyen-mai__promo-image {
        height: 180px; /* Adjust height for mobile */
    }

    /* FAQ Section */
    .page-khuyen-mai__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

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

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

    .page-khuyen-mai__section,
    .page-khuyen-mai__card,
    .page-khuyen-mai__container,
    .page-khuyen-mai__promo-card,
    .page-khuyen-mai__category-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;
    }
}