/* Minh Tâm Bảo — Tin tức & hoạt động trên trang chủ */
.mtb-home-news {
  overflow: hidden;
  border: 1px solid var(--mtb-home-line, rgba(20,45,39,.11));
  background:
    radial-gradient(circle at 92% 0, rgba(185,149,82,.10), transparent 28%),
    linear-gradient(135deg, #fffdf9 0%, #f7f3ea 100%);
  box-shadow: 0 28px 70px rgba(20,45,39,.06);
}

.mtb-home-news__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}

.mtb-home-news__header .mtb-home-display {
  max-width: 920px;
}

.mtb-home-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.mtb-home-news-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(20,45,39,.10);
  border-radius: 26px;
  background: rgba(255,255,255,.76);
  color: var(--mtb-home-ink, #142d27);
  text-decoration: none;
  box-shadow: 0 14px 42px rgba(20,45,39,.06);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}

.mtb-home-news-card:hover {
  color: var(--mtb-home-ink, #142d27);
  transform: translateY(-6px);
  border-color: rgba(185,149,82,.42);
  box-shadow: 0 24px 58px rgba(20,45,39,.12);
}

.mtb-home-news-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e8ebe5;
}

.mtb-home-news-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12,33,27,.14));
  pointer-events: none;
}

.mtb-home-news-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

.mtb-home-news-card:hover .mtb-home-news-card__media img {
  transform: scale(1.035);
}

.mtb-home-news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.mtb-home-news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #8c7550;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mtb-home-news-card__meta span + span::before {
  content: "•";
  margin-right: 10px;
  color: rgba(20,45,39,.32);
}

.mtb-home-news-card h3 {
  display: -webkit-box;
  min-height: 2.55em;
  margin: 0;
  overflow: hidden;
  color: var(--mtb-home-ink, #142d27);
  font-family: 'Inter', 'Roboto', Arial, sans-serif !important;
  font-size: clamp(1.12rem, 1.45vw, 1.42rem);
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.mtb-home-news-card__read {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--mtb-home-ink, #142d27);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mtb-home-news-card__read span {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mtb-home-ink, #142d27);
  color: #fff;
  transition: transform .25s ease, background .25s ease;
}

.mtb-home-news-card:hover .mtb-home-news-card__read span {
  background: var(--mtb-home-gold, #b99552);
  transform: translateX(3px);
}

.mtb-home-news__loading {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(16px, 2vw, 28px);
}

.mtb-home-news-skeleton {
  overflow: hidden;
  min-height: 360px;
  border-radius: 26px;
  background: linear-gradient(90deg, rgba(20,45,39,.05), rgba(255,255,255,.85), rgba(20,45,39,.05));
  background-size: 220% 100%;
  animation: mtb-news-shimmer 1.35s linear infinite;
}

@keyframes mtb-news-shimmer {
  to { background-position: -220% 0; }
}

@media (max-width: 991.98px) {
  .mtb-home-news__grid,
  .mtb-home-news__loading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mtb-home-news-card:nth-child(3) {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .mtb-home-news__header {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 22px;
  }

  .mtb-home-news__header .mtb-home-link {
    justify-self: start;
  }

  .mtb-home-news__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-right: calc(clamp(22px, 5vw, 78px) * -1);
    padding-right: clamp(22px, 5vw, 78px);
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mtb-home-news__grid::-webkit-scrollbar { display: none; }

  .mtb-home-news-card,
  .mtb-home-news-card:nth-child(3) {
    display: flex;
    flex: 0 0 min(82vw, 360px);
    scroll-snap-align: start;
  }

  .mtb-home-news-card__body {
    padding: 18px 18px 20px;
  }

  .mtb-home-news-card h3 {
    min-height: auto;
    font-size: 1.08rem;
  }

  .mtb-home-news__loading {
    display: flex;
    overflow: hidden;
  }

  .mtb-home-news-skeleton {
    flex: 0 0 min(82vw, 360px);
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mtb-home-news-card,
  .mtb-home-news-card__media img,
  .mtb-home-news-card__read span,
  .mtb-home-news-skeleton {
    transition: none !important;
    animation: none !important;
  }
}


.mtb-home-news__empty {
  grid-column: 1 / -1;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px;
  border: 1px dashed rgba(20,45,39,.18);
  border-radius: 22px;
  background: rgba(255,255,255,.5);
  color: var(--mtb-home-muted, #6d7873);
  text-align: center;
}

.mtb-home-news__empty i {
  flex: 0 0 auto;
  color: var(--mtb-home-gold, #b99552);
  font-size: 1.55rem;
}

.mtb-home-news__empty p {
  max-width: 680px;
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 767.98px) {
  .mtb-home-news__empty {
    flex: 0 0 calc(100% - 14px);
    min-height: 150px;
    padding: 24px 20px;
  }
}
