/* style/khuyen-mai.css */
.page-khuyen-mai {
  color: #F3F8FF;
  background-color: #08162B;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.page-khuyen-mai h1,
.page-khuyen-mai h2,
.page-khuyen-mai h3 {
  color: #F3F8FF;
}

.page-khuyen-mai__intro-section {
  padding-top: 10px;
  margin-top: 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  text-align: center;
}

.page-khuyen-mai__page-title {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.5px;
  margin: 16px 0 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-khuyen-mai__intro-text {
  color: #AFC4E8;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto 24px;
  max-width: 750px;
}

.page-khuyen-mai__intro-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.page-khuyen-mai__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  box-sizing: border-box;
}

.page-khuyen-mai__btn--primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 168, 255, 0.3);
}

.page-khuyen-mai__btn--secondary {
  background: transparent;
  color: #F3F8FF;
  border: 2px solid #244D84;
}

.page-khuyen-mai__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 168, 255, 0.4);
}

.page-khuyen-mai__blog-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  position: relative;
}

.page-khuyen-mai__section-title {
  text-align: center;
  font-weight: 700;
  margin: 0 0 24px;
  color: #F2C14E;
}

.page-khuyen-mai__blog-slider-wrapper {
  position: relative;
  padding: 0 40px;
}

.page-khuyen-mai__blog-slider {
  display: flex;
  gap: 20px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.page-khuyen-mai__blog-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 0;
  background: #10233F;
  border: 1px solid #244D84;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s;
}

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

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

.page-khuyen-mai__blog-img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  min-height: 200px;
}

.page-khuyen-mai__blog-card-title {
  font-size: 1rem;
  margin: 12px 12px 8px;
  color: #F3F8FF;
  line-height: 1.4;
  min-height: 2.8em;
}

.page-khuyen-mai__blog-excerpt {
  font-size: 0.85rem;
  color: #AFC4E8;
  margin: 0 12px 14px;
  line-height: 1.5;
}

.page-khuyen-mai__blog-prev,
.page-khuyen-mai__blog-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.page-khuyen-mai__blog-prev {
  left: 0;
}

.page-khuyen-mai__blog-next {
  right: 0;
}

.page-khuyen-mai__blog-prev:hover,
.page-khuyen-mai__blog-next:hover {
  box-shadow: 0 0 10px rgba(79, 168, 255, 0.7);
}

@media (max-width: 1024px) {
  .page-khuyen-mai__blog-card {
    flex-basis: calc(33.333% - 14px);
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai {
    max-width: 100%;
    overflow-x: hidden;
  }
  .page-khuyen-mai__intro-actions {
    flex-direction: column;
    align-items: center;
  }
  .page-khuyen-mai__btn {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
  }
  .page-khuyen-mai__blog-card {
    flex-basis: 100%;
  }
  .page-khuyen-mai__blog-slider-wrapper {
    padding: 0 30px;
  }
  .page-khuyen-mai__page-title {
    font-size: 1.35rem;
  }
  .page-khuyen-mai__blog-img {
    max-width: 100%;
    height: auto;
  }
  .page-khuyen-mai img {
    max-width: 100% !important;
    height: auto !important;
  }
}