.page-khuyen-mai {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Assuming body background is light */
}

/* Hero Carousel Section */
.page-khuyen-mai__hero-carousel-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-khuyen-mai__hero-slider {
  position: relative;
  width: 100%;
  height: 500px; /* Fixed height for desktop */
  overflow: hidden;
}

.page-khuyen-mai__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-khuyen-mai__hero-slide.is-active {
  opacity: 1;
}

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

.page-khuyen-mai__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px 40px;
  border-radius: 10px;
  max-width: 800px;
  box-sizing: border-box;
}

.page-khuyen-mai__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-khuyen-mai__hero-description {
  font-size: 1.2em;
  margin-bottom: 25px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-khuyen-mai__hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

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

.page-khuyen-mai__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-khuyen-mai__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-khuyen-mai__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87b7;
  border-color: #1e87b7;
}

.page-khuyen-mai__btn-text {
  color: #26A9E0;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.page-khuyen-mai__btn-text:hover {
  text-decoration: underline;
}

.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: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 1.5em;
  z-index: 10;
  border-radius: 5px;
}

.page-khuyen-mai__hero-slider-prev {
  left: 10px;
}

.page-khuyen-mai__hero-slider-next {
  right: 10px;
}

/* Guide Box Section */
.page-khuyen-mai__guide-box {
  padding: 40px 20px 50px;
  background: #f5f5f5; /* Light background for this section */
  border-radius: 8px;
  margin: 30px auto;
  max-width: 1200px;
  text-align: center;
}

.page-khuyen-mai__guide-title {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 30px;
  font-weight: bold;
}

.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, accounting for gap */
  max-width: calc(20% - 12px);
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease;
  overflow: hidden;
}

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

.page-khuyen-mai__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical cards */
  object-fit: contain; /* Use contain to ensure full image visibility */
  display: block;
  border-radius: 5px;
}

/* Positioning for the 5 guide cards */
.page-khuyen-mai__guide-card--pos-1 { padding-top: 50px; }
.page-khuyen-mai__guide-card--pos-2 { padding-top: 25px; }
.page-khuyen-mai__guide-card--pos-3 { padding-top: 0; }
.page-khuyen-mai__guide-card--pos-4 { padding-top: 25px; }
.page-khuyen-mai__guide-card--pos-5 { padding-top: 50px; }


/* Home Content Box Section (Detailed Promotions) */
.page-khuyen-mai__home-content-box {
  max-width: 91%;
  margin: 30px auto;
  padding: 20px 30px;
  border: 5px solid #26A9E0; /* Using main brand color for border */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(38, 169, 224, 0.4); /* Shadow with brand color tint */
  height: 700px; /* Fixed height for desktop */
  box-sizing: border-box;
  background-color: #ffffff; /* Explicitly light background */
  color: #333333;
}

.page-khuyen-mai__home-content-inner {
  height: 100%;
  overflow-y: auto; /* Scrollable content for desktop */
  padding-right: 15px; /* Space for scrollbar */
  box-sizing: border-box;
}

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

.page-khuyen-mai__home-content-inner::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.page-khuyen-mai__home-content-inner::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.page-khuyen-mai__home-content-inner::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.page-khuyen-mai__main-heading {
  font-size: 2.8em;
  color: #26A9E0;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-khuyen-mai__sub-heading {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-khuyen-mai p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-khuyen-mai__list {
  list-style-type: disc;
  margin-left: 30px;
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.6;
}

.page-khuyen-mai__list li {
  margin-bottom: 10px;
}

.page-khuyen-mai__figure {
  margin: 30px 0;
  text-align: center;
}

.page-khuyen-mai__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-khuyen-mai__figure figcaption {
  margin-top: 10px;
  font-style: italic;
  color: #666666;
  font-size: 0.95em;
}

/* Blog Section */
.page-khuyen-mai__blog-section {
  padding: 60px 20px;
  background-color: #26A9E0; /* Dark background with brand color */
  color: #ffffff; /* White text for dark background */
  text-align: center;
}

.page-khuyen-mai__blog-title {
  font-size: 2.5em;
  color: #ffffff;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-khuyen-mai__blog-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-khuyen-mai__blog-card a:hover .page-khuyen-mai__blog-card-title {
  color: #26A9E0;
}

.page-khuyen-mai__blog-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-khuyen-mai__blog-card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin: 15px 15px 10px;
  line-height: 1.4;
  color: #333333;
  transition: color 0.3s ease;
}

.page-khuyen-mai__blog-date {
  font-size: 0.9em;
  color: #666666;
  margin: 0 15px 10px;
}

.page-khuyen-mai__blog-excerpt {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-khuyen-mai__view-all-button-container {
  margin-top: 50px;
}

/* General image and button responsiveness */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Contrast classes */
.page-khuyen-mai__dark-bg {
  background: #26A9E0;
  color: #ffffff; /* Force white text */
}

.page-khuyen-mai__light-bg {
  background: #ffffff;
  color: #333333; /* Force dark text */
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-title {
    font-size: 2.5em;
  }
  .page-khuyen-mai__hero-description {
    font-size: 1em;
  }
  .page-khuyen-mai__guide-card {
    flex: 0 0 calc(33.333% - 10px); /* 3 cards per row */
    max-width: calc(33.333% - 10px);
  }
  .page-khuyen-mai__blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* General mobile overrides */
  .page-khuyen-mai {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Hero Carousel Section */
  .page-khuyen-mai__hero-carousel-section {
    padding-top: 10px !important; /* Ensure small padding */
  }
  .page-khuyen-mai__hero-slider {
    height: 300px; /* Adjust height for mobile */
  }
  .page-khuyen-mai__hero-content {
    padding: 20px;
    max-width: 90%;
  }
  .page-khuyen-mai__hero-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  .page-khuyen-mai__hero-description {
    font-size: 0.9em;
    margin-bottom: 15px;
  }
  .page-khuyen-mai__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-khuyen-mai__hero-slider-prev,
  .page-khuyen-mai__hero-slider-next {
    padding: 10px;
    font-size: 1.2em;
  }

  /* Guide Box Section */
  .page-khuyen-mai__guide-box {
    padding: 20px 15px 30px;
    margin: 20px auto;
  }
  .page-khuyen-mai__guide-title {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .page-khuyen-mai__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Temporary grid for positioning */
    gap: 10px;
  }
  .page-khuyen-mai__guide-card {
    flex: unset;
    max-width: unset;
    padding-top: 0 !important; /* Reset padding-top for mobile */
    grid-column: span 3; /* Default 2 cards per row (6/3) */
  }
  .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;
  }
  .page-khuyen-mai__guide-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Home Content Box Section */
  .page-khuyen-mai__home-content-box {
    max-width: 100% !important;
    height: auto !important; /* Full content visible */
    padding: 15px !important;
    border-radius: 10px;
  }
  .page-khuyen-mai__home-content-inner {
    height: auto !important;
    overflow: visible !important; /* No scrollbar */
    padding-right: 0 !important;
  }
  .page-khuyen-mai__main-heading {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .page-khuyen-mai__sub-heading {
    font-size: 1.5em;
    margin-top: 30px;
  }
  .page-khuyen-mai p,
  .page-khuyen-mai__list li {
    font-size: 1em;
  }
  .page-khuyen-mai__list {
    margin-left: 20px;
  }

  /* Blog Section */
  .page-khuyen-mai__blog-section {
    padding: 40px 15px;
  }
  .page-khuyen-mai__blog-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-khuyen-mai__blog-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }
  .page-khuyen-mai__blog-thumbnail {
    height: 180px; /* Adjust height for mobile */
  }
  .page-khuyen-mai__blog-card-title {
    font-size: 1.2em;
    margin: 10px 10px 5px;
  }
  .page-khuyen-mai__blog-date,
  .page-khuyen-mai__blog-excerpt {
    margin: 0 10px 10px;
  }
  .page-khuyen-mai__view-all-button-container {
    margin-top: 30px;
  }

  /* Universal Image and Button responsiveness for mobile */
  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
 }}