/* style/khuyn-mi.css */

:root {
    --primary-color: #FFD700; /* Vàng kim */
    --secondary-color: #1A1A1A; /* Đen xám */
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --background-dark: #121212;
    --background-light: #F8F8F8;
    --accent-color: #FFC107; /* Vàng nhạt hơn một chút */
    --border-color: #333333;
}

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

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

.page-khuyn-mi-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #333333 50%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.page-khuyn-mi-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: page-khuyn-mi-pulse 15s infinite alternate;
}

@keyframes page-khuyn-mi-pulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 0.9; }
}

.page-khuyn-mi-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-khuyn-mi-hero-content h1 {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    line-height: 1.2;
}

.page-khuyn-mi-hero-content p {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 30px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.page-khuyn-mi-hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
}

.page-khuyn-mi-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.page-khuyn-mi-hero-image img:hover {
    transform: translateY(-5px);
}

.page-khuyn-mi-cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.page-khuyn-mi-cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.page-khuyn-mi-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-khuyn-mi-intro {
    background-color: #1A1A1A;
    color: var(--text-light);
}

.page-khuyn-mi-intro h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-khuyn-mi-intro p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-khuyn-mi-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-khuyn-mi-card img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
}

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

.page-khuyn-mi-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-khuyn-mi-card h3 a:hover {
    color: var(--accent-color);
}

.page-khuyn-mi-card p {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 25px;
}

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

.page-khuyn-mi-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi-details h2, .page-khuyn-mi-guide h2, .page-khuyn-mi-faq h2, .page-khuyn-mi-blog h2, .page-khuyn-mi-call-to-action h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-khuyn-mi-details p, .page-khuyn-mi-guide p, .page-khuyn-mi-faq p, .page-khuyn-mi-blog p, .page-khuyn-mi-call-to-action p {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-khuyn-mi-promo-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

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

.page-khuyn-mi-promo-item img {
    flex: 1;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.page-khuyn-mi-promo-content {
    flex: 2;
}

.page-khuyn-mi-promo-content h3 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: left;
}

.page-khuyn-mi-promo-content p {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: left;
}

.page-khuyn-mi-promo-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
}

.page-khuyn-mi-promo-content ul li {
    background: rgba(255, 215, 0, 0.1);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1em;
}

.page-khuyn-mi-guide ol {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-khuyn-mi-guide ol li {
    background-color: var(--secondary-color);
    border-left: 5px solid var(--primary-color);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.page-khuyn-mi-guide ol li:hover {
    transform: translateX(10px);
}

.page-khuyn-mi-guide ol li strong {
    color: var(--primary-color);
}

.page-khuyn-mi-note {
    font-style: italic;
    font-size: 0.95em;
    color: #AAAAAA;
    margin-top: 30px;
}

/* FAQ Styles */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

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

.faq-question:hover {
    background: #2A2A2A;
    border-color: var(--primary-color);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-light);
    flex-grow: 1;
    text-align: left;
}

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #222222;
    color: var(--text-light);
}

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

.faq-answer p {
    margin: 0;
    font-size: 1em;
    text-align: left;
}

.page-khuyn-mi-blog {
    background-color: #1A1A1A;
}

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

.page-khuyn-mi-blog-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.page-khuyn-mi-blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.page-khuyn-mi-blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-color);
}

.page-khuyn-mi-blog-card h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 20px 20px 10px 20px;
    text-align: left;
}

.page-khuyn-mi-blog-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-khuyn-mi-blog-card h3 a:hover {
    color: var(--accent-color);
}

.page-khuyn-mi-blog-card p {
    font-size: 0.95em;
    color: var(--text-light);
    margin: 0 20px 20px 20px;
    text-align: left;
}

.page-khuyn-mi-read-more {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    margin: 0 20px 20px 20px;
    transition: all 0.3s ease;
}

.page-khuyn-mi-read-more:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.page-khuyn-mi-call-to-action {
    padding: 80px 0;
    background: linear-gradient(90deg, #1A1A1A, #333333, #1A1A1A);
    text-align: center;
}

.page-khuyn-mi-cta-box {
    background-color: var(--secondary-color);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 2px solid var(--primary-color);
}

.page-khuyn-mi-cta-box h2 {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.page-khuyn-mi-cta-box p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuyn-mi-hero-content h1 {
        font-size: 3em;
    }
    .page-khuyn-mi-hero-content p {
        font-size: 1.1em;
    }
    .page-khuyn-mi-cta-button {
        font-size: 1.2em;
        padding: 15px 35px;
    }
    .page-khuyn-mi-promo-item {
        flex-direction: column;
        text-align: center;
    }
    .page-khuyn-mi-promo-item.reverse {
        flex-direction: column;
    }
    .page-khuyn-mi-promo-item img {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .page-khuyn-mi-promo-content h3, .page-khuyn-mi-promo-content p, .page-khuyn-mi-promo-content ul {
        text-align: center;
    }
    .page-khuyn-mi-promo-content ul li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-khuyn-mi-hero {
        padding: 60px 15px;
    }
    .page-khuyn-mi-hero-content h1 {
        font-size: 2.5em;
    }
    .page-khuyn-mi-hero-content p {
        font-size: 1em;
    }
    .page-khuyn-mi-cta-button {
        font-size: 1.1em;
        padding: 12px 30px;
    }
    .page-khuyn-mi-section {
        padding: 40px 0;
    }
    .page-khuyn-mi-intro h2, .page-khuyn-mi-details h2, .page-khuyn-mi-guide h2, .page-khuyn-mi-faq h2, .page-khuyn-mi-blog h2, .page-khuyn-mi-call-to-action h2 {
        font-size: 2em;
    }
    .page-khuyn-mi-card-grid, .page-khuyn-mi-blog-grid {
        grid-template-columns: 1fr;
    }
    .page-khuyn-mi-promo-item {
        padding: 20px;
        gap: 20px;
    }
    .page-khuyn-mi-promo-content h3 {
        font-size: 1.5em;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 1.5em;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-khuyn-mi-cta-box {
        padding: 30px;
    }
    .page-khuyn-mi-cta-box h2 {
        font-size: 2.2em;
    }
    .page-khuyn-mi-cta-box p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-khuyn-mi-hero-content h1 {
        font-size: 2em;
    }
    .page-khuyn-mi-hero-content p {
        font-size: 0.9em;
    }
    .page-khuyn-mi-cta-button {
        font-size: 1em;
        padding: 10px 25px;
    }
    .page-khuyn-mi-intro h2, .page-khuyn-mi-details h2, .page-khuyn-mi-guide h2, .page-khuyn-mi-faq h2, .page-khuyn-mi-blog h2, .page-khuyn-mi-call-to-action h2 {
        font-size: 1.8em;
    }
    .page-khuyn-mi-card h3 {
        font-size: 1.4em;
    }
    .page-khuyn-mi-promo-content h3 {
        font-size: 1.3em;
    }
    .page-khuyn-mi-blog-card h3 {
        font-size: 1.3em;
    }
    .page-khuyn-mi-cta-box h2 {
        font-size: 1.8em;
    }
}