/* style/khuyn-mi.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Deep Red */
  --dark-background: #1a1a1a;
  --light-text: #f0f0f0;
  --gold-text: #FFD700;
  --red-text: #8B0000;
  --card-background: #2a2a2a;
  --border-color: #444;
}

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

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

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

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

.page-khuyn-mi-section {
  padding: 60px 0;
}

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

.page-khuyn-mi h1,
.page-khuyn-mi h2,
.page-khuyn-mi h3 {
  color: var(--gold-text);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-khuyn-mi h1 {
  font-size: 3em;
}

.page-khuyn-mi h2 {
  font-size: 2.5em;
}

.page-khuyn-mi h3 {
  font-size: 1.8em;
  color: var(--light-text);
}

.page-khuyn-mi p {
  margin-bottom: 20px;
  text-align: center;
}

.page-khuyn-mi ul,
.page-khuyn-mi ol {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyn-mi li {
  margin-bottom: 10px;
}

/* Hero Section */
.page-khuyn-mi-hero {
  background: linear-gradient(135deg, var(--secondary-color), #4d0000);
  padding: 80px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-khuyn-mi-hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-khuyn-mi-hero-content {
  max-width: 800px;
}

.page-khuyn-mi-hero-content h1 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 3.5em;
}

.page-khuyn-mi-hero-content p {
  font-size: 1.2em;
  color: var(--light-text);
  margin-bottom: 40px;
}

.page-khuyn-mi-hero-image {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-khuyn-mi-cta-button:hover {
  background: var(--light-text);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.page-khuyn-mi-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--light-text);
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.page-khuyn-mi-button:hover {
  background: var(--primary-color);
  color: var(--dark-background);
  text-decoration: none;
}

/* Promo Grid */
.page-khuyn-mi-promo-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(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-khuyn-mi-promo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-khuyn-mi-promo-card h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  padding: 0 20px;
  color: var(--gold-text);
}

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

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

.page-khuyn-mi-promo-card p {
  font-size: 0.95em;
  color: var(--light-text);
  margin-bottom: 25px;
  padding: 0 20px;
}

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

.page-khuyn-mi-how-to ol li {
  background-color: var(--card-background);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 60px;
  font-size: 1.1em;
  color: var(--light-text);
}

.page-khuyn-mi-how-to ol li:before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: var(--dark-background);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-khuyn-mi-button-bottom {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-khuyn-mi-faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

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

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

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

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #222;
  color: var(--light-text);
  border-radius: 0 0 8px 8px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.faq-answer p {
  text-align: left;
  margin: 0;
}

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

.page-khuyn-mi-blog-card {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyn-mi-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-khuyn-mi-blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-khuyn-mi-blog-card h3 {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  text-align: left;
  color: var(--gold-text);
}

.page-khuyn-mi-blog-card h3 a {
  color: var(--gold-text);
}

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

.page-khuyn-mi-blog-card p {
  font-size: 0.9em;
  color: var(--light-text);
  margin: 0 20px 20px 20px;
  text-align: left;
}

.page-khuyn-mi-blog-card .page-khuyn-mi-button {
  margin: 0 20px 20px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuyn-mi-hero-content h1 {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-khuyn-mi-section {
    padding: 40px 0;
  }

  .page-khuyn-mi h1 {
    font-size: 2.5em;
  }

  .page-khuyn-mi h2 {
    font-size: 2em;
  }

  .page-khuyn-mi h3 {
    font-size: 1.5em;
  }

  .page-khuyn-mi-hero-content h1 {
    font-size: 2.8em;
  }

  .page-khuyn-mi-hero-content p {
    font-size: 1em;
  }

  .page-khuyn-mi-cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  .page-khuyn-mi-promo-grid,
  .page-khuyn-mi-blog-grid {
    grid-template-columns: 1fr;
  }

  .page-khuyn-mi-promo-card img {
    height: 200px;
  }

  .faq-question {
    padding: 15px 20px;
  }

  .faq-question h3 {
    font-size: 1em;
  }

  .faq-toggle {
    font-size: 20px;
  }

  .faq-answer {
    padding: 15px 20px;
  }

  .page-khuyn-mi-how-to ol li {
    font-size: 1em;
    padding-left: 50px;
  }

  .page-khuyn-mi-how-to ol li:before {
    width: 25px;
    height: 25px;
    font-size: 1em;
    left: 15px;
  }
}

@media (max-width: 480px) {
  .page-khuyn-mi-container {
    padding: 0 15px;
  }

  .page-khuyn-mi h1 {
    font-size: 2em;
  }

  .page-khuyn-mi h2 {
    font-size: 1.8em;
  }

  .page-khuyn-mi h3 {
    font-size: 1.3em;
  }

  .page-khuyn-mi-hero-content h1 {
    font-size: 2.2em;
  }

  .page-khuyn-mi-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-khuyn-mi-promo-card h3 {
    font-size: 1.3em;
  }

  .page-khuyn-mi-blog-card h3 {
    font-size: 1.2em;
  }
}