/* style/khuyn-mi.css */

:root {
  --primary-color: #CC0000; /* Đỏ mạnh */
  --secondary-color: #FFD700; /* Vàng kim */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark: #222222;
  --border-color: #e0e0e0;
}

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

.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 .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-khuyn-mi section:nth-of-type(even) {
  background-color: var(--bg-light);
}

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

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

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

.page-khuyn-mi h3 {
  font-size: 1.6em;
  margin-top: 20px;
  color: var(--text-dark);
}

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

.page-khuyn-mi .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-khuyn-mi .cta-button:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi .button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-khuyn-mi .button:hover {
  background: var(--secondary-color);
  color: var(--text-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hero Banner Section */
.page-khuyn-mi .hero-banner {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
  padding: 80px 20px;
}

.page-khuyn-mi .hero-banner .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-khuyn-mi .hero-banner .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.page-khuyn-mi .hero-banner .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-khuyn-mi .hero-banner p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

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

/* Promo Types 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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  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 .promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-khuyn-mi .promo-card h3 {
  font-size: 1.4em;
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

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

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

.page-khuyn-mi .promo-card p {
  padding: 0 15px;
  font-size: 0.95em;
  text-align: justify;
}

/* How to Claim Section */
.page-khuyn-mi .section-how-to-claim ol {
  list-style: none;
  counter-reset: my-awesome-counter;
  max-width: 800px;
  margin: 30px auto;
  padding: 0;
}

.page-khuyn-mi .section-how-to-claim ol li {
  counter-increment: my-awesome-counter;
  margin-bottom: 20px;
  padding-left: 50px;
  position: relative;
  font-size: 1.1em;
  text-align: justify;
}

.page-khuyn-mi .section-how-to-claim ol li::before {
  content: counter(my-awesome-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-color);
  color: var(--text-light);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

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

/* Terms Section */
.page-khuyn-mi .section-terms ul {
  max-width: 900px;
  margin: 30px auto;
  padding-left: 20px;
  list-style-type: disc;
}

.page-khuyn-mi .section-terms ul li {
  margin-bottom: 10px;
  text-align: justify;
}

.page-khuyn-mi .section-terms ul li strong {
  color: var(--primary-color);
}

/* Why Choose Section */
.page-khuyn-mi .why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-khuyn-mi .why-choose-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-khuyn-mi .why-choose-item .why-choose-icon {
  width: 150px; /* Min 200px requirement, this is an example of what NOT to do if it were an icon. These are content images */
  height: 150px; /* Min 200px requirement, this is an example of what NOT to do if it were an icon. These are content images */
  object-fit: contain;
  margin-bottom: 15px;
}

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

.page-khuyn-mi .why-choose-item p {
  font-size: 0.95em;
  text-align: center;
}

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

.page-khuyn-mi .faq-list {
  max-width: 900px;
  margin: 40px auto;
}

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

.page-khuyn-mi .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #ffffff;
  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.15em;
  color: var(--text-dark);
  text-align: left;
  flex-grow: 1;
}

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

.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.3s ease, padding 0.3s ease;
  padding: 0 20px;
  background: #fdfdfd;
}

.page-khuyn-mi .faq-item.active .faq-answer {
  max-height: 500px; /* Đủ cao để chứa nội dung */
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
}

.page-khuyn-mi .faq-answer p {
  margin-bottom: 0;
  font-size: 0.95em;
}

/* Final CTA Section */
.page-khuyn-mi .section-cta-final {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), #CC3333);
  color: var(--text-light);
  padding: 80px 20px;
}

.page-khuyn-mi .section-cta-final h2 {
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-khuyn-mi .section-cta-final p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-khuyn-mi .section-cta-final .cta-button {
  background: var(--secondary-color);
  color: var(--text-dark);
}

.page-khuyn-mi .section-cta-final .cta-button:hover {
  background: #ffffff;
  color: var(--primary-color);
}

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

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

  .page-khuyn-mi .hero-banner {
    min-height: 400px;
    padding: 60px 15px;
  }

  .page-khuyn-mi .promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

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

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

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

  .page-khuyn-mi .hero-banner {
    min-height: 350px;
  }

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

  .page-khuyn-mi .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

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

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

  .page-khuyn-mi .section-how-to-claim ol li::before {
    width: 30px;
    height: 30px;
    font-size: 1.1em;
  }

  .page-khuyn-mi .why-choose-item .why-choose-icon {
    width: 120px;
    height: 120px;
  }

  .page-khuyn-mi .faq-question {
    padding: 12px 15px;
  }

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

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

  .page-khuyn-mi .faq-item.active .faq-answer {
    padding: 10px 15px;
  }

  .page-khuyn-mi .section-cta-final {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .page-khuyn-mi h1 {
    font-size: 1.8em;
  }

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

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

  .page-khuyn-mi .hero-banner {
    min-height: 300px;
    padding: 40px 10px;
  }

  .page-khuyn-mi .cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }

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

  .page-khuyn-mi .section-how-to-claim ol li {
    padding-left: 40px;
  }

  .page-khuyn-mi .section-how-to-claim ol li::before {
    width: 28px;
    height: 28px;
    font-size: 1em;
  }

  .page-khuyn-mi .why-choose-grid {
    grid-template-columns: 1fr;
  }

  .page-khuyn-mi .faq-question h3 {
    font-size: 0.95em;
  }

  .page-khuyn-mi .faq-toggle {
    font-size: 18px;
  }
}