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

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

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

.page-khuyen-mai-section {
    padding: 60px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-khuyen-mai-section:last-of-type {
    border-bottom: none;
}

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

.page-khuyen-mai h1 {
    font-size: 2.8em;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai h2 {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-top: 40px;
}

.page-khuyen-mai h3 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 30px;
    text-align: left;
}

.page-khuyen-mai p {
    margin-bottom: 15px;
    font-size: 1.1em;
    text-align: justify;
}

.page-khuyen-mai ul,
.page-khuyen-mai ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.page-khuyen-mai ul li,
.page-khuyen-mai ol li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

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

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

/* Hero Section */
.page-khuyen-mai-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a5b 100%);
    padding: 80px 0;
    color: var(--text-light);
    text-align: center;
}

.page-khuyen-mai-hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-khuyen-mai-hero-content {
    margin-bottom: 40px;
}

.page-khuyen-mai-hero h1 {
    color: var(--primary-color);
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-khuyen-mai-hero p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #e0e0e0;
}

.page-khuyen-mai-hero-image {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-khuyen-mai-cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.4em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai-cta-button:hover {
    background-color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #00004d; /* Slightly darker blue on hover */
}

.page-khuyen-mai-cta-small {
    padding: 12px 30px;
    font-size: 1.1em;
    margin-top: 20px;
}

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

.page-khuyen-mai-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-khuyen-mai-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-khuyen-mai-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}

.page-khuyen-mai-card h3 a {
    color: var(--secondary-color);
    text-decoration: none;
}

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

.page-khuyen-mai-card p {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    text-align: left;
}

.page-khuyen-mai-card-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-khuyen-mai-card-button:hover {
    background-color: #000066; /* Slightly darker secondary color */
    transform: translateY(-2px);
}

/* Image Fullwidth */
.page-khuyen-mai-image-fullwidth {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-khuyen-mai-faq-list {
    margin-top: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

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

.faq-question:hover {
  background: #f0f0f0;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: var(--secondary-color);
  text-align: left;
}

.faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

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

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

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

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

/* Conclusion Section */
.page-khuyen-mai-conclusion {
    text-align: center;
    background: linear-gradient(135deg, #1a1a5b 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 80px 0;
}

.page-khuyen-mai-conclusion h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2.5em;
}

.page-khuyen-mai-conclusion p {
    max-width: 900px;
    margin: 0 auto 30px auto;
    font-size: 1.2em;
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuyen-mai-hero h1 {
        font-size: 3em;
    }
    .page-khuyen-mai h2 {
        font-size: 2em;
    }
    .page-khuyen-mai h3 {
        font-size: 1.6em;
    }
    .page-khuyen-mai p {
        font-size: 1em;
    }
    .page-khuyen-mai-cta-button {
        font-size: 1.2em;
        padding: 15px 35px;
    }
    .page-khuyen-mai-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-khuyen-mai-section {
        padding: 40px 0;
    }
    .page-khuyen-mai-hero {
        padding: 60px 0;
    }
    .page-khuyen-mai-hero h1 {
        font-size: 2.2em;
    }
    .page-khuyen-mai-hero p {
        font-size: 1em;
    }
    .page-khuyen-mai h2 {
        font-size: 1.8em;
    }
    .page-khuyen-mai h3 {
        font-size: 1.4em;
    }
    .page-khuyen-mai-cta-button {
        font-size: 1em;
        padding: 12px 30px;
    }
    .page-khuyen-mai-card img {
        height: 180px;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 1.8em;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-khuyen-mai-conclusion {
        padding: 60px 0;
    }
    .page-khuyen-mai-conclusion h2 {
        font-size: 2em;
    }
    .page-khuyen-mai-conclusion p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-khuyen-mai-hero h1 {
        font-size: 1.8em;
    }
    .page-khuyen-mai-hero p {
        font-size: 0.95em;
    }
    .page-khuyen-mai-hero-image {
        margin-top: 20px;
    }
    .page-khuyen-mai-cta-button {
        font-size: 0.9em;
        padding: 10px 25px;
    }
    .page-khuyen-mai h2 {
        font-size: 1.6em;
    }
    .page-khuyen-mai h3 {
        font-size: 1.2em;
    }
    .page-khuyen-mai-card {
        padding: 20px;
    }
    .page-khuyen-mai-card img {
        height: 150px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 1.5em;
    }
}