/* style/khuyn-mi.css */
:root {
    --primary-color: #1a202c; /* Deep Grey Blue */
    --secondary-color: #e53e3e; /* Red */
    --text-light: #ffffff;
    --text-dark: #cbd5e0; /* Light Grey for general text on dark background */
    --text-heading: #ffffff;
    --bg-dark: #1a202c;
    --bg-light: #2d3748; /* Slightly lighter dark for contrast sections */
    --border-color: #4a5568;
    --button-hover-bg: #c53030;
    --card-bg: #2d3748;
}

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

.page-khuyn-mi h1, .page-khuyn-mi h2, .page-khuyn-mi h3, .page-khuyn-mi h4 {
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-weight: bold;
}

.page-khuyn-mi h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.page-khuyn-mi h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.page-khuyn-mi 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 h3 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.page-khuyn-mi p {
    margin-bottom: 1rem;
}

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

.page-khuyn-mi section {
    padding: 60px 0;
    margin-bottom: 0;
}

.page-khuyn-mi section:nth-of-type(even) {
    background-color: var(--bg-light);
}

/* Hero Section */
.page-khuyn-mi .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-dark);
    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%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

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

.page-khuyn-mi .hero-content p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 300;
}

.page-khuyn-mi .cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
    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: var(--button-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi .cta-button.small {
    padding: 12px 30px;
    font-size: 1rem;
}

.page-khuyn-mi .cta-button.large {
    padding: 20px 50px;
    font-size: 1.3rem;
}

/* Intro Section */
.page-khuyn-mi .section-intro p strong {
    color: var(--secondary-color);
}

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

.page-khuyn-mi .promo-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-khuyn-mi .promo-card .promo-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-khuyn-mi .promo-card h3 {
    font-size: 1.4rem;
    color: var(--text-heading);
    margin-top: 0;
    padding: 0 20px;
}

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

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

.page-khuyn-mi .promo-card p {
    color: var(--text-dark);
    padding: 0 20px;
    flex-grow: 1;
}

.page-khuyn-mi .promo-card .btn-small {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-khuyn-mi .promo-card .btn-small:hover {
    background: var(--button-hover-bg);
    transform: translateY(-2px);
}

/* How To Claim Section */
.page-khuyn-mi .section-how-to-claim ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin-top: 30px;
}

.page-khuyn-mi .section-how-to-claim ol li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding-left: 50px;
    position: relative;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.page-khuyn-mi .section-how-to-claim ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.page-khuyn-mi .section-how-to-claim .note {
    font-style: italic;
    color: #a0aec0;
    margin-top: 30px;
    text-align: center;
}

/* Terms Section */
.page-khuyn-mi .section-terms ul {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
}

.page-khuyn-mi .section-terms ul li {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-khuyn-mi .section-terms ul li strong {
    color: var(--secondary-color);
}

/* Why Choose Section */
.page-khuyn-mi .reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-khuyn-mi .reason-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyn-mi .reason-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi .reason-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(1.1); /* Allowed for contrast, not color change */
}

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

.page-khuyn-mi .reason-item p {
    color: var(--text-dark);
}

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

.page-khuyn-mi .faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-khuyn-mi .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-khuyn-mi .faq-question:hover {
    background: #3a475b; /* Slightly lighter card background on hover */
}

.page-khuyn-mi .faq-question h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-heading);
    flex-grow: 1;
    text-align: left;
}

.page-khuyn-mi .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

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

.page-khuyn-mi .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: #232b38; /* Even darker for answer background */
    padding: 0 25px;
    color: var(--text-dark);
}

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

.page-khuyn-mi .faq-answer p {
    margin: 0;
}

/* Conclusion Section */
.page-khuyn-mi .section-conclusion {
    text-align: center;
}

.page-khuyn-mi .section-conclusion p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuyn-mi h1 {
        font-size: 2.5rem;
    }
    .page-khuyn-mi h2 {
        font-size: 2rem;
    }
    .page-khuyn-mi .hero-content p {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .page-khuyn-mi section {
        padding: 40px 0;
    }
    .page-khuyn-mi h1 {
        font-size: 2rem;
    }
    .page-khuyn-mi h2 {
        font-size: 1.8rem;
    }
    .page-khuyn-mi h3 {
        font-size: 1.4rem;
    }
    .page-khuyn-mi .hero-section {
        padding: 40px 15px;
    }
    .page-khuyn-mi .hero-image {
        margin-bottom: 20px;
    }
    .page-khuyn-mi .hero-image img {
        border-radius: 8px;
    }
    .page-khuyn-mi .cta-button {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    .page-khuyn-mi .promo-grid {
        grid-template-columns: 1fr;
    }
    .page-khuyn-mi .promo-card .promo-img {
        height: 180px;
    }
    .page-khuyn-mi .section-how-to-claim ol li {
        padding-left: 45px;
        font-size: 1rem;
    }
    .page-khuyn-mi .section-how-to-claim ol li::before {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }
    .page-khuyn-mi .reason-grid {
        grid-template-columns: 1fr;
    }
    .page-khuyn-mi .faq-question {
        padding: 15px 20px;
    }
    .page-khuyn-mi .faq-question h3 {
        font-size: 1.1rem;
    }
    .page-khuyn-mi .faq-toggle {
        font-size: 20px;
    }
    .page-khuyn-mi .faq-answer {
        padding: 0 20px;
    }
    .page-khuyn-mi .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-khuyn-mi h1 {
        font-size: 1.8rem;
    }
    .page-khuyn-mi h2 {
        font-size: 1.6rem;
    }
    .page-khuyn-mi .hero-content p {
        font-size: 1rem;
    }
    .page-khuyn-mi .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .page-khuyn-mi .promo-card h3 {
        font-size: 1.2rem;
    }
    .page-khuyn-mi .reason-item img {
        width: 80px;
        height: 80px;
    }
}