/* HCMC FOSTI news portal homepage */
:root {
  --fosti-navy: #0b3d91;
  --fosti-navy-deep: #062a66;
  --fosti-navy-dark: #0a2a5c;
  --fosti-blue: #1456b8;
  --fosti-green: #2ea44f;
  --fosti-green-dark: #22863a;
  --fosti-red: #c62828;
  --fosti-red-hot: #d32f2f;
  --fosti-text: #1f2937;
  --fosti-muted: #6b7280;
  --fosti-line: #e5e7eb;
  --fosti-bg: #f3f5f8;
  --fosti-white: #ffffff;
  --fosti-max: 1280px;
  /* Đổi font toàn site tại đây */
  --fosti-font: Arial, Helvetica, sans-serif;
  /* Font riêng cho tiêu đề / nội dung tin (có thể để giống --fosti-font) */
  --fosti-font-news: Arial, Helvetica, sans-serif;
  /* Tiêu đề tin */
  --fosti-title-size: 16px;
  --fosti-title-weight: 400;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.fosti-portal {
  margin: 0;
  font-family: var(--fosti-font);
  color: var(--fosti-text);
  background: var(--fosti-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Tiêu đề + nội dung tin / thông báo */
.fosti-home-news,
.fosti-quad,
.fosti-tintuc,
.fosti-tintuc h2,
.fosti-tintuc h3,
.fosti-tintuc h4,
.fosti-news-card,
.fosti-text-item,
.fosti-nendoc-item,
.fosti-quad-card,
.fosti-thongbao,
.fosti-feature-card {
  font-family: var(--fosti-font-news);
}

body.fosti-portal a {
  color: inherit;
  text-decoration: none;
}

body.fosti-portal img {
  max-width: 100%;
  height: auto;
  display: block;
}

.fosti-container {
  width: min(100% - 32px, var(--fosti-max));
  margin-inline: auto;
}

.fosti-main {
  overflow: clip;
}

/* ========== Static page (Trang) ========== */
.fosti-page {
  padding: 36px 0 56px;
  background: #fff;
}

.fosti-page__inner {
  max-width: min(100%, 920px);
}

.fosti-page__head {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8ecf1;
}

.fosti-page__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--fosti-navy, #002d5e);
}

.fosti-page__lead {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #53627a;
}

.fosti-page__body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #334155;
}

.fosti-page__body > *:first-child {
  margin-top: 0;
}

.fosti-page__body > *:last-child {
  margin-bottom: 0;
}

.fosti-page__body img {
  max-width: 100%;
  height: auto;
}

.fosti-page__body h2,
.fosti-page__body h3,
.fosti-page__body h4 {
  margin: 1.4em 0 0.55em;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fosti-navy, #002d5e);
}

.fosti-page__body p {
  margin: 0 0 1em;
}

.fosti-page__body ul,
.fosti-page__body ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

@media (max-width: 768px) {
  .fosti-page {
    padding: 24px 0 40px;
  }

  .fosti-page__head {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }
}

/* ========== News list page (/tin-tuc) — cổng thông tin ========== */
.fosti-np {
  padding: 20px 0 56px;
  background: var(--fosti-bg, #f3f5f8);
}

.fosti-np__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--fosti-muted);
}

.fosti-np__crumb a {
  color: var(--fosti-muted);
}

.fosti-np__crumb a:hover {
  color: var(--fosti-navy);
}

.fosti-np__crumb-sep {
  opacity: 0.55;
}

.fosti-np__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 24px 28px;
  align-items: start;
}

.fosti-np__main {
  background: #fff;
  border: 1px solid var(--fosti-line);
  padding: 22px 24px 28px;
}

.fosti-np__head {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--fosti-navy);
}

.fosti-np__head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--fosti-navy);
}

.fosti-np-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.fosti-np-meta__cat {
  color: var(--fosti-green-dark);
  font-weight: 600;
}

.fosti-np-meta time {
  color: var(--fosti-muted);
}

.fosti-np-meta time::before {
  content: "•";
  margin-right: 12px;
  color: #cbd5e1;
}

/* Tin nổi bật */
.fosti-np-lead {
  display: grid;
  grid-template-columns: minmax(320px, 48%) minmax(0, 1fr);
  gap: 18px 22px;
  margin-bottom: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--fosti-line);
  color: inherit;
}

.fosti-np-lead__media {
  overflow: hidden;
  background: #e5e7eb;
}

.fosti-np-lead__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.fosti-np-lead:hover .fosti-np-lead__media img {
  transform: scale(1.03);
}

.fosti-np-lead__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.fosti-np-lead__body h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--fosti-navy-dark);
}

.fosti-np-lead:hover .fosti-np-lead__body h2 {
  color: var(--fosti-blue);
}

.fosti-np-lead__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Danh sách tin */
.fosti-np-list {
  display: flex;
  flex-direction: column;
}

.fosti-np-item {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  gap: 16px 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--fosti-line);
  color: inherit;
}

.fosti-np-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fosti-np-item__media {
  overflow: hidden;
  background: #e5e7eb;
  align-self: start;
}

.fosti-np-item__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.fosti-np-item:hover .fosti-np-item__media img {
  transform: scale(1.03);
}

.fosti-np-item__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.fosti-np-item__body h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fosti-np-item:hover .fosti-np-item__body h2 {
  color: var(--fosti-navy);
}

.fosti-np-item__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fosti-np__empty {
  margin: 0;
  padding: 10px 0;
  font-size: 14px;
  color: var(--fosti-muted);
}

.fosti-np__pager {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* Sidebar */
.fosti-np__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fosti-np-box {
  background: #fff;
  border: 1px solid var(--fosti-line);
  padding: 0 0 14px;
}

.fosti-np-box--soft {
  padding: 0;
  border: 0;
  background: transparent;
}

.fosti-np-box--soft .fosti-newsletter {
  margin-bottom: 0;
  border: 1px solid var(--fosti-line);
}

.fosti-np-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 11px 14px;
  background: var(--fosti-navy);
  color: #fff;
}

.fosti-np-box__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.fosti-np-box__head a {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.fosti-np-box__head a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Thông báo sidebar: thumb 4:3 + tiêu đề */
.fosti-np-notice {
  list-style: none;
  margin: 0;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fosti-np-notice li {
  border-bottom: 1px dashed #e2e8f0;
}

.fosti-np-notice li:last-child {
  border-bottom: 0;
}

.fosti-np-notice a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  color: inherit;
}

.fosti-np-notice__thumb {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #e2e8f0;
}

.fosti-np-notice__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fosti-np-notice time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 6px 4px;
  background: #eef4fb;
  border: 1px solid #d6e4f5;
  color: var(--fosti-navy);
  text-align: center;
  line-height: 1.15;
}

.fosti-np-notice__day {
  font-size: 18px;
  font-weight: 600;
}

.fosti-np-notice__mon {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.fosti-np-notice__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fosti-np-notice a:hover .fosti-np-notice__title {
  color: var(--fosti-navy);
}

@media (max-width: 768px) {
  .fosti-np-notice a {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

.fosti-np-video {
  display: block;
  padding: 0 14px;
  color: inherit;
}

.fosti-np-video__media {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: 10px;
}

.fosti-np-video__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}

.fosti-np-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}

.fosti-np-video__play .material-symbols-outlined {
  font-size: 42px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(11, 61, 145, 0.82);
}

.fosti-np-video h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fosti-np-video:hover h3 {
  color: var(--fosti-navy);
}

.fosti-np-box > .fosti-np__empty {
  padding: 4px 14px 8px;
}

/* Danh mục sidebar */
.fosti-np-cats {
  list-style: none;
  margin: 0;
  padding: 0 8px 4px;
}

.fosti-np-cats li {
  border-bottom: 1px dashed #e2e8f0;
}

.fosti-np-cats li:last-child {
  border-bottom: 0;
}

.fosti-np-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 6px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}

.fosti-np-cats a em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--fosti-navy);
  background: #eef4fb;
  border-radius: 999px;
  min-width: 28px;
  padding: 2px 8px;
  text-align: center;
}

.fosti-np-cats a:hover,
.fosti-np-cats a.is-active {
  color: var(--fosti-navy);
}

/* Trang danh mục Video — lưới 2 cột */
.fosti-np--video .fosti-np__main {
  padding-bottom: 24px;
}

.fosti-np-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}

.fosti-np-vcard {
  display: flex;
  flex-direction: column;
  color: inherit;
  min-width: 0;
}

.fosti-np-vcard__media {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: 10px;
}

.fosti-np-vcard__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  opacity: 0.95;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

.fosti-np-vcard:hover .fosti-np-vcard__media img {
  transform: scale(1.04);
  opacity: 1;
}

.fosti-np-vcard__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 24, 56, 0.35) 100%);
}

.fosti-np-vcard__play .material-symbols-outlined {
  font-size: 48px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(11, 61, 145, 0.82);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
}

.fosti-np-vcard__body {
  min-width: 0;
}

.fosti-np-vcard__body .fosti-np-meta {
  margin-bottom: 6px;
}

.fosti-np-vcard__body h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fosti-np-vcard:hover .fosti-np-vcard__body h2 {
  color: var(--fosti-navy);
}

.fosti-np-video-grid > .fosti-np__empty {
  grid-column: 1 / -1;
}

@media (max-width: 992px) {
  .fosti-np__layout {
    grid-template-columns: 1fr;
  }

  .fosti-np-lead {
    grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .fosti-np-video-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .fosti-np-vcard__play .material-symbols-outlined {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .fosti-np {
    padding: 14px 0 40px;
  }

  .fosti-np__main {
    padding: 16px 14px 22px;
  }

  .fosti-np__head h1 {
    font-size: 22px;
  }

  .fosti-np-lead,
  .fosti-np-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fosti-np-lead__body h2 {
    font-size: 18px;
  }

  .fosti-np-item__body h2 {
    font-size: 16px;
  }
}

/* ========== Article detail (tin tức /bai-viet) ========== */
.fosti-ad {
  padding: 18px 0 48px;
}

.fosti-ad__wrap {
  max-width: var(--fosti-max, 1180px);
}

.fosti-ad__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #64748b;
}

.fosti-ad__crumb a {
  color: #64748b;
  text-decoration: none;
}

.fosti-ad__crumb a:hover {
  color: var(--fosti-navy, #0b3d91);
}

.fosti-ad__crumb-sep {
  color: #94a3b8;
}

.fosti-ad__crumb-current {
  color: #334155;
  max-width: min(100%, 320px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fosti-ad__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 28px 32px;
  align-items: start;
}

.fosti-ad-article {
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 32px;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
}

.fosti-ad-cat {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.fosti-ad-cat:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #065f46;
}

.fosti-ad-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
}

.fosti-ad-date {
  display: block;
  margin: 0 0 10px;
  font-size: 14px;
  color: #64748b;
  text-align: left;
}

.fosti-ad-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 20px;
  font-size: 14px;
  color: #475569;
}

.fosti-ad-tags__label {
  font-weight: 600;
  color: #334155;
}

.fosti-ad-tags a {
  color: var(--fosti-navy, #0b3d91);
  text-decoration: none;
}

.fosti-ad-tags a:hover {
  text-decoration: underline;
}

.fosti-ad-hero {
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 10px;
}

.fosti-ad-hero img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.fosti-ad-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fosti-ad-file__label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
}

.fosti-ad-file__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.fosti-ad-file__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--fosti-navy, #0b3d91);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.fosti-ad-file__btn:hover {
  color: #fff;
  opacity: 0.92;
}

.fosti-ad-body {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  overflow-wrap: break-word;
  word-break: break-word;
}

.fosti-ad-body p {
  margin: 0 0 1.15rem;
}

.fosti-ad-body img,
.fosti-ad-body iframe,
.fosti-ad-body video,
.fosti-ad-body embed,
.fosti-ad-body object {
  max-width: 100% !important;
  height: auto;
  border-radius: 8px;
  margin: 14px 0;
}

.fosti-ad-body iframe,
.fosti-ad-body video {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

.fosti-ad-body h2,
.fosti-ad-body h3 {
  color: #0f172a;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.fosti-ad-body h2 {
  font-size: 1.35rem;
}

.fosti-ad-body h3 {
  font-size: 1.15rem;
}

.fosti-ad-quote {
  margin: 28px 0 0;
  padding: 20px 22px;
  background: #ffc9c9;
  box-shadow: 3px 4px 0 rgba(15, 23, 42, 0.18);
  border: 0;
}

.fosti-ad-quote p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #111827;
  white-space: pre-line;
}

.fosti-ad-same {
  width: 100%;
  margin-top: 40px;
}

.fosti-ad-same > h2 {
  margin: 0;
  padding-bottom: 30px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
}

.fosti-ad-same__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.fosti-ad-same__card {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  background: #0f172a;
}

.fosti-ad-same__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.fosti-ad-same__card:hover img {
  transform: scale(1.05);
}

.fosti-ad-same__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(8, 28, 68, 0.88) 100%);
  z-index: 1;
}

.fosti-ad-same__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 14px 14px;
  text-align: center;
}

.fosti-ad-same__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.fosti-ad-same__cat {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #7dd3c7;
}

.fosti-ad-box {
  background: #fff;
  border-radius: 12px;
  padding: 18px 18px 14px;
  margin-bottom: 18px;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
}

.fosti-ad-box__head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.fosti-ad-box__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.fosti-ad-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fosti-ad-cats li + li {
  margin-top: 2px;
}

.fosti-ad-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px;
  color: #1e293b;
  text-decoration: none;
  font-size: 14px;
}

.fosti-ad-cats a:hover {
  color: var(--fosti-navy, #0b3d91);
}

.fosti-ad-cats__count {
  flex-shrink: 0;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.fosti-ad-recent {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fosti-ad-recent li + li {
  margin-top: 14px;
}

.fosti-ad-recent__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.fosti-ad-recent__thumb {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #e2e8f0;
}

.fosti-ad-recent__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fosti-ad-recent__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
}

.fosti-ad-recent__item:hover .fosti-ad-recent__title {
  color: var(--fosti-navy, #0b3d91);
}

.fosti-ad-recent__body time {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.fosti-ad-videos .fosti-ad-box__head {
  border-bottom: 0;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.fosti-ad-videos__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fosti-ad-videos__head h2 {
  flex: 0 0 auto;
}

.fosti-ad-videos__head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #e2e8f0;
}

.fosti-ad-videos__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fosti-ad-videos__list li + li {
  margin-top: 16px;
}

.fosti-ad-videos__card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.fosti-ad-videos__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #0f172a;
  margin-bottom: 8px;
}

.fosti-ad-videos__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fosti-ad-videos__play {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #16a34a;
  color: #fff;
  pointer-events: none;
}

.fosti-ad-videos__play .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
}

.fosti-ad-videos__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
}

.fosti-ad-videos__card:hover .fosti-ad-videos__title {
  color: var(--fosti-navy, #0b3d91);
}

.fosti-ad-videos__card time {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 992px) {
  .fosti-ad__layout {
    grid-template-columns: 1fr;
  }

  .fosti-ad-same__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .fosti-ad {
    padding: 12px 0 36px;
  }

  .fosti-ad-article {
    padding: 18px 16px 22px;
    border-radius: 10px;
  }

  .fosti-ad-cat {
    font-size: 14px;
    padding: 7px 12px;
  }

  .fosti-ad-title {
    font-size: 20px;
  }

  .fosti-ad-quote {
    padding: 16px;
    box-shadow: 2px 3px 0 rgba(15, 23, 42, 0.16);
  }

  .fosti-ad-same > h2 {
    font-size: 18px;
    padding-bottom: 22px;
  }

  .fosti-ad-same__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fosti-ad-same__card {
    aspect-ratio: 4 / 3;
  }

  .fosti-ad-recent__item {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .fosti-ad-box {
    padding: 16px 14px 12px;
  }
}

/* ========== Global FOSTI header (3 rows) ========== */
.fosti-topbar {
  background: var(--fosti-navy);
  color: #fff;
  font-size: 13px;
}

.fosti-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 16px;
}

.fosti-topbar__date {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.fosti-topbar__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fosti-topbar__social a {
  color: #fff;
  font-size: 15px;
  line-height: 1;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.fosti-topbar__social a:hover {
  opacity: 0.7;
}

/* Brand row */
.fosti-brandbar {
  background: #fff;
  border-bottom: 1px solid #eceff3;
}

.fosti-brandbar__inner {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
  min-height: 92px;
  padding: 12px 0;
}

.fosti-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.fosti-brand__logo {
  width: auto;
  max-width: 240px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.fosti-brandbar__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  color: var(--fosti-navy);
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.fosti-brandbar__title span {
  display: block;
}

.fosti-brandbar__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

/* Nav row */
.fosti-nav {
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
  position: relative;
  z-index: 40;
}

.fosti-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.fosti-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1;
}

.fosti-nav__list > li {
  position: relative;
  flex: 0 0 auto;
}

.fosti-nav__list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 15px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  line-height: 1.2;
}

.fosti-nav__home > a {
  padding-left: 4px;
  padding-right: 10px;
}

.fosti-nav__home .material-symbols-outlined {
  font-size: 22px;
  color: #222;
}

.fosti-nav__caret {
  font-size: 18px !important;
  color: #666;
  margin-left: 1px;
}

.fosti-nav__list > li.is-active > a,
.fosti-nav__list > li > a:hover {
  color: var(--fosti-navy);
}

.fosti-nav__dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e8ecf1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 50;
}

.fosti-nav__list > li.has-children:hover > .fosti-nav__dropdown,
.fosti-nav__list > li.has-children:focus-within > .fosti-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fosti-nav__dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  white-space: normal;
}

.fosti-nav__dropdown a:hover {
  background: #f3f6fb;
  color: var(--fosti-navy);
}

.fosti-nav__tools,
.fosti-brandbar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.fosti-tool-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.fosti-tool-btn .material-symbols-outlined {
  font-size: 22px;
}

.fosti-tool-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.fosti-tool-btn--search {
  background: var(--fosti-green);
}

.fosti-tool-btn--menu {
  background: #4b5563;
}

.fosti-search {
  background: #f8fafc;
  border-bottom: 1px solid #e8ecf1;
}

.fosti-search[hidden] {
  display: none !important;
}

.fosti-search__inner {
  padding: 12px 0 14px;
}

.fosti-search form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin-left: auto;
}

.fosti-search input {
  flex: 1;
  height: 42px;
  border: 1px solid #d7dde5;
  border-radius: 2px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
}

.fosti-search input:focus {
  border-color: var(--fosti-navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
}

/* Alert bar (optional homepage notices) */
.fosti-alertbar {
  background: linear-gradient(90deg, #b71c1c 0%, #e53935 55%, #ef6c00 100%);
  color: #fff;
}

.fosti-alertbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 8px 0;
}

.fosti-alertbar__badge {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 1200px) {
  .fosti-nav__list > li > a {
    padding-inline: 9px;
    font-size: 13px;
  }

  .fosti-brandbar__title {
    font-size: clamp(18px, 2vw, 24px);
  }
}

@media (max-width: 992px) {
  .fosti-brandbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 8px 0;
    gap: 12px;
  }

  .fosti-brandbar__title {
    display: none;
  }

  .fosti-nav {
    display: none;
  }
}

.fosti-alertbar__text {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

/* Top hero banner (admin TopBanner) — height follows uploaded image */
.fosti-hero-banner {
  width: 100%;
  padding: 16px 0 0;
  line-height: 0;
}

.fosti-hero-banner .fosti-container {
  overflow: hidden;
}

.fosti-hero-banner__link {
  display: block;
}

.fosti-hero-banner__img {
  width: 100%;
  height: auto;
  display: block;
}

.fosti-hero-banner__slider {
  position: relative;
}

.fosti-hero-banner__slide {
  display: none;
}

.fosti-hero-banner__slide.is-active {
  display: block;
}

.fosti-hero-banner__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
  line-height: normal;
}

.fosti-hero-banner__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.fosti-hero-banner__dot.is-active,
.fosti-hero-banner__dot:hover {
  background: #fff;
}

/* Sections */
.fosti-section {
  padding: 28px 0;
}

.fosti-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.fosti-section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.fosti-section-head--bar {
  background: var(--fosti-navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px 4px 0 0;
  margin-bottom: 0;
}

.fosti-section-head--bar h2 {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.fosti-section-head--green h2 {
  color: var(--fosti-green-dark);
  position: relative;
  padding-bottom: 8px;
}

.fosti-section-head--green h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--fosti-green);
}

.fosti-more {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.95;
  white-space: nowrap;
}

.fosti-more:hover {
  opacity: 1;
  text-decoration: underline;
}

.fosti-tag {
  display: inline-flex;
  align-items: center;
  background: var(--fosti-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  line-height: 1.4;
  margin-bottom: 6px;
}

/* Nghiệm thu */
.fosti-nghiemthu__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  border: 1px solid var(--fosti-line);
  border-top: 0;
  background: #fff;
}

.fosti-home-news__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  align-items: start;
}

.fosti-home-news__left {
  border: 1px solid var(--fosti-line);
  background: #fff;
}

.fosti-home-news__left .fosti-section-head--bar {
  margin-bottom: 0;
}

.fosti-home-news__more {
  border-top: 1px solid var(--fosti-line);
}

.fosti-home-news__more-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fosti-line);
  text-decoration: none;
  color: inherit;
}

.fosti-home-news__more-item:last-child {
  border-bottom: 0;
}

.fosti-home-news__more-item:hover .fosti-home-news__more-title {
  color: var(--fosti-navy);
}

.fosti-home-news__more-date {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--fosti-muted);
  padding-top: 2px;
}

.fosti-home-news__more-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #1e293b;
}

.fosti-home-news__empty {
  padding: 28px 18px;
  color: var(--fosti-muted);
}

/* Cột Thông báo */
.fosti-thongbao {
  background: #fff;
}

.fosti-thongbao__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.fosti-thongbao__all {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}

.fosti-thongbao__all:hover {
  text-decoration: underline;
}

.notification-title-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-top: -5px;
}

.notification-title {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #2d3748;
}

.speaker-ripple-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(229, 62, 62, 0.1);
  flex-shrink: 0;
}

.speaker-ripple-box::before,
.speaker-ripple-box::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(229, 62, 62, 0.35);
  border-radius: 50%;
  z-index: 1;
  animation: ripple-wave 2s infinite ease-out;
}

.speaker-ripple-box::after {
  animation-delay: 1s;
}

@keyframes ripple-wave {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.speaker-icon {
  width: 15px;
  height: 15px;
  color: #e53e3e;
  z-index: 2;
  display: block;
}

.rung {
  animation: speaker-pulse 1.5s infinite ease-in-out;
  transform-origin: center;
}

@keyframes speaker-pulse {
  0%   { transform: scale(1) rotate(0deg); }
  15%  { transform: scale(1.15) rotate(-10deg); }
  30%  { transform: scale(1.15) rotate(10deg); }
  45%  { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.fosti-thongbao__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fosti-thongbao__list li {
  border-bottom: 1px solid #e5e7eb;
}

.fosti-thongbao__list li:last-child {
  border-bottom: 0;
}

.fosti-thongbao__list a {
  display: block;
  padding: 16px 0;
  color: #1f2937;
  text-decoration: none;
  font-size: var(--fosti-title-size);
  line-height: 1.55;
  font-weight: var(--fosti-title-weight);
}

.fosti-thongbao__list a:hover {
  color: var(--fosti-navy);
}

.fosti-thongbao__empty {
  padding: 16px 0;
  color: var(--fosti-muted);
  font-size: 14px;
}

.fosti-feature-card {
  position: relative;
  display: block;
  min-height: 360px;
  overflow: hidden;
  background: #111;
}

.fosti-feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.fosti-feature-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 70%);
  color: #fff;
}

.fosti-feature-card__overlay h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 600;
  line-height: 1.35;
}

.fosti-feature-card__overlay p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fosti-side-list {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.fosti-side-list__item {
  display: block;
  padding: 16px 18px;
  border-bottom: 1px solid var(--fosti-line);
}

.fosti-side-list__item:last-child {
  border-bottom: 0;
}

.fosti-side-list__item h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fosti-navy);
  line-height: 1.35;
}

.fosti-side-list__item p {
  margin: 0;
  font-size: 13px;
  color: var(--fosti-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fosti-side-list__item:hover {
  background: #f8fafc;
}

/* Quad */
.fosti-quad {
  background: #eef2f6;
  padding-top: 18px;
  padding-bottom: 18px;
}

.fosti-quad__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.fosti-quad-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  min-height: 112px;
}

.fosti-quad-card img {
  width: 112px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
}

.fosti-quad-card h3 {
  margin: 0;
  font-size: var(--fosti-title-size);
  font-weight: var(--fosti-title-weight);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fosti-quad-card:hover h3 {
  color: var(--fosti-navy);
}

/* Banner giữa trang (admin MidBanner) */
.fosti-mid-banners {
  padding-top: 20px;
  padding-bottom: 8px;
}

.fosti-mid-banner {
  display: block;
  margin-bottom: 14px;
  line-height: 0;
  overflow: hidden;
  border-radius: 6px;
}

.fosti-mid-banner:last-child {
  margin-bottom: 0;
}

.fosti-mid-banner__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Promos (legacy sample) */
.fosti-promos {
  padding-top: 20px;
  padding-bottom: 8px;
}

.fosti-promo {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 14px;
}

.fosti-promo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.fosti-promo--hero img {
  min-height: 220px;
  max-height: 280px;
  width: 100%;
  object-fit: cover;
}

.fosti-promo--secondary img {
  min-height: 110px;
  max-height: 140px;
  width: 100%;
  object-fit: cover;
}

.fosti-promo__caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px 36px;
  background: linear-gradient(90deg, rgba(6, 42, 102, 0.78) 0%, rgba(6, 42, 102, 0.15) 70%, transparent 100%);
  color: #fff;
  max-width: 62%;
}

.fosti-promo__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  padding: 4px;
}

.fosti-promo__caption p {
  margin: 0;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Tin tức + Nên đọc */
.fosti-tintuc__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: start;
}

.fosti-section-head--line {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fosti-line);
}

.fosti-section-head--line h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #1e293b;
}

.fosti-tintuc__featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.fosti-news-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.fosti-news-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 10px;
  background: #ddd;
}

.fosti-news-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.fosti-news-card:hover img {
  transform: scale(1.03);
}

.fosti-news-card__cat {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding-left: 8px;
  border-left: 3px solid var(--fosti-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent);
}

.fosti-news-card h3 {
  margin: 0;
  font-size: var(--fosti-title-size);
  font-weight: var(--fosti-title-weight);
  line-height: 1.4;
  color: #111827;
}

.fosti-news-card:hover h3 {
  color: var(--fosti-navy);
}

.fosti-tintuc__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}

.fosti-text-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--fosti-line);
  text-decoration: none;
  color: inherit;
}

.fosti-text-item:first-child {
  padding-top: 0;
}

.fosti-text-item__cat {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--fosti-green-dark, #15803d);
  font-size: 12px;
  font-weight: 700;
}

.fosti-text-item h4 {
  margin: 0;
  font-size: var(--fosti-title-size);
  font-weight: var(--fosti-title-weight);
  line-height: 1.45;
  color: #1f2937;
}

.fosti-text-item:hover h4 {
  color: var(--fosti-navy);
}

.fosti-tintuc__empty {
  margin: 0;
  color: var(--fosti-muted);
  font-size: 14px;
}

.fosti-nendoc__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fosti-nendoc-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.fosti-nendoc-item img {
  width: 180px;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  background: #e5e7eb;
}

.fosti-nendoc-item h3 {
  margin: 0;
  font-size: var(--fosti-title-size);
  font-weight: var(--fosti-title-weight);
  line-height: 1.45;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fosti-nendoc-item:hover h3 {
  color: var(--fosti-navy);
}

.fosti-news-card time,
.fosti-tintuc .fosti-news-row time,
.fosti-latest-item time {
  color: var(--fosti-muted);
  font-size: 12px;
}

.fosti-tintuc__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

.fosti-tintuc .fosti-news-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--fosti-line);
}

.fosti-tintuc .fosti-news-row img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
}

.fosti-tintuc .fosti-news-row h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

/* Video — full height carousel */
.fosti-video {
  background: var(--fosti-blue);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.fosti-video__inner {
  width: min(100% - 32px, var(--fosti-max));
  margin-inline: auto;
}

.fosti-video__title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 36px;
  text-align: center;
}

.fosti-video__title::before,
.fosti-video__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}

.fosti-video__title a {
  margin: 0 18px;
  color: #fff;
  text-decoration: none;
  font-family: var(--fosti-font-news, Arial, Helvetica, sans-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.fosti-video__title a:hover {
  opacity: 0.85;
}

.fosti-video-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  container-type: inline-size;
  container-name: fosti-video;
}

.fosti-video-slider__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.fosti-video-slider__viewport.is-dragging {
  cursor: grabbing;
}

.fosti-video-slider__viewport.is-dragging a {
  pointer-events: none;
}

/* Prev / next: hai bên hàng hình; pause dưới giữa */
.fosti-video-slider__nav {
  position: absolute;
  z-index: 6;
  /* Giữa chiều cao ảnh 4:3 — 3 cột */
  top: calc(((100cqw - 36px) / 3) * 0.375);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fosti-video-slider__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.fosti-video-slider__nav .material-symbols-outlined {
  font-size: 30px;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

.fosti-video-slider__nav--prev {
  left: 0;
}

.fosti-video-slider__nav--next {
  right: 0;
}

.fosti-video-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

.fosti-video-slider__btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.fosti-video-slider__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.fosti-video-slider__btn .material-symbols-outlined {
  font-size: 28px;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

.fosti-video-slider__btn.js-video-toggle .material-symbols-outlined {
  font-size: 26px;
}

.fosti-video-slider__track {
  display: flex;
  gap: 18px;
  will-change: transform;
  transition: transform 0.52s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.fosti-video-card {
  flex: 0 0 calc((100% - 36px) / 3);
  max-width: calc((100% - 36px) / 3);
  display: block;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.fosti-video-card__media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #062a66;
}

.fosti-video-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.fosti-video-card__play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--fosti-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.fosti-video-card__play .material-symbols-outlined {
  font-size: 26px;
  color: #fff;
}

.fosti-video-card h3 {
  margin: 0 0 8px;
  font-family: var(--fosti-font-news, Arial, Helvetica, sans-serif);
  font-size: var(--fosti-title-size, 16px);
  font-weight: var(--fosti-title-weight, 400);
  line-height: 1.4;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fosti-video-card time {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}

/* Biểu mẫu trên trang chủ */
.fosti-forms {
  padding: 36px 0 12px;
}

.fosti-section-head__more {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 400;
  color: var(--fosti-navy);
  text-decoration: none;
  white-space: nowrap;
}

.fosti-section-head__more:hover {
  color: var(--fosti-blue);
  text-decoration: underline;
}

.fosti-forms__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--fosti-line);
}

.fosti-forms__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--fosti-line);
}

.fosti-forms__body {
  min-width: 0;
  flex: 1 1 auto;
}

.fosti-forms__cat {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fosti-green);
}

.fosti-forms__body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.fosti-forms__body h3 a {
  color: var(--fosti-text);
  text-decoration: none;
}

.fosti-forms__body h3 a:hover {
  color: var(--fosti-navy);
}

.fosti-forms__body time {
  font-size: 13px;
  color: var(--fosti-muted);
}

.fosti-forms__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.fosti-forms__link,
.fosti-forms__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 4px;
}

.fosti-forms__link {
  color: var(--fosti-navy);
  border: 1px solid var(--fosti-line);
  background: #fff;
}

.fosti-forms__link:hover {
  border-color: var(--fosti-navy);
}

.fosti-forms__download {
  color: #fff;
  background: var(--fosti-navy);
  border: 1px solid var(--fosti-navy);
}

.fosti-forms__download:hover {
  background: var(--fosti-navy-deep);
  border-color: var(--fosti-navy-deep);
  color: #fff;
}

/* Thông tin bạn có thể bỏ lỡ + sidebar */
.fosti-missed__grid {
  display: grid;
  /* Trái hẹp hơn một chút; phải (nhận tin + banner) rộng hơn */
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 36px 36px;
  align-items: start;
}

.fosti-section-head--flex {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 20px;
}

.fosti-section-head--flex h2 {
  margin: 0;
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.fosti-section-head__rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--fosti-line, #e5e7eb);
  min-width: 24px;
}

.fosti-missed__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.fosti-missed-item {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
}

.fosti-missed-item__media {
  overflow: hidden;
  border-radius: 4px;
  background: #e5e7eb;
  align-self: start;
}

.fosti-missed-item__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.fosti-missed-item:hover .fosti-missed-item__media img {
  transform: scale(1.03);
}

.fosti-missed-item__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 4px 0;
}

.fosti-missed-item__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--fosti-green, #2ea44f);
  color: var(--fosti-green-dark, #22863a);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.fosti-missed-item__body h3 {
  margin: 0 0 12px;
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--fosti-text, #1f2937);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fosti-missed-item:hover .fosti-missed-item__body h3 {
  color: var(--fosti-navy);
}

.fosti-missed-item__more {
  margin-top: auto;
  font-size: 14px;
  color: var(--fosti-muted, #6b7280);
  font-weight: 400;
  transition: color 0.15s ease;
}

.fosti-missed-item:hover .fosti-missed-item__more {
  color: var(--fosti-navy);
}

.fosti-newsletter {
  background: #f0f4f8;
  border: 0;
  border-radius: 0;
  padding: 36px 24px 28px;
  text-align: center;
  margin-bottom: 28px;
}

.fosti-newsletter__art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.fosti-newsletter__icon {
  display: block;
  width: min(148px, 72%);
  height: auto;
  object-fit: contain;
}

.fosti-newsletter h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: #0f172a;
}

.fosti-newsletter p {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: #334155;
}

.fosti-newsletter__form {
  display: grid;
  gap: 12px;
}

.fosti-newsletter__field {
  position: relative;
  display: flex;
  align-items: center;
}

.fosti-newsletter__field .material-symbols-outlined {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 22px;
  pointer-events: none;
}

.fosti-newsletter__field input {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 2px;
  padding: 0 14px 0 46px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #152238;
  background: #fff;
  box-shadow: none;
}

.fosti-newsletter__field input::placeholder {
  color: #94a3b8;
}

.fosti-newsletter__field input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(46, 164, 79, 0.35);
}

.fosti-newsletter__form button {
  height: 52px;
  border: 0;
  border-radius: 2px;
  background: var(--fosti-green, #2ea44f);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background 0.15s ease;
}

.fosti-newsletter__form button .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.fosti-newsletter__form button:hover {
  background: var(--fosti-green-dark, #15803d);
}

.fosti-weekly-slider {
  position: relative;
}

.fosti-weekly-slider__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #0b3d91;
  touch-action: pan-y;
}

.fosti-weekly-slider__track {
  display: flex;
  width: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.fosti-weekly-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  display: block;
  text-decoration: none;
  color: #fff;
}

.fosti-weekly-slide img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
  min-height: 220px;
  pointer-events: none;
  user-select: none;
}

.fosti-weekly-slide__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 42, 102, 0.88) 55%);
  text-align: center;
}

.fosti-weekly-slide__overlay h3 {
  margin: 0 0 8px;
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fosti-weekly-slide__cat {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fosti-green, #2ea44f);
}

.fosti-weekly-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.28);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.fosti-weekly-slider__nav .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
}

.fosti-weekly-slider__nav--prev {
  left: 10px;
}

.fosti-weekly-slider__nav--next {
  right: 10px;
}

.fosti-weekly-slider__viewport:hover .fosti-weekly-slider__nav,
.fosti-weekly-slider__nav:focus-visible {
  opacity: 0.9;
}

.fosti-weekly-slider__nav:hover {
  background: rgba(15, 23, 42, 0.48);
  color: #fff;
  opacity: 1;
}

.fosti-weekly-slider__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.fosti-weekly-slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fosti-weekly-slider__dot.is-active {
  background: var(--fosti-green, #2ea44f);
  transform: scale(1.15);
}

.fosti-weekly-slider__dot:hover {
  background: #94a3b8;
}

.fosti-weekly-slider__dot.is-active:hover {
  background: var(--fosti-green, #2ea44f);
}

/* Banner cột phải dưới “Xem nhiều trong tuần” */
.fosti-weekly-ads {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fosti-weekly-ads__item {
  display: block;
  line-height: 0;
  overflow: hidden;
  background: #e5e7eb;
}

.fosti-weekly-ads__item img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

/* Legacy weekly list (unused) */
.fosti-weekly__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.fosti-weekly__list > li {
  border-bottom: 1px solid var(--fosti-line, #e5e7eb);
}

.fosti-weekly__list > li:last-child {
  border-bottom: 0;
}

.fosti-weekly-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
}

.fosti-weekly-item__num {
  font-size: 18px;
  font-weight: 600;
  color: var(--fosti-green, #2ea44f);
  line-height: 1.3;
}

.fosti-weekly-item__title {
  font-size: var(--fosti-title-size, 16px);
  font-weight: var(--fosti-title-weight, 400);
  line-height: 1.45;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fosti-weekly-item:hover .fosti-weekly-item__title {
  color: var(--fosti-navy);
}

/* Legacy latest block (kept for safety if referenced) */
.fosti-latest__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 28px;
  align-items: start;
}

.fosti-latest__list {
  display: flex;
  flex-direction: column;
}

.fosti-latest-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--fosti-line);
}

.fosti-latest-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

.fosti-latest-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.fosti-trending {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  min-height: 220px;
}

.fosti-trending img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.fosti-trending__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
}

.fosti-trending__caption span {
  display: block;
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.fosti-trending__caption strong {
  font-size: 16px;
  line-height: 1.35;
}

.fosti-side-banners {
  display: grid;
  gap: 12px;
}

.fosti-side-banners a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--fosti-line);
}

.fosti-side-banners img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

/* Footer — clone layout FOSTI (navy, logo giữa, 3 cột) */
.fosti-footer {
  --fosti-footer-accent: #4aa3ff;
  background: #002d5e;
  color: #d2dbe2;
  padding: 52px 0 26px;
  margin-top: 10px;
}

.fosti-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.fosti-footer__top {
  text-align: center;
  margin-bottom: 40px;
}

.fosti-footer__logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: 20px;
}

.fosti-footer__logo {
  width: auto;
  max-width: min(300px, 76vw);
  height: auto;
  max-height: 76px;
  object-fit: contain;
  display: block;
  margin-inline: auto;
}

.fosti-footer__slogan {
  margin: 0 auto;
  max-width: 855px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  color: #d2dbe2;
  padding-bottom: 10px;
}

/* master/nsb-store: body.nsb-store p { margin:0 } phá canh giữa slogan */
body.nsb-store .fosti-footer__slogan,
body.nsb-store .fosti-footer__top {
  text-align: center;
}

body.nsb-store .fosti-footer__slogan {
  margin-left: auto;
  margin-right: auto;
}

.fosti-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
}

.fosti-footer__col {
  min-width: 0;
}

.fosti-footer__about-title {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #d2dbe2;
}

/* Chặn theme cũ (body.nsb-store h3) đổi màu / chồng chữ footer */
body.nsb-store .fosti-footer__about-title,
body.nsb-store .fosti-footer h3.fosti-footer__about-title,
body.nsb-store .fosti-footer h3.fosti-footer__heading {
  color: #d2dbe2;
  font-family: inherit;
  font-weight: 600;
}

.fosti-footer__about-title-text {
  display: block;
  white-space: pre-line;
}

.fosti-footer__about-title-text--mobile {
  display: none !important;
}

.fosti-footer__about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fosti-footer__about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
  color: #d2dbe2;
}

.fosti-footer__about-icon {
  width: 20px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fosti-footer-accent);
  margin-top: 1px;
}

.fosti-footer__about-icon .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.fosti-footer__about-list a {
  color: inherit;
  text-decoration: none;
}

.fosti-footer__about-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.fosti-footer__heading {
  margin: 0 0 18px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--fosti-footer-accent);
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.fosti-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fosti-footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d2dbe2;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.fosti-footer__list a:hover {
  color: #fff;
}

.fosti-footer__chev {
  color: var(--fosti-footer-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  flex: 0 0 auto;
  width: 12px;
}

.fosti-footer__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1.5px solid var(--fosti-footer-accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fosti-footer-accent);
}

.fosti-footer__icon .material-symbols-outlined {
  font-size: 15px;
  line-height: 1;
}

.fosti-footer__icon svg {
  display: block;
}

.fosti-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  border-top: 1px solid rgba(210, 219, 226, 0.22);
  padding-top: 18px;
  margin-top: 36px;
}

.fosti-footer__credit {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: #d2dbe2;
  white-space: normal;
}

.fosti-footer__credit strong {
  font-weight: 600;
  color: #d2dbe2;
}

/* Back top */
.fosti-backtop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 4px;
  background: #111;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  z-index: 40;
  opacity: 0.92;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.fosti-backtop .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
}

.fosti-backtop:hover {
  opacity: 1;
  background: #000;
}

.fosti-backtop.is-visible {
  display: inline-flex;
}

#msg-toast.fosti-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

#msg-toast.fosti-toast.is-ok {
  background: var(--fosti-green, #2ea44f);
}

#msg-toast.fosti-toast.is-err {
  background: #dc2626;
}

#msg-toast[hidden] {
  display: none !important;
}

@media (max-width: 992px) {
  .fosti-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  .fosti-footer__col--about {
    grid-column: 1 / -1;
  }

  .fosti-nghiemthu__grid,
  .fosti-video-card {
    flex: 0 0 calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
  }

  .fosti-video-slider__nav {
    top: calc(((100cqw - 18px) / 2) * 0.375);
  }

  .fosti-home-news__grid,
  .fosti-tintuc__layout,
  .fosti-tintuc__featured,
  .fosti-tintuc__split,
  .fosti-tintuc__list,
  .fosti-latest__grid,
  .fosti-quad__grid {
    grid-template-columns: 1fr 1fr;
  }

  .fosti-missed__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .fosti-missed-item {
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  }

  .fosti-promo__caption {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .fosti-container {
    width: min(100% - 24px, var(--fosti-max));
  }

  .fosti-weekly-slider__nav {
    opacity: 0.7;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .fosti-section {
    padding: 20px 0;
  }

  .fosti-section-head {
    flex-wrap: wrap;
    margin-bottom: 12px;
  }

  .fosti-section-head h2 {
    font-size: 1.15rem;
  }

  .fosti-nghiemthu__grid,
  .fosti-video {
    min-height: auto;
    padding: 36px 0;
  }

  .fosti-video__inner {
    width: min(100% - 24px, var(--fosti-max));
  }

  .fosti-video-slider__controls {
    margin-top: 20px;
  }

  .fosti-video-slider__nav {
    top: calc(100cqw * 0.375);
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .fosti-video-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .fosti-home-news__grid,
  .fosti-tintuc__layout,
  .fosti-tintuc__featured,
  .fosti-tintuc__split,
  .fosti-tintuc__list,
  .fosti-latest__grid,
  .fosti-missed__grid,
  .fosti-quad__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fosti-missed__grid {
    gap: 28px;
  }

  .fosti-missed-item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .fosti-missed-item__media img {
    aspect-ratio: 4 / 3;
    height: 84px;
  }

  .fosti-missed-item__body {
    padding: 0;
    justify-content: flex-start;
  }

  .fosti-missed-item__tag {
    margin-bottom: 6px;
    padding-bottom: 3px;
    font-size: 15px;
  }

  .fosti-missed-item__body h3 {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 400;
    -webkit-line-clamp: 3;
  }

  .fosti-missed-item__more {
    font-size: 13px;
  }

  .fosti-section-head--flex h2 {
    font-size: 1.15rem;
    white-space: normal;
  }

  .fosti-newsletter {
    padding: 28px 18px 22px;
    margin-bottom: 20px;
  }

  .fosti-newsletter__icon {
    width: min(128px, 68%);
  }

  .fosti-newsletter h3 {
    font-size: 22px;
  }

  .fosti-newsletter p {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .fosti-newsletter__field input,
  .fosti-newsletter__form button {
    height: 48px;
  }

  /* Tin tức featured: hình trái — tiêu đề phải */
  .fosti-tintuc__featured {
    gap: 14px;
    margin-bottom: 14px;
  }

  .fosti-news-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .fosti-news-card__media {
    margin-bottom: 0;
    border-radius: 4px;
  }

  .fosti-news-card__media img {
    aspect-ratio: 4 / 3;
    height: 84px;
    object-fit: cover;
  }

  .fosti-news-card__cat {
    left: 6px;
    bottom: 6px;
    padding-left: 6px;
    font-size: 10px;
    max-width: calc(100% - 10px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fosti-news-card h3 {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fosti-nendoc-item {
    grid-template-columns: 128px 1fr;
  }

  .fosti-nendoc-item img {
    width: 128px;
    height: 100px;
  }

  .fosti-forms__item {
    flex-direction: column;
    align-items: stretch;
  }

  .fosti-forms__actions {
    width: 100%;
  }

  .fosti-forms__link,
  .fosti-forms__download {
    flex: 1 1 auto;
  }

  .fosti-section-head--flex {
    flex-wrap: wrap;
  }

  .fosti-section-head__more {
    width: 100%;
    margin-top: 4px;
  }

  .fosti-feature-card,
  .fosti-feature-card img {
    min-height: 220px;
  }

  .fosti-promo__caption {
    max-width: 100%;
    padding: 16px;
  }

  .fosti-alertbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .fosti-footer {
    padding: 28px 0 20px;
  }

  .fosti-footer__top {
    margin-bottom: 22px;
  }

  .fosti-footer__logo-link {
    margin-bottom: 12px;
  }

  .fosti-footer__logo {
    max-width: min(220px, 70vw);
    max-height: 56px;
  }

  .fosti-footer__slogan {
    max-width: 100%;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.01em;
  }

  .fosti-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }

  .fosti-footer__col--about {
    grid-column: 1 / -1;
  }

  .fosti-footer__about-title {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.45;
  }

  .fosti-footer__about-title-text--desktop {
    display: none !important;
  }

  .fosti-footer__about-title-text--mobile {
    display: block !important;
  }

  .fosti-footer__about-list {
    gap: 10px;
  }

  .fosti-footer__about-list li {
    font-size: 13px;
    gap: 8px;
  }

  .fosti-footer__heading {
    margin-bottom: 12px;
    padding-bottom: 6px;
    font-size: 13px;
  }

  .fosti-footer__list {
    gap: 12px;
  }

  .fosti-footer__list a {
    min-height: 40px;
    font-size: 13px;
    gap: 8px;
  }

  .fosti-footer__icon {
    width: 28px;
    height: 28px;
  }

  .fosti-footer__bottom {
    margin-top: 24px;
    padding-top: 14px;
  }

  .fosti-footer__credit {
    font-size: 12px;
    line-height: 1.45;
  }

  .fosti-backtop {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}
