/* style/khuyn-mi.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f4f4;
    --bg-dark: #222222;
    --border-color: #e0e0e0;
}

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

/* 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(--secondary-color) 0%, #a30000 100%); /* Dark Red gradient */
    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 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-khuyn-mi .hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

.page-khuyn-mi .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.page-khuyn-mi .cta-button:hover {
    background: #ffdb4d; /* Slightly lighter gold */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-khuyn-mi section {
    padding: 60px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.page-khuyn-mi section:nth-of-type(even) {
    background-color: #ffffff;
}

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

.page-khuyn-mi h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.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.8em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-khuyn-mi p {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-khuyn-mi ul, .page-khuyn-mi ol {
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-khuyn-mi ul li, .page-khuyn-mi ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-khuyn-mi ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Promotion Types Grid */
.page-khuyn-mi .promotion-types-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

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

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

.page-khuyn-mi .promotion-card {
    background-color: #333333;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-khuyn-mi .promotion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-khuyn-mi .promotion-card .card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.page-khuyn-mi .promotion-card h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 20px 15px 10px 15px;
    flex-grow: 1;
}

.page-khuyn-mi .promotion-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-khuyn-mi .promotion-card h3 a:hover {
    color: #ffdb4d;
}

.page-khuyn-mi .promotion-card p {
    font-size: 1em;
    color: #cccccc;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-khuyn-mi .promotion-card .card-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: bold;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    align-self: center;
}

.page-khuyn-mi .promotion-card .card-button:hover {
    background: #a30000; /* Slightly darker red */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* How To Claim Section */
.page-khuyn-mi .how-to-claim-section ol {
    list-style-type: decimal;
    margin-left: 20px;
    padding-left: 0;
}

.page-khuyn-mi .how-to-claim-section ol li {
    margin-bottom: 20px;
    padding-left: 10px;
    position: relative;
}

.page-khuyn-mi .how-to-claim-section ol li strong {
    color: var(--secondary-color);
}

/* Terms & Conditions Section */
.page-khuyn-mi .terms-conditions-section ul li strong {
    color: var(--secondary-color);
}

/* Tips Section */
.page-khuyn-mi .tips-section ul li strong {
    color: var(--secondary-color);
}

/* Why Choose Section */
.page-khuyn-mi .why-choose-section ul li strong {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-khuyn-mi .faq-section {
    background-color: var(--bg-dark);
    color: var(--text-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-radius: 8px;
    overflow: hidden;
    background-color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-khuyn-mi .faq-toggle {
    font-size: 2em;
    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);
}

.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;
    background: #333333;
    color: #cccccc;
}

.page-khuyn-mi .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
}

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

.page-khuyn-mi .faq-answer .faq-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.page-khuyn-mi .faq-answer .faq-button:hover {
    background: #ffdb4d;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuyn-mi .hero-content h1 {
        font-size: 2.8em;
    }
    .page-khuyn-mi .hero-content p {
        font-size: 1.1em;
    }
    .page-khuyn-mi h2 {
        font-size: 2em;
    }
    .page-khuyn-mi h3 {
        font-size: 1.6em;
    }
    .page-khuyn-mi p {
        font-size: 1em;
    }
    .page-khuyn-mi ul, .page-khuyn-mi ol {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-khuyn-mi .hero-section {
        padding: 40px 15px;
    }
    .page-khuyn-mi .hero-content h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-khuyn-mi .hero-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-khuyn-mi .cta-button {
        padding: 12px 30px;
        font-size: 1em;
        margin-top: 20px;
    }
    .page-khuyn-mi section {
        padding: 40px 0;
    }
    .page-khuyn-mi .container {
        padding: 0 15px;
    }
    .page-khuyn-mi h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-khuyn-mi h3 {
        font-size: 1.4em;
        margin-top: 25px;
    }
    .page-khuyn-mi .promotion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-khuyn-mi .promotion-card .card-image {
        height: 180px;
    }
    .page-khuyn-mi .promotion-card h3 {
        font-size: 1.3em;
    }
    .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: 1.8em;
    }
    .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 .hero-content h1 {
        font-size: 1.8em;
    }
    .page-khuyn-mi .hero-content p {
        font-size: 0.9em;
    }
    .page-khuyn-mi .cta-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    .page-khuyn-mi h2 {
        font-size: 1.6em;
    }
    .page-khuyn-mi h3 {
        font-size: 1.2em;
    }
    .page-khuyn-mi p {
        font-size: 0.95em;
    }
    .page-khuyn-mi ul, .page-khuyn-mi ol {
        font-size: 0.95em;
        margin-left: 15px;
    }
    .page-khuyn-mi .faq-question h3 {
        font-size: 1em;
    }
}