.page-khuyen-mai {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --card-bg: #D32F2F;
  --section-bg: #B71C1C;
  --text-main: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;

  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--section-bg);
}

.page-khuyen-mai__section {
  padding: 40px 20px;
  margin-bottom: 20px;
  background-color: var(--section-bg);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-khuyen-mai__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai__section-description {
  font-size: 1.1em;
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.page-khuyen-mai__hero-carousel-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 20px;
  background-color: var(--deep-red-color);
}

.page-khuyen-mai__hero-slider {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px var(--glow-color);
}

.page-khuyen-mai__hero-slide {
  display: none;
  position: relative;
}

.page-khuyen-mai__hero-slide.is-active {
  display: block;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-khuyen-mai__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-main);
  max-width: 70%;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px 30px;
  border-radius: 10px;
}

.page-khuyen-mai__hero-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--gold-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page-khuyen-mai__hero-description {
  font-size: clamp(0.9em, 1.5vw, 1.1em);
  margin-bottom: 20px;
  line-height: 1.5;
}

.page-khuyen-mai__hero-slider-prev,
.page-khuyen-mai__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--text-main);
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-khuyen-mai__hero-slider-prev:hover,
.page-khuyen-mai__hero-slider-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.page-khuyen-mai__hero-slider-prev {
  left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.page-khuyen-mai__hero-slider-next {
  right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.page-khuyen-mai__hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.page-khuyen-mai__hero-dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-khuyen-mai__hero-dot.is-active {
  background-color: var(--gold-color);
}

.page-khuyen-mai__guide-box {
  padding: 16px 20px 24px;
  background: var(--deep-red-color);
  border-radius: 8px;
  box-shadow: 0 0 20px var(--glow-color);
}

.page-khuyen-mai__guide-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-khuyen-mai__guide-card {
  flex: 0 0 calc(20% - 12px); /* 5 cards per row with gap */
  max-width: calc(20% - 12px);
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.page-khuyen-mai__guide-card--pos-1,
.page-khuyen-mai__guide-card--pos-5 {
  padding-top: 50px;
}

.page-khuyen-mai__guide-card--pos-2,
.page-khuyen-mai__guide-card--pos-4 {
  padding-top: 25px;
}

.page-khuyen-mai__guide-card img {
  aspect-ratio: 250 / 350;
  object-fit: contain;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__guide-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 5px solid var(--border-color);
  border-radius: 15px;
  box-shadow: 0 0 20px var(--glow-color);
  height: 700px;
  text-align: left;
}

.page-khuyen-mai__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px; /* For scrollbar */
}

.page-khuyen-mai__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-khuyen-mai__home-content-inner::-webkit-scrollbar-track {
  background: var(--deep-red-color);
  border-radius: 10px;
}

.page-khuyen-mai__home-content-inner::-webkit-scrollbar-thumb {
  background: var(--gold-color);
  border-radius: 10px;
}

.page-khuyen-mai__content-subtitle {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai__home-content-box p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-khuyen-mai__blog-section {
  background-color: var(--deep-red-color);
}

.page-khuyen-mai__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-khuyen-mai__blog-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  text-align: left;
}

.page-khuyen-mai__blog-card:hover {
  transform: translateY(-5px);
}

.page-khuyen-mai__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-khuyen-mai__blog-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__blog-card-content {
  padding: 15px;
}

.page-khuyen-mai__blog-card-title {
  font-size: 1.3em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-khuyen-mai__blog-card-date {
  font-size: 0.9em;
  color: rgba(var(--text-main), 0.7);
  margin-bottom: 10px;
}

.page-khuyen-mai__blog-card-excerpt {
  font-size: 1em;
  color: var(--text-main);
  line-height: 1.5;
}

.page-khuyen-mai__blog-view-all {
  margin-top: 30px;
}

.page-khuyen-mai__btn-primary,
.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  margin: 5px;
}

.page-khuyen-mai__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #333333; /* Dark text on gold gradient */
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai__btn-secondary {
  background: var(--card-bg);
  color: var(--text-main);
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__btn-secondary:hover {
  background: var(--deep-red-color);
  border-color: var(--gold-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai__cta-section {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  padding: 50px 20px;
  border-radius: 10px;
  margin-top: 40px;
}

.page-khuyen-mai__cta-title {
  font-size: 2.8em;
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.page-khuyen-mai__cta-description {
  font-size: 1.2em;
  color: var(--text-main);
  max-width: 900px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.page-khuyen-mai__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-khuyen-mai__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: var(--gold-color);
  background-color: var(--deep-red-color);
}

.page-khuyen-mai__faq-question::-webkit-details-marker {
  display: none;
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  transform: rotate(45deg);
}

.page-khuyen-mai__faq-answer {
  padding: 15px 20px;
  font-size: 1.05em;
  line-height: 1.6;
  background-color: var(--card-bg);
  border-top: 1px solid rgba(var(--border-color), 0.3);
  color: var(--text-main);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-khuyen-mai__section {
    padding: 20px 15px;
    margin-bottom: 15px;
  }

  .page-khuyen-mai__section-title {
    font-size: 2em;
    margin-bottom: 10px;
  }

  .page-khuyen-mai__section-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Hero Carousel Section */
  .page-khuyen-mai__hero-carousel-section {
    padding-top: 10px !important;
  }

  .page-khuyen-mai__hero-slider {
    border-radius: 0;
  }

  .page-khuyen-mai__hero-content {
    max-width: 90%;
    padding: 15px 20px;
  }

  .page-khuyen-mai__hero-title {
    font-size: 1.5em;
  }

  .page-khuyen-mai__hero-description {
    font-size: 0.9em;
  }

  .page-khuyen-mai__hero-slider-prev,
  .page-khuyen-mai__hero-slider-next {
    padding: 10px 5px;
    font-size: 1.2em;
  }

  /* Guide Box (5 team cards) */
  .page-khuyen-mai__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .page-khuyen-mai__guide-card {
    padding-top: 0 !important; /* Reset desktop specific padding */
    flex: auto;
    max-width: 100%;
  }

  .page-khuyen-mai__guide-card--pos-1,
  .page-khuyen-mai__guide-card--pos-2 {
    grid-column: span 3;
  }

  .page-khuyen-mai__guide-card--pos-3,
  .page-khuyen-mai__guide-card--pos-4,
  .page-khuyen-mai__guide-card--pos-5 {
    grid-column: span 2;
  }

  /* Home Content Box (700px scrollable) */
  .page-khuyen-mai__home-content-box {
    max-width: 100%;
    height: auto; /* Full height on mobile */
    padding: 15px;
    border-radius: 8px;
  }

  .page-khuyen-mai__home-content-inner {
    height: auto; /* Full height on mobile */
    overflow: visible; /* No scrollbar on mobile */
    padding-right: 0;
  }

  .page-khuyen-mai__content-subtitle {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-khuyen-mai__home-content-box p {
    font-size: 0.95em;
  }

  /* Blog Section */
  .page-khuyen-mai__blog-grid {
    grid-template-columns: repeat(1, 1fr); /* Single column on mobile */
    gap: 15px;
  }

  .page-khuyen-mai__blog-card-image {
    height: 180px;
  }

  .page-khuyen-mai__blog-card-title {
    font-size: 1.1em;
  }

  /* General Images */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container,
  .page-khuyen-mai__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons */
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai a[class*="button"],
  .page-khuyen-mai a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuyen-mai__cta-buttons,
  .page-khuyen-mai__button-group,
  .page-khuyen-mai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-khuyen-mai__cta-buttons {
    flex-direction: column;
  }

  .page-khuyen-mai__cta-title {
    font-size: 2em;
  }

  .page-khuyen-mai__cta-description {
    font-size: 1em;
  }

  .page-khuyen-mai__faq-question {
    font-size: 1.1em;
    padding: 12px 15px;
  }

  .page-khuyen-mai__faq-answer {
    font-size: 0.95em;
    padding: 12px 15px;
  }
}