/* style/khuyen-mai.css */
:root {
  --primary-color: #0A1931;
  --secondary-color: #FFD700;
  --text-light: #FFFFFF;
  --text-dark: #333333;
  --background-light: #F8F8F8;
  --background-dark: #0A1931;
  --border-color: #e0e0e0;
}

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

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

/* 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-color: 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;
}

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

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

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

.page-khuyen-mai .hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

.page-khuyen-mai .cta-button:hover {
  background: #FFEB3B; /* Lighter gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-khuyen-mai .secondary-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: #FFEB3B;
}

/* General Section Styling */
.page-khuyen-mai section {
  padding: 80px 0;
  text-align: center;
}

.page-khuyen-mai section:nth-of-type(odd) {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-khuyen-mai section:nth-of-type(even) {
  background-color: #F0F2F5; /* Slightly darker light background */
  color: var(--text-dark);
}

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

.page-khuyen-mai h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-khuyen-mai h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-khuyen-mai p {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai ul,
.page-khuyen-mai ol {
  list-style-position: inside;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 30px auto;
  padding-left: 20px;
}

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

.page-khuyen-mai strong {
  color: var(--primary-color);
  font-weight: bold;
}

.page-khuyen-mai .button-learn-more,
.page-khuyen-mai .button-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-khuyen-mai .button-learn-more:hover,
.page-khuyen-mai .button-primary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Offer Cards */
.page-khuyen-mai .offer-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-khuyen-mai .offer-card {
  background-color: #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-khuyen-mai .offer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai .offer-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-khuyen-mai .offer-card h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  padding: 0 15px;
}

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

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

.page-khuyen-mai .offer-card p {
  font-size: 0.95em;
  color: #555;
  padding: 0 15px;
  margin-bottom: 25px;
}

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

.page-khuyen-mai .offer-card .card-button:hover {
  background: #FFEB3B;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-khuyen-mai .faq-list {
  max-width: 900px;
  margin: 50px auto;
  text-align: left;
}

.page-khuyen-mai .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
}

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

.page-khuyen-mai .faq-question:hover {
  background: #f5f5f5;
}

.page-khuyen-mai .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
}

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

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

.page-khuyen-mai .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
}

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

.page-khuyen-mai .faq-answer p {
  margin: 0;
  font-size: 1em;
  text-align: left;
}

.page-khuyen-mai .faq-contact-cta {
  margin-top: 50px;
  padding: 30px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 10px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai .faq-contact-cta p {
  color: var(--text-light);
  font-size: 1.1em;
  margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-khuyen-mai .hero-content h1 {
    font-size: 2.5em;
  }
  .page-khuyen-mai h2 {
    font-size: 2em;
  }
  .page-khuyen-mai h3 {
    font-size: 1.6em;
  }
  .page-khuyen-mai section {
    padding: 60px 0;
  }
  .page-khuyen-mai .offer-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai .hero-section {
    padding: 40px 15px;
  }
  .page-khuyen-mai .hero-content h1 {
    font-size: 2em;
  }
  .page-khuyen-mai .hero-content p {
    font-size: 1em;
  }
  .page-khuyen-mai .cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 5px;
  }
  .page-khuyen-mai h2 {
    font-size: 1.8em;
  }
  .page-khuyen-mai h3 {
    font-size: 1.4em;
  }
  .page-khuyen-mai p {
    font-size: 0.95em;
  }
  .page-khuyen-mai ul,
  .page-khuyen-mai ol {
    padding-left: 15px;
  }
  .page-khuyen-mai ul li,
  .page-khuyen-mai ol li {
    font-size: 0.95em;
  }
  .page-khuyen-mai .offer-card img {
    height: 200px;
  }
  .page-khuyen-mai .faq-question {
    padding: 15px 20px;
  }
  .page-khuyen-mai .faq-question h3 {
    font-size: 1.1em;
  }
  .page-khuyen-mai .faq-answer {
    padding: 0 20px;
  }
  .page-khuyen-mai .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-khuyen-mai .hero-content h1 {
    font-size: 1.8em;
  }
  .page-khuyen-mai .cta-button {
    width: 90%;
    display: block;
    margin: 10px auto;
  }
  .page-khuyen-mai h2 {
    font-size: 1.6em;
  }
  .page-khuyen-mai .offer-card-grid {
    grid-template-columns: 1fr;
  }
  .page-khuyen-mai .offer-card img {
    height: 180px;
  }
  .page-khuyen-mai .faq-question h3 {
    font-size: 1em;
  }
  .page-khuyen-mai .faq-toggle {
    font-size: 20px;
  }
}