/* style/khuyen-mai.css */

:root {
  --primary-color: #0A192F; /* Deep Blue */
  --secondary-color: #FFD700; /* Luxury Gold */
  --accent-color: #DC143C; /* Deep Red for highlights/alerts */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #0A192F;
  --border-color: #e0e0e0;
}

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

.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(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-khuyen-mai h2 {
  font-size: 2.2em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  position: relative;
}

.page-khuyen-mai h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-khuyen-mai h3 {
  font-size: 1.6em;
  color: var(--primary-color);
}

.page-khuyen-mai p {
  margin-bottom: 15px;
}

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

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

.page-khuyen-mai .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

.page-khuyen-mai .secondary-button {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-khuyen-mai .secondary-button:hover {
  background: #06101e;
}

/* Hero Section */
.page-khuyen-mai .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: var(--background-dark);
  color: var(--text-light);
}

.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;
  max-height: 500px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-khuyen-mai .hero-content p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.9);
}

/* Section Styling */
.page-khuyen-mai section {
  padding: 60px 0;
}

.page-khuyen-mai .bg-light {
  background-color: var(--background-light);
}

.page-khuyen-mai .section-overview .list-benefits {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-khuyen-mai .section-overview .list-benefits li {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  font-size: 1.05em;
  color: var(--text-dark);
  border-left: 5px solid var(--secondary-color);
}

.page-khuyen-mai .section-overview .list-benefits li strong {
  color: var(--primary-color);
}

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

.page-khuyen-mai .promotion-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-khuyen-mai .promotion-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-khuyen-mai .promotion-card h3 {
  padding: 20px 20px 10px;
  margin-bottom: 0;
  color: var(--primary-color);
}

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

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

.page-khuyen-mai .promotion-card p {
  padding: 0 20px;
  flex-grow: 1;
  color: var(--text-dark);
}

.page-khuyen-mai .promotion-card .card-features {
  list-style: none;
  padding: 10px 20px;
  margin: 10px 0;
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-khuyen-mai .promotion-card .card-features li {
  margin-bottom: 5px;
  position: relative;
  padding-left: 20px;
}

.page-khuyen-mai .promotion-card .card-features li::before {
  content: '✔';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-khuyen-mai .promotion-card .btn-claim {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: var(--accent-color);
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
  border-radius: 0 0 12px 12px;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.page-khuyen-mai .promotion-card .btn-claim:hover {
  background-color: #c20e2f;
  text-decoration: none;
}

.page-khuyen-mai .note {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 30px;
}

.page-khuyen-mai .section-tcs .list-tcs {
  list-style: decimal;
  padding-left: 25px;
  margin-top: 20px;
  color: var(--text-dark);
}

.page-khuyen-mai .section-tcs .list-tcs li {
  margin-bottom: 10px;
}

.page-khuyen-mai .section-guide .guide-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin-top: 30px;
}

.page-khuyen-mai .section-guide .guide-steps li {
  counter-increment: step-counter;
  margin-bottom: 25px;
  padding-left: 60px;
  position: relative;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-khuyen-mai .section-guide .guide-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai .call-to-action-text {
  text-align: center;
  font-size: 1.2em;
  margin-top: 40px;
  color: var(--primary-color);
  font-weight: bold;
}

/* FAQ Section */
.page-khuyen-mai .section-faq {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-khuyen-mai .section-faq h2 {
  color: var(--secondary-color);
}

.page-khuyen-mai .section-faq h2::after {
  background-color: var(--secondary-color);
}

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

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a2a47; /* Slightly lighter than primary for contrast */
  color: var(--text-light);
}

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

.faq-question:hover {
  background: #1e3a66;
}

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

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-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;
  color: rgba(255, 255, 255, 0.85);
}

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

.faq-item.active .faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-khuyen-mai .section-why-choose .list-reasons {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-khuyen-mai .section-why-choose .list-reasons li {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  font-size: 1.05em;
  color: var(--text-dark);
  border-left: 5px solid var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-khuyen-mai h1 {
    font-size: 2.2em;
  }
  .page-khuyen-mai h2 {
    font-size: 1.8em;
  }
  .page-khuyen-mai h3 {
    font-size: 1.4em;
  }
  .page-khuyen-mai .hero-image {
    max-height: 400px;
  }
  .page-khuyen-mai .promotion-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai h1 {
    font-size: 1.8em;
  }
  .page-khuyen-mai h2 {
    font-size: 1.6em;
  }
  .page-khuyen-mai h3 {
    font-size: 1.3em;
  }
  .page-khuyen-mai .hero-section {
    padding: 40px 15px;
  }
  .page-khuyen-mai .hero-image {
    max-height: 300px;
  }
  .page-khuyen-mai .hero-content p {
    font-size: 1em;
  }
  .page-khuyen-mai .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-khuyen-mai section {
    padding: 40px 0;
  }
  .page-khuyen-mai .container {
    padding: 15px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-item.active .faq-answer {
    padding: 10px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-khuyen-mai h1 {
    font-size: 1.5em;
  }
  .page-khuyen-mai h2 {
    font-size: 1.4em;
  }
  .page-khuyen-mai .hero-image {
    max-height: 200px;
  }
  .page-khuyen-mai .hero-content p {
    font-size: 0.9em;
  }
  .page-khuyen-mai .cta-button {
    width: 100%;
    max-width: 280px;
  }
  .page-khuyen-mai .section-overview .list-benefits,
  .page-khuyen-mai .section-why-choose .list-reasons {
    grid-template-columns: 1fr;
  }
}