/* =====================================================================
   HCMUE - Công nghệ Giáo dục
   Brand-aligned theme (Primary #124874 / Accent #CF373D)
===================================================================== */

:root {
  /* Brand */
  --hcmue-primary: #124874;
  --hcmue-primary-dark: #0a2b47;
  --hcmue-primary-600: #1a5a90;
  --hcmue-primary-100: #dbe7f1;
  --hcmue-primary-50: #e8f0f7;

  --hcmue-accent: #cf373d;
  --hcmue-accent-dark: #a82a30;
  --hcmue-accent-100: #fbd8d9;
  --hcmue-accent-50: #fcebec;

  /* Neutrals */
  --text-dark: #1a2332;
  --text-body: #4a5568;
  --text-muted: #8492a6;
  --bg-light: #f7f9fc;
  --bg-section: #f2f5f9;
  --border: #e2e8f0;
  --white: #ffffff;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(18, 72, 116, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 72, 116, 0.1);
  --shadow-lg: 0 20px 48px rgba(18, 72, 116, 0.15);

  /* Transition */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Gradient */
  --grad-brand: linear-gradient(135deg, #124874 0%, #1a5a90 55%, #cf373d 135%);
  --grad-primary: linear-gradient(135deg, #124874 0%, #1a5a90 100%);
  --grad-accent: linear-gradient(135deg, #cf373d 0%, #e04b51 100%);

  /* Layout */
  --container-max: 1440px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1rem; }

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

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

.container-xxl {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
}

/* ---------- Utility ---------- */
.text-primary-brand { color: var(--hcmue-primary) !important; }
.text-accent-brand { color: var(--hcmue-accent) !important; }
.bg-primary-brand { background: var(--hcmue-primary); color: var(--white); }
.bg-accent-brand { background: var(--hcmue-accent); color: var(--white); }
.bg-section { background: var(--bg-section); }
.bg-light-brand { background: var(--hcmue-primary-50); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hcmue-accent);
  margin-bottom: 1rem;
}
.section-tag::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--hcmue-accent);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-title .accent {
  color: var(--hcmue-accent);
}

.section-subtitle {
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.text-center-on-mobile { text-align: left; }
@media (max-width: 768px) {
  .text-center-on-mobile { text-align: center; }
}

/* ---------- Buttons ---------- */
.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-brand-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(18, 72, 116, 0.25);
}
.btn-brand-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 72, 116, 0.35);
}

.btn-brand-accent {
  background: var(--grad-accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(207, 55, 61, 0.25);
}
.btn-brand-accent:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(207, 55, 61, 0.35);
}

.btn-brand-outline {
  background: transparent;
  color: var(--hcmue-primary);
  border: 2px solid var(--hcmue-primary);
}
.btn-brand-outline:hover {
  background: var(--hcmue-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-brand-ghost {
  background: var(--white);
  color: var(--hcmue-primary);
  border: 1px solid var(--border);
}
.btn-brand-ghost:hover {
  background: var(--hcmue-primary-50);
  color: var(--hcmue-primary-dark);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.site-header .top-strip {
  background: var(--hcmue-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  padding: 0.45rem 0;
}
.site-header .top-strip .container-xxl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-header .top-strip a {
  color: rgba(255, 255, 255, 0.9);
}
.site-header .top-strip a:hover { color: var(--white); }
.site-header .top-strip .info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: 1;
  padding: 0.9rem 0;
  min-height: 84px;
  gap: 1.8rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand img {
  height: 52px;
  width: auto;
}
.navbar-brand .brand-text {
  line-height: 1.15;
  white-space: nowrap;
}
.navbar-brand .brand-text .dept {
  font-weight: 700;
  color: var(--hcmue-primary);
  font-size: 1.05rem;
  display: block;
}
.navbar-brand .brand-text .school {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: nowrap;
}
.nav-menu li a {
  display: inline-block;
  padding: 0.45rem 0.66rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.86rem;
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  position: relative;
}
.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--hcmue-primary);
  background: var(--hcmue-primary-50);
}

.nav-menu .has-submenu {
  position: relative;
}
.nav-menu .has-submenu > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-menu .has-submenu > a i {
  font-size: 0.75rem;
}
.nav-menu .submenu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s var(--ease);
  z-index: 999;
}
.nav-menu .submenu li a {
  display: block;
  padding: 0.52rem 0.7rem;
  font-size: 0.85rem;
}
.nav-menu .has-submenu:hover .submenu,
.nav-menu .has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--hcmue-primary);
  cursor: pointer;
}

@media (max-width: 1440px) {
  .site-header .top-strip { display: none; }
  .navbar-main { gap: 1rem; }
  .navbar-main { min-height: 72px; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 90%);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 0.25rem;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    transition: right 0.35s var(--ease);
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-menu li { width: 100%; }
  .nav-menu li a { display: block; padding: 0.8rem 1rem; font-size: 0.92rem; }
  .nav-menu .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0.25rem 1rem;
    min-width: 100%;
  }
  .nav-menu .submenu li a {
    padding: 0.6rem 1rem;
    color: var(--text-muted);
  }
  .nav-toggle { display: block; transform: translateZ(100px); }
  .nav-cta .btn-brand { display: none; }
  .navbar-brand .brand-text .school { display: none; }
  .navbar-brand img { height: 46px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(207, 55, 61, 0.12) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(18, 72, 116, 0.18) 0, transparent 45%),
    linear-gradient(135deg, #f7f9fc 0%, #e8f0f7 100%);
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(18, 72, 116, 0.08) 0, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--white);
  border: 1px solid var(--hcmue-primary-100);
  color: var(--hcmue-primary);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge i { color: var(--hcmue-accent); }

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  margin-bottom: 1.25rem;
}
.hero h1 .highlight {
  color: var(--hcmue-accent);
  display: inline-block;
  position: relative;
}
.hero h1 .highlight::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: rgba(207, 55, 61, 0.18);
  z-index: -1;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 560px) { .hero-stats .stat .lbl { font-size: 0.609rem !important; } }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stats .stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--hcmue-primary);
  font-family: "Be Vietnam Pro", sans-serif;
}
.hero-stats .stat .lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  position: relative;
}
.hero-visual .image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--hcmue-primary-50);
}
.hero-visual .image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual .float-card {
  position: absolute;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}
.hero-visual .float-card i {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--hcmue-accent-50);
  color: var(--hcmue-accent);
}
.hero-visual .float-card.c1 { top: 8%; left: -4%; }
.hero-visual .float-card.c2 { bottom: 12%; right: -6%; }
.hero-visual .float-card.c2 i { background: var(--hcmue-primary-50); color: var(--hcmue-primary); }

@media (max-width: 1440px) {
  .hero { height: fit-content !important; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-visual .float-card.c1,
  .hero-visual .float-card.c2 { display: none; }
  #banner { transform: scale(90%) !important; right: 0px !important; }
}

/* ---------- Services / 6 định hướng ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 992px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

#target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) { #target-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .card-link,
.service-card:hover ul li { color: var(--white); }
.service-card:hover ul li::marker { color: rgba(255, 255, 255, 0.95); }
.service-card:hover .card-icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}
.service-card:hover .card-num { color: rgba(255, 255, 255, 0.25); }

.service-card .card-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--hcmue-primary-50);
  color: var(--hcmue-primary);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: all 0.35s var(--ease);
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; transition: color 0.35s; }
.service-card p { font-size: 0.94rem; margin-bottom: 1.25rem; transition: color 0.35s; }
.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
}
.service-card ul li {
  color: var(--text-body);
  line-height: 1.65;
  transition: color 0.35s var(--ease);
}
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hcmue-accent);
  transition: color 0.35s;
}
.service-card .card-num {
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-size: 3rem;
  font-weight: 800;
  color: var(--hcmue-primary-100);
  line-height: 1;
  transition: color 0.35s;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 992px) { .about-grid { grid-template-columns: 1fr; } }

.about-visual {
  position: relative;
}
.about-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-visual .exp-card {
  position: absolute;
  right: -1rem; bottom: -1.5rem;
  background: var(--grad-accent);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about-visual .exp-card .num {
  font-size: 2.4rem; font-weight: 800; line-height: 1;
}
.about-visual .exp-card .lbl {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-dark);
}
.check-list li i {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--hcmue-primary-50);
  color: var(--hcmue-primary);
  font-size: 0.75rem;
}

/* ---------- Process / Lộ trình ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.process-grid.process-grid-four {
  grid-template-columns: repeat(4, 1fr);
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-image: linear-gradient(to right, var(--hcmue-primary) 50%, transparent 0);
  background-size: 16px 2px;
  background-repeat: repeat-x;
  z-index: 0;
}
@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-grid::before { display: none; }
}
@media (max-width: 992px) {
  .process-grid.process-grid-four {
    grid-template-columns: repeat(2, 1fr);
  }
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-step .step-icon {
  width: 96px; height: 96px;
  margin: 0 auto 1.5rem;
  background: var(--white);
  border: 2px solid var(--hcmue-primary-100);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2rem;
  color: var(--hcmue-primary);
  position: relative;
  transition: all 0.35s var(--ease);
}
.process-step .step-num {
  position: absolute;
  top: -6px; right: -6px;
  width: 32px; height: 32px;
  background: var(--hcmue-accent);
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 3px solid var(--white);
}
.process-step:hover .step-icon {
  background: var(--grad-primary);
  color: var(--white);
  border-color: transparent;
  transform: scale(1.05);
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.92rem; }

/* ---------- Tech chips (Portfolio thay thế) ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 992px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr; } }

.tech-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s var(--ease);
}
.tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--hcmue-primary);
  box-shadow: var(--shadow-md);
}
.tech-card .tech-icon {
  width: 58px; height: 58px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: var(--hcmue-primary-50);
  color: var(--hcmue-primary);
  flex-shrink: 0;
}
.tech-card:nth-child(even) .tech-icon {
  background: var(--hcmue-accent-50);
  color: var(--hcmue-accent);
}
.tech-card h4 { margin: 0 0 0.2rem; font-size: 1rem; color: var(--text-dark); }
.tech-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Counter ---------- */
.counter-section {
  background: var(--grad-brand);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.counter-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(207, 55, 61, 0.25) 0, transparent 50%);
}
.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1.5fr);
  gap: 1.5rem;
  position: relative;
}
@media (max-width: 1093px) { .counter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .counter-grid { grid-template-columns: 1fr; } }

.counter-item {
  text-align: center;
  padding: 1.25rem;
}
.counter-item .counter-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.6rem;
  backdrop-filter: blur(10px);
}
.counter-item .counter-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.counter-item .counter-num .unit { font-size: 1.5rem; }
.counter-item .counter-lbl {
  font-size: 0.9rem;
  opacity: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 992px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.team-card .thumb {
  aspect-ratio: 4/5;
  background: var(--hcmue-primary-50);
  position: relative;
  overflow: hidden;
}
.team-card .thumb img,
.team-card .thumb .placeholder {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.team-card:hover .thumb img { transform: scale(1.05); }
.team-card .thumb .placeholder {
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: var(--hcmue-primary-100);
  background: var(--hcmue-primary-50);
}
.team-card .info {
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
}
.team-card .info h4 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.team-card .info .role {
  font-size: 0.85rem;
  color: var(--hcmue-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.team-card .socials {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.team-card .socials a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--hcmue-primary-50);
  color: var(--hcmue-primary);
  display: grid; place-items: center;
  font-size: 0.82rem;
  transition: all 0.25s var(--ease);
}
.team-card .socials a:hover {
  background: var(--hcmue-accent);
  color: var(--white);
}

/* =====================================================================
   Faculty page — Đội ngũ giảng viên
   New component styles (prefix: .faculty-*)
   Keeps existing .team-* classes untouched for backward compat
===================================================================== */

/* -- Search / Filter toolbar -- */
.faculty-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.faculty-search-wrap {
  flex: 1 1 280px;
  position: relative;
}
.faculty-search-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.faculty-search-wrap input {
  width: 100%;
  padding: 0.72rem 1rem 0.72rem 2.6rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: all 0.25s var(--ease);
}
.faculty-search-wrap input:focus {
  outline: none;
  border-color: var(--hcmue-primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(18, 72, 116, 0.1);
}
.faculty-search-wrap input::placeholder { color: var(--text-muted); }

.faculty-filter-select {
  flex: 0 1 220px;
  padding: 0.72rem 2.2rem 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text-dark);
  background: var(--bg-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238492a6' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  appearance: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.faculty-filter-select:focus {
  outline: none;
  border-color: var(--hcmue-primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(18, 72, 116, 0.1);
}

.faculty-count {
  flex-shrink: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.faculty-count strong { color: var(--hcmue-primary); }

/* -- Grid -- */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1100px) { .faculty-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .faculty-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .faculty-grid { grid-template-columns: 1fr; } }

/* -- Lecturer card -- */
.lc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
}
.lc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Top gradient accent bar */
.lc-card::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--grad-brand);
  flex-shrink: 0;
}

/* Avatar area */
.lc-avatar-wrap {
  position: relative;
  padding: 2rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(160deg, var(--hcmue-primary-50) 0%, var(--white) 65%);
}
.lc-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(18, 72, 116, 0.18);
  background: var(--hcmue-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
}
.lc-card:hover .lc-avatar { transform: scale(1.06); }
.lc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lc-avatar-placeholder {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--hcmue-primary);
  line-height: 1;
  font-family: "Be Vietnam Pro", sans-serif;
  user-select: none;
}

/* Academic title badge */
.lc-academic-badge {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  background: var(--hcmue-primary-50);
  color: var(--hcmue-primary);
  border: 1px solid var(--hcmue-primary-100);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Info body */
.lc-body {
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}
.lc-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.lc-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--hcmue-accent-50);
  color: var(--hcmue-accent-dark, #a82a30);
  border: 1px solid var(--hcmue-accent-100);
  margin-bottom: 0.85rem;
}

.lc-expertise {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer actions */
.lc-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-light);
}
.lc-footer a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--hcmue-primary);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}
.lc-footer a:hover {
  background: var(--hcmue-primary);
  border-color: var(--hcmue-primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 72, 116, 0.25);
}
.lc-footer a.email-link:hover {
  background: var(--hcmue-accent);
  border-color: var(--hcmue-accent);
}

/* -- Skeleton loading -- */
.lc-skeleton {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.lc-skeleton::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--hcmue-primary-100);
}
@keyframes lc-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}
.sk-block {
  background: var(--hcmue-primary-100);
  border-radius: 6px;
  animation: lc-pulse 1.6s ease-in-out infinite;
}
.sk-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 1.75rem auto 0.75rem;
}
.sk-badge  { height: 22px; width: 72px;  margin: 0 auto 1rem; border-radius: 999px; }
.sk-name   { height: 18px; width: 70%;   margin: 0 auto 0.5rem; }
.sk-chip   { height: 20px; width: 55%;   margin: 0 auto 0.85rem; border-radius: 999px; }
.sk-line1  { height: 13px; width: 90%;   margin: 0 auto 0.4rem; }
.sk-line2  { height: 13px; width: 75%;   margin: 0 auto 0.4rem; }
.sk-line3  { height: 13px; width: 55%;   margin: 0 auto 1.25rem; }
.sk-footer {
  height: 52px;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}

/* -- Empty state -- */
.faculty-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
}
.faculty-empty .empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--hcmue-primary-50);
  color: var(--hcmue-primary);
  font-size: 2rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}
.faculty-empty h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.faculty-empty p  { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* -- Error state -- */
.faculty-error {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}
.faculty-error .error-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--hcmue-accent-50);
  color: var(--hcmue-accent);
  font-size: 1.8rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}
.faculty-error h4 { font-size: 1.1rem; color: var(--hcmue-accent); margin-bottom: 0.4rem; }
.faculty-error p  { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
.btn-retry {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--hcmue-primary);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn-retry:hover {
  background: var(--hcmue-primary-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 72, 116, 0.3);
}

/* -- Pagination -- */
.faculty-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.faculty-pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  display: grid;
  place-items: center;
}
.faculty-pagination button:hover:not(:disabled) {
  border-color: var(--hcmue-primary);
  color: var(--hcmue-primary);
  background: var(--hcmue-primary-50);
}
.faculty-pagination button.active {
  background: var(--hcmue-primary);
  border-color: var(--hcmue-primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(18, 72, 116, 0.3);
}
.faculty-pagination button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.faculty-pagination .pg-info {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0 0.5rem;
}

/* -- Info notice -- */
.faculty-notice {
  background: var(--hcmue-primary-50);
  border: 1px solid var(--hcmue-primary-100);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  margin-top: 3rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--hcmue-primary);
  font-weight: 500;
}
.faculty-notice i { flex-shrink: 0; }

/* -- Responsive toolbar -- */
@media (max-width: 600px) {
  .faculty-toolbar { flex-direction: column; align-items: stretch; }
  .faculty-filter-select { flex: 1; width: 100%; }
  .faculty-count { text-align: center; }
}

/* ---------- Testimonial / Lời nói ---------- */
.testimonial-section {
  background: var(--bg-section);
}
.testimonial-wrap {
  max-width: 880px;
  margin: 0 auto;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
  text-align: center;
}
.testimonial-card .quote-icon {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 54px; height: 54px;
  background: #00000000;
  color: var(--hcmue-primary);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.3rem;
}
.testimonial-card p.quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-body);
  margin: 1rem 0 2rem;
  line-height: 1.75;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.testimonial-card .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--hcmue-primary-50);
  display: grid; place-items: center;
  color: var(--hcmue-primary);
  font-size: 1.2rem;
  font-weight: 700;
}
.testimonial-card .author-info {
  text-align: left;
}
.testimonial-card .author-info h5 { margin: 0; font-size: 1rem; }
.testimonial-card .author-info span { font-size: 0.88rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .testimonial-card { padding: 2rem 1.25rem; }
  .testimonial-card p.quote { font-size: 1rem; }
}

/* ---------- Blog / News ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 992px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.blog-card .thumb {
  aspect-ratio: 16/10;
  background: var(--grad-primary);
  position: relative;
  overflow: hidden;
}
.blog-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .thumb .date-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--white);
  color: var(--hcmue-primary);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.blog-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.blog-card .meta i { color: var(--hcmue-accent); margin-right: 0.3rem; }
.blog-card h4 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.blog-card h4 a { color: var(--text-dark); }
.blog-card h4 a:hover { color: var(--hcmue-primary); }
.blog-card .excerpt { font-size: 0.92rem; margin-bottom: 1rem; flex: 1; }
.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hcmue-accent);
}

#blog-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(207, 55, 61, 0.32) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(18, 72, 116, 0.38) 0, transparent 45%),
    linear-gradient(135deg, #f7f9fc 0%, #e8f0f7 100%);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--hcmue-primary-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 4.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.3rem;
  padding-bottom: 3rem;
}
@media (max-width: 1403px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 771px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h5 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.footer-col h5::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--hcmue-accent);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.footer-col ul li a::before {
  content: "\203A";
  color: var(--hcmue-accent);
  font-weight: 700;
  transition: transform 0.25s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li a:hover::before { transform: translateX(3px); }

.footer-brand img {
  height: 64px;
  margin-bottom: 1rem;
  filter: none;
}
.footer-brand p { font-size: 0.92rem; line-height: 1.7; }

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}
.footer-contact li i {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--hcmue-accent);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: grid; place-items: center;
  transition: all 0.25s;
}
.footer-socials a:hover {
  background: var(--hcmue-accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}
.footer-bottom .legal {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom .legal a {
  color: rgba(255, 255, 255, 0.65);
}
.footer-bottom .legal a:hover { color: var(--white); }

/* ---------- Page banner (trang phụ) ---------- */
.page-banner {
  background:
    linear-gradient(135deg, rgba(18, 72, 116, 0.87), rgba(10, 43, 71, 0.9)),
    url("../images/campus/building-a-real.png") center / cover no-repeat;
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}
.page-banner h1 { color: var(--white); margin-bottom: 1rem; }
.page-banner .breadcrumb {
  display: inline-flex;
  gap: 0.5rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.page-banner .breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.page-banner .breadcrumb a:hover { color: var(--white); }
.page-banner .breadcrumb .sep { color: rgba(255, 255, 255, 0.5); }

/* Page banner: tiêu đề + breadcrumb phía trên ảnh (không đè, ảnh rõ nét) */
.page-banner--media-below {
  background: none;
  color: var(--text-body);
  padding: 2.25rem 0 0;
  text-align: left;
}
.page-banner--media-below .page-banner-top {
  margin-bottom: 1.25rem;
}
.page-banner--media-below h1 {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.page-banner--media-below .breadcrumb {
  background: var(--bg-section);
  border: 1px solid var(--border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.page-banner--media-below .breadcrumb a {
  color: var(--hcmue-primary-600);
}
.page-banner--media-below .breadcrumb a:hover {
  color: var(--hcmue-primary);
}
.page-banner--media-below .breadcrumb .sep {
  color: var(--text-muted);
}
.page-banner--media-below .breadcrumb span:last-child {
  color: var(--text-dark);
  font-weight: 500;
}
.page-banner--media-below .page-banner-figure {
  margin: 0 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--white);
  line-height: 0;
}
.page-banner--media-below .page-banner-figure img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

/* Trang chủ: banner ngành phía trên hero (ảnh rõ, không phủ nội dung) */
.home-top-banner {
  padding: 1.25rem 0 0;
}
.home-top-banner .page-banner-figure {
  margin: 0 0 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--white);
  line-height: 0;
}
.home-top-banner .page-banner-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Tabs (program.html) ---------- */
.nav-tabs-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.nav-tabs-brand button {
  background: transparent;
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.25s;
}
.nav-tabs-brand button.active,
.nav-tabs-brand button:hover {
  color: var(--hcmue-primary);
  border-bottom-color: var(--hcmue-accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Accordion ---------- */
.accordion-brand { display: flex; flex-direction: column; gap: 0.85rem; }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}
.accordion-header {
  padding: 1.15rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.02rem;
  gap: 1rem;
}
.accordion-header:hover { color: var(--hcmue-primary); }
.accordion-header i { transition: transform 0.3s; color: var(--hcmue-accent); }
.accordion-item.open .accordion-header i { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s var(--ease);
  padding: 0 1.5rem;
}
.accordion-item.open .accordion-body {
  max-height: 1200px;
  padding: 0 1.5rem 1.25rem;
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 992px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: all 0.25s;
}
.contact-info .info-item:hover {
  border-color: var(--hcmue-primary);
  box-shadow: var(--shadow-sm);
}
.contact-info .info-item i {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--hcmue-primary-50);
  color: var(--hcmue-primary);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.contact-info .info-item h5 { margin: 0 0 0.3rem; font-size: 1rem; }
.contact-info .info-item p { margin: 0; font-size: 0.92rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: all 0.25s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--hcmue-primary);
  box-shadow: 0 0 0 3px rgba(18, 72, 116, 0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- CTA block ---------- */
.cta-block {
  background: var(--grad-brand);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  margin: 3rem auto 0;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 50%);
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 { color: var(--white); margin-bottom: 0.85rem; }
.cta-block p { opacity: 0.92; margin-bottom: 2rem; max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------- Swiper navigation ---------- */
.swiper-button-prev,
.swiper-button-next {
  color: var(--hcmue-primary) !important;
  background: var(--white);
  width: 48px !important; height: 48px !important;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 1.1rem !important; font-weight: 800; }
.swiper-pagination-bullet-active { background: var(--hcmue-accent) !important; }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  background: var(--grad-accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s var(--ease);
  z-index: 900;
  font-size: 1rem;
}
.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover { transform: translateY(-3px); }

/* ---------- Loader / Partials fallback ---------- */
.partial-loader {
  min-height: 60px;
}

/* ---------- Media Gallery (Banner + Bìa + Posters) ---------- */
.media-banner {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
  background: var(--bg-section);
}
.media-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 992px) {
  .media-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .media-gallery-grid { grid-template-columns: 1fr; }
}

.media-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border: 1px solid var(--border);
}
.media-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.media-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}
.media-card .media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 43, 71, 0) 55%, rgba(10, 43, 71, 0.75) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  gap: 0.75rem;
}
.media-card:hover .media-overlay { opacity: 1; }
.media-card .media-label {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.media-card .media-zoom-ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hcmue-accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Lightbox */
.media-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 36, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.media-lightbox.open {
  display: flex;
  opacity: 1;
}
.media-lightbox .lightbox-inner {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: lightboxIn 0.3s var(--ease);
}
@keyframes lightboxIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.media-lightbox .lightbox-close,
.media-lightbox .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 2;
}
.media-lightbox .lightbox-nav:hover,
.media-lightbox .lightbox-close:hover {
  background: var(--hcmue-accent);
  transform: translateY(-50%) scale(1.08);
}
.media-lightbox .lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  transform: none;
}
.media-lightbox .lightbox-close:hover { transform: scale(1.08); }
.media-lightbox .lightbox-prev { left: 1.5rem; }
.media-lightbox .lightbox-next { right: 1.5rem; }
@media (max-width: 560px) {
  .media-lightbox .lightbox-prev { left: 0.5rem; }
  .media-lightbox .lightbox-next { right: 0.5rem; }
  .media-lightbox .lightbox-close { top: 0.75rem; right: 0.75rem; }
}
body.lightbox-open { overflow: hidden; }

/* Single poster block (careers / about / program) — tách khối, căn giữa */
.page-poster-block {
  padding-top: 0;
  padding-bottom: 0.5rem;
}
.page-poster-wrap {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.page-poster-wrap .media-card {
  max-width: 100%;
}
.page-poster-hint {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Applications hub ---------- */
.apps-hub {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.apps-list {
  display: grid;
  gap: 1rem;
}
.app-card {
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 1.1rem 1.15rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.app-card:hover,
.app-card--active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 90, 144, 0.35);
}
.app-card--active {
  background: linear-gradient(180deg, #fff, var(--hcmue-primary-50));
}
.app-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--grad-primary);
  color: #fff;
  font-size: 1.2rem;
}
.app-card__body {
  display: grid;
  gap: 0.3rem;
}
.app-card__body strong {
  color: var(--text-dark);
  font-size: 1rem;
}
.app-card__body span {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.55;
}
.apps-viewer-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
}
.apps-viewer-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.apps-viewer-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #050b15;
  min-height: 720px;
}
.apps-viewer-frame iframe {
  width: 100%;
  height: 720px;
  border: 0;
  display: block;
  background: #050b15;
}
@media (max-width: 1100px) {
  .apps-hub {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .apps-viewer-head {
    flex-direction: column;
  }
  .apps-viewer-frame,
  .apps-viewer-frame iframe {
    min-height: 560px;
    height: 560px;
  }
}
