:root {
  --brand-primary: #146c80;
  --brand-secondary: #1e8ea6;
  --brand-dark: #0e4c5c;
  --brand-accent: #c9064c;
  --bg-page: #eef2f6;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #dbe4ee;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-page);
  overflow-x: hidden;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--brand-accent);
}

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

.portal-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 14px 28px;
}

/* ===== MEDICAL SVG ICONS ===== */
.mi-icon {
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

.icon-heading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ===== LEGAL UTILITY & ACCESSIBILITY BAR (TT 22/2023) ===== */
.utility-bar {
  background: #0e4c5c;
  color: #e2f3f7;
  border-radius: 8px;
  padding: 6px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.utility-left, .utility-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.utility-bar a {
  color: #fff;
  font-weight: 600;
}
.a11y-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.a11y-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.a11y-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-primary);
  color: #fff;
  padding: 8px 14px;
  z-index: 999;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* ===== PUBLIC TRANSPARENCY QUICK BAR (LUAT KCB 2023 & DAU THAU 2023) ===== */
.transparency-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.trans-tile {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 11px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: #0f3a60 !important;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.trans-tile:hover {
  transform: translateY(-2px);
  border-color: var(--brand-secondary);
  box-shadow: var(--shadow-md);
  color: var(--brand-primary) !important;
}
.trans-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6f4f7;
  color: var(--brand-primary);
}
.trans-tile.accent .trans-tile-icon {
  background: #fce7f3;
  color: var(--brand-accent);
}
@media (max-width: 1024px) {
  .transparency-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .transparency-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== HEADER / BANNER ===== */
.portal-header {
  background: linear-gradient(135deg, #ffffff 0%, #f1f8fb 60%, #e4f3f7 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.header-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 3px 12px rgba(20, 108, 128, 0.15);
}

.header-titles {
  min-width: 0;
}

.header-dept {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--brand-primary);
  text-transform: uppercase;
}

.header-name {
  margin: 2px 0;
  font-size: 22px;
  font-weight: 800;
  color: #0f3a60;
  line-height: 1.2;
}

.header-slogan {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-accent);
  font-style: italic;
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex-shrink: 0;
}

.hotline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
  white-space: nowrap;
}
.hotline-pill.feedback {
  background: linear-gradient(135deg, #c9064c, #e11d48);
}
.hotline-pill.emergency {
  background: linear-gradient(135deg, #146c80, #1e8ea6);
}
.hotline-pill small {
  font-weight: 500;
  opacity: 0.92;
  font-size: 11px;
}

.header-address {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== NAVBAR ===== */
.portal-nav {
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  position: relative;
  z-index: 40;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  gap: 8px;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 7px 12px;
  font-weight: 600;
  cursor: pointer;
  margin: 8px 0;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 12px;
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.nav-link:hover,
.nav-item:hover > .nav-link {
  background: rgba(255, 255, 255, 0.16);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 100;
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 8px 14px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
}

.nav-dropdown li a:hover {
  background: #f0f9fb;
  color: var(--brand-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.nav-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  overflow: hidden;
  padding: 2px 4px 2px 12px;
}

.nav-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 12.5px;
  width: 140px;
  color: var(--text-main);
  font-family: inherit;
}

.nav-search button {
  border: none;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-auth-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ===== 3-COLUMN GRID ===== */
.portal-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr) 255px;
  gap: 14px;
  align-items: start;
}

.portal-grid-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 16px;
  align-items: start;
}

/* ===== CARDS / BOXES ===== */
.card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  overflow: hidden;
}

.card-head {
  background: linear-gradient(90deg, #f0f8fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-primary);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-head h2, .card-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.card-head a.more-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-secondary);
  white-space: nowrap;
}

.card-body {
  padding: 12px 14px;
}

/* ===== SIDEBAR MENUS ===== */
.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-list li {
  border-bottom: 1px dashed #e6edf5;
}
.side-list li:last-child {
  border-bottom: none;
}

.side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 4px;
  font-size: 13px;
  color: var(--text-main);
  font-weight: 500;
}
.side-list a:hover {
  color: var(--brand-primary);
  padding-left: 6px;
}

.badge-count {
  background: #e6f4f7;
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

/* ===== ARTICLE LISTS & FEATURED ===== */
.hero-article {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}

.hero-thumb {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 8px;
  background: #e2e8f0;
  border: 1px solid var(--border-color);
}

.hero-title {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-title a {
  color: #0f3a60;
}
.hero-title a:hover {
  color: var(--brand-accent);
}

.meta-row {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

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

.article-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #e6edf5;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.article-list li:last-child {
  border-bottom: none;
}

.article-list a {
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.45;
}
.article-list a:hover {
  color: var(--brand-primary);
}

.article-date {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
}
.news-row.no-thumb {
  grid-template-columns: 1fr;
}
.news-row:last-child {
  border-bottom: none;
}
.news-thumb {
  width: 150px;
  height: 102px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #f1f5f9;
}

/* ===== RIGHT SIDEBAR WIDGETS ===== */
.cta-banner {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  margin-bottom: 9px;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}
.cta-banner.red { background: linear-gradient(135deg, #be123c, #e11d48); }
.cta-banner.blue { background: linear-gradient(135deg, #0369a1, #0284c7); }
.cta-banner.teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: 8px;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-playlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.video-playlist li {
  padding: 5px 0;
  border-bottom: 1px dashed #e6edf5;
  font-size: 12.5px;
}
.video-playlist li:last-child { border-bottom: none; }
.video-playlist button {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: var(--brand-primary);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  line-height: 1.4;
}
.video-playlist button:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

/* ===== ARTICLE DETAIL & PDF VIEWER ===== */
.article-content {
  font-size: 15px;
  line-height: 1.75;
  color: #1e293b;
  overflow-wrap: break-word;
}
.article-content img {
  display: block;
  margin: 12px auto;
  border-radius: 8px;
  max-height: 640px;
}
.article-content table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 12px 0;
  display: block;
  overflow-x: auto;
}
.article-content th, .article-content td {
  border: 1px solid var(--border-color);
  padding: 7px 10px;
}

.attach-box {
  background: #f0f9fb;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 16px 0;
}
.attach-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #cbd5e1;
}
.attach-item:last-child { border-bottom: none; }

.pdf-viewer-frame {
  width: 100%;
  height: 680px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-top: 10px;
  background: #f8fafc;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  justify-content: center;
}
.pagination a, .pagination span {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}
.pagination .active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* ===== BUTTONS & FORMS (ADMIN) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary { background: var(--brand-primary); color: #fff !important; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-danger { background: #dc2626; color: #fff !important; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline { background: #fff; border-color: var(--border-color); color: var(--text-main) !important; }
.btn-outline:hover { background: #f8fafc; border-color: var(--brand-primary); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

.form-group { margin-bottom: 14px; }
.form-label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13px; color: #334155; }
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(20, 108, 128, 0.14);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th, .admin-table td {
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
}

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 500;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ===== FOOTER ===== */
.portal-footer {
  margin-top: 20px;
  background: linear-gradient(135deg, #0e4c5c 0%, #146c80 100%);
  color: #e2f1f5;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
}

.portal-footer h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14.5px;
}

.portal-footer p, .portal-footer li {
  margin: 4px 0;
  font-size: 13px;
  color: #d6edf2;
}

.portal-footer a {
  color: #fff;
}

.footer-bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #b8dce4;
}

/* ===== FLOATING CONTACT ===== */
.float-contacts {
  position: fixed;
  right: 16px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}
.float-btn.zalo { background: #0068ff; }
.float-btn.fb { background: #0084ff; }
.float-btn.call { background: #c9064c; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .portal-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .portal-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .portal-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }
  .header-name { font-size: 17px; }
  .header-logo { width: 58px; height: 58px; }
  .header-contacts { align-items: flex-start; width: 100%; }

  .nav-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: 8px;
  }
  .nav-menu.open { display: flex; }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    margin-left: 12px;
  }
  .nav-dropdown li a { color: #fff; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .nav-search { flex: 1; }
  .nav-search input { width: 100%; }

  .portal-grid,
  .portal-grid-2col,
  .portal-right,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-article, .news-row {
    grid-template-columns: 1fr;
  }
  .news-thumb { width: 100%; height: 180px; }
  .float-contacts { right: 10px; bottom: 12px; }
}

/* ===== MODERN WYSIWYG EDITOR & AUTO-PDF STAGE ===== */
.wysiwyg-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.wysiwyg-toolbar button,
.tb-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.wysiwyg-toolbar button:hover,
.tb-upload-btn:hover {
  background: #e6f4f7;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.tb-upload-btn.pdf {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #be123c;
}
.tb-upload-btn.pdf:hover {
  background: #fee2e2;
  border-color: #be123c;
}
.tb-sep {
  width: 1px;
  height: 20px;
  background: #cbd5e1;
  margin: 0 2px;
}
.wysiwyg-surface {
  min-height: 280px;
  max-height: 560px;
  overflow-y: auto;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.7;
  outline: none;
}
.wysiwyg-surface.drag-over,
#pdfDropZone.drag-over {
  background: #e6f4f7 !important;
  outline: 2px dashed var(--brand-primary);
}
.wysiwyg-status {
  padding: 6px 12px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-primary);
}

.pdf-stage {
  border: 1px solid #bae6fd;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  margin: 14px 0 18px;
  box-shadow: var(--shadow-sm);
}
.pdf-stage:fullscreen {
  background: #0f172a;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.pdf-stage:fullscreen .pdf-viewer-frame {
  flex: 1;
  height: 100vh !important;
}
.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #e6f4f7 0%, #f8fafc 100%);
  border-bottom: 1px solid #bae6fd;
  font-size: 13px;
}
.pdf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: #f0f9fb;
  border-bottom: 1px solid #cbd5e1;
}
.pdf-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.pdf-tab.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* ===== SOCIAL SHARE BAR, ARTICLE TYPOGRAPHY & DRAG-DROP LAYOUT ===== */
.article-headline {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.38;
  color: #0f3a60;
  font-weight: 800;
}
.article-lead {
  font-weight: 600;
  color: #334155;
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border-left: 3px solid var(--brand-secondary);
  border-radius: 6px;
}
.article-content p {
  text-align: justify;
  margin: 0 0 12px;
}
.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.share-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  color: #fff !important;
}
.share-btn.fb { background: #1877f2; }
.share-btn.zalo { background: #0068ff; }
.share-btn.copy { background: #0f766e; }
.share-btn.print { background: #475569; }
.share-btn:hover { opacity: 0.9; }

.drag-layout-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drag-layout-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: grab;
}
.drag-layout-item.dragging {
  opacity: 0.5;
  border-color: var(--brand-primary);
  background: #e6f4f7;
}
.drag-handle {
  font-size: 16px;
  color: var(--brand-primary);
  user-select: none;
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; }
  .portal-shell { max-width: 100%; padding: 0; }
  .portal-grid-2col { grid-template-columns: 1fr; }
  .card-box { border: none; box-shadow: none; }
}
