/* =============================================================================
   ISPAE — giao diện các trang: trang chủ, nhóm tin (xc*), chi tiết tin (tID*), tìm kiếm (pNum*)
   Biến màu/font: css/ispae-theme.css. Helper server: App_Code/IspaeUi.vb
   ========================================================================== */

/* ---------- Nền & khung chung ---------- */
body {
  background: #f4f6fb !important;
}

.isp-page,
.isp-page *:not(.fa):not([class*="fa-"]) {
  font-family: var(--i-font) !important;
}

.isp-page {
  color: var(--i-ink);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 24px;
}

/* Trang chủ: khoảng cách trước footer */
.isp-home {
  padding-bottom: 56px;
}

.isp-page a {
  text-decoration: none !important;
}

.isp-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.isp-sec {
  margin-top: 44px;
}

.isp-sec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.isp-sec__title {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-size: 24px !important;
  font-weight: 800;
  line-height: 1.25;
  color: var(--i-navy-deep);
  text-transform: none;
}

.isp-sec__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--i-navy) 0 50%, var(--i-green) 50% 100%);
}

.isp-sec__title a {
  color: inherit !important;
}

.isp-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--i-navy) !important;
  background: #fff;
  border: 1px solid var(--i-line);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.isp-more:hover {
  color: #fff !important;
  background: var(--i-navy);
  border-color: var(--i-navy);
}

.isp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--i-green-dark) !important;
  background: #e7f6ed;
  border-radius: 999px;
}

/* ---------- Thẻ tin (ảnh 16:9 + ngày + tiêu đề + trích) ---------- */
.isp-grid {
  display: grid;
  gap: 22px;
}

.isp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.isp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.isp-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: var(--i-ink) !important;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 27, 77, 0.06), 0 8px 24px -14px rgba(20, 27, 77, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.isp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(20, 27, 77, 0.06), 0 18px 36px -16px rgba(20, 27, 77, 0.35);
}

.isp-card__img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9edf6;
}

.isp-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.isp-card:hover .isp-card__img img {
  transform: scale(1.04);
}

.isp-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}

.isp-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--i-muted);
}

.isp-date .fa {
  color: var(--i-green);
}

.isp-card__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.42;
  color: var(--i-ink);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  transition: color 0.15s;
}

.isp-card:hover .isp-card__title {
  color: var(--i-navy);
}

.isp-card__ex {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--i-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Thẻ lớn (tin nổi bật đầu) */
.isp-card--lon .isp-card__img { aspect-ratio: 16 / 10; }
.isp-card--lon .isp-card__body { padding: 20px 24px 24px; }
.isp-card--lon .isp-card__title { font-size: 23px !important; line-height: 1.35; }
.isp-card--lon .isp-card__ex { font-size: 15.5px; -webkit-line-clamp: 3; }

/* ---------- Danh sách gọn (ảnh nhỏ + tiêu đề) ---------- */
.isp-list {
  display: flex;
  flex-direction: column;
}

.isp-li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  color: var(--i-ink) !important;
  border-top: 1px solid #eef0f6;
}

.isp-li:first-child {
  padding-top: 0;
  border-top: 0;
}

.isp-li__img {
  flex: 0 0 auto;
  width: 104px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9edf6;
  border-radius: 10px;
}

.isp-li__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.isp-li__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.isp-li__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.42;
  color: var(--i-ink);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.isp-li:hover .isp-li__title {
  color: var(--i-navy);
}

.isp-li .isp-date {
  font-size: 12.5px;
}

/* Khung trắng chứa danh sách (3 cột trang chủ, aside) */
.isp-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 20px 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(20, 27, 77, 0.05), 0 10px 28px -18px rgba(20, 27, 77, 0.3);
}

.isp-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--i-soft);
}

.isp-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 17px !important;
  font-weight: 800;
  color: var(--i-navy-deep);
}

.isp-panel__title a { color: inherit !important; }

.isp-panel__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 15px;
  color: var(--i-navy);
  background: #eceffa;
  border-radius: 10px;
}

.isp-panel__more {
  font-size: 13px;
  font-weight: 700;
  color: var(--i-green-dark) !important;
  white-space: nowrap;
}

/* =============================================================================
   Trang chủ
   ========================================================================== */
.isp-hero {
  position: relative;
  background: var(--i-navy-deep);
}

.isp-hero .carousel-inner {
  height: clamp(360px, 46vw, 620px);
}

.isp-hero .carousel-item {
  height: 100%;
}

.isp-hero__slide {
  position: relative;
  display: block;
  height: 100%;
  color: #fff !important;
}

.isp-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.isp-hero__slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(10, 16, 46, 0) 0%, rgba(10, 16, 46, 0.78) 100%);
}

/* Chỉ một dòng tiêu đề ở đáy ảnh */
.isp-hero__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding-bottom: 26px;
}

.isp-hero__title {
  margin: 0;
  padding-right: 190px;
  overflow: hidden;
  font-size: clamp(18px, 2vw, 28px) !important;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.isp-hero__slide:hover .isp-hero__title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.isp-hero .carousel-indicators {
  z-index: 3;
  justify-content: flex-end;
  max-width: 1240px;
  margin: 0 auto 36px;
  padding: 0 20px;
}

.isp-hero .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  margin: 0 6px 0 0;
  background: #fff;
  border: 0;
  border-radius: 2px;
  opacity: 0.4;
  transition: width 0.25s, opacity 0.25s;
}

.isp-hero .carousel-indicators .active {
  width: 46px;
  opacity: 1;
}

.isp-hero .carousel-control-prev,
.isp-hero .carousel-control-next {
  z-index: 3;
  top: 50%;
  bottom: auto;
  width: 48px;
  height: 48px;
  margin: -24px 18px 0;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.isp-hero:hover .carousel-control-prev,
.isp-hero:hover .carousel-control-next {
  opacity: 1;
}

.isp-hero .carousel-control-prev:hover,
.isp-hero .carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.isp-hero .carousel-control-prev-icon,
.isp-hero .carousel-control-next-icon {
  width: 18px;
  height: 18px;
}

/* Tin nổi bật: 1 lớn + 4 nhỏ */
.isp-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px;
}

/* Thẻ lớn cao bằng cột phải: ảnh giãn lấp chỗ trống */
.isp-featured > .isp-card--lon .isp-card__img {
  flex: 1 1 auto;
  min-height: 260px;
  aspect-ratio: auto;
}

.isp-featured > .isp-card--lon .isp-card__img img {
  position: absolute;
  inset: 0;
}

.isp-featured > .isp-card--lon .isp-card__body {
  flex: 0 0 auto;
}

.isp-featured__side {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.isp-hcard {
  display: flex;
  gap: 16px;
  min-width: 0;
  padding: 12px;
  color: var(--i-ink) !important;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 27, 77, 0.05), 0 8px 20px -14px rgba(20, 27, 77, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.isp-hcard:hover {
  transform: translateX(3px);
  box-shadow: 0 2px 4px rgba(20, 27, 77, 0.06), 0 14px 28px -16px rgba(20, 27, 77, 0.35);
}

.isp-hcard__img {
  position: relative;
  flex: 0 0 auto;
  width: 150px;
  min-height: 96px;
  overflow: hidden;
  background: #e9edf6;
  border-radius: 10px;
}

/* Ảnh tuyệt đối: chiều cao thẻ do nội dung chữ quyết định, không do tỉ lệ ảnh gốc */
.isp-hcard__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.isp-hcard__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.isp-hcard__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 15.5px !important;
  font-weight: 700;
  line-height: 1.42;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.isp-hcard:hover .isp-hcard__title { color: var(--i-navy); }

/* 3 cột: Thị trường / Hợp tác quốc tế / Tập huấn */
.isp-cols3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* =============================================================================
   Đầu trang trong (nhóm tin, tìm kiếm)
   ========================================================================== */
.isp-phead {
  position: relative;
  overflow: hidden;
  padding: 34px 0 30px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(22, 160, 75, 0.35), transparent 45%),
    linear-gradient(120deg, var(--i-navy-deep) 0%, var(--i-navy) 70%, #3546a8 100%);
}

.isp-phead::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 300px;
  height: 300px;
  background: url("../img/logo/ispae-mark.png") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.isp-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.isp-crumb a { color: rgba(255, 255, 255, 0.85) !important; }
.isp-crumb a:hover { color: #fff !important; }
.isp-crumb .fa { font-size: 11px; opacity: 0.6; }

.isp-phead__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px) !important;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.isp-phead__meta {
  margin: 10px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.isp-phead__meta b { color: #fff; }

.isp-subcats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.isp-subcats a {
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: background 0.15s;
}

.isp-subcats a:hover { background: rgba(255, 255, 255, 0.24); }

.isp-body {
  padding-top: 30px;
}

/* Phân trang */
.isp-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 36px 0 8px;
}

.isp-pager__so,
.isp-pager__nut,
.isp-pager__ba {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--i-ink) !important;
  background: #fff;
  border: 1px solid var(--i-line);
  border-radius: 12px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.isp-pager__ba { background: transparent; border-color: transparent; color: var(--i-muted) !important; }
.isp-pager a:hover { color: var(--i-navy) !important; border-color: var(--i-navy); }
.isp-pager__so.is-chon { color: #fff !important; background: var(--i-navy); border-color: var(--i-navy); }
.isp-pager__nut.is-tat { opacity: 0.4; }

/* Trạng thái rỗng */
.isp-empty {
  max-width: 560px;
  margin: 20px auto;
  padding: 40px 28px;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 28px -18px rgba(20, 27, 77, 0.3);
}

.isp-empty__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  font-size: 30px;
  color: var(--i-navy);
  background: #eceffa;
  border-radius: 50%;
}

.isp-empty h2 {
  margin: 0 0 8px;
  font-size: 20px !important;
  font-weight: 800;
}

.isp-empty p {
  margin: 0 0 16px;
  color: var(--i-muted);
}

.isp-empty .isp-chips { justify-content: center; }

/* =============================================================================
   Chi tiết tin
   ========================================================================== */
.isp-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  padding-top: 28px;
}

.isp-article {
  min-width: 0;
  padding: 32px 40px 36px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(20, 27, 77, 0.05), 0 12px 32px -20px rgba(20, 27, 77, 0.3);
}

.isp-article .isp-crumb {
  color: var(--i-muted);
}

.isp-article .isp-crumb a { color: var(--i-muted) !important; }
.isp-article .isp-crumb a:hover { color: var(--i-navy) !important; }

.isp-article__title {
  margin: 14px 0 16px;
  font-size: clamp(24px, 2.6vw, 34px) !important;
  font-weight: 800;
  line-height: 1.3;
  color: var(--i-navy-deep);
}

.isp-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--i-line);
}

.isp-article__meta .isp-date { font-size: 14px; }

.isp-share {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.isp-share a,
.isp-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 15px;
  color: var(--i-navy) !important;
  background: var(--i-soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.isp-share a:hover,
.isp-share button:hover {
  color: #fff !important;
  background: var(--i-navy);
}

.isp-share .is-ok { color: #fff !important; background: var(--i-green); }

.isp-article__lead {
  margin: 0 0 24px;
  padding: 16px 20px;
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.65;
  color: #2c3550;
  background: #f5f7fc;
  border-left: 4px solid var(--i-green);
  border-radius: 0 12px 12px 0;
}

.isp-article__lead p:last-child { margin-bottom: 0; }

/* Nội dung bài (HTML từ CKEditor) */
.isp-article .content_gt_bv199 {
  font-size: 17px;
  line-height: 1.8;
  color: #262d40;
  overflow-wrap: break-word;
}

.isp-article .content_gt_bv199 * {
  font-family: var(--i-font) !important;
  max-width: 100%;
}

.isp-article .content_gt_bv199 p {
  margin: 0 0 1.05em;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Bài dán từ web/Word khác mang cỡ chữ inline (span style="font-size:12px", <font size>…) → đưa về cỡ chuẩn của bài.
   Tiêu đề h2–h4 giữ cỡ riêng. */
.isp-article .content_gt_bv199 :is(div, span, font, em, strong, b, i:not(.fa), u, a, li, td, th, blockquote, small, big) {
  font-size: inherit !important;
  line-height: inherit !important;
}

.isp-article .content_gt_bv199 :is(sub, sup) {
  font-size: 0.75em !important;
  line-height: 0 !important;
}

.isp-article .content_gt_bv199 h2 { font-size: 23px !important; }
.isp-article .content_gt_bv199 h3 { font-size: 20px !important; }
.isp-article .content_gt_bv199 h4 { font-size: 18px !important; }

.isp-article .content_gt_bv199 :is(h2, h3, h4) * {
  font-size: inherit !important;
}

.isp-article .content_gt_bv199 h2,
.isp-article .content_gt_bv199 h3,
.isp-article .content_gt_bv199 h4 {
  margin: 1.4em 0 0.6em;
  font-weight: 800;
  line-height: 1.35;
  color: var(--i-navy-deep);
}

.isp-article .content_gt_bv199 img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 18px auto;
  border-radius: 12px;
}

.isp-article .content_gt_bv199 a {
  color: var(--i-navy) !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(43, 57, 144, 0.35) !important;
  text-underline-offset: 3px;
}

.isp-article .content_gt_bv199 table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.isp-article .content_gt_bv199 td,
.isp-article .content_gt_bv199 th {
  padding: 6px 10px;
  border: 1px solid var(--i-line);
}

.isp-article .content_gt_bv199 blockquote {
  margin: 1.2em 0;
  padding: 10px 18px;
  color: #3b4360;
  background: var(--i-soft);
  border-left: 4px solid var(--i-navy);
  border-radius: 0 10px 10px 0;
}

.isp-article .content_gt_bv199 iframe,
.isp-article .content_gt_bv199 video {
  display: block;
  width: 100% !important;
  border: 0;
  border-radius: 12px;
}

.isp-article .content_gt_bv199 iframe:not(.hmu-flipbook) {
  aspect-ratio: 16 / 9;
  height: auto !important;
}

.isp-article__author {
  margin-top: 24px;
  padding-top: 16px;
  font-weight: 700;
  text-align: right;
  color: var(--i-ink);
  border-top: 1px dashed var(--i-line);
}

.isp-article__author:empty { display: none; }

.isp-article__edit a {
  display: inline-flex;
  margin-top: 12px;
  margin-right: 6px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff !important;
  background: var(--i-green);
  border-radius: 999px;
}

/* Nút [Xóa] cạnh [Sửa] */
.isp-article__edit a.isp-article__xoa {
  background: #c0392b;
}

.isp-article__edit a.isp-article__xoa:hover {
  background: #a93226;
}

.isp-aside {
  position: sticky;
  top: 16px;
  min-width: 0;
}

/* Flipbook chèn trong nội dung tin (CKEditor plugin) */
.news-flipbook-embed {
  margin: 1rem 0 1.25rem;
  clear: both;
}

.news-flipbook-embed iframe.hmu-flipbook,
.content_gt_bv199 iframe.hmu-flipbook {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 420px;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  background: #1e1e1e;
}

/* =============================================================================
   Trang Giới thiệu (nhóm 86: chức năng nhiệm vụ, cơ cấu tổ chức…) — .isp-article--gt
   Nội dung là danh sách nhiều cấp, tiêu đề mục có emoji → trình bày như trang hồ sơ đơn vị
   ========================================================================== */
.isp-article--gt .isp-article__title {
  font-size: clamp(22px, 2.3vw, 30px) !important;
  line-height: 1.3;
}

.isp-article--gt .isp-article__meta {
  justify-content: flex-end;
}

.isp-article--gt .content_gt_bv199 {
  font-size: 16.5px;
  line-height: 1.7;
}

/* Tiêu đề mục: dải nền nhạt, vạch xanh trái */
.isp-article--gt .content_gt_bv199 h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 30px 0 14px;
  padding: 11px 16px;
  font-size: 19px !important;
  color: var(--i-navy-deep);
  background: linear-gradient(90deg, #eef1fb 0%, rgba(238, 241, 251, 0) 100%);
  border-left: 4px solid var(--i-navy);
  border-radius: 0 12px 12px 0;
}

.isp-article--gt .content_gt_bv199 > h3:first-child {
  margin-top: 4px;
}

.isp-article--gt .content_gt_bv199 hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px dashed #d5dbea;
  opacity: 1;
}

.isp-article--gt .content_gt_bv199 li > p {
  margin: 0 !important;
}

/* Danh sách chấm: dấu ✓ tròn xanh */
.isp-article--gt .content_gt_bv199 ul {
  margin: 6px 0 14px;
  padding: 0;
  list-style: none;
}

.isp-article--gt .content_gt_bv199 ul > li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 30px;
}

.isp-article--gt .content_gt_bv199 ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 19px;
  height: 19px;
  background: #e7f6ed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230f7a38' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.4l2.6 2.5L12 5.4'/%3E%3C/svg%3E") no-repeat center / 13px;
  border-radius: 50%;
}

/* Danh sách số: thẻ có huy hiệu số (giữ đúng thứ tự, kể cả ol start="11") */
.isp-article--gt .content_gt_bv199 ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
}

.isp-article--gt .content_gt_bv199 ol > li {
  display: list-item;
  position: relative;
  min-height: 52px;
  margin: 0;
  padding: 13px 16px 13px 58px;
  background: #fff;
  border: 1px solid var(--i-line);
  border-radius: 14px;
  box-shadow: 0 6px 16px -14px rgba(20, 27, 77, 0.45);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.isp-article--gt .content_gt_bv199 ol > li:hover {
  border-color: #c9d0ea;
  box-shadow: 0 10px 22px -16px rgba(20, 27, 77, 0.5);
}

.isp-article--gt .content_gt_bv199 ol > li::before {
  content: counter(list-item);
  position: absolute;
  left: 14px;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--i-navy) 0%, #4253b8 100%);
  border-radius: 10px;
}

.isp-article--gt .content_gt_bv199 ol > li:nth-child(even)::before {
  background: linear-gradient(140deg, var(--i-green-dark) 0%, var(--i-green) 100%);
}

.isp-article--gt .content_gt_bv199 ol > li > p:first-child,
.isp-article--gt .content_gt_bv199 ol > li > p:first-child strong {
  color: var(--i-navy-deep);
  font-weight: 700;
  line-height: 1.45;
  padding-top: 2px;
}

/* Thẻ có danh sách con (nhiệm vụ cụ thể): chiếm cả hàng */
.isp-article--gt .content_gt_bv199 ol > li:has(> ul, > ol) {
  grid-column: 1 / -1;
}

.isp-article--gt .content_gt_bv199 ol > li > ul {
  margin: 8px 0 0;
}

.isp-article.isp-article--gt .content_gt_bv199 ol > li > ul > li {
  margin-bottom: 6px;
  font-size: 15.5px !important;
  color: #3b4360;
}

.isp-article.isp-article--gt .content_gt_bv199 blockquote {
  margin: 8px 0 18px;
  padding: 14px 18px;
  font-size: 15.5px !important;
  background: #fff8e6;
  border-left-color: #f2b705;
}

.isp-article--gt .content_gt_bv199 blockquote > p:last-child {
  margin-bottom: 0 !important;
}

/* Menu các trang Giới thiệu (cột phải) */
.isp-gtnav {
  padding-bottom: 12px;
}

.isp-gtnav__a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 -8px;
  padding: 10px 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--i-ink) !important;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}

.isp-gtnav__a .fa {
  margin-top: 3px;
  color: var(--i-muted);
}

.isp-gtnav__a:hover {
  color: var(--i-navy) !important;
  background: var(--i-soft);
}

.isp-gtnav__a.is-chon {
  color: var(--i-navy) !important;
  background: #eef1fb;
  box-shadow: inset 3px 0 0 var(--i-navy);
}

.isp-gtnav__a.is-chon .fa {
  color: var(--i-navy);
}

@media (max-width: 767px) {
  .isp-article--gt .content_gt_bv199 ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .isp-article--gt .content_gt_bv199 h3 {
    font-size: 17px !important;
    padding: 10px 12px;
  }
}

/* =============================================================================
   Tìm kiếm
   ========================================================================== */
.isp-bigsearch {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin-top: 18px;
  padding: 6px 6px 6px 20px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.45);
}

.isp-bigsearch > .fa {
  font-size: 18px;
  color: #8a92a8;
}

.isp-bigsearch input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0;
  font-size: 17px;
  color: var(--i-ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.isp-bigsearch button {
  height: 48px;
  padding: 0 26px;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  background: var(--i-green);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.isp-bigsearch button:hover { background: var(--i-green-dark); }

.isp-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.isp-res {
  display: flex;
  gap: 22px;
  padding: 16px;
  color: var(--i-ink) !important;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 27, 77, 0.05), 0 8px 22px -16px rgba(20, 27, 77, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.isp-res:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(20, 27, 77, 0.06), 0 16px 32px -18px rgba(20, 27, 77, 0.4);
}

.isp-res__img {
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9edf6;
  border-radius: 12px;
}

.isp-res__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.isp-res__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.isp-res__title {
  margin: 0;
  font-size: 19px !important;
  font-weight: 700;
  line-height: 1.42;
}

.isp-res:hover .isp-res__title { color: var(--i-navy); }

.isp-res__ex {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  color: var(--i-muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.isp-res mark {
  padding: 0 2px;
  color: inherit;
  background: #fff1a8;
  border-radius: 3px;
}

/* =============================================================================
   Footer + nút cài ứng dụng (PWA)
   ========================================================================== */
footer {
  margin-top: 0;
  padding: 44px 0 20px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(22, 160, 75, 0.22), transparent 40%),
    linear-gradient(135deg, var(--i-navy-deep) 0%, var(--i-navy-dark) 100%);
}

footer,
footer * {
  font-family: var(--i-font);
}

footer h4 {
  font-size: 20px !important;
  color: #fff;
}

footer .card {
  border-radius: 16px !important;
}

footer h6 {
  color: #fff;
}

footer .container {
  margin-bottom: 0 !important;
}

footer .container.mb-5 {
  margin-bottom: 0 !important;
}

#wrapper > .row.mt-5:empty {
  display: none;
}

.vs-pwa-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 9px 18px;
  font-family: var(--i-font);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--i-navy-deep);
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 0;
  border-radius: 999px;
}

.vs-pwa-install-btn[hidden] { display: none !important; }
.vs-pwa-install-btn:hover { background: #e7f6ed; }

/* =============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .isp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .isp-detail { grid-template-columns: minmax(0, 1fr); }
  .isp-aside { position: static; }
  .isp-hero .carousel-control-prev,
  .isp-hero .carousel-control-next { display: none; }
}

@media (max-width: 991px) {
  .isp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .isp-featured { grid-template-columns: minmax(0, 1fr); }
  .isp-featured__side { grid-template-rows: none; }
  .isp-featured > .isp-card--lon .isp-card__img { flex: 0 0 auto; min-height: 0; aspect-ratio: 16 / 10; }
  .isp-cols3 { grid-template-columns: minmax(0, 1fr); }
  .isp-article { padding: 26px 26px 30px; }
}

@media (max-width: 767px) {
  .isp-wrap { padding: 0 14px; }
  .isp-sec { margin-top: 32px; }
  .isp-sec__title { font-size: 20px !important; }
  .isp-more span { display: none; }

  .isp-hero .carousel-inner { height: 74vw; min-height: 300px; max-height: 460px; }
  .isp-hero__cap { padding-bottom: 30px; }
  .isp-hero__title { padding-right: 0; font-size: 16px !important; }
  .isp-hero .carousel-indicators { margin-bottom: 12px; }

  .isp-grid,
  .isp-grid--3,
  .isp-grid--4 { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  .isp-card--lon .isp-card__title { font-size: 20px !important; }
  .isp-card--lon .isp-card__body { padding: 16px 18px 20px; }

  .isp-hcard__img { width: 116px; }
  .isp-hcard__title { font-size: 15px !important; }

  .isp-phead { padding: 22px 0 22px; }
  .isp-phead::after { width: 180px; height: 180px; right: -40px; bottom: -60px; }
  .isp-subcats { flex-wrap: nowrap; margin: 14px -14px 0; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
  .isp-subcats a { flex: 0 0 auto; }
  .isp-body { padding-top: 18px; }

  .isp-detail { padding-top: 0; gap: 20px; }
  .isp-article { margin: 0 -14px; padding: 20px 16px 26px; border-radius: 0; box-shadow: none; }
  .isp-article__title { font-size: 23px !important; }
  .isp-share { width: 100%; margin-left: 0; }
  .isp-article .content_gt_bv199 { font-size: 16.5px; }
  .isp-article__lead { font-size: 16px; padding: 14px 16px; }

  .isp-bigsearch { padding-left: 16px; }
  .isp-bigsearch input { height: 44px; font-size: 16px; }
  .isp-bigsearch button { height: 44px; padding: 0 18px; }

  .isp-res { gap: 14px; padding: 12px; }
  .isp-res__img { width: 112px; aspect-ratio: 1 / 1; }
  .isp-res__title { font-size: 15.5px !important; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .isp-res__ex { display: none; }

  .isp-pager__so,
  .isp-pager__nut,
  .isp-pager__ba { min-width: 38px; height: 38px; padding: 0 8px; }

  footer { padding-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .isp-card,
  .isp-card__img img,
  .isp-hcard,
  .isp-res { transition: none; }
}
