/* ============================================================
   VI FEERIE — Section "BLOG" (carousel ngang ở mọi breakpoint)
   Desktop 3 card · Tablet 2 card · Mobile 1.5 card
   ============================================================ */

.news-section {
  padding: 64px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

/* Tiêu đề BLOG canh giữa — font display, letter-spacing giãn rộng */
.news-section__heading {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Khung cuộn ngang — carousel */
.news-section__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.news-section__scroll::-webkit-scrollbar {
  display: none;
}

/* Hàng card — flex, không xuống dòng; card lấy % theo bề rộng khung cuộn */
.news-grid {
  display: flex;
  gap: 28px;
}

/* ---------- Card bài viết ---------- */
.news-card {
  /* Desktop: hiển thị 3 card (2 khoảng gap 28px) */
  flex: 0 0 calc((100% - 56px) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 4px;
  background: #ffe9f1;
}

.news-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--brand-tint, #f5edf1);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.news-card:hover .news-card__media img {
  transform: scale(1.05);
}

.news-card__title {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color 0.25s var(--ease);
}

.news-card:hover .news-card__title {
  color: var(--brand-deep);
}

.news-card__desc {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-card__more {
  align-self: flex-start;
  margin-top: auto;
  padding: 2px 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.news-card__more:hover {
  color: var(--brand-deep);
}

/* ============================================================
   Responsive — đổi số card hiển thị + gap theo breakpoint
   ============================================================ */

@media screen and (max-width: 1024px) {
  .news-section__heading {
    font-size: 30px;
    letter-spacing: 0.16em;
    margin-bottom: 32px;
  }

  .news-grid {
    gap: 20px;
  }

  /* Tablet: hiển thị 2 card (1 khoảng gap 20px) */
  .news-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media screen and (max-width: 820px) {
  .news-section {
    padding: 48px 0;
  }

  .news-section__heading {
    font-size: 26px;
    margin-bottom: 28px;
  }
}

@media screen and (max-width: 640px) {
  .news-grid {
    gap: 16px;
  }

  /* Mobile: hiển thị 1.5 card để "ló" card kế gợi ý vuốt ngang */
  .news-card {
    flex-basis: calc((100% - 16px) / 1.5);
  }

  .news-card__media {
    aspect-ratio: 1 / 1;
  }
}

@media screen and (max-width: 520px) {
  .news-section {
    padding: 40px 0;
  }

  .news-section__heading {
    font-size: 22px;
    letter-spacing: 0.14em;
    margin-bottom: 24px;
  }

  .news-card__title {
    font-size: 14px;
  }

  .news-card__desc {
    font-size: 11.5px;
  }
}
