/* Variant B — Classic đại học | Khoa SP Toán - Tin */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --brand-primary: #0072CE;
  --brand-primary-deep: #0b5cab;
  --brand-primary-dark: #084a8a;
  --brand-accent: #E31B23;
  --brand-accent-hover: #c4161d;
  --brand-light: #41A8F0;
  --brand-bg: #F5F6F8;
  --brand-card: #FFFFFF;
  --brand-text: #1a1d21;
  --brand-muted: #5c6570;
  --brand-border: #d8dde3;
  --font-sans: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", "Be Vietnam Pro", system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 28px rgba(11, 92, 171, .10);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, .10);
  --radius: 12px;
  --radius-pill: 999px;
  --transition: .28s ease;
  --header-navy: #031F42;
  --hero-navy: #0A1628;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--brand-text);
  background: var(--brand-bg);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-primary-deep); }
img { max-width: 100%; height: auto; }

.section-pad { padding: 5rem 0; }
.section-title {
  font-family: var(--font-display);
  color: var(--brand-primary-dark);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  text-transform: uppercase !important;
  margin-bottom: .4rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  background: var(--brand-accent);
  margin: .6rem auto 0;
}
.text-start .section-title::after,
.section-title.text-start::after { margin-left: 0; }
.section-subtitle { color: var(--brand-muted); font-size: .98rem; margin-bottom: 2rem; }
.divider-ornament {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  margin: 0 auto 2rem; color: var(--brand-primary); opacity: .7;
}
.divider-ornament::before, .divider-ornament::after {
  content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--brand-border), transparent);
}

/* ========== SPTT sticky glass header (overlays hero) ========== */
.b-site-header {
  --header-h: 72px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1040;
  height: var(--header-h);
  background: transparent;
  transition: height .3s ease, background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.b-site-header.is-scrolled {
  --header-h: 60px;
  background: rgba(3, 31, 66, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.b-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.b-brand {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none; color: #fff; flex-shrink: 0;
  position: relative; z-index: 2;
}
.b-brand:hover { color: #fff; }
.b-brand-mark {
  width: 44px; height: 44px; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  transition: width .3s ease, height .3s ease;
}
.b-site-header.is-scrolled .b-brand-mark { width: 38px; height: 38px; }
.b-brand-text .faculty {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.02em; color: #fff;
  margin: 0; line-height: 1.25;
}
.b-brand-text .uni {
  font-size: .72rem; color: rgba(255,255,255,.65);
  margin: 0; text-transform: uppercase; letter-spacing: .05em;
}
.b-nav-desktop {
  align-items: center;
  gap: .35rem;
  margin-left: auto !important;
}
.b-nav-list {
  display: flex; align-items: center; gap: .15rem;
  list-style: none; margin: 0; padding: 0;
}
.b-nav-list .nav-link {
  color: rgba(255,255,255,.9) !important;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: .5rem .9rem !important;
  background: transparent;
  border: 0;
  white-space: nowrap;
  transition: color .2s ease;
}
.b-nav-list .nav-link:hover,
.b-nav-list .nav-link:focus,
.b-nav-list .nav-link.show {
  color: #fff !important;
}
.b-nav-list .dropdown-toggle::after {
  display: inline-block;
  margin-left: .38rem;
  vertical-align: .15em;
  border-top-color: currentColor;
  opacity: .85;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
  transform-origin: 50% 50%;
}
.b-nav-list .dropdown-menu {
  background: rgba(10, 22, 40, .96);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.45);
  margin-top: 4px !important;
  padding: .45rem;
  min-width: 12rem;
  position: absolute;
}
.b-nav-list .nav-item.dropdown {
  position: relative;
}
.b-nav-list .nav-item.dropdown > .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
}
/* Desktop nav (d-xl-flex ≥1200px): open on hover with smooth in/out transition */
@media (min-width: 1200px) {
  .b-nav-list .dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.22s ease;
    transform-origin: top center;
    will-change: transform, opacity, visibility;
  }
  .b-nav-list .nav-item.dropdown:hover > .dropdown-menu,
  .b-nav-list .nav-item.dropdown:focus-within > .dropdown-menu,
  .b-nav-list .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .b-nav-list .nav-item.dropdown:hover > .dropdown-toggle::after,
  .b-nav-list .nav-item.dropdown:focus-within > .dropdown-toggle::after,
  .b-nav-list .dropdown-toggle.show::after,
  .b-nav-list .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
    color: #38bdf8;
  }
}
.b-nav-list .dropdown-item {
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  border-radius: 8px;
  padding: .55rem .85rem;
}
.b-nav-list .dropdown-item:hover,
.b-nav-list .dropdown-item:focus {
  background: rgba(0,114,206,.25);
  color: #fff;
}
.b-nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 0;
  padding: .45rem 1.2rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff !important;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.b-nav-cta:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.55);
  color: #fff !important;
  transform: translateY(-1px);
}
.b-nav-cta-solid {
  background: var(--brand-accent);
  color: #fff !important;
  border: none;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: .7rem 1.25rem;
  box-shadow: 0 6px 18px rgba(227,27,35,.3);
}
.b-nav-cta-solid:hover { background: var(--brand-accent-hover); color: #fff !important; }
.b-header-actions {
  display: flex; align-items: center; gap: .65rem;
  margin-left: .85rem;
  flex-shrink: 0;
}
.b-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  padding: 0; border: 0; background: transparent;
  color: #fff; cursor: pointer; border-radius: 10px;
  transition: background .2s ease;
}
.b-menu-toggle:hover { background: rgba(255,255,255,.1); }
.b-burger {
  display: flex; flex-direction: column; gap: 5px; width: 20px;
}
.b-burger span {
  display: block; height: 2px; width: 100%;
  background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.b-offcanvas {
  background: #0a1628;
  color: #fff;
  width: min(340px, 88vw);
}
.b-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.b-offcanvas .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-weight: 500;
  padding: .7rem 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.b-offcanvas .nav-link:hover { color: #fff !important; }
.b-offcanvas .b-offcanvas-toggle {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.9) !important;
  font-size: 1.05rem;
  font-weight: 600;
  padding: .7rem 0 !important;
  cursor: pointer;
}
.b-offcanvas .b-offcanvas-toggle[aria-expanded="true"] {
  color: #fff !important;
}
.b-offcanvas .b-offcanvas-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}
.b-offcanvas .b-offcanvas-toggle .fa-chevron-down {
  transition: transform .2s ease;
  opacity: .85;
  font-size: .85rem;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}
.b-offcanvas .b-offcanvas-sub {
  padding: 0 0 .35rem .75rem;
  border-left: 2px solid rgba(255,255,255,.15);
  margin: 0 0 .35rem .15rem;
}
.b-offcanvas .b-offcanvas-sub .nav-link {
  font-size: .92rem !important;
  font-weight: 500 !important;
  padding: .4rem 0 !important;
  color: rgba(255,255,255,.72) !important;
  border-bottom: 0 !important;
}
.b-offcanvas .b-offcanvas-sub .nav-link:hover {
  color: #fff !important;
}
.b-offcanvas-contact a { color: rgba(255,255,255,.75); }
.b-offcanvas-contact a:hover { color: #fff; }
.b-offcanvas-search .form-control {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: #fff;
}
.b-offcanvas-search .form-control::placeholder { color: rgba(255,255,255,.45); }
.b-offcanvas-search .form-control:focus {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 .2rem rgba(0,114,206,.25);
}

/* ========== Full-bleed hero slider (SPTT pattern) ========== */
.b-hero {
  position: relative;
  background: #0a1628;
  padding: 0;
  margin: 0;
}
.b-hero-carousel,
.b-hero .carousel-inner,
.b-hero .carousel-item {
  height: clamp(560px, 82vh, 900px);
  min-height: 560px;
}
.b-hero .carousel-item {
  background-size: cover;
  background-position: center;
  background-color: #0a1628;
}
.b-hero .carousel-item::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,22,40,.92) 0%, rgba(10,22,40,.55) 48%, rgba(10,22,40,.18) 100%),
    linear-gradient(180deg, transparent 55%, rgba(10,22,40,.55) 100%);
  z-index: 1;
}
.b-hero .carousel-caption {
  left: 0; right: 0; bottom: 0; top: 0;
  display: flex; align-items: center;
  text-align: left;
  z-index: 2;
  padding: 6.5rem 0 5.5rem;
  position: absolute;
  max-width: 100%;
}
.b-hero .carousel-caption > .container {
  width: 100%;
}
.b-hero .caption-inner {
  max-width: 860px;
}
.b-hero .hero-eyebrow {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin: 0 0 1.35rem;
}
.b-hero .hero-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
  word-break: normal;
  overflow-wrap: break-word;
}
.b-hero .hero-desc {
  color: rgba(255,255,255,.85);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  max-width: 42rem;
  margin: 0 0 2rem;
}
.b-hero .hero-actions {
  display: flex; flex-wrap: wrap; gap: .9rem;
}
.btn-hero-primary {
  display: inline-flex; align-items: center;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: .95rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  box-shadow: 0 12px 28px rgba(0,114,206,.35);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-hero-primary:hover {
  background: var(--brand-primary-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,114,206,.45);
}
.btn-hero-outline {
  display: inline-flex; align-items: center;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .95rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  backdrop-filter: blur(6px);
  transition: background .25s ease, border-color .25s ease;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

/* Bar indicators (centered bottom) — not Bootstrap dots */
.b-hero-indicators.carousel-indicators {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 2rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  width: auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.b-hero-indicators [data-bs-target] {
  width: 20px;
  height: 3px;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.3);
  opacity: 1;
  text-indent: -9999px;
  overflow: hidden;
  transition: width .45s ease, background .45s ease;
}
.b-hero-indicators [data-bs-target]:hover {
  background: rgba(255,255,255,.5);
}
.b-hero-indicators [data-bs-target].active {
  width: 40px;
  background: #fff;
}

/* Circular prev/next — bottom right */
.b-hero-controls {
  position: absolute;
  right: 1.5rem;
  bottom: 1.75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.b-hero-ctrl {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(10,22,40,.25);
  color: rgba(255,255,255,.75);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.b-hero-ctrl:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.b-hero .carousel-control-prev,
.b-hero .carousel-control-next { display: none; }

@media (min-width: 1200px) {
  .b-menu-toggle { display: none; }
  .b-header-actions { margin-left: 0; }
}

.btn-cta {
  background: var(--brand-accent);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(227, 27, 35, .25);
}
.btn-cta:hover { background: var(--brand-accent-hover); color: #fff; transform: translateY(-1px); }
.btn-brand {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: .6rem 1.35rem;
}
.btn-brand:hover { background: var(--brand-primary-deep); color: #fff; }
.btn-outline-brand {
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 600;
  background: transparent;
  border-radius: var(--radius-pill);
  padding: .55rem 1.3rem;
}
.btn-outline-brand:hover { background: var(--brand-primary); color: #fff; }

/* Enrollment ribbon */
.b-enroll {
  background: var(--brand-primary-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 1.75rem 0;
}
.b-enroll::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,.04) 12px,
    rgba(255,255,255,.04) 24px
  );
  pointer-events: none;
}
.b-enroll-ribbon {
  position: absolute; top: 0; left: 2rem;
  background: var(--brand-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .35rem .9rem;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
.b-enroll h3 { font-family: var(--font-display); font-size: 1.35rem; margin-top: 1.25rem; }
.b-enroll p { opacity: .9; margin-bottom: 0; }

/* About */
.b-about .about-media {
  position: relative;
  border: none !important;
  outline: none !important;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.b-about .about-media img {
  display: block;
  width: 100%;
  border: none !important;
  outline: none !important;
}
.b-about .about-features li {
  display: flex; gap: .65rem; margin-bottom: .65rem;
  font-size: .95rem;
}
.b-about .about-features i { color: var(--brand-primary); margin-top: .2rem; }

/* Programs */
.b-programs { background: #fff; }
.b-program-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-top: 4px solid var(--brand-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.b-program-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.b-program-card .card-img-wrap { height: 140px; overflow: hidden; }
.b-program-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.b-program-card .card-body { padding: 1.25rem; }
.b-program-card .program-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,114,206,.1); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem; font-size: 1.1rem;
}
.b-program-card h5 { font-family: var(--font-display); font-size: 1.05rem; color: var(--brand-primary-dark); }
.b-program-card p { font-size: .88rem; color: var(--brand-muted); }
.b-program-card .card-link { font-weight: 600; font-size: .88rem; }

/* Stats */
.b-stats {
  background: linear-gradient(180deg, #fff 0%, #eef4fa 100%);
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  padding: 3rem 0;
}
.b-stat-item {
  text-align: center;
  padding: 1.4rem 1.25rem;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.b-stat-item .stat-icon {
  width: 48px; height: 48px; margin: 0 auto .75rem;
  border-radius: 50%; background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.b-stat-item .stat-number, .b-stat-item .suffix {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brand-primary-dark);
}
.b-stat-item .stat-label { font-size: .85rem; color: var(--brand-muted); margin-top: .25rem; }

/* News */
.b-news-featured {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: #fff;
  height: 100%;
  overflow: hidden;
}
.b-news-featured .featured-img { height: 220px; overflow: hidden; }
.b-news-featured .featured-img img { width: 100%; height: 100%; object-fit: cover; }
.b-news-featured .featured-body { padding: 1.25rem 1.5rem; }
.b-news-featured h4 { font-family: var(--font-display); font-size: 1.15rem; }
.b-news-featured h4 a { color: var(--brand-primary-dark); }
.b-news-side {
  display: flex; gap: 1rem; padding: .9rem 0;
  border-bottom: 1px solid var(--brand-border);
}
.b-news-side:last-child { border-bottom: none; }
.b-news-side .side-thumb {
  width: 100px; height: 72px; flex-shrink: 0; overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
}
.b-news-side .side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.b-news-side h6 { font-size: .92rem; margin-bottom: .25rem; }
.b-news-side h6 a { color: var(--brand-text); }
.b-news-side h6 a:hover { color: var(--brand-primary); }
.news-meta { font-size: .78rem; color: var(--brand-muted); }
.b-news .news-tabs .nav-link {
  color: var(--brand-muted); font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .03em;
  border: none; border-bottom: 2px solid transparent; border-radius: 0;
  padding: .5rem .85rem;
}
.b-news .news-tabs .nav-link.active {
  color: var(--brand-primary-dark);
  border-bottom-color: var(--brand-accent);
  background: transparent;
}

/* Testimonials — mobile 1-up / desktop-tablet 2-up (dual carousels) */
.b-testimonials { background: #fff; }
.b-testimonials .carousel-inner { padding: 0 2.75rem 2.25rem; }
.b-testimonial {
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius);
  padding: 1.85rem;
  width: 100%;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
#testimonialsCarouselMobile .b-testimonial {
  max-width: 540px;
}
#testimonialsCarouselDesktop .b-testimonial {
  max-width: none;
}
.b-testimonial .quote-icon { color: var(--brand-accent); font-size: 1.4rem; margin-bottom: .75rem; }
.b-testimonial .quote-text { font-style: italic; font-size: .95rem; color: var(--brand-text); }
.b-testimonial .author { display: flex; gap: .85rem; align-items: center; margin-top: 1.25rem; }
.b-testimonial .author-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-primary); }
.b-testimonial .author-name { font-weight: 700; margin: 0; font-size: .92rem; }
.b-testimonial .author-role { font-size: .78rem; color: var(--brand-muted); margin: 0; }
.b-testimonials .carousel-control-prev,
.b-testimonials .carousel-control-next {
  width: 2.5rem;
}
.b-testimonials .carousel-control-prev-icon,
.b-testimonials .carousel-control-next-icon {
  filter: invert(30%) sepia(90%) saturate(2000%) hue-rotate(190deg);
  width: 1.5rem;
  height: 1.5rem;
}
.b-testimonial-indicators {
  position: relative;
  margin: 0 0 .5rem;
}
.b-testimonial-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  opacity: .35;
  border: 0;
}
.b-testimonial-indicators .active {
  opacity: 1;
}

/* Footer */
.b-footer {
  background: #0a2d4a;
  color: rgba(255,255,255,.85);
  padding-top: 3rem;
}
.b-footer h5 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--brand-accent);
  display: inline-block;
}
.b-footer a { color: rgba(255,255,255,.8); }
.b-footer a:hover { color: #fff; }
.b-footer .footer-contact li, .b-footer .footer-links li {
  margin-bottom: .5rem; font-size: .88rem;
  display: flex; gap: .6rem;
}
.b-footer .footer-links { list-style: none; padding: 0; }
.b-footer .social-links a {
  display: inline-flex; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); border-radius: 50%;
  margin-right: .4rem; color: #fff;
}
.b-footer .social-links a:hover { background: var(--brand-accent); }
.b-footer .footer-map {
  background: rgba(255,255,255,.08);
  border: 1px dashed rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 2rem 1rem; text-align: center; font-size: .85rem;
  min-height: 120px; display: flex; align-items: center; justify-content: center;
}
.b-footer-bottom {
  margin-top: 2.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem;
  text-align: center;
  background: rgba(0,0,0,.2);
}

.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-primary); color: #fff; border: none;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 1050; cursor: pointer;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-accent); }

@media (max-width: 1199.98px) {
  .b-brand-text .faculty { font-size: .95rem; }
  .b-header-actions .b-nav-cta { margin-left: 0; padding: .4rem 1rem; font-size: .75rem; }
}
@media (max-width: 991.98px) {
  .section-pad { padding: 2.75rem 0; }
  .section-subtitle { margin-bottom: 1.35rem; }
  .b-content { padding: 2.25rem 0 2.75rem; }
  .b-page-hero { padding: 5.5rem 0 1.75rem; min-height: 180px; }
  .b-stats { padding: 2rem 0; }
  .b-stat-item { padding: 1.1rem .9rem; }
  .b-footer { padding-top: 2.25rem; }
  .b-footer-bottom { margin-top: 1.75rem; }
  .b-hero-carousel,
  .b-hero .carousel-inner,
  .b-hero .carousel-item {
    height: clamp(520px, 78vh, 760px);
    min-height: 520px;
  }
  .b-hero .carousel-caption > .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .b-about .row { --bs-gutter-y: 1.25rem; }
  .b-testimonial { padding: 1.35rem; }
  .b-enroll { padding: 1.35rem 0; }
  .b-hero-controls { right: 1rem; bottom: 1.5rem; }
  .b-hero-ctrl { width: 42px; height: 42px; }
  .b-hero-indicators { bottom: 1.5rem; }
}
@media (max-width: 767.98px) {
  .section-pad { padding: 2.25rem 0; }
  .section-subtitle { margin-bottom: 1.1rem; }
  .b-content { padding: 1.75rem 0 2.25rem; }
  .b-content-card { padding: 1.25rem 1.15rem; }
  .b-sidebar-widget { padding: 1rem; margin-bottom: 1rem; }
  .b-page-hero { padding: 5rem 0 1.35rem; min-height: auto; }
  .b-page-hero .page-lead { margin-bottom: 0; }
  .b-stats { padding: 1.65rem 0; }
  .b-hero .carousel-caption {
    padding-top: 5.25rem;
    padding-bottom: 5rem;
  }
  .b-hero .carousel-caption > .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .b-hero .hero-eyebrow {
    font-size: .78rem;
    letter-spacing: .18em;
    margin-bottom: .75rem;
  }
  .b-hero .hero-title {
    font-size: clamp(1.55rem, 4.2vw, 2.2rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin-bottom: .85rem;
  }
  .b-hero .hero-desc {
    font-size: .95rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }
  .b-about .about-media { margin-bottom: .25rem; }
  .b-programs .row,
  .b-news .row,
  .b-footer .row { --bs-gutter-y: 1.15rem; }
  .b-testimonial { padding: 1.2rem; }
  .b-footer { padding-top: 2rem; }
  .b-footer-bottom { margin-top: 1.35rem; padding: .85rem 0; }
  .b-enroll { padding: 1.15rem 0; }
  .b-enroll h3 { font-size: 1.15rem; margin-top: 1rem; }
}
@media (max-width: 575.98px) {
  .b-brand-text .uni { display: none; }
  .section-pad { padding: 2rem 0; }
  .b-hero-carousel,
  .b-hero .carousel-inner,
  .b-hero .carousel-item {
    height: auto;
    min-height: 480px;
  }
  .b-hero .carousel-caption {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
  .b-hero .carousel-caption > .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .b-hero .hero-eyebrow {
    font-size: .72rem;
    letter-spacing: .12em;
    margin-bottom: .5rem;
    line-height: 1.35;
  }
  .b-hero .hero-title {
    font-size: clamp(1.35rem, 5.6vw, 1.7rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: .65rem;
    text-wrap: balance;
  }
  .b-hero .hero-desc {
    font-size: .88rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    opacity: .92;
  }
  .b-hero .hero-actions {
    gap: .65rem;
  }
  .b-hero .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: .6rem 1.25rem;
    font-size: .92rem;
  }
  .b-hero-indicators {
    bottom: 1.25rem;
  }
  .b-hero-controls { display: none; }
  .b-enroll-ribbon { left: 1rem; }
  .b-header-actions .b-nav-cta { display: none !important; }
}

/* ========== Inner pages: page-hero + content ========== */
:root {
  --brand-bg: #F8F9FA;
  --brand-card: #FFFFFF;
  --brand-text: #212529;
}

body.page-inner .b-site-header {
  /* same transparent-over-hero pattern; JS toggles is-scrolled */
}

.b-page-hero {
  position: relative;
  background: #0a1628;
  min-height: 220px;
  padding: 6.5rem 0 2.5rem;
  color: #fff;
  overflow: hidden;
}
.b-page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(3,31,66,.94) 0%, rgba(11,92,171,.75) 55%, rgba(0,114,206,.45) 100%),
    url('../images/banner-subpage.jpg') center 40%/cover no-repeat;
  z-index: 0;
}
.b-page-hero .container { position: relative; z-index: 1; }
.b-page-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: .75rem;
  font-size: .85rem;
}
.b-page-hero .breadcrumb-item a { color: rgba(255,255,255,.75); }
.b-page-hero .breadcrumb-item a:hover { color: #fff; }
.b-page-hero .breadcrumb-item.active { color: rgba(255,255,255,.95); }
.b-page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.45); }
.b-page-hero .page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}
.b-page-hero .page-lead {
  color: rgba(255,255,255,.78);
  margin: .5rem 0 0;
  max-width: 40rem;
  font-size: .95rem;
}

.b-content { padding: 3rem 0 4rem; }
.b-content-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1.85rem;
}
.b-content-card h2, .b-content-card h3 {
  font-family: var(--font-display);
  color: var(--brand-primary-dark);
  font-weight: 700;
}
.b-content-card h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.b-content-card h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: .75rem; }
.b-content-card p, .b-content-card li { color: var(--brand-text); font-size: .95rem; }
.prose-list { padding-left: 1.2rem; }
.prose-list li { margin-bottom: .45rem; }

/* Faculty cards */
.faculty-filters .btn {
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .85rem;
  margin: .2rem;
}
.faculty-filters .btn.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.b-faculty-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 1.5rem 1rem;
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}
.b-faculty-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.b-faculty-card .avatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 1rem;
  border: 3px solid var(--brand-primary);
  background: #e8f1fa;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--brand-primary); font-weight: 700;
}
.b-faculty-card .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.b-faculty-card h5 { font-family: var(--font-display); font-size: 1rem; margin-bottom: .25rem; color: var(--brand-primary-dark); }
.b-faculty-card .rank { font-size: .8rem; color: var(--brand-accent); font-weight: 600; }
.b-faculty-card .dept { font-size: .82rem; color: var(--brand-muted); margin-bottom: .75rem; }
.b-faculty-card .role-badge {
  display: inline-block;
  background: rgba(0,114,206,.1);
  color: var(--brand-primary-deep);
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  margin-bottom: .5rem;
}

/* News list */
.b-news-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}
.b-news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.b-news-card .thumb { height: 180px; overflow: hidden; }
.b-news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.b-news-card .body { padding: 1.15rem 1.25rem; }
.b-news-card h5 { font-family: var(--font-display); font-size: 1.02rem; }
.b-news-card h5 a { color: var(--brand-primary-dark); }
.b-sidebar-widget {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.b-sidebar-widget h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-primary-dark);
  border-bottom: 2px solid var(--brand-accent);
  display: inline-block;
  padding-bottom: .35rem;
  margin-bottom: 1rem;
}
.b-article-meta { font-size: .85rem; color: var(--brand-muted); margin-bottom: 1.25rem; }
.b-share-btns .btn { border-radius: var(--radius-pill); font-size: .82rem; }

/* Album */
.b-album-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.b-album-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.b-album-item:hover img { transform: scale(1.06); }
.b-album-item .overlay {
  position: absolute; inset: 0;
  background: rgba(3,31,66,.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease;
  color: #fff; font-size: 1.5rem;
}
.b-album-item:hover .overlay { opacity: 1; }

/* Contact */
.b-contact-info li {
  display: flex; gap: .75rem; margin-bottom: 1rem;
  font-size: .92rem;
}
.b-contact-info i {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,114,206,.1); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.b-map-embed {
  border: 0; border-radius: var(--radius);
  width: 100%; min-height: 360px;
  box-shadow: var(--shadow-sm);
}

/* Admissions */
.b-poster-area {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.b-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.b-video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* Program detail meta */
.b-meta-table { width: 100%; }
.b-meta-table th {
  width: 140px; color: var(--brand-muted); font-weight: 600;
  padding: .5rem 0; vertical-align: top; font-size: .9rem;
}
.b-meta-table td { padding: .5rem 0; font-size: .9rem; }

/* Staff roster list */
.b-roster-list { list-style: none; padding: 0; margin: 0; }
.b-roster-list li {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--brand-border);
  font-size: .92rem;
  align-items: baseline;
}
.b-roster-list .name { font-weight: 600; color: var(--brand-primary-dark); min-width: 14rem; }
.b-roster-list .email { color: var(--brand-muted); font-size: .85rem; }

/* Footer slogan */
.b-footer-slogan {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: .95rem;
  letter-spacing: .02em;
  margin-bottom: .75rem;
}

/* ——— Pagination (Classic Clean, Responsive & Visible Active Number) ——— */
.pagination {
  gap: 3px;
  align-items: center;
}
.pagination .page-item {
  margin: 0;
}
.pagination .page-link {
  color: var(--brand-primary, #004b87) !important;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px !important;
  margin: 0 1px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.pagination .page-link:hover:not(.disabled) {
  color: #0072ce !important;
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}
.pagination .page-item.active .page-link {
  color: #ffffff !important;
  background: var(--brand-primary, #004b87) !important;
  border-color: var(--brand-primary, #004b87) !important;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 75, 135, 0.25);
}
.pagination .page-item.disabled .page-link {
  color: #94a3b8 !important;
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
}
.pagination-sm .page-link {
  font-size: 0.78rem;
  padding: 0.2rem 0.45rem;
  min-width: 28px;
  height: 28px;
  border-radius: 5px !important;
}

/* Admin */
.admin-wrap { min-height: 100vh; background: #f0f2f5; }
.admin-sidebar {
  width: 260px; min-height: 100vh;
  background: #031F42; color: #fff;
  position: fixed; top: 0; left: 0; z-index: 100;
  padding: 1.25rem 0;
}
.admin-sidebar .brand {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1rem;
}
.admin-sidebar .brand strong { display: block; font-family: var(--font-display); }
.admin-sidebar .brand small { color: rgba(255,255,255,.55); }
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.75) !important;
  padding: .7rem 1.25rem !important;
  font-size: .9rem;
  border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.06);
  border-left-color: var(--brand-accent);
}
.admin-sidebar .nav-link i { width: 1.4rem; }
.admin-main { margin-left: 260px; }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--brand-border);
  padding: .85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-body { padding: 1.5rem; }
.admin-stat-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--brand-border);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.admin-stat-card .num {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 800;
  color: var(--brand-primary-dark);
}
.admin-stat-card .lbl { font-size: .82rem; color: var(--brand-muted); }
.admin-chart-bars {
  display: flex; align-items: flex-end; gap: .5rem;
  height: 160px; padding-top: 1rem;
}
.admin-chart-bars .bar {
  flex: 1; background: linear-gradient(180deg, var(--brand-light), var(--brand-primary));
  border-radius: 6px 6px 0 0; min-height: 20px;
  position: relative;
}
.admin-chart-bars .bar span {
  position: absolute; bottom: -1.4rem; left: 50%; transform: translateX(-50%);
  font-size: .65rem; color: var(--brand-muted); white-space: nowrap;
}
.admin-table-wrap {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.img-preview-box {
  width: 160px; height: 160px;
  border: 2px dashed var(--brand-border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #f8f9fa;
  color: var(--brand-muted);
}
.img-preview-box img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 991.98px) {
  .admin-sidebar { width: 100%; min-height: auto; position: relative; }
  .admin-main { margin-left: 0; }
}

/* Faculty cards */
.b-faculty-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 1.5rem 1rem;
  height: 100%;
  transition: box-shadow .28s ease, transform .28s ease;
}
.b-faculty-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.b-faculty-card .avatar {
  width: 88px; height: 88px; border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--brand-primary);
  background: #e8f1fa; color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
}
.b-faculty-card h5 { font-family: var(--font-display); font-size: .95rem; color: var(--brand-primary-dark); margin-bottom: .25rem; }
.b-faculty-card .rank { font-size: .78rem; color: var(--brand-accent); font-weight: 600; }
.b-faculty-card .dept { font-size: .8rem; color: var(--brand-muted); margin-bottom: .5rem; }
.b-faculty-card .role-badge {
  display: inline-block; background: rgba(0,114,206,.1); color: var(--brand-primary-deep);
  font-size: .7rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; margin-bottom: .4rem;
}
.faculty-filters .btn, .faculty-filters .btn { border-radius: 999px; font-weight: 600; font-size: .85rem; margin: .2rem; }
.faculty-filters .btn.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

/* News cards */
.b-news-card {
  background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); height: 100%;
  transition: box-shadow .28s ease, transform .28s ease;
}
.b-news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.b-news-card .thumb { height: 180px; overflow: hidden; }
.b-news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.b-news-card .body { padding: 1.15rem 1.25rem; }
.b-news-card h5 { font-family: var(--font-display); font-size: 1.02rem; }
.b-news-card h5 a { color: var(--brand-primary-dark); }
.news-meta, .b-article-meta { font-size: .78rem; color: var(--brand-muted); margin-bottom: .75rem; }

.b-sidebar-widget {
  background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm);
}
.b-sidebar-widget h6 {
  font-family: var(--font-display); font-weight: 700; color: var(--brand-primary-dark);
  border-bottom: 2px solid var(--brand-accent); display: inline-block;
  padding-bottom: .35rem; margin-bottom: 1rem;
}

.btn-outline-brand, .btn-outline-brand {
  border: 2px solid var(--brand-primary); color: var(--brand-primary);
  font-weight: 600; background: transparent; border-radius: 999px; padding: .45rem 1.1rem;
}
.btn-outline-brand:hover, .btn-outline-brand:hover { background: var(--brand-primary); color: #fff; }
.btn-brand, .btn-brand { background: var(--brand-primary); color: #fff; border: none; font-weight: 600; border-radius: 999px; padding: .55rem 1.25rem; }
.btn-brand:hover { background: var(--brand-primary-deep); color: #fff; }
.btn-cta, .btn-cta { background: var(--brand-accent); color: #fff; border: none; font-weight: 600; border-radius: 999px; padding: .7rem 1.5rem; }
.btn-cta:hover { background: var(--brand-accent-hover); color: #fff; }

.b-poster-area { background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-sm); }
.b-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.b-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.b-contact-info li { display: flex; gap: .75rem; margin-bottom: 1rem; font-size: .92rem; }
.b-contact-info i {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(0,114,206,.1); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.b-map-embed { border: 0; border-radius: var(--radius); width: 100%; min-height: 360px; box-shadow: var(--shadow-sm); }

.b-album-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; box-shadow: var(--shadow-sm);
}
.b-album-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.b-album-item:hover img { transform: scale(1.06); }
.b-album-item .overlay {
  position: absolute; inset: 0; background: rgba(3,31,66,.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease; color: #fff; font-size: 1.5rem;
}
.b-album-item:hover .overlay { opacity: 1; }

.b-share-btns .btn { border-radius: 999px; font-size: .82rem; margin-right: .25rem; }
.prose-list { padding-left: 1.2rem; }
.prose-list li { margin-bottom: .45rem; }

/* Admin */
.admin-wrap { min-height: 100vh; background: #f0f2f5; }
.admin-sidebar {
  width: 260px; min-height: 100vh; background: #031F42; color: #fff;
  position: fixed; top: 0; left: 0; z-index: 100; padding: 1.25rem 0;
}
.admin-sidebar .brand { padding: 0 1.25rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 1rem; }
.admin-sidebar .brand strong { display: block; font-family: var(--font-display); }
.admin-sidebar .brand small { color: rgba(255,255,255,.55); }
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.75) !important; padding: .7rem 1.25rem !important; font-size: .9rem;
  border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  color: #fff !important; background: rgba(255,255,255,.06); border-left-color: var(--brand-accent);
}
.admin-sidebar .nav-link i { width: 1.4rem; }
.admin-main { margin-left: 260px; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--brand-border);
  padding: .85rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
}
.admin-body { padding: 1.5rem; }
.admin-stat-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--brand-border);
  padding: 1.25rem; box-shadow: var(--shadow-sm); height: 100%;
}
.admin-stat-card .num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--brand-primary-dark); }
.admin-stat-card .lbl { font-size: .82rem; color: var(--brand-muted); }
.admin-chart-bars { display: flex; align-items: flex-end; gap: .5rem; height: 160px; padding-top: 1rem; }
.admin-chart-bars .bar {
  flex: 1; background: linear-gradient(180deg, var(--brand-light), var(--brand-primary));
  border-radius: 6px 6px 0 0; min-height: 20px; position: relative;
}
.admin-chart-bars .bar span {
  position: absolute; bottom: -1.4rem; left: 50%; transform: translateX(-50%);
  font-size: .65rem; color: var(--brand-muted); white-space: nowrap;
}
.admin-table-wrap {
  background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.img-preview-box {
  width: 160px; height: 160px; border: 2px dashed var(--brand-border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f8f9fa; color: var(--brand-muted);
}
.img-preview-box img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991.98px) {
  .admin-sidebar { width: 100%; min-height: auto; position: relative; }
  .admin-main { margin-left: 0; }
}

/* ——— Scroll reveal (IntersectionObserver) ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible,
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4,
  .reveal-delay-5 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}






/* =========================================================================
   Nested Submenu Flyout (Level 2) - Guaranteed Display
   ========================================================================= */
.dropdown-submenu {
  position: relative !important;
}

.dropdown-submenu > .dropdown-submenu-flyout {
  display: none !important;
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  margin-top: -6px !important;
  margin-left: 2px !important;
  min-width: 290px !important;
  background: rgba(10, 22, 40, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6) !important;
  padding: 6px !important;
  white-space: nowrap !important;
  z-index: 9999 !important;
  list-style: none !important;
}

.dropdown-submenu:hover > .dropdown-submenu-flyout,
.dropdown-submenu.show > .dropdown-submenu-flyout,
.dropdown-submenu > .dropdown-submenu-flyout.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.dropdown-submenu-flyout .dropdown-item {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.875rem !important;
  border-radius: 8px !important;
  padding: 0.6rem 0.9rem !important;
  display: block !important;
  transition: all 0.2s ease !important;
}

.dropdown-submenu-flyout .dropdown-item:hover,
.dropdown-submenu-flyout .dropdown-item:focus {
  background: rgba(0, 114, 206, 0.35) !important;
  color: #ffffff !important;
  padding-left: 1.15rem !important;
}

/* Hover bridge between level 1 item and flyout submenu */
.dropdown-submenu::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 8px;
  height: 100%;
}


/* =========================================================================
   Universal Subpage Header Spacing (Đảm bảo tách biệt hoàn toàn dưới Header cố định)
   ========================================================================= */
.b-page-hero {
  padding-top: 7.5rem !important; /* 120px: header 72px + 48px khoảng cách thoáng đẹp */
  padding-bottom: 2.75rem !important;
}

.b-page-banner {
  padding-top: 7.5rem !important;
  padding-bottom: 2.75rem !important;
}

@media (max-width: 991.98px) {
  .b-page-hero,
  .b-page-banner {
    padding-top: 6.5rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (max-width: 575.98px) {
  .b-page-hero,
  .b-page-banner {
    padding-top: 5.75rem !important;
    padding-bottom: 1.5rem !important;
  }
}


/* Footer Right Side: Social & Stats */
.footer-social-wrap {
  display: block;
}
.btn-footer-social {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff !important;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  font-size: 15px;
}
.btn-footer-social:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  color: #fff !important;
}
.btn-footer-social.social-fb {
  background: #1877f2;
}
.btn-footer-social.social-yt {
  background: #ff0000;
}
.btn-footer-social.social-zalo {
  background: #0068ff;
}
.btn-footer-social .zalo-label {
  font-weight: 800;
  font-size: 11px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.3px;
  line-height: 1;
}
.footer-stats-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  backdrop-filter: blur(4px);
}
.footer-stats-card .stats-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.footer-stats-card .stats-value {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.border-white-10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
@keyframes pulseOnline {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}
.pulse-online {
  animation: pulseOnline 1.8s infinite ease-in-out;
  display: inline-block;
}

/* =========================================================================
   MIT Lightbox Image Viewer - Modern Glassmorphism Styling
   ========================================================================= */
.mit-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  user-select: none;
}
.mit-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.mit-lightbox-header {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
  z-index: 10;
  gap: 15px;
}
.mit-lightbox-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.mit-lightbox-counter {
  background: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}
.mit-lightbox-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.mit-lightbox-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mit-lb-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}
.mit-lb-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  color: #ffffff;
}
.mit-lb-btn-download {
  background: #0284c7 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}
.mit-lb-btn-download:hover {
  background: #0369a1 !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4) !important;
}
.mit-lb-btn-close {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
  width: 40px;
  padding: 0;
}
.mit-lb-btn-close:hover {
  background: #dc2626 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: rotate(90deg);
}
.mit-lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 80px;
  overflow: hidden;
}
.mit-lightbox-img-wrapper {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.mit-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mit-lightbox-img.loaded {
  opacity: 1;
  transform: scale(1);
}
.mit-lightbox-img.zoomed {
  transform: scale(1.75);
  cursor: grab;
}
.mit-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  outline: none;
}
.mit-lb-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}
.mit-lb-prev { left: 20px; }
.mit-lb-next { right: 20px; }
.mit-lightbox-footer {
  padding: 15px 30px 25px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  text-align: center;
  z-index: 10;
}
.mit-lightbox-caption {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.mit-lightbox-spinner {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: mitLbSpin 0.8s linear infinite;
}
@keyframes mitLbSpin { to { transform: rotate(360deg); } }
@media (max-width: 768px) {
  .mit-lightbox-stage { padding: 10px; }
  .mit-lb-nav { width: 42px; height: 42px; font-size: 1rem; background: rgba(0,0,0,0.5); }
  .mit-lb-prev { left: 8px; }
  .mit-lb-next { right: 8px; }
  .mit-lb-btn span { display: none; }
  .mit-lb-btn { padding: 0 10px; }
  .mit-lightbox-img { max-height: calc(100vh - 160px); }
}
.lightbox-trigger, [data-lightbox], .album-card img, .post-detail img, .content-body img, .article-content img {
  cursor: zoom-in;
}

/* === BỐ CỤC DẠNG TRANG GIẤY CHUẨN ĐỒNG NHẤT (PAPER DOCUMENT LAYOUT) === */
.b-paper-layout-wrapper {
  background-color: #f4f6f9;
  background-image: radial-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 0);
  background-size: 24px 24px;
  min-height: 70vh;
  padding: 3rem 0 4.5rem;
}
.b-paper-sheet {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 35px -5px rgba(15, 23, 42, 0.08), 0 3px 8px rgba(15, 23, 42, 0.04);
  padding: 3rem 3rem 3.5rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (max-width: 991.98px) {
  .b-paper-sheet {
    padding: 2.25rem 2rem 2.75rem;
  }
}
@media (max-width: 767.98px) {
  .b-paper-layout-wrapper {
    padding: 1.5rem 0 3rem;
    background-size: 16px 16px;
  }
  .b-paper-sheet {
    padding: 1.5rem 1.25rem 2rem;
    border-radius: 14px;
    box-shadow: 0 6px 20px -3px rgba(15, 23, 42, 0.06);
  }
}

/* Header trang giấy */
.b-paper-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
}
.b-paper-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 114, 206, 0.08);
  color: #0072ce;
  border: 1px solid rgba(0, 114, 206, 0.15);
  margin-bottom: 1rem;
}
.b-paper-title {
  font-family: 'Plus Jakarta Sans', 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.85rem;
}
.b-paper-lead {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 0;
  font-weight: 400;
}

/* Nội dung trang giấy (Typography chuẩn công văn & học thuật) */
.b-paper-body {
  font-size: 1.03rem;
  line-height: 1.88;
  color: #1e293b;
  word-break: break-word;
}
.b-paper-body p {
  margin-bottom: 1.35rem;
}
.b-paper-body h2, .b-paper-body h3, .b-paper-body h4 {
  font-family: 'Plus Jakarta Sans', 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 0.95rem;
}
.b-paper-body h2 {
  font-size: 1.38rem;
  border-left: 4px solid #0072ce;
  padding-left: 0.85rem;
  margin-top: 2.25rem;
}
.b-paper-body h3 {
  font-size: 1.2rem;
  color: #1e3a8a;
}
.b-paper-body h4 {
  font-size: 1.08rem;
}
.b-paper-body ul, .b-paper-body ol {
  padding-left: 1.6rem;
  margin-bottom: 1.35rem;
}
.b-paper-body li {
  margin-bottom: 0.55rem;
}
.b-paper-body blockquote {
  border-left: 4px solid #94a3b8;
  background: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  color: #475569;
  font-style: italic;
  margin: 1.5rem 0;
}
.b-paper-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.25rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.b-paper-body table {
  width: 100%;
  margin-bottom: 1.75rem;
  border-collapse: collapse;
}
.b-paper-body table th, .b-paper-body table td {
  padding: 0.8rem 1rem;
  border: 1px solid #e2e8f0;
}
.b-paper-body table th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

/* Phần phân cách trước danh sách file (Chỉ giữ duy nhất 1 đường kẻ trang nhã) */
.b-paper-attachments-wrap {
  margin-top: 2.5rem;
  padding-top: 0;
  border-top: none;
}
.b-paper-attachments-wrap .page-attachments-section {
  border-top: 1px solid #e2e8f0 !important;
  margin-top: 0 !important;
  padding-top: 1.75rem !important;
}

/* Giữ tên menu cha luôn hiển thị và sáng rõ khi rê chuột vào dropdown */
@media (min-width: 1200px) {
  .b-nav-list .nav-item.dropdown:hover > .dropdown-toggle,
  .b-nav-list .nav-item.dropdown:focus-within > .dropdown-toggle {
    color: #38bdf8 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Đảm bảo toàn bộ nội dung trong trang giấy hiển thị 100% (không bị ẩn bởi .reveal) */
.b-paper-sheet .reveal,
.b-paper-body .reveal {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
.b-paper-body .card {
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  background: #f8fafc !important;
  margin-bottom: 1.5rem !important;
}
.b-paper-body .container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}



