/* style/khuyen-mai.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #000080; /* Dark Blue */
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --text-color-accent: #FFD700;
    --bg-light: #f4f4f4;
    --bg-dark: #000080;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
}

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

.page-khuyen-mai .section-spacing {
    padding: 60px 0;
}

.page-khuyen-mai .section-dark-bg {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.page-khuyen-mai .section-dark-bg h2,
.page-khuyen-mai .section-dark-bg h3,
.page-khuyen-mai .section-dark-bg p,
.page-khuyen-mai .section-dark-bg li {
    color: var(--text-color-light);
}

.page-khuyen-mai .section-dark-bg .btn-small {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-khuyen-mai h1,
.page-khuyen-mai h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-khuyen-mai .section-dark-bg h1,
.page-khuyen-mai .section-dark-bg h2 {
    color: var(--primary-color);
}

.page-khuyen-mai h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-khuyen-mai .section-dark-bg h3 {
    color: var(--primary-color);
}

.page-khuyen-mai p.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
}

.page-khuyen-mai .cta-button,
.page-khuyen-mai .cta-button-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-khuyen-mai .cta-button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-khuyen-mai .cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-khuyen-mai .cta-button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-khuyen-mai .cta-button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.page-khuyen-mai-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
    min-height: 500px;
}

.page-khuyen-mai-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.page-khuyen-mai-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 128, 0.6); /* Dark blue overlay */
    z-index: 2;
}

.page-khuyen-mai-hero .hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-khuyen-mai-hero .hero-text-container {
    max-width: 800px;
    color: var(--text-color-light);
}

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

.page-khuyen-mai-hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

/* Intro Section */
.page-khuyen-mai-intro .intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-khuyen-mai-intro .intro-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-khuyen-mai-intro .intro-item:hover {
    transform: translateY(-5px);
}

.page-khuyen-mai-intro .feature-icon {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Promotion Types Section */
.page-khuyen-mai-types .promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-khuyen-mai-types .promotion-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-khuyen-mai-types .promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai-types .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-khuyen-mai-types .card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-khuyen-mai-types .card-content h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-khuyen-mai-types .card-content h3 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-khuyen-mai-types .section-dark-bg .card-content h3 a {
    color: var(--primary-color);
}

.page-khuyen-mai-types .card-content h3 a:hover {
    color: var(--primary-color);
}

.page-khuyen-mai-types .section-dark-bg .card-content h3 a:hover {
    color: #e6c200;
}

.page-khuyen-mai-types .card-content p {
    font-size: 0.95em;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-khuyen-mai-types .section-dark-bg .card-content p {
    color: #666666;
}

.page-khuyen-mai-types .btn-small {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.page-khuyen-mai-types .btn-small:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* How To Section */
.page-khuyen-mai-how-to .how-to-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-khuyen-mai-how-to .step-item {
    text-align: center;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-khuyen-mai-how-to .step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai-how-to .btn-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-khuyen-mai-how-to .btn-link:hover {
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* Terms Section */
.page-khuyen-mai-terms ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-khuyen-mai-terms ul li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1.05em;
}

.page-khuyen-mai-terms .cta-button-secondary {
    margin-top: 40px;
}

/* FAQ Section */
.page-khuyen-mai-faq .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

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

.page-khuyen-mai-faq .faq-question:hover {
    background-color: var(--bg-light);
}

.page-khuyen-mai-faq .faq-question h3 {
    margin: 0;
    font-size: 1.15em;
    color: var(--secondary-color);
}

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

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

.page-khuyen-mai-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
    background-color: var(--bg-light);
}

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

.page-khuyen-mai-faq .faq-answer p {
    margin: 0;
    color: var(--text-color-dark);
}

/* Final CTA Section */
.page-khuyen-mai-cta {
    text-align: center;
    background-color: var(--primary-color);
    padding: 80px 20px;
    color: var(--secondary-color);
}

.page-khuyen-mai-cta h2 {
    color: var(--secondary-color);
    font-size: 2.5em;
}

.page-khuyen-mai-cta p {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai-cta .cta-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-khuyen-mai-cta .cta-button:hover {
    background-color: #000066;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-khuyen-mai-hero h1 {
        font-size: 2.8em;
    }
    .page-khuyen-mai-hero p {
        font-size: 1.1em;
    }
    .page-khuyen-mai h2 {
        font-size: 2em;
    }
    .page-khuyen-mai .section-spacing {
        padding: 40px 0;
    }
    .page-khuyen-mai-intro .intro-grid,
    .page-khuyen-mai-types .promotion-grid,
    .page-khuyen-mai-how-to .how-to-steps {
        grid-template-columns: 1fr;
    }
    .page-khuyen-mai-hero .hero-content-wrapper {
        padding: 60px 20px;
    }
}

@media (max-width: 768px) {
    .page-khuyen-mai-hero h1 {
        font-size: 2.2em;
    }
    .page-khuyen-mai-hero p {
        font-size: 1em;
    }
    .page-khuyen-mai .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-khuyen-mai h2 {
        font-size: 1.8em;
    }
    .page-khuyen-mai p.section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-khuyen-mai-intro .feature-icon {
        width: 120px;
    }
    .page-khuyen-mai-types .card-image {
        height: 180px;
    }
    .page-khuyen-mai-types .card-content h3 {
        font-size: 1.2em;
    }
    .page-khuyen-mai-how-to .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }
    .page-khuyen-mai-terms ul li {
        padding: 12px 15px;
        font-size: 0.95em;
    }
    .page-khuyen-mai-faq .faq-question h3 {
        font-size: 1em;
    }
    .page-khuyen-mai-faq .faq-toggle {
        font-size: 20px;
    }
    .page-khuyen-mai-faq .faq-answer {
        padding: 0 15px;
    }
    .page-khuyen-mai-faq .faq-item.active .faq-answer {
        padding: 15px;
    }
    .page-khuyen-mai-cta h2 {
        font-size: 2em;
    }
    .page-khuyen-mai-cta p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-khuyen-mai-hero h1 {
        font-size: 1.8em;
    }
    .page-khuyen-mai-hero p {
        font-size: 0.9em;
    }
    .page-khuyen-mai .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-khuyen-mai h2 {
        font-size: 1.5em;
    }
    .page-khuyen-mai-hero .hero-content-wrapper {
        padding: 40px 15px;
    }
}