/* style/khuyen-mai.css */
:root {
  --primary-color: #1A1A2E;
  --secondary-color: #E94560;
  --accent-color: #FFD700; /* Gold for highlights */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f9f9f9;
  --bg-dark: #121220;
  --border-color: #e0e0e0;
}

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

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

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

.page-khuyen-mai h1 {
  font-size: 3.2em;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
}

.page-khuyen-mai h2 {
  font-size: 2.5em;
  color: var(--text-light);
  padding-top: 40px;
  margin-bottom: 30px;
}

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

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

.page-khuyen-mai ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-khuyen-mai ul li {
  margin-bottom: 8px;
  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(--accent-color);
  text-decoration: underline;
}

/* Hero Section */
.page-khuyen-mai-hero {
  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(--primary-color) 0%, #000000 100%);
}

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

.page-khuyen-mai-hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-khuyen-mai-hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  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 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cta-button.secondary {
  background: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.cta-button.secondary:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  border-color: var(--accent-color);
}

.btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-small:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* Intro Section */
.page-khuyen-mai-intro {
  padding: 60px 0;
  background-color: var(--primary-color);
}

.page-khuyen-mai-intro p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 15px auto;
}

/* Categories Section */
.page-khuyen-mai-categories {
  padding: 60px 0;
  background-color: var(--bg-dark);
}

.promo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.promo-card {
  background-color: var(--primary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--secondary-color);
}

.promo-card .card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.promo-card h3 {
  font-size: 1.4em;
  color: var(--accent-color);
  margin-top: 0;
  margin-bottom: 10px;
  text-align: left;
}

.promo-card h3 a {
  color: var(--accent-color);
}

.promo-card h3 a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.promo-card p {
  color: #bbbbbb;
  font-size: 0.95em;
  flex-grow: 1;
}

/* Details Section */
.page-khuyen-mai-details {
  padding: 60px 0;
  background-color: var(--primary-color);
}

.promo-detail-item {
  background-color: var(--bg-dark);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.promo-detail-item h3 {
  color: var(--secondary-color);
  font-size: 2em;
  margin-bottom: 20px;
  text-align: left;
}

.promo-detail-item ul {
  list-style: decimal;
  margin-left: 25px;
  color: #cccccc;
}

.promo-detail-item ul li {
  margin-bottom: 10px;
}

/* Terms Section */
.page-khuyen-mai-terms {
  padding: 60px 0;
  background-color: var(--bg-dark);
}

/* FAQ Section */
.page-khuyen-mai-faq {
  padding: 60px 0;
  background-color: var(--primary-color);
}

.faq-list {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--primary-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #2a2a40;
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #1A1A2E;
}

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

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

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

/* Call to Action Bottom Section */
.page-khuyen-mai-cta-bottom {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  text-align: center;
}

.page-khuyen-mai-cta-bottom h2 {
  color: var(--text-light);
  font-size: 2.8em;
  margin-bottom: 20px;
}

.page-khuyen-mai-cta-bottom p {
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

.cta-buttons-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuyen-mai-hero-image img {
    border-radius: 8px;
  }
  .page-khuyen-mai h1 {
    font-size: 2.8em;
  }
  .page-khuyen-mai h2 {
    font-size: 2em;
  }
  .promo-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai-container {
    padding: 15px;
  }
  .page-khuyen-mai-hero {
    padding: 40px 15px;
  }
  .page-khuyen-mai-hero h1 {
    font-size: 2.2em;
  }
  .page-khuyen-mai-hero p {
    font-size: 1em;
  }
  .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-khuyen-mai h2 {
    font-size: 1.8em;
    padding-top: 30px;
  }
  .page-khuyen-mai h3 {
    font-size: 1.5em;
  }
  .promo-card-grid {
    grid-template-columns: 1fr;
  }
  .promo-card img {
    height: 180px;
  }
  .promo-detail-item {
    padding: 20px;
  }
  .promo-detail-item h3 {
    font-size: 1.6em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-khuyen-mai-cta-bottom h2 {
    font-size: 2.2em;
  }
  .page-khuyen-mai-cta-bottom p {
    font-size: 1em;
  }
  .cta-buttons-group {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-khuyen-mai-hero h1 {
    font-size: 1.8em;
  }
  .page-khuyen-mai h2 {
    font-size: 1.5em;
  }
  .page-khuyen-mai h3 {
    font-size: 1.3em;
  }
  .cta-button {
    width: 100%;
    max-width: 280px;
  }
  .page-khuyen-mai-cta-bottom h2 {
    font-size: 1.8em;
  }
  .page-khuyen-mai-cta-bottom p {
    font-size: 0.95em;
  }
}