/* style/khuyn-mi.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1A1A1A; /* Dark Black */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #1A1A1A;
    --bg-light: #f4f4f4;
    --accent-color: #007bff; /* A bright blue for links/buttons if needed for contrast */
}

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

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

.page-khuyn-mi h1, .page-khuyn-mi h2, .page-khuyn-mi h3, .page-khuyn-mi h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-khuyn-mi h1 {
    font-size: 2.8em;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuyn-mi h2 {
    font-size: 2.2em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    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(--primary-color);
    border-radius: 2px;
}

.page-khuyn-mi h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-khuyn-mi h4 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.page-khuyn-mi p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

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

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

.page-khuyn-mi-cta-button, .page-khuyn-mi-secondary-button, .page-khuyn-mi-card-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi-cta-button:hover, .page-khuyn-mi-secondary-button:hover, .page-khuyn-mi-card-button:hover {
    background-color: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: var(--bg-dark);
}

.page-khuyn-mi-secondary-button {
    background-color: var(--secondary-color);
    color: var(--text-light);
    margin-top: 20px;
}

.page-khuyn-mi-secondary-button:hover {
    background-color: #333333;
    color: var(--text-light);
}

/* Hero Section */
.page-khuyn-mi-hero {
    position: relative;
    width: 100%;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #333333 100%); /* Dark gradient background */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.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;
    padding: 0 20px;
}

.page-khuyn-mi-hero-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    object-fit: cover; /* Ensure image covers the area without distortion */
}

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

.page-khuyn-mi-hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-khuyn-mi-hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #e0e0e0;
}

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

/* Intro Section */
.page-khuyn-mi-intro {
    padding: 60px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.page-khuyn-mi-intro p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Featured Offers Section */
.page-khuyn-mi-featured-offers {
    padding: 60px 0;
    background-color: #fcfcfc;
}

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

.page-khuyn-mi-offer-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-khuyn-mi-offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-khuyn-mi-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-khuyn-mi-offer-card h3 a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-khuyn-mi-offer-card h3 a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-khuyn-mi-offer-card p {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-khuyn-mi-card-button {
    font-size: 1em;
    padding: 12px 25px;
    width: fit-content;
    margin: 0 auto;
    margin-top: 15px;
}

/* How to Claim Section */
.page-khuyn-mi-how-to-claim {
    padding: 60px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

.page-khuyn-mi-how-to-claim h2 {
    color: var(--primary-color);
}

.page-khuyn-mi-how-to-claim p {
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

.page-khuyn-mi-steps li {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-khuyn-mi-steps li:hover {
    transform: translateY(-8px);
    background-color: #3a3a3a;
}

.page-khuyn-mi-step-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.page-khuyn-mi-steps h4 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-khuyn-mi-steps h4 a {
    color: var(--primary-color);
}

.page-khuyn-mi-steps h4 a:hover {
    color: #e6c200;
}

.page-khuyn-mi-steps p {
    color: #cccccc;
    font-size: 0.95em;
}

.page-khuyn-mi-note {
    margin-top: 40px;
    font-style: italic;
    font-size: 1.1em;
    color: var(--primary-color);
}

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

.page-khuyn-mi-terms ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyn-mi-terms ul li {
    background-color: #ffffff;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-size: 1.05em;
}

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

/* Why Choose Section */
.page-khuyn-mi-why-choose {
    padding: 60px 0;
    background-color: #fcfcfc;
    text-align: center;
}

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

.page-khuyn-mi-benefit-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyn-mi-benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-khuyn-mi-benefit-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.page-khuyn-mi-benefit-item h3 {
    font-size: 1.4em;
    color: var(--primary-color);
}

.page-khuyn-mi-benefit-item p {
    color: #555555;
}

/* FAQ Section */
.page-khuyn-mi-faq {
    padding: 60px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-khuyn-mi-faq h2 {
    color: var(--primary-color);
}

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

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #2a2a2a;
    border: 1px solid #444444;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

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

.faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 20px;
    transition: transform 0.3s ease;
    line-height: 1;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #3a3a3a;
    border-radius: 0 0 8px 8px;
    color: #cccccc;
    font-size: 1.05em;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
    border: 1px solid #444444;
    border-top: none;
}

.faq-item.active .faq-question {
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.faq-answer p {
    margin: 0;
    color: #cccccc;
}

/* Call to Action Section */
.page-khuyn-mi-call-to-action {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e6c200 100%);
    text-align: center;
    color: var(--bg-dark);
}

.page-khuyn-mi-call-to-action h2 {
    color: var(--bg-dark);
    font-size: 2.5em;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.page-khuyn-mi-call-to-action p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #333333;
}

.page-khuyn-mi-call-to-action .page-khuyn-mi-cta-button {
    background-color: var(--bg-dark);
    color: var(--primary-color);
    font-size: 1.5em;
    padding: 20px 50px;
}

.page-khuyn-mi-call-to-action .page-khuyn-mi-cta-button:hover {
    background-color: #333333;
    color: #e6c200;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuyn-mi-hero-content h1 {
        font-size: 3em;
    }
    .page-khuyn-mi-hero-content p {
        font-size: 1.2em;
    }
    .page-khuyn-mi h2 {
        font-size: 2em;
    }
    .page-khuyn-mi-offer-grid, .page-khuyn-mi-steps, .page-khuyn-mi-benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-khuyn-mi-hero-content h1 {
        font-size: 2.5em;
    }
    .page-khuyn-mi-hero-content p {
        font-size: 1.1em;
    }
    .page-khuyn-mi-hero-content .page-khuyn-mi-cta-button {
        font-size: 1.2em;
        padding: 15px 35px;
    }
    .page-khuyn-mi h1 {
        font-size: 2.5em;
    }
    .page-khuyn-mi h2 {
        font-size: 1.8em;
    }
    .page-khuyn-mi h3 {
        font-size: 1.4em;
    }
    .page-khuyn-mi-offer-grid, .page-khuyn-mi-steps, .page-khuyn-mi-benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-khuyn-mi-offer-card, .page-khuyn-mi-steps li, .page-khuyn-mi-benefit-item {
        padding: 25px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 24px;
    }
    .page-khuyn-mi-call-to-action h2 {
        font-size: 2em;
    }
    .page-khuyn-mi-call-to-action p {
        font-size: 1em;
    }
    .page-khuyn-mi-call-to-action .page-khuyn-mi-cta-button {
        font-size: 1.3em;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .page-khuyn-mi-hero-content h1 {
        font-size: 2em;
    }
    .page-khuyn-mi-hero-content p {
        font-size: 1em;
    }
    .page-khuyn-mi-hero-content .page-khuyn-mi-cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }
    .page-khuyn-mi h1 {
        font-size: 2em;
    }
    .page-khuyn-mi h2 {
        font-size: 1.6em;
    }
    .page-khuyn-mi h3 {
        font-size: 1.2em;
    }
    .page-khuyn-mi-container {
        padding: 15px;
    }
    .page-khuyn-mi-cta-button, .page-khuyn-mi-secondary-button, .page-khuyn-mi-card-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 15px 20px;
    }
    .page-khuyn-mi-call-to-action h2 {
        font-size: 1.8em;
    }
    .page-khuyn-mi-call-to-action p {
        font-size: 0.9em;
    }
    .page-khuyn-mi-call-to-action .page-khuyn-mi-cta-button {
        font-size: 1.1em;
        padding: 12px 25px;
    }
}