/* style/khuyn-mi.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --border-color: #e0e0e0;
}

/* General Page Styling */
.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: 0 20px;
}

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

.page-khuyn-mi h1 {
    font-size: 2.8em;
    text-align: center;
    color: var(--text-light);
}

.page-khuyn-mi h2 {
    font-size: 2.2em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.page-khuyn-mi h3 {
    font-size: 1.6em;
    margin-top: 20px;
}

.page-khuyn-mi p {
    margin-bottom: 15px;
}

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

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

.page-khuyn-mi .cta-button,
.page-khuyn-mi .button-primary,
.page-khuyn-mi .button-small {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.page-khuyn-mi .cta-button:hover,
.page-khuyn-mi .button-primary:hover,
.page-khuyn-mi .button-small:hover {
    background: #e0a800; /* Slightly darker secondary color */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi .button-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-khuyn-mi .button-primary:hover {
    background: #0056b3; /* Slightly darker primary color */
}

.page-khuyn-mi .button-small {
    padding: 8px 20px;
    font-size: 0.9em;
    margin-top: 10px;
}

/* 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: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%); /* Darker gradient for depth */
    color: var(--text-light);
}

.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;
}

.page-khuyn-mi .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px 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-content h1 {
    margin-bottom: 20px;
    font-size: 3em;
    line-height: 1.2;
}

.page-khuyn-mi .hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

.page-khuyn-mi .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-khuyn-mi .feature-item img {
    width: 150px; /* Increased size */
    height: 150px; /* Increased size */
    object-fit: contain;
    margin-bottom: 20px;
}

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

/* Promotion Categories Section */
.page-khuyn-mi .promotion-categories {
    padding: 60px 0;
    background-color: #e9ecef;
}

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

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

.page-khuyn-mi .promo-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-khuyn-mi .promo-card img {
    width: 100%;
    height: 250px; /* Increased height for better visual */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-khuyn-mi .promo-card h3 {
    padding: 20px;
    font-size: 1.5em;
    margin-bottom: 0;
}

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

.page-khuyn-mi .promo-card h3 a:hover {
    text-decoration: underline;
}

.page-khuyn-mi .promo-card p {
    padding: 0 20px;
    flex-grow: 1;
}

.page-khuyn-mi .promo-card ul {
    list-style-type: disc;
    padding: 0 20px 20px 40px;
    margin-top: 10px;
}

.page-khuyn-mi .promo-card li {
    margin-bottom: 5px;
}

.page-khuyn-mi .promo-card .button-small {
    margin: 20px;
    align-self: flex-start;
    color: var(--text-dark);
}

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

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

.page-khuyn-mi .terms-content {
    background-color: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.page-khuyn-mi .terms-content h3 {
    color: var(--secondary-color);
    font-size: 1.8em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.page-khuyn-mi .terms-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-khuyn-mi .terms-content .button-primary {
    margin-top: 30px;
}

/* How-To-Claim Section */
.page-khuyn-mi .how-to-claim {
    padding: 60px 0;
    background-color: #e9ecef;
}

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

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

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

.page-khuyn-mi .step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-khuyn-mi .step-item img {
    width: 180px; /* Increased size */
    height: 180px; /* Increased size */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-khuyn-mi .step-item h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-khuyn-mi .call-to-action-text {
    text-align: center;
    font-size: 1.2em;
    margin-top: 40px;
    font-weight: bold;
    color: var(--primary-color);
}

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

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

.page-khuyn-mi .faq-list {
    margin-top: 40px;
}

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

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

.page-khuyn-mi .faq-question:hover {
    background: #f5f5f5;
}

.page-khuyn-mi .faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: var(--text-dark);
}

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

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

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-khuyn-mi h1 {
        font-size: 2.5em;
    }
    .page-khuyn-mi .hero-content p {
        font-size: 1.1em;
    }
    .page-khuyn-mi .promo-card-grid,
    .page-khuyn-mi .feature-grid,
    .page-khuyn-mi .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-khuyn-mi .terms-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-khuyn-mi .hero-section {
        padding: 40px 15px;
    }
    .page-khuyn-mi .hero-image img {
        border-radius: 4px;
    }
    .page-khuyn-mi .hero-content h1 {
        font-size: 2em;
    }
    .page-khuyn-mi .hero-content p {
        font-size: 1em;
    }
    .page-khuyn-mi .cta-button {
        padding: 10px 25px;
        font-size: 1em;
    }
    .page-khuyn-mi h2 {
        font-size: 1.8em;
    }
    .page-khuyn-mi h3 {
        font-size: 1.4em;
    }
    .page-khuyn-mi .intro-section,
    .page-khuyn-mi .promotion-categories,
    .page-khuyn-mi .terms-conditions,
    .page-khuyn-mi .how-to-claim,
    .page-khuyn-mi .faq-section {
        padding: 40px 0;
    }
    .page-khuyn-mi .feature-item img,
    .page-khuyn-mi .step-item img {
        width: 120px;
        height: 120px;
    }
    .page-khuyn-mi .promo-card img {
        height: 200px;
    }
    .page-khuyn-mi .faq-question {
        padding: 15px 20px;
    }
    .page-khuyn-mi .faq-question h3 {
        font-size: 1.1em;
    }
    .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: 10px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-khuyn-mi .container {
        padding: 0 15px;
    }
    .page-khuyn-mi h1 {
        font-size: 1.8em;
    }
    .page-khuyn-mi h2 {
        font-size: 1.6em;
    }
    .page-khuyn-mi .hero-content p {
        font-size: 0.95em;
    }
    .page-khuyn-mi .promo-card-grid,
    .page-khuyn-mi .feature-grid,
    .page-khuyn-mi .steps-grid {
        grid-template-columns: 1fr;
    }
    .page-khuyn-mi .terms-content {
        padding: 20px;
    }
    .page-khuyn-mi .terms-content h3 {
        font-size: 1.5em;
    }
    .page-khuyn-mi .terms-content p {
        font-size: 1em;
    }
    .page-khuyn-mi .faq-question h3 {
        font-size: 1em;
    }
    .page-khuyn-mi .faq-toggle {
        font-size: 18px;
    }
}