/* style/khuyn-mi.css */

:root {
    --primary-color: #FF4500; /* OrangeRed */
    --secondary-color: #00BFFF; /* DeepSkyBlue */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f4f7f6;
    --background-dark: #2c3e50;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

.page-khuyn-mi {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-light);
}

.page-khuyn-mi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-khuyn-mi-section {
    padding: 60px 0;
    text-align: center;
}

.page-khuyn-mi-section h1,
.page-khuyn-mi-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1.2;
}

.page-khuyn-mi-section h3 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: bold;
}

.page-khuyn-mi-section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555555;
}

/* Banner Section */
.page-khuyn-mi-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px; /* Minimum height for banner */
}

.page-khuyn-mi-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-khuyn-mi-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-color-light);
    max-width: 800px;
    padding: 20px;
}

.page-khuyn-mi-banner-content h1 {
    color: var(--text-color-light);
    font-size: 3.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-khuyn-mi-banner-content p {
    color: var(--text-color-light);
    font-size: 1.3em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-khuyn-mi-cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi-cta-button:hover {
    background-color: #e63900; /* Darker primary */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi-cta-button.small {
    padding: 10px 25px;
    font-size: 1em;
}

.page-khuyn-mi-cta-button.large {
    padding: 18px 45px;
    font-size: 1.4em;
}

/* Intro Section */
.page-khuyn-mi-intro {
    background-color: var(--background-light);
}

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

.page-khuyn-mi-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyn-mi-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-khuyn-mi-card-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-khuyn-mi-card h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-khuyn-mi-card p {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
}

.page-khuyn-mi-card-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-khuyn-mi-card-button:hover {
    background-color: #009acd; /* Darker secondary */
}

/* Categories Section */
.page-khuyn-mi-categories {
    background-color: #e9f5f3;
}

.page-khuyn-mi-category-item {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.page-khuyn-mi-category-item.reverse {
    flex-direction: row-reverse;
}

.page-khuyn-mi-category-img {
    flex: 0 0 400px; /* Fixed width for image on desktop */
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-khuyn-mi-category-content {
    flex: 1;
}

.page-khuyn-mi-category-content h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-khuyn-mi-category-content p {
    color: #555555;
    margin-bottom: 15px;
}

.page-khuyn-mi-category-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-khuyn-mi-category-content ul li {
    margin-bottom: 8px;
    color: #444444;
    position: relative;
    padding-left: 25px;
}

.page-khuyn-mi-category-content ul li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Conditions Section */
.page-khuyn-mi-conditions {
    background-color: var(--background-light);
}

.page-khuyn-mi-text-block {
    background-color: var(--card-background);
    border-left: 5px solid var(--secondary-color);
    padding: 25px 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-khuyn-mi-text-block h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.6em;
}

.page-khuyn-mi-text-block p {
    color: #555555;
    font-size: 1em;
    line-height: 1.7;
}

/* How-to Section */
.page-khuyn-mi-howto {
    background-color: #f0f8ff;
}

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

.page-khuyn-mi-step-item {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-khuyn-mi-step-item:hover {
    transform: translateY(-5px);
}

.page-khuyn-mi-step-img {
    width: 100%;
    max-width: 250px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-khuyn-mi-step-item h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-khuyn-mi-step-item p {
    font-size: 0.95em;
    color: #666666;
}

/* FAQ Section */
.page-khuyn-mi-faq {
    background-color: var(--background-light);
}

.faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--text-color-dark);
    flex-grow: 1;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: #fcfcfc;
    padding: 0 25px;
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--border-color);
    border-top: none;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed to fit content */
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin: 0;
    color: #555555;
    font-size: 1em;
    line-height: 1.7;
}

/* Conclusion Section */
.page-khuyn-mi-conclusion {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 80px 0;
}

.page-khuyn-mi-conclusion h2 {
    color: var(--text-color-light);
    font-size: 2.8em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi-conclusion p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-khuyn-mi-conclusion p a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-khuyn-mi-conclusion p a:hover {
    color: #ffcc00;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuyn-mi-banner-content h1 {
        font-size: 3em;
    }

    .page-khuyn-mi-banner-content p {
        font-size: 1.1em;
    }

    .page-khuyn-mi-category-item {
        flex-direction: column;
        text-align: center;
    }

    .page-khuyn-mi-category-item.reverse {
        flex-direction: column;
    }

    .page-khuyn-mi-category-img {
        max-width: 100%;
        flex: none;
        margin-bottom: 20px;
    }
    .page-khuyn-mi-category-content h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-khuyn-mi-section {
        padding: 40px 0;
    }

    .page-khuyn-mi-section h1 {
        font-size: 2.2em;
    }

    .page-khuyn-mi-section h2 {
        font-size: 2em;
    }

    .page-khuyn-mi-section h3 {
        font-size: 1.5em;
    }

    .page-khuyn-mi-banner {
        min-height: 350px;
    }

    .page-khuyn-mi-banner-content h1 {
        font-size: 2.5em;
    }

    .page-khuyn-mi-banner-content p {
        font-size: 1em;
    }

    .page-khuyn-mi-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-khuyn-mi-card {
        padding: 20px;
    }

    .page-khuyn-mi-category-item {
        padding: 20px;
    }

    .page-khuyn-mi-text-block {
        padding: 20px;
    }

    .page-khuyn-mi-step-item {
        padding: 20px;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-question h3 {
        font-size: 1.1em;
    }

    .faq-answer {
        padding: 15px 20px;
    }

    .page-khuyn-mi-conclusion h2 {
        font-size: 2.2em;
    }

    .page-khuyn-mi-conclusion p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-khuyn-mi-banner-content h1 {
        font-size: 2em;
    }
    .page-khuyn-mi-banner-content p {
        font-size: 0.9em;
    }
    .page-khuyn-mi-cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-khuyn-mi-category-img {
        height: 180px;
    }
    .page-khuyn-mi-step-img {
        height: 150px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
}