/* style/khuyn-mi.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #001f4d; /* Darker blue for contrast */
    --border-color: #e0e0e0;
}

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

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

/* Hero Section */
.page-khuyn-mi-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%); /* Darker primary for hero background */
    color: var(--text-light);
    overflow: hidden;
}

.page-khuyn-mi-hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-khuyn-mi-hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-khuyn-mi-hero h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuyn-mi-hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-khuyn-mi-cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-khuyn-mi-cta-button:hover {
    background: #ffdb80; /* Lighter secondary color */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-khuyn-mi-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.page-khuyn-mi-alt-bg {
    background-color: #ffffff;
}

.page-khuyn-mi-section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-khuyn-mi-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

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

.page-khuyn-mi-section p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-khuyn-mi-section ul,
.page-khuyn-mi-section ol {
    list-style-position: inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-khuyn-mi-section li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-khuyn-mi-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-khuyn-mi-section a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.page-khuyn-mi-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-khuyn-mi-button:hover {
    background: #0056b3; /* Darker primary color */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Content Blocks with Image */
.page-khuyn-mi-content-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.page-khuyn-mi-content-block .page-khuyn-mi-image-left,
.page-khuyn-mi-content-block .page-khuyn-mi-image-right {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    height: auto;
    object-fit: cover;
}

.page-khuyn-mi-content-block .page-khuyn-mi-text-left,
.page-khuyn-mi-content-block .page-khuyn-mi-text-right {
    flex: 2;
    min-width: 300px;
}

.page-khuyn-mi-content-block.page-khuyn-mi-reverse {
    flex-direction: row-reverse;
}

/* Specific adjustments for text within content blocks */
.page-khuyn-mi-text-right p, .page-khuyn-mi-text-left p {
    text-align: justify;
}

/* FAQ Section */
.page-khuyn-mi-faq-list {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    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(--text-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--text-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;
    padding: 0 25px;
    background: var(--bg-light);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 20px 25px;
}

.faq-answer p {
    margin: 0;
    font-size: 1.05em;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-khuyn-mi-hero h1 {
        font-size: 2.5em;
    }
    .page-khuyn-mi-hero p {
        font-size: 1.1em;
    }
    .page-khuyn-mi-cta-button {
        padding: 15px 35px;
        font-size: 1.2em;
    }
    .page-khuyn-mi-section h2 {
        font-size: 2em;
    }
    .page-khuyn-mi-section h3 {
        font-size: 1.6em;
    }
    .page-khuyn-mi-content-block {
        flex-direction: column;
        gap: 30px;
    }
    .page-khuyn-mi-content-block.page-khuyn-mi-reverse {
        flex-direction: column;
    }
    .page-khuyn-mi-content-block .page-khuyn-mi-image-left,
    .page-khuyn-mi-content-block .page-khuyn-mi-image-right {
        width: 100%;
        max-width: 600px; /* Constrain image width on smaller screens */
        margin: 0 auto;
    }
    .page-khuyn-mi-content-block .page-khuyn-mi-text-left,
    .page-khuyn-mi-content-block .page-khuyn-mi-text-right {
        width: 100%;
    }
    .page-khuyn-mi-section p, .page-khuyn-mi-section li, .faq-answer p {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-khuyn-mi-hero {
        padding: 40px 15px;
    }
    .page-khuyn-mi-hero h1 {
        font-size: 2em;
    }
    .page-khuyn-mi-hero p {
        font-size: 1em;
    }
    .page-khuyn-mi-cta-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    .page-khuyn-mi-section {
        padding: 40px 0;
    }
    .page-khuyn-mi-section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-khuyn-mi-section h3 {
        font-size: 1.4em;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-khuyn-mi-hero h1 {
        font-size: 1.6em;
    }
    .page-khuyn-mi-hero p {
        font-size: 0.95em;
    }
    .page-khuyn-mi-cta-button {
        padding: 10px 20px;
        font-size: 1em;
    }
    .page-khuyn-mi-section h2 {
        font-size: 1.6em;
    }
    .page-khuyn-mi-section h3 {
        font-size: 1.2em;
    }
    .page-khuyn-mi-button {
        padding: 10px 20px;
        font-size: 1em;
    }
    .faq-question h3 {
        font-size: 1em;
    }
}