/* style/khuyn-mi.css */
:root {
  --primary-color: #CC0000;
  --secondary-color: #FFD700;
  --dark-background: #1a1a1a;
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-bg: #2a2a2a;
  --border-color: #444444;
  --button-hover-bg: #e6b800;
}

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

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

.page-khuyn-mi-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #a30000 100%);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi-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-khuyn-mi-hero-content p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-khuyn-mi-cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 18px 45px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi-cta-button:hover {
  background-color: var(--button-hover-bg);
  transform: translateY(-3px);
}

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

.page-khuyn-mi-section:nth-of-type(even) {
  background-color: #1f1f1f;
}

.page-khuyn-mi-section h2 {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-khuyn-mi-section h3 {
  font-size: 1.8em;
  color: var(--text-light);
  margin-top: 30px;
  margin-bottom: 15px;
}

.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-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-khuyn-mi-card-img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

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

.page-khuyn-mi-promo-card h3 a {
  color: inherit;
  text-decoration: none;
}

.page-khuyn-mi-promo-card h3 a:hover {
  text-decoration: underline;
}

.page-khuyn-mi-promo-card p {
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-khuyn-mi-card-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 12px 25px;
  margin: 0 20px 20px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
}

.page-khuyn-mi-card-button:hover {
  background-color: #a30000;
}

.page-khuyn-mi-promo-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.page-khuyn-mi-list-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  padding: 25px;
}

.page-khuyn-mi-list-img {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 30px;
  flex-shrink: 0;
}

.page-khuyn-mi-list-content h3 {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-khuyn-mi-list-content h3 a {
  color: inherit;
  text-decoration: none;
}

.page-khuyn-mi-list-content h3 a:hover {
  text-decoration: underline;
}

.page-khuyn-mi-list-content p {
  margin-bottom: 15px;
}

.page-khuyn-mi-button-small {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-khuyn-mi-button-small:hover {
  background-color: #a30000;
}

.page-khuyn-mi-terms-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}

.page-khuyn-mi-terms-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi-terms-item h3 {
  color: var(--secondary-color);
  font-size: 1.6em;
  margin-top: 0;
}

.page-khuyn-mi-steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-khuyn-mi-steps li {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-khuyn-mi-step-icon {
  width: 150px; /* Increased size */
  height: 150px; /* Increased size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-khuyn-mi-steps h4 {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-khuyn-mi-steps h4 a {
  color: inherit;
  text-decoration: none;
}

.page-khuyn-mi-steps h4 a:hover {
  text-decoration: underline;
}

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

.page-khuyn-mi-faq-items {
  margin-top: 40px;
}

/* FAQ styles */
.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.faq-question:hover {
  background: #3a3a3a;
}

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

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

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

.faq-answer p {
  margin: 0;
  padding-bottom: 20px;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-khuyn-mi-hero-content h1 {
    font-size: 2.5em;
  }
  .page-khuyn-mi-section h2 {
    font-size: 2em;
  }
  .page-khuyn-mi-list-item {
    flex-direction: column;
    text-align: center;
  }
  .page-khuyn-mi-list-img {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .page-khuyn-mi-promo-card h3 {
    font-size: 1.3em;
  }
  .page-khuyn-mi-terms-item h3 {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-khuyn-mi-hero {
    padding: 60px 15px;
  }
  .page-khuyn-mi-hero-content h1 {
    font-size: 2em;
  }
  .page-khuyn-mi-hero-content p {
    font-size: 1em;
  }
  .page-khuyn-mi-cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-khuyn-mi-section {
    padding: 40px 0;
  }
  .page-khuyn-mi-section h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-khuyn-mi-section h3 {
    font-size: 1.5em;
  }
  .page-khuyn-mi-promo-grid {
    grid-template-columns: 1fr;
  }
  .page-khuyn-mi-promo-card h3 {
    font-size: 1.2em;
  }
  .page-khuyn-mi-list-item {
    padding: 20px;
  }
  .page-khuyn-mi-list-img {
    width: 100%;
    height: auto;
  }
  .page-khuyn-mi-steps {
    grid-template-columns: 1fr;
  }
  .page-khuyn-mi-step-icon {
    width: 120px;
    height: 120px;
  }
  .page-khuyn-mi-steps h4 {
    font-size: 1.2em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px 20px 20px;
  }
}