/**
 * Section Banner — Chi tiết tin tức (single Tin tức)
 * Node Figma: 2513:18570 (Banner) — 1600×534.
 * BEM scoped. rem = figma_px / 16. NO gap / NO aspect-ratio / NO px / NO background-image.
 */

.section-tt-banner {
  /* ── Design tokens (scoped) ── */
  --tt-banner-white-70: rgba(255, 255, 255, 0.7);
  --tt-banner-gradient: linear-gradient(
    180deg,
    rgba(23, 84, 146, 0) 0%,
    rgba(23, 84, 146, 0.723) 38%,
    #175492 100%
  );

  position: relative;
  width: 100%;
  height: 33.375rem;
  background-color: #000000;
}

/* Nền: featured image full-bleed (KHÔNG background-image). */
.section-tt-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Lớp gradient tối đáy để chữ nổi (Container Background 2513:18583, opacity 0.8). */
.section-tt-banner__overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 20.8548rem;
  background: var(--tt-banner-gradient);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

/* Container nội dung bám đáy banner (2513:18584). */
.section-tt-banner__container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 3.5rem 6.25rem 2rem;
  box-shadow: 0 0.25rem 0.25rem 0 rgba(0, 96, 141, 0.3);
}

.section-tt-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.section-tt-banner__inner > * {
  margin: 0;
}

.section-tt-banner__inner > * + * {
  margin-top: 1.5rem;
}

/* ── Breadcrumb (2513:18586) ── */
.tt-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.tt-breadcrumb > * + * {
  margin-left: 0.4375rem;
}

.tt-breadcrumb__link {
  font-family: "Nunito Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.75rem;
  letter-spacing: -0.0156rem;
  color: var(--tt-banner-white-70);
  text-decoration: none;
  transition: color 0.2s ease;
}

a.tt-breadcrumb__link:hover,
a.tt-breadcrumb__link:focus-visible {
  color: #ffffff;
}

.tt-breadcrumb__current {
  color: #ffffff;
}

.tt-breadcrumb__sep {
  flex: 0 0 auto;
  width: 0.1945rem;
  height: 0.1945rem;
  background-color: var(--tt-banner-white-70);
}

/* ── Tiêu đề (2513:18594) ── */
.section-tt-banner__title {
  max-width: 65.5625rem;
  font-family: "Nunito Sans", sans-serif;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.2308;
  letter-spacing: -0.0938rem;
  color: #ffffff;
}

/* ── Ngày + chia sẻ (2513:18595) ── */
.section-tt-banner__meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: 100%;
}

.section-tt-banner__date {
  font-family: "Nunito Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75rem;
  letter-spacing: -0.0156rem;
  color: #ffffff;
}

.section-tt-banner .tt-share {
  display: flex;
  align-items: center;
}

.section-tt-banner .tt-share__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #ffffff;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
}

/* Nút Sao chép liên kết: bỏ overflow để tooltip "Đã sao chép" thoát ra ngoài */
.section-tt-banner .tt-share__link--copy {
  overflow: visible;
}

.section-tt-banner .tt-share__link--copy.is-copied::after {
  content: attr(data-copied);
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 0.625rem;
  background-color: #003253;
  color: #ffffff;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border-radius: 0.25rem;
  pointer-events: none;
  z-index: 3;
}

.section-tt-banner .tt-share__link + .tt-share__link {
  margin-left: 0.75rem;
}

.section-tt-banner .tt-share__icon {
  display: block;
  width: 1.875rem;
  height: 1.875rem;
}

/* ─────────────────────────────────────────────────────────────
 * Mobile (Figma 2513:18742 "Main Container" — 375×442).
 * ───────────────────────────────────────────────────────────── */
@media screen and (max-width: 639.98px) {
  .section-tt-banner {
    height: auto;
    min-height: 27.625rem;
  }

  .section-tt-banner__overlay {
    height: 75%;
  }

  .section-tt-banner__container {
    padding: 1.5rem 1rem;
  }

  .section-tt-banner__inner > * + * {
    margin-top: 0.75rem;
  }

  /* Breadcrumb 12/800 (I2513:18746;1784:15477) */
  .tt-breadcrumb__link {
    font-size: 0.75rem;
    line-height: 1.375rem;
  }

  /* H1 34/800 / lh40 (2513:18747) */
  .section-tt-banner__title {
    max-width: none;
    font-size: 2.125rem;
    line-height: 1.1765;
    letter-spacing: -0.0625rem;
  }

  /* Ngày 14/400 — giữ cùng hàng với share (Figma row space-between) */
  .section-tt-banner__date {
    font-size: 0.875rem;
    line-height: 1.375rem;
  }
}
