/* style/khuyn-mi.css */

:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #1a1a1a;
    --bg-light: #f5f5f5;
    --border-color: #444444;
    --card-bg: #2a2a2a;
    --button-hover-dark: #c08000;
}

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

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

/* 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, rgba(255, 215, 0, 0.1), rgba(139, 0, 0, 0.1));
    border-bottom: 2px solid var(--primary-color);
}

.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: 10px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

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

.page-khuyn-mi .hero-content p {
    font-size: 1.3em;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.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.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--primary-color);
}

.page-khuyn-mi .cta-button:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

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

.page-khuyn-mi section:last-of-type {
    border-bottom: none;
}

.page-khuyn-mi h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-khuyn-mi h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-khuyn-mi p {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 20px;
}

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

.page-khuyn-mi a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-khuyn-mi .image-wrapper {
  margin: 40px auto;
  max-width: 900px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

/* Section Intro */
.page-khuyn-mi .section-intro p {
    max-width: 900px;
    margin: 0 auto 30px auto;
}

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

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

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

.page-khuyn-mi .promotion-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
}

.page-khuyn-mi .promotion-card h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
}

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

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

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

.page-khuyn-mi .promotion-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-khuyn-mi .promotion-card ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 18px;
    padding-left: 28px;
    margin-bottom: 10px;
    color: #e0e0e0;
    font-size: 0.95em;
}

.page-khuyn-mi .btn-small {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.page-khuyn-mi .btn-small:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* How-To Section */
.page-khuyn-mi .section-how-to ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-khuyn-mi .section-how-to ol li {
    counter-increment: step-counter;
    margin-bottom: 25px;
    padding-left: 60px;
    position: relative;
    font-size: 1.1em;
    color: var(--text-light);
}

.page-khuyn-mi .section-how-to ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Terms Section */
.page-khuyn-mi .section-terms ul {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-khuyn-mi .section-terms ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>') no-repeat left 8px;
    background-size: 20px;
    padding-left: 35px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #e0e0e0;
}

/* FAQ Section */
.page-khuyn-mi .section-faq {
    background-color: var(--bg-dark);
}

.page-khuyn-mi .faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

.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-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #222222;
    color: #ccc;
    text-align: left;
}

.page-khuyn-mi .faq-answer p {
    margin: 15px 0;
    font-size: 1em;
    color: #ccc;
}

.page-khuyn-mi .faq-item.active .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #3a3a3a;
    border-color: var(--primary-color);
}

.page-khuyn-mi .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 15px 25px;
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

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

/* Conclusion Section */
.page-khuyn-mi .section-conclusion p {
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuyn-mi h1 {
        font-size: 2.8em;
    }
    .page-khuyn-mi h2 {
        font-size: 2em;
    }
    .page-khuyn-mi .hero-content p {
        font-size: 1.1em;
    }
    .page-khuyn-mi .cta-button {
        padding: 15px 35px;
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-khuyn-mi .hero-section {
        padding: 40px 15px;
    }
    .page-khuyn-mi .hero-image img {
        border-radius: 8px;
    }
    .page-khuyn-mi h1 {
        font-size: 2.2em;
    }
    .page-khuyn-mi h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-khuyn-mi h3 {
        font-size: 1.4em;
    }
    .page-khuyn-mi p {
        font-size: 1em;
    }
    .page-khuyn-mi .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-khuyn-mi section {
        padding: 40px 0;
    }
    .page-khuyn-mi .promotion-card-grid {
        grid-template-columns: 1fr;
    }
    .page-khuyn-mi .promotion-card img {
        height: 180px;
    }
    .page-khuyn-mi .section-how-to ol li {
        padding-left: 50px;
        font-size: 1em;
    }
    .page-khuyn-mi .section-how-to ol li::before {
        width: 35px;
        height: 35px;
        font-size: 1.3em;
    }
    .page-khuyn-mi .section-terms ul li {
        padding-left: 30px;
        font-size: 1em;
    }
    .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: 10px 20px;
    }
    .page-khuyn-mi .faq-answer p {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-khuyn-mi h1 {
        font-size: 1.8em;
    }
    .page-khuyn-mi h2 {
        font-size: 1.5em;
    }
    .page-khuyn-mi .hero-content p {
        font-size: 0.95em;
    }
    .page-khuyn-mi .cta-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    .page-khuyn-mi .promotion-card img {
        height: 150px;
    }
    .page-khuyn-mi .faq-question h3 {
        font-size: 1em;
    }
    .page-khuyn-mi .faq-toggle {
        font-size: 1.5em;
    }
}