@charset "UTF-8";
.template-default.theme-mac-dinh {
  --ed-bg-page: #FAF8F5;
  --ed-bg-surface: #FFFFFF;
  --ed-bg-tint: #FFF8F6;
  --ed-bg-band: #FBF1EC;
  --ed-bg-inverse: #1F1B18;
  --ed-ink: #14100E;
  --ed-ink-muted: #6B6560;
  --ed-ink-inverse: #F5F1EC;
  --ed-ink-inverse-muted: #B9B0A8;
  --ed-accent: #B4472B;
  --ed-accent-hover: #8F3620;
  --ed-accent-on-dark: #FFB4A2;
  --ed-accent-soft: rgba(180, 71, 43, 0.08);
  --ed-border: #E5DFD8;
  --ed-shadow: 0 4px 16px rgba(20, 16, 14, 0.06);
  --ed-shadow-hover: 0 10px 28px rgba(20, 16, 14, 0.10);
  --ed-scrim: linear-gradient(to top, rgba(20, 16, 14, .78) 0%, rgba(20, 16, 14, .3) 55%, rgba(20, 16, 14, 0) 100%);
  --ed-header-bg: rgba(250, 248, 245, .96);
  --ed-placeholder: #9A938C;
  --ed-cover-scrim: linear-gradient(to top, rgba(20, 16, 14, .35) 0%, rgba(20, 16, 14, 0) 45%);
  --ed-chip-bg: rgba(20, 16, 14, .62);
  --ed-ghost: rgba(20, 16, 14, .04);
  --ed-on-accent: #FFFFFF;
  --ed-cover-default: url("/images/template-default/cover-default.svg");
}

.template-default.theme-xanh {
  --ed-bg-page: #F5F7FB;
  --ed-bg-surface: #FFFFFF;
  --ed-bg-tint: #F2F6FD;
  --ed-bg-band: #EAF0FA;
  --ed-bg-inverse: #0F1B33;
  --ed-ink: #111827;
  --ed-ink-muted: #5B6475;
  --ed-ink-inverse: #EEF2F8;
  --ed-ink-inverse-muted: #A9B4C6;
  --ed-accent: #184181;
  --ed-accent-hover: #102F60;
  --ed-accent-on-dark: #8DB3F0;
  --ed-accent-soft: rgba(24, 65, 129, 0.08);
  --ed-border: #DCE3EE;
  --ed-shadow: 0 4px 16px rgba(15, 27, 51, 0.06);
  --ed-shadow-hover: 0 10px 28px rgba(15, 27, 51, 0.10);
  --ed-scrim: linear-gradient(to top, rgba(15, 27, 51, .78) 0%, rgba(15, 27, 51, .3) 55%, rgba(15, 27, 51, 0) 100%);
  --ed-header-bg: rgba(245, 247, 251, .96);
  --ed-placeholder: #8B95A7;
  --ed-cover-scrim: linear-gradient(to top, rgba(15, 27, 51, .35) 0%, rgba(15, 27, 51, 0) 45%);
  --ed-chip-bg: rgba(15, 27, 51, .62);
  --ed-ghost: rgba(15, 27, 51, .04);
  --ed-on-accent: #FFFFFF;
  --ed-cover-default: url("/images/template-default/cover-default-xanh.svg");
}

.template-default.theme-dem {
  --ed-bg-page: #0F1115;
  --ed-bg-surface: #171A21;
  --ed-bg-tint: #1F232C;
  --ed-bg-band: #1F232C;
  --ed-bg-inverse: #08090C;
  --ed-ink: #E8EAED;
  --ed-ink-muted: #9AA0A6;
  --ed-ink-inverse: #E8EAED;
  --ed-ink-inverse-muted: #9AA0A6;
  --ed-accent: #D4A64A;
  --ed-accent-hover: #E6BC66;
  --ed-accent-on-dark: #E6BC66;
  --ed-accent-soft: rgba(212, 166, 74, 0.10);
  --ed-border: rgba(255, 255, 255, 0.10);
  --ed-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --ed-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.45);
  --ed-scrim: linear-gradient(to top, rgba(15, 17, 21, .92) 0%, rgba(15, 17, 21, .4) 55%, rgba(15, 17, 21, 0) 100%);
  --ed-header-bg: rgba(15, 17, 21, .96);
  --ed-placeholder: #6B7078;
  --ed-cover-scrim: linear-gradient(to top, rgba(15, 17, 21, .45) 0%, rgba(15, 17, 21, 0) 45%);
  --ed-chip-bg: rgba(15, 17, 21, .72);
  --ed-ghost: rgba(255, 255, 255, .04);
  --ed-on-accent: #14100E;
  --ed-cover-default: url("/images/template-default/cover-default-dem.svg");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100;
  src: url("/fonts/Roboto/Roboto-Thin.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  src: url("/fonts/Roboto/Roboto-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/Roboto/Roboto-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  src: url("/fonts/Roboto/Roboto-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src: url("/fonts/Roboto/Roboto-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 900;
  src: url("/fonts/Roboto/Roboto-Black.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 100;
  src: url("/fonts/Roboto/Roboto-ThinItalic.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 300;
  src: url("/fonts/Roboto/Roboto-LightItalic.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 400;
  src: url("/fonts/Roboto/Roboto-Italic.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 500;
  src: url("/fonts/Roboto/Roboto-MediumItalic.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 700;
  src: url("/fonts/Roboto/Roboto-BoldItalic.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 900;
  src: url("/fonts/Roboto/Roboto-BlackItalic.ttf") format("truetype");
}
/* Source Serif 4 — SIL Open Font License, variable (optical size + weight 200–900), full Vietnamese coverage */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/SourceSerif4/SourceSerif4-Variable.ttf") format("truetype");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/SourceSerif4/SourceSerif4-Italic-Variable.ttf") format("truetype");
}
/* ---------- base ---------- */
:root {
  font-size: 16px;
}

.template-default {
  --bs-body-bg: var(--ed-bg-page);
  --bs-body-color: var(--ed-ink);
  --bs-primary: var(--ed-accent);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ed-bg-page);
  color: var(--ed-ink);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a:hover {
  color: var(--ed-accent);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ed-ink);
}

img {
  max-width: 100%;
}

::selection {
  background: var(--ed-accent);
  color: var(--ed-on-accent);
}

:focus-visible {
  outline: 2px solid var(--ed-accent);
  outline-offset: 3px;
}

/* ---------- typography helpers ---------- */
.ed-label {
  position: relative;
  margin: 0;
  padding-bottom: 12px;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ed-ink);
  border-bottom: 1px solid var(--ed-border);
}
.ed-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: var(--ed-accent);
}

.ed-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-accent);
}

.ed-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--ed-bg-surface);
  color: var(--ed-accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

a.ed-pill:hover {
  background: var(--ed-accent);
  color: var(--ed-on-accent);
}

.ed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--ed-ink-muted);
}
.ed-meta i {
  margin-right: 6px;
  color: var(--ed-accent);
}

/* ---------- buttons & form controls ---------- */
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 32px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: var(--ed-bg-surface);
  color: var(--ed-ink);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ed-btn:hover {
  border-color: var(--ed-accent);
  color: var(--ed-accent);
}

.ed-btn-solid {
  border-color: var(--ed-accent);
  background: var(--ed-accent);
  color: var(--ed-on-accent);
}

.ed-btn-solid:hover {
  border-color: var(--ed-accent-hover);
  background: var(--ed-accent-hover);
  color: var(--ed-on-accent);
}

.ed-btn-ghost {
  background: transparent;
  color: var(--ed-ink-muted);
}

.ed-btn-block {
  width: 100%;
}

.form-control {
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: var(--ed-bg-surface);
  color: var(--ed-ink);
  font-size: 15px;
}
.form-control::placeholder {
  color: var(--ed-placeholder);
}
.form-control:focus {
  background: var(--ed-bg-surface);
  color: var(--ed-ink);
  border-color: var(--ed-accent);
  box-shadow: 0 0 0 3px var(--ed-accent-soft);
}

/* ---------- header (sticky, ca hai thiet bi) ---------- */
.ed-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--ed-header-bg);
  border-bottom: 1px solid var(--ed-border);
}

.ed-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.ed-brand-name {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ed-ink);
}

/* header shows the CV avatar instead of a logo */
.ed-avatar-sm {
  display: block;
  width: 48px;
  height: 48px;
  padding: 2px;
  border: 2px solid var(--ed-accent);
  border-radius: 50%;
  background: var(--ed-bg-surface);
  object-fit: cover;
}

.ed-brand-logo {
  display: block;
  width: auto;
  max-width: 180px;
  height: 48px;
  object-fit: contain;
}

/* ---------- ngan keo menu (offcanvas Bootstrap) ---------- */
.offcanvas.ed-drawer {
  width: min(86vw, 340px);
  background: var(--ed-bg-page);
  color: var(--ed-ink);
  border-right: 1px solid var(--ed-border);
}

.ed-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 8px;
}

.ed-drawer-title {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
}

.ed-drawer-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: transparent;
  color: var(--ed-ink);
}

.ed-drawer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ed-drawer-nav > ul > li {
  border-bottom: 1px solid var(--ed-border);
}
.ed-drawer-nav li > a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ed-drawer-nav li.active > a {
  color: var(--ed-accent);
}
.ed-drawer-nav .sub-menu {
  margin: 0 0 10px 2px;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--ed-border);
}
.ed-drawer-nav .sub-menu > li {
  position: relative;
}
.ed-drawer-nav .sub-menu > li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 12px;
  border-top: 1px solid var(--ed-border);
}
.ed-drawer-nav .sub-menu a {
  padding: 6px 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ed-ink-muted);
}
.ed-drawer-nav .sub-menu li.active > a {
  color: var(--ed-accent);
}

/* ---------- footer + back to top ---------- */
.container-copy-right {
  margin-top: 96px;
  padding: 28px 0;
  text-align: center;
  font-size: 14px;
  color: var(--ed-ink-inverse);
  background: var(--ed-bg-inverse);
}
.container-copy-right .row {
  margin: 0;
}

.link-copy-right {
  color: var(--ed-accent-on-dark);
}

.link-copy-right:hover {
  color: #fff;
}

.container-copy-right .copy-right {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 24px;
  row-gap: 2px;
}

.link-bao-cao {
  padding: 6px 0;
  color: var(--ed-ink-inverse-muted);
}
.link-bao-cao .fa {
  margin-right: 6px;
  opacity: 0.7;
}
.link-bao-cao:hover, .link-bao-cao:focus {
  color: var(--ed-ink-inverse);
  text-decoration: underline;
}

#btn-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ed-accent);
  color: var(--ed-on-accent);
  box-shadow: var(--ed-shadow-hover);
}
#btn-back-to-top:hover, #btn-back-to-top:focus {
  background: var(--ed-accent-hover);
  color: var(--ed-on-accent);
}

/* ---------- site cover image ("Ảnh bìa") ---------- */
.ed-cover-wrap {
  padding-top: 24px;
}

.ed-cover {
  position: relative;
  overflow: hidden;
  background: var(--ed-bg-band);
  border-radius: 8px;
  box-shadow: var(--ed-shadow);
}

.ed-cover-default {
  background: var(--ed-cover-default) center/cover no-repeat, var(--ed-bg-band);
}

.ed-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ed-scrim {
  position: absolute;
  inset: 0;
  background: var(--ed-cover-scrim);
  pointer-events: none;
}

.ed-cover-slim {
  height: 240px;
}

/* ---------- page scaffolding ---------- */
.ed-page-body {
  padding-top: 48px;
}

/* tiêu đề trang Blog: chữ BLOG căn giữa phía trên danh sách bài */
.ed-blog-title {
  margin: 0 0 36px;
  text-align: center;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--ed-ink);
}
.ed-blog-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--ed-accent);
}

.ed-main {
  min-width: 0;
}

.ed-block-head {
  margin-bottom: 28px;
}

.ed-empty {
  color: var(--ed-ink-muted);
}

.ed-page-title {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
  padding-bottom: 14px;
}

/* ---------- article card (template-owned markup) ---------- */
.ed-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  box-shadow: var(--ed-shadow);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ed-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ed-shadow-hover);
}

.ed-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ed-bg-band);
}

.ed-card-media .ed-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}

.ed-card-img {
  display: block;
  aspect-ratio: 1200/630;
  overflow: hidden;
}
.ed-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ed-card-img-wide {
  aspect-ratio: 1200/630;
}

.ed-card:hover .ed-card-img img {
  transform: scale(1.03);
}

.ed-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 18px;
}

.ed-card-title {
  margin: 0 0 8px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}
.ed-card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ed-card:hover .ed-card-title a {
  color: var(--ed-accent);
}

.ed-card-excerpt {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ed-ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ed-card .ed-meta {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
}

/* ---------- sidebar ---------- */
.ed-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.ed-widget {
  padding: 18px;
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  border-radius: 8px;
}

.ed-widget > .ed-label {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ed-accent);
}
.ed-widget > .ed-label::after {
  display: none;
}

.ed-widget-subscribe {
  background: var(--ed-bg-inverse);
  border-color: var(--ed-bg-inverse);
}

.ed-widget-subscribe > .ed-label {
  color: var(--ed-ink-inverse);
}

.ed-subscribe {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ed-subscribe .ed-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.ed-subscribe-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ed-ink-inverse-muted);
}

.ed-subscribe-result {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ed-ink-inverse);
}
.ed-subscribe-result.is-error {
  color: var(--ed-accent-on-dark);
}

.ed-subscribe.is-done > :not(.ed-subscribe-result) {
  display: none;
}

.ed-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ed-cat-list > li + li {
  border-top: 1px solid var(--ed-border);
}
.ed-cat-list a {
  display: block;
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 600;
}
.ed-cat-list a:hover {
  color: var(--ed-accent);
}

.ed-li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: start;
}
.ed-li + .ed-li {
  margin-top: 14px;
}

.ed-li-img {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ed-bg-band);
}
.ed-li-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-li-title {
  display: -webkit-box;
  margin: 0 0 4px;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ed-li:hover .ed-li-title {
  color: var(--ed-accent);
}

.ed-li-date {
  display: block;
  font-size: 12px;
  color: var(--ed-ink-muted);
}

/* ---------- pagination (Bootstrap .pagination restyled) ---------- */
.ed-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.ed-pager .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: var(--ed-bg-surface);
  color: var(--ed-ink);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--ed-shadow);
}
.ed-pager .page-item .page-link:hover {
  color: var(--ed-accent);
}
.ed-pager .page-item .page-link:focus {
  box-shadow: var(--ed-shadow);
}
.ed-pager .page-item.active .page-link {
  background: var(--ed-accent);
  color: var(--ed-on-accent);
}
.ed-pager .page-item.disabled .page-link {
  background: transparent;
  box-shadow: none;
  color: var(--ed-ink-muted);
}

/* ---------- rich text (article body, CV blocks) ---------- */
/* thân bài trong trang bài viết chiếm hết bề ngang thẻ, thẳng lề với tiêu đề và ảnh bìa */
.ed-rte {
  max-width: 72ch;
}

#newsContainer .entry-content {
  max-width: none;
}

.ed-rte, #newsContainer .entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ed-ink);
  /* tables (CKEditor wraps them in <figure class="table">) — paper card, banded header, zebra rows */
  /* bảng đã kéo co giãn trong khung soạn: CKEditor lưu style="width:NN%" + colgroup + class ck-table-resized -> giữ y như khung soạn */
}
.ed-rte p, #newsContainer .entry-content p {
  margin: 0 0 1.3em;
}
.ed-rte h2, #newsContainer .entry-content h2 {
  margin: 44px 0 14px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}
.ed-rte h3, #newsContainer .entry-content h3 {
  margin: 32px 0 10px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}
.ed-rte h4, #newsContainer .entry-content h4 {
  margin: 26px 0 8px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
}
.ed-rte a, #newsContainer .entry-content a {
  color: var(--ed-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ed-rte a:hover, #newsContainer .entry-content a:hover {
  color: var(--ed-accent-hover);
}
.ed-rte blockquote, #newsContainer .entry-content blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-style: italic;
  background: var(--ed-accent-soft);
  border-left: 3px solid var(--ed-accent);
  border-radius: 0 8px 8px 0;
}
.ed-rte blockquote p:last-child, #newsContainer .entry-content blockquote p:last-child {
  margin: 0;
}
.ed-rte ul, .ed-rte ol, #newsContainer .entry-content ul, #newsContainer .entry-content ol {
  margin: 0 0 1.3em;
  padding-left: 1.3em;
}
.ed-rte li, #newsContainer .entry-content li {
  margin-bottom: 0.4em;
}
.ed-rte li::marker, #newsContainer .entry-content li::marker {
  color: var(--ed-accent);
}
.ed-rte img, #newsContainer .entry-content img {
  height: auto;
  border-radius: 8px;
}
.ed-rte figure, #newsContainer .entry-content figure {
  margin: 32px 0;
}
.ed-rte figure img, #newsContainer .entry-content figure img {
  width: 100%;
}
.ed-rte figcaption, #newsContainer .entry-content figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--ed-ink-muted);
}
.ed-rte figure.table, #newsContainer .entry-content figure.table {
  overflow-x: auto;
  /* khung bảng mang class "table" của Bootstrap nên mặc định chữ tối; giữ chữ theo màu nội dung của mẫu */
  color: var(--ed-ink);
  --bs-table-color: var(--ed-ink);
}
.ed-rte figure.table, #newsContainer .entry-content figure.table {
  margin-left: auto;
  margin-right: auto;
}
.ed-rte figure.table:not([style*=width]) table, #newsContainer .entry-content figure.table:not([style*=width]) table {
  min-width: 420px;
}
.ed-rte table.ck-table-resized, #newsContainer .entry-content table.ck-table-resized {
  table-layout: fixed;
}
.ed-rte table.ck-table-resized th, .ed-rte table.ck-table-resized td, #newsContainer .entry-content table.ck-table-resized th, #newsContainer .entry-content table.ck-table-resized td {
  overflow-wrap: anywhere;
}
.ed-rte table, #newsContainer .entry-content table {
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  border: 1px solid var(--ed-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
}
.ed-rte thead th, #newsContainer .entry-content thead th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ed-border);
  background: var(--ed-bg-band) !important;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ed-ink) !important;
  text-align: left;
}
.ed-rte tbody td, #newsContainer .entry-content tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--ed-border);
  color: var(--ed-ink) !important;
  background: var(--ed-bg-surface) !important;
}
.ed-rte tbody tr:first-child td, #newsContainer .entry-content tbody tr:first-child td {
  border-top: 0;
}
.ed-rte tbody tr:nth-child(even) td, #newsContainer .entry-content tbody tr:nth-child(even) td {
  background: var(--ed-bg-tint) !important;
}
.ed-rte hr, #newsContainer .entry-content hr {
  border-color: var(--ed-border);
  opacity: 1;
}

/* ==========================================================================
   Blog zones + light skin for the SHARED news-block views (Views/FrontendDisplay/*) and card views
   (Views/Common/article-tpl/*). Those views are used by every template, so they are only restyled
   here — their markup is never changed. (V2 Editorial/Desktop/blog.scss)
   ========================================================================== */
/* ---------- zones ---------- */
.ed-zone-top {
  padding-top: 32px;
}

.ed-zone-top + .ed-page-body {
  padding-top: 48px;
}

.ed-zone-top .ed-block {
  margin-bottom: 0;
}

.ed-block {
  margin-bottom: 72px;
}

.ed-block:last-child {
  margin-bottom: 0;
}

.ed-zone-bottom {
  margin-top: 88px;
  padding: 64px 0;
  background: var(--ed-bg-band);
  border-top: 1px solid var(--ed-border);
}

/* ---------- shared card skins ---------- */
.template-default {
  /* article-t04 … t10 */
  /* article-t07 category line */
  /* horizontal cards: article-t04 (big, top of "top one + bottom four") and article-t08 */
  /* compact rows: article-t06 (lists) and article-t09 (inside a card) */
  /* article-t01 / t02 / t03 (used by "one large + four small") */
  /* ---------- slider block (SlideMotCot, Owl Carousel) ---------- */
}
.template-default .shadow {
  box-shadow: var(--ed-shadow) !important;
}
.template-default .article-box {
  height: 100%;
  overflow: hidden;
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.template-default .article-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--ed-shadow-hover) !important;
}
.template-default .article-box > a {
  display: block;
  height: 100%;
  color: var(--ed-ink);
}
.template-default .article-box .article-feature {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--ed-bg-band);
}
.template-default .article-box .article-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.template-default .article-box:hover .article-feature img {
  transform: scale(1.03);
}
.template-default .article-box .article-boxtext {
  padding: 18px 20px 20px;
}
.template-default .article-box .article-title {
  margin: 0 0 8px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ed-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.template-default .article-box:hover .article-title {
  color: var(--ed-accent);
}
.template-default .post-on {
  display: block;
  font-style: normal !important;
  font-size: 13px !important;
  color: var(--ed-ink-muted);
}
.template-default .article-abstracttext {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ed-ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.template-default .article-box .category h6 {
  margin: 0 0 6px;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-accent);
  border: 0;
  padding: 0;
}
.template-default .article-horizontal .article-inner {
  display: grid;
  grid-template-columns: 44% 1fr;
  align-items: stretch;
  height: 100%;
}
.template-default .article-horizontal .article-feature {
  aspect-ratio: auto;
  height: 100%;
  min-height: 150px;
}
.template-default .article-horizontal .article-boxtext {
  align-self: center;
}
.template-default .col-12 > .article-horizontal .article-inner {
  grid-template-columns: 58% 1fr;
}
.template-default .col-12 > .article-horizontal .article-feature {
  min-height: 320px;
}
.template-default .col-12 > .article-horizontal .article-boxtext {
  padding: 32px;
}
.template-default .col-12 > .article-horizontal .article-title {
  font-size: 30px;
  line-height: 1.25;
  -webkit-line-clamp: 4;
}
.template-default .col-12 > .article-horizontal .article-abstracttext {
  font-size: 16px;
}
.template-default .popular-article {
  display: flex;
  align-items: center;
  gap: 16px;
}
.template-default .popular-article .article-feature {
  flex: 0 0 132px;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ed-bg-band);
}
.template-default .popular-article .article-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.template-default .popular-article .article-title {
  margin: 0 0 4px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ed-ink);
  transition: color 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.template-default a:hover .popular-article .article-title {
  color: var(--ed-accent);
}
.template-default .publish-date {
  font-size: 12px;
  color: var(--ed-ink-muted);
}
.template-default .list-popular-articles > article {
  padding: 16px 0;
  border-bottom: 1px solid var(--ed-border);
}
.template-default .list-popular-articles > article:first-child {
  padding-top: 0;
}
.template-default .list-popular-articles > article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.template-default .article-box .popular-article {
  align-items: stretch;
  gap: 0;
  height: 100%;
}
.template-default .article-box .popular-article .article-feature {
  flex-basis: 52%;
  aspect-ratio: auto;
  min-height: 120px;
  border-radius: 0;
}
.template-default .article-box .popular-article .article-boxtext {
  align-self: center;
  padding: 14px 18px;
}
.template-default .ed-sidebar .popular-article {
  align-items: flex-start;
  gap: 12px;
}
.template-default .ed-sidebar .popular-article .article-feature {
  flex-basis: 84px;
  aspect-ratio: 4/3;
  border-radius: 4px;
}
.template-default .ed-sidebar .popular-article .article-title {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
}
.template-default .ed-sidebar .list-popular-articles > article {
  padding: 0;
  border-bottom: 0;
}
.template-default .ed-sidebar .list-popular-articles > article + article {
  margin-top: 14px;
}
.template-default .ed-sidebar .ed-widget > .most-popular {
  margin-top: 0 !important;
}
.template-default .article-tpl {
  color: var(--ed-ink);
}
.template-default .article-tpl ._thumb {
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--ed-bg-band);
}
.template-default .article-tpl .img-art {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.template-default .article-tpl .link-title .title {
  margin: 12px 0 6px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ed-ink);
  transition: color 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.template-default .article-tpl .link-title:hover .title {
  color: var(--ed-accent);
}
.template-default .article-tpl .abstract {
  font-size: 15px;
  text-align: left;
  color: var(--ed-ink-muted);
}
.template-default .article-tpl.t03 .link-title .title {
  font-size: 28px;
  line-height: 1.25;
}
.template-default .article-tpl.t02.article-box {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  height: auto;
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
}
.template-default .article-tpl.t02.article-box:hover {
  transform: none;
  box-shadow: none !important;
}
.template-default .article-tpl.t02.article-box .p2 {
  padding: 0;
}
.template-default .article-tpl.t02.article-box ._thumb {
  border-radius: 6px;
}
.template-default .article-tpl.t02.article-box .link-title {
  margin: 0;
}
.template-default .article-tpl.t02.article-box .link-title .title {
  margin: 0 0 4px;
  font-size: 16px;
}
.template-default .frdsp.mau4tin01 .cl.c2 article {
  border-bottom: 1px solid var(--ed-border);
}
.template-default .frdsp.mau4tin01 .cl.c2 article:last-child {
  border-bottom: 0;
}
.template-default .frdsp.mau4tin01 .cl .p2 {
  padding: 0;
}
.template-default .owl-article-slide .article-item {
  position: relative;
  height: 480px;
  overflow: hidden;
  background-color: var(--ed-bg-band);
  background-position: center;
  background-size: cover;
  border-radius: 8px;
}
.template-default .owl-article-slide .color-overlay {
  position: absolute;
  inset: 0;
  background: var(--ed-scrim);
}
.template-default .owl-article-slide .article-box-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 40px;
}
.template-default .owl-article-slide .entry-category {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px !important;
  border-radius: 6px;
  background: var(--ed-accent) !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ed-on-accent);
}
.template-default .owl-article-slide .article-title-slide {
  display: block !important;
  max-width: 24ch;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.template-default .owl-article-slide .publish-date {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.template-default .owl-article-slide .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0 16px;
  transform: translateY(-50%);
  pointer-events: none;
}
.template-default .owl-article-slide .owl-nav button.owl-prev, .template-default .owl-article-slide .owl-nav button.owl-next {
  width: 42px;
  height: 42px;
  margin: 0;
  pointer-events: auto;
  border: 0;
  border-radius: 50%;
  background: var(--ed-bg-surface);
  color: var(--ed-ink);
  font-size: 22px;
  line-height: 1;
}
.template-default .owl-article-slide .owl-nav button.owl-prev:hover, .template-default .owl-article-slide .owl-nav button.owl-next:hover {
  background: var(--ed-accent);
  color: var(--ed-on-accent);
}

/* fixed-range height instead of aspect-ratio + max-height: with both, the browser shrinks the WIDTH
   to keep the ratio once the height is capped, leaving the cover narrower than the page content */
.ed-cover-profile {
  width: 100%;
  height: clamp(200px, 30vw, 400px);
}

.ed-home-body {
  padding-top: 0;
}

/* the profile card overlaps the bottom of the cover, as on a social profile */
.ed-profile-card {
  position: relative;
  z-index: 2;
  margin-top: -104px;
  padding: 32px 28px 28px;
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  box-shadow: var(--ed-shadow-hover);
  text-align: center;
}
.ed-profile-card .ed-avatar-ring {
  margin: -96px auto 0;
}

.ed-profile-card-name {
  margin: 20px 0 4px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.ed-profile-status {
  margin: 20px 0 22px;
  padding: 16px 18px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
  background: var(--ed-accent-soft);
  border-radius: 8px;
  text-align: left;
  white-space: pre-line;
}
.ed-profile-status p:last-child {
  margin-bottom: 0;
}

.ed-profile-card .ed-contact {
  margin-top: 20px;
  text-align: left;
}

.ed-profile-card .ed-social {
  justify-content: flex-start;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ed-border);
}

.ed-profile-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 22px;
}

.ed-profile-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ed-accent);
}
.ed-profile-card-link i {
  font-size: 12px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ed-profile-card-link:hover {
  color: var(--ed-accent-hover);
}
.ed-profile-card-link:hover i {
  transform: translateX(3px);
}

.ed-home-main {
  padding-top: 40px;
}

.ed-cover-title {
  position: absolute;
  z-index: 1;
  margin: 0;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ed-ink);
  overflow-wrap: anywhere;
}

.ed-cover-slogan {
  display: block;
  margin-top: 8px;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ed-ink-muted);
}

.ed-blog-card .ed-avatar {
  object-fit: contain;
  background: var(--ed-bg-surface);
}

.ed-blog-card:not(.co-logo) .ed-profile-card-name {
  margin-top: 0;
}

.ed-home-aside {
  margin-top: 24px;
}

.ed-home-layout > .ed-block:last-of-type {
  margin-bottom: 0;
}

.ed-cat-list .ed-cat-sub {
  list-style: none;
  margin: 0 0 8px 8px;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--ed-border);
}
.ed-cat-list .ed-cat-sub li {
  position: relative;
}
.ed-cat-list .ed-cat-sub li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 12px;
  border-top: 1px solid var(--ed-border);
}
.ed-cat-list .ed-cat-sub a {
  padding: 6px 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ed-ink-muted);
}
.ed-cat-list .ed-cat-sub a:hover {
  color: var(--ed-accent);
}

.ed-cat-list a.is-current,
.ed-cat-list .ed-cat-sub a.is-current {
  color: var(--ed-accent);
  font-weight: 700;
}

.ed-li.ed-li-khong-anh {
  grid-template-columns: 1fr;
}

.khoi-trong {
  margin: 0;
  padding: 40px 24px;
  text-align: center;
  color: var(--ed-ink-muted);
  background: var(--ed-bg-tint);
  border: 1px dashed var(--ed-border);
  border-radius: 8px;
}
.khoi-trong .fa {
  display: block;
  margin-bottom: 12px;
  font-size: 40px;
  color: var(--ed-accent);
  opacity: 0.5;
}
.khoi-trong p {
  margin-bottom: 0;
  line-height: 1.6;
}

.ed-muc-con {
  margin-bottom: 48px;
}

.ed-muc-con-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ed-border);
}
.ed-muc-con-head .ed-label {
  flex: 1 1 auto;
  min-width: 0;
  border-bottom: 0;
}
.ed-muc-con-head .ed-label a:hover {
  color: var(--ed-accent);
}

.ed-xem-tat-ca {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ed-accent);
}
.ed-xem-tat-ca i {
  font-size: 12px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ed-xem-tat-ca:hover {
  color: var(--ed-accent-hover);
}
.ed-xem-tat-ca:hover i {
  transform: translateX(3px);
}

/* ---------- article page ---------- */
#newsContainer > article,
.ed-article {
  padding: 44px 48px 48px;
  background: var(--ed-bg-surface);
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  box-shadow: var(--ed-shadow);
}

#newsContainer .entry-header {
  margin: 0 !important;
}

#newsContainer .entry-title {
  margin: 0 0 16px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

#newsContainer .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-bottom: 28px !important;
  font-size: 13px;
  color: var(--ed-ink-muted);
}

#newsContainer .entry-meta > span {
  display: inline-flex;
  margin: 0 !important;
}

#newsContainer .entry-meta i {
  margin-right: 6px;
  color: var(--ed-accent);
}

#newsContainer .btn-cat {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin: 0 !important;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ed-accent-soft);
  color: var(--ed-accent);
  font-size: 12px;
  font-weight: 500;
}

#newsContainer .btn-cat:hover {
  background: var(--ed-accent);
  color: var(--ed-on-accent);
}

#newsContainer .entry-header blockquote {
  margin: 0 0 32px;
  padding: 20px 24px !important;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  background: var(--ed-accent-soft) !important;
  border-left: 3px solid var(--ed-accent);
  border-radius: 0 8px 8px 0 !important;
  text-align: left !important;
}

#newsContainer .entry-image {
  margin: 0 0 32px !important;
}

#newsContainer .entry-image img {
  width: 100%;
  aspect-ratio: 1200/630;
  object-fit: cover;
  border-radius: 8px !important;
}

.ed-locked {
  max-width: 520px;
  margin: 8px auto 0;
  padding: 36px 32px;
  text-align: center;
  background: var(--ed-bg-tint);
  border: 1px solid var(--ed-border);
  border-radius: 8px;
}

.ed-lock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--ed-accent-soft);
  color: var(--ed-accent);
  font-size: 20px;
}

.ed-lock-title {
  margin-bottom: 8px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
}

.ed-lock-text {
  margin-bottom: 22px;
  font-size: 15px;
  color: var(--ed-ink-muted);
}

.ed-lock-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ed-lock-form .form-control {
  text-align: center;
}
.ed-lock-form .alert {
  margin: 0;
  text-align: left;
}

#newsContainer .entry-subtitle {
  margin: -6px 0 16px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.45;
  color: var(--ed-ink-muted);
}

.loi-gioi-thieu {
  white-space: pre-line;
}

.hop-noi-bat {
  border-left-color: var(--ed-accent);
  background: var(--ed-bg-tint);
}

/* Nội dung bài viết (dán từ nguồn khác) hay nhúng sẵn width/float cố định: buộc co theo khung chứa để không tràn ngang trên điện thoại. */
.entry-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.entry-content * {
  max-width: 100% !important;
  box-sizing: border-box;
}

.entry-content article,
.entry-content figure {
  float: none !important;
}

.entry-content img,
.entry-content video {
  height: auto !important;
}

.entry-content > table {
  display: block;
  overflow-x: auto;
}

/* Bài có ảnh/khối "float" (ảnh canh trái/phải trong nội dung): bắt thẻ bài bao trọn các khối nổi và buộc
   "Bài viết liên quan" nằm dưới cùng, không chảy vòng quanh ảnh rồi bị ép vào khoảng trống hẹp. */
.vs-article-col {
  min-width: 0;
}

.vs-article-col #newsContainer,
.vs-article-col #newsContainer article,
.vs-article-col #newsContainer .entry-content {
  display: flow-root;
}

.vs-related {
  clear: both;
}

/* Chuẩn hóa nội dung DÁN TỪ TRANG BÁO (style nội tuyến cố định): ảnh float:left rộng 680px làm lề phải bị hở,
   khối ảnh dùng mẹo padding cao + ảnh position:absolute, từng đoạn có nền riêng. Chỉ nhắm vào style nội tuyến kiểu dán;
   KHÔNG đụng bảng (figure.table), ảnh do editor chỉnh (class image) hay chữ tô nổi (span) do tác giả đặt. */
#newsContainer [style*=float]:not(.table):not(.image):not(.image-inline) {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#newsContainer div[style*="display:table"], #newsContainer div[style*="display: table"] {
  display: block !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
}

#newsContainer img[style*="position:absolute"], #newsContainer img[style*="position: absolute"] {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

#newsContainer :is(p, div, figure, li, blockquote, h1, h2, h3, h4, h5, h6)[style*=background]:not(.table) {
  background: transparent !important;
}

.vs-related {
  margin-top: 56px;
}

.vs-related-title {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vs-related-title::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  opacity: 0.55;
}

.vs-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.vs-related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(128, 128, 128, 0.22);
  border-radius: 12px;
}

.vs-related-img {
  display: block;
  aspect-ratio: 1200/630;
  overflow: hidden;
  background: rgba(128, 128, 128, 0.15);
}

.vs-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.vs-related-card:hover .vs-related-img img {
  transform: scale(1.04);
}

.vs-related-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.vs-related-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.vs-related-name {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.vs-related-name a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vs-related-name a:hover {
  text-decoration: underline;
}

.vs-related-meta {
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  opacity: 0.65;
}

@media (max-width: 991.98px) {
  .vs-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .vs-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .vs-related {
    margin-top: 40px;
  }
}
/* Editorial */
.template-default .vs-related-title {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--ed-ink);
}

.template-default .vs-related-card {
  background: var(--ed-bg-surface);
  border-color: var(--ed-border);
  color: var(--ed-ink);
  border-radius: 8px;
}

.template-default .vs-related-cat {
  color: var(--ed-accent);
}

.template-default .vs-related-meta i {
  margin-right: 4px;
  color: var(--ed-accent);
}

/* ---------- profile pieces shared by homepage + CV ---------- */
.ed-avatar-ring {
  width: 132px;
  height: 132px;
  padding: 4px;
  border: 2px solid var(--ed-accent);
  border-radius: 50%;
  background: var(--ed-bg-surface);
}

.ed-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ed-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.ed-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  overflow-wrap: anywhere;
}
.ed-contact i {
  flex: none;
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--ed-accent);
}
.ed-contact a {
  color: inherit;
}
.ed-contact a:hover {
  color: var(--ed-accent);
}

.ed-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ed-social .link-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 6px;
  border-radius: 6px;
  background: var(--ed-accent-soft);
  font-size: 13px;
  font-weight: 500;
}
.ed-social .link-social:hover {
  background: var(--ed-accent);
  color: var(--ed-on-accent);
}
.ed-social img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
}
.ed-social .link-social .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 15px;
}

/* ---------- CV page ---------- */
.ed-cv-wrap {
  padding-bottom: 24px;
}

.ed-cover-cv {
  height: 260px;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
}

.ed-cover-top {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 2;
}

.ed-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--ed-chip-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.ed-chip:hover {
  background: var(--ed-accent);
  color: var(--ed-on-accent);
}

.ed-cv-card {
  overflow: hidden;
  background: var(--ed-bg-surface);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--ed-shadow-hover);
}

.ed-cv-panel {
  padding: 36px 32px;
  color: var(--ed-ink-inverse);
  background: var(--ed-bg-inverse);
}
.ed-cv-panel .ed-avatar-ring {
  margin-left: auto;
  margin-right: auto;
  background: var(--ed-bg-inverse);
}
.ed-cv-panel .ed-contact {
  margin-top: 24px;
}
.ed-cv-panel .ed-contact i {
  color: var(--ed-accent-on-dark);
}
.ed-cv-panel .ed-contact a:hover {
  color: var(--ed-accent-on-dark);
}
.ed-cv-panel .ed-social {
  margin-top: 20px;
}
.ed-cv-panel .ed-social .link-social {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ed-ink-inverse);
}
.ed-cv-panel .ed-social .link-social:hover {
  background: var(--ed-accent);
  color: var(--ed-on-accent);
}

.ed-cv-name {
  margin: 22px 0 6px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.ed-cv-panel .ed-eyebrow {
  color: var(--ed-accent-on-dark);
}

.ed-cv-blocks {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ed-cv-panel .ed-cv-block {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ed-cv-panel .ed-cv-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.ed-cv-panel .ed-cv-block .ed-cv-block-title {
  padding: 0 0 0 12px;
  margin-bottom: 12px;
  border: 0;
  border-left: 3px solid var(--ed-accent);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.ed-cv-panel .ed-cv-block .ed-cv-block-title::after {
  display: none;
}
.ed-cv-panel .ed-cv-block .ed-rte {
  color: var(--ed-ink-inverse-muted);
  font-size: 15px;
}
.ed-cv-panel .ed-cv-block .ed-rte a {
  color: var(--ed-accent-on-dark);
}
.ed-cv-panel .ed-cv-block .ed-rte strong {
  color: #fff;
}

.ed-cv-main {
  padding: 36px 44px 44px;
}

.ed-cv-main .ed-cv-block {
  padding: 8px 0 32px;
}

.ed-cv-main .ed-cv-block:last-child {
  padding-bottom: 0;
}

.ed-cv-block-title {
  margin-bottom: 16px;
  font-size: 15px;
}

.ed-cv .ed-rte {
  max-width: none;
  font-size: 16px;
}

.ed-skill-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ed-skill-item .ed-skill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
}

.ed-skill-item .ed-skill-name {
  color: var(--ed-ink);
}

.ed-skill-item .ed-skill-percent {
  color: var(--ed-ink-muted);
  font-variant-numeric: tabular-nums;
}

.ed-skill-track {
  height: 6px;
  border-radius: 999px;
  background: var(--ed-border);
  overflow: hidden;
}

.ed-skill-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--ed-accent);
}

.ed-cv-panel .ed-skill-name {
  color: #fff;
}

.ed-cv-panel .ed-skill-percent {
  color: var(--ed-ink-inverse-muted);
}

.ed-cv-panel .ed-skill-track {
  background: rgba(255, 255, 255, 0.12);
}

.ed-cv-panel .ed-profile-status {
  margin: 20px 0 0;
  padding: 14px 16px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  white-space: pre-line;
}

.ed-cv-khoi-con {
  margin: 0;
  padding-left: 1.2em;
}
.ed-cv-khoi-con li {
  margin-bottom: 10px;
}
.ed-cv-khoi-con li::marker {
  color: var(--ed-accent);
}
.ed-cv-khoi-con strong {
  color: var(--ed-ink);
}

.ed-cv-panel .ed-cv-khoi-con {
  color: var(--ed-ink-inverse-muted);
}
.ed-cv-panel .ed-cv-khoi-con strong {
  color: #fff;
}

.ho-so-dang-an {
  padding-top: 48px;
}
.ho-so-dang-an .ed-locked {
  max-width: 560px;
}
.ho-so-dang-an .ed-lock-title {
  font-size: 28px;
}

.ed-404 {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  text-align: center;
}

.ed-404-ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(220px, 34vw, 420px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ed-ghost);
  pointer-events: none;
  user-select: none;
}

.ed-404 .container {
  position: relative;
}

.ed-404-code {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 10vw, 104px);
  font-weight: 700;
  line-height: 1;
  color: var(--ed-accent);
}

.ed-404-title {
  margin: 12px 0 28px;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
}

.ed-404-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
