:root {
  --navy: #0a3d66;
  --navy-dark: #062544;
  --navy2: #135f96;
  --green: #1a8fd1;
  --green-dark: #1573ad;
  --yellow: #d8a13a;
  --text: #071b2e;
  --muted: #5a6b84;
  --border: #dce7f0;
  --bg-alt: #eaf4fb;
  --shadow: 0 24px 60px -30px rgba(9, 48, 84, 0.42);
  --shadow-sm: 0 12px 30px -18px rgba(9, 48, 84, 0.35);

  --success: #1a8f5a;
  --success-bg: rgba(26, 143, 90, 0.12);
  --warning: #b8860b;
  --warning-bg: rgba(216, 161, 58, 0.16);
  --danger: #b91c1c;
  --danger-bg: #fef2f2;

  /* Aliases matching the design reference's token names, kept in sync with the values above */
  --ink: var(--text);
  --steel: var(--muted);
  --line: var(--border);
  --mist: var(--bg-alt);
  --paper: #fff;
  --gold: var(--yellow);
  --blue: var(--green);
  --blue-d: var(--green-dark);
  --maxw: 1360px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
}

h1, h2, h3, .serif {
  font-family: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 26px;
}

a { text-decoration: none; color: inherit; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.site-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 500;
  color: var(--text);
}

.main-nav a:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inline-form { display: inline; }

/* User avatar dropdown */
.user-menu { position: relative; }

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  font: inherit;
  color: var(--text);
}
.user-menu-trigger:hover { background: var(--bg-alt); }

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--navy));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-avatar-lg { width: 44px; height: 44px; font-size: 17px; }

.user-menu-names { display: flex; flex-direction: column; line-height: 1.25; }
.user-menu-name { font-weight: 500; white-space: nowrap; }
.user-menu-role { font-size: 11px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.user-menu-caret { font-size: 11px; color: var(--muted); }

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 42, 92, 0.16);
  padding: 8px;
  z-index: 30;
}

.user-menu.open .user-dropdown { display: block; }

.user-dropdown-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 14px;
}
.user-dropdown-name { margin: 0; font-weight: 600; font-size: 14px; }
.user-dropdown-email { margin: 2px 0 0; font-size: 13px; color: var(--muted); word-break: break-all; }

.user-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.user-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 8px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
}
.user-dropdown-item:hover { background: var(--bg-alt); }
.user-dropdown-item-danger { color: #b91c1c; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 15px;
  white-space: nowrap;
}

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { text-decoration: underline; }

.btn-lg { padding: 15px 32px; font-size: 16.5px; border-radius: 10px; }

.btn-block { width: 100%; }

/* Page banner (trang con: Giải pháp, Tư vấn phòng Lab, Ngày hội & Cuộc thi, Khoá học, Liên hệ) —
   ảnh sạch full-width, không đè chữ; tiêu đề/mô tả nằm riêng bên dưới. */
.page-banner { position: relative; }
.page-banner-photo { width: 100%; height: calc(100vh - 96px); min-height: 560px; overflow: hidden; position: relative; }
.page-banner-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-banner-photo-placeholder {
  background: linear-gradient(120deg, #062544, #135f96 55%, #0b4470);
  display: flex; align-items: center; justify-content: center;
}
.page-banner-photo-placeholder .hexlayer { position: absolute; inset: 0; opacity: .5; color: rgba(255, 255, 255, .12); }

.page-banner-intro { padding: 56px 0 48px; text-align: center; background: #fff; }
.page-banner-intro .eyebrow { justify-content: center; }
.page-banner-intro h1 { color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; margin: 16px 0 0; line-height: 1.3; }
.page-banner-intro h1 .accent { color: var(--yellow); font-style: italic; }
.page-banner-intro p.sub { color: var(--muted); font-size: 1.05rem; margin: 18px auto 0; max-width: 56ch; }
.page-hero-cta { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 700px) {
  .page-banner-photo { height: 260px; }
  .page-banner-intro { padding: 40px 0 32px; }
}

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  color: var(--navy);
  font-size: 30px;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--green);
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-cta { text-align: center; margin-top: 36px; }

.page-title { color: var(--navy); margin-bottom: 30px; }

.empty-state { text-align: center; color: var(--muted); }

/* Course cards */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.course-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 42, 92, 0.12);
}

.course-thumb {
  height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

.course-thumb-image { background-size: cover; background-position: center; }

.course-body { padding: 18px; }
.course-body h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.course-provider { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.course-rating { color: var(--yellow); font-size: 14px; margin: 0 0 8px; }
.course-rating span { color: var(--muted); margin-left: 4px; }
.course-price { font-weight: 600; color: var(--green); margin: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 200px);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #135f96, #062544);
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.gallery-item img, .gallery-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.08); }

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 14, 26, .8) 0%, rgba(3, 14, 26, .18) 55%, transparent 75%);
  transition: opacity .3s ease;
  z-index: 1;
}
.gallery-item:hover::before { opacity: .85; }

.gallery-item span {
  position: relative;
  z-index: 2;
  font-size: .96rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

.gallery-large { grid-row: span 2; }
.gallery-wide { grid-column: span 2; background: linear-gradient(135deg, var(--navy), var(--green)); }

.gallery-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.gallery-list-grid .gallery-item { height: 280px; }

/* Article cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 42, 92, 0.12);
}

.article-thumb-link { display: block; }

.article-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--navy), var(--green));
}

.article-body { padding: 18px; }
.article-date { color: var(--muted); font-size: 13px; }
.article-body h3 { margin: 6px 0; font-size: 17px; }
.article-body h3 a { color: var(--text); }
.article-body h3 a:hover { color: var(--navy); }
.article-summary {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-more { padding: 0; }
.article-more:hover { text-decoration: underline; }

/* Article detail */
.article-detail { max-width: 760px; }
.article-back { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; transition: gap .2s; }
.article-back:hover { gap: 11px; text-decoration: none; }
.article-detail h1 { color: var(--navy); margin: 0 0 8px; }
.article-detail-date { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.article-detail-image {
  position: relative;
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.article-detail-image .hexlayer { color: rgba(255, 255, 255, .14); }
.article-detail-content { white-space: pre-line; line-height: 1.75; font-size: 1.02rem; color: #33465a; }
.article-source {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  word-break: break-all;
}
.article-source a { color: var(--blue); font-weight: 500; }
.article-source a:hover { text-decoration: underline; }

/* Course detail */
.course-detail {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.course-detail-thumb {
  position: relative;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.course-detail-thumb .hexlayer { color: rgba(255, 255, 255, .14); }
.course-detail-thumb .course-cat { top: auto; bottom: 18px; }

.course-detail-body h1 { color: var(--navy); margin-top: 0; }
.course-description { margin-top: 20px; white-space: pre-line; line-height: 1.75; color: #33465a; }

.course-materials {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.course-materials h3 { margin-top: 0; font-size: 16px; color: var(--navy); }
.course-materials ul { list-style: none; padding: 0; margin: 0; }
.course-materials li { margin-bottom: 8px; }
.course-materials a { color: var(--blue); font-weight: 600; }
.course-materials a:hover { text-decoration: underline; }

/* Info / step cards (service pages) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.info-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  background: #fff;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #d3ddec; }
.info-card-ic {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--green), #38b6f1);
  box-shadow: 0 10px 20px -8px rgba(26, 143, 209, .5);
  transition: transform .3s ease;
}
.info-card:hover .info-card-ic { transform: scale(1.08) rotate(-4deg); }
.info-card h3 { color: var(--navy); margin: 0 0 8px; font-size: 17px; }
.info-card p { color: var(--muted); margin: 0; font-size: 14px; }
.info-card p a { color: var(--navy); font-weight: 600; white-space: nowrap; }
.info-card p a:hover { text-decoration: underline; }

/* Solution showcase: image + numbered timeline */
.solution-showcase {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
}

.solution-showcase-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  box-shadow: 0 14px 30px rgba(15, 42, 92, 0.12);
}
.solution-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.solution-showcase-image:hover img { transform: scale(1.05); }

.solution-showcase-image.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  padding: 20px;
  border: 2px dashed var(--border);
  box-shadow: none;
}
.solution-showcase-image.empty code {
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.solution-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.solution-timeline::before {
  content: '';
  position: absolute;
  left: 37px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: var(--border);
}

.solution-timeline-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 14px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.solution-timeline-item:hover { background: var(--bg-alt); transform: translateX(6px); }

.solution-timeline-number {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.solution-timeline-item:hover .solution-timeline-number {
  background: var(--navy);
  color: #fff;
  transform: scale(1.08);
}

.solution-timeline-content h3 { margin: 0 0 6px; color: var(--navy); font-size: 17px; }
.solution-timeline-content p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.solution-timeline-content a { color: var(--green); font-weight: 600; white-space: nowrap; }
.solution-timeline-content a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .solution-showcase { grid-template-columns: 1fr; }
  .solution-showcase-image { aspect-ratio: 16 / 10; }
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-card h3 { color: var(--navy); margin: 0 0 8px; font-size: 16px; }
.step-card p { color: var(--muted); margin: 0; font-size: 14px; }

/* Profile cards (team & partners) */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 42, 92, 0.12);
}

.profile-card-slide { width: 280px; flex-shrink: 0; }

.profile-photo-ring {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 4px solid var(--navy);
  padding: 4px;
  background: #fff;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green), var(--navy));
  color: #fff;
  font-weight: 700;
  font-size: 28px;
}

.profile-ring-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid #fff;
}

.profile-name {
  color: var(--navy);
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.profile-role {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.4;
}

.profile-badge {
  display: block;
  background: rgba(20, 148, 220, 0.1);
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.profile-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
.profile-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.profile-checklist li:last-child { margin-bottom: 0; }
.profile-checklist .check-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* Partner logo variant of the profile ring (rounded square avoids clipping wordmark logos) */
.partner-logo-ring {
  border-radius: 20px;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.partner-logo-ring img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.partner-logo-ring .profile-avatar { border-radius: 16px; font-size: 18px; }

/* Team tabs (Ban lãnh đạo / Hội đồng chuyên gia) */
.team-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.team-tab {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.team-tab:hover { transform: translateY(-2px); border-color: var(--navy); }
.team-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.team-panel { display: none; }
.team-panel.active { display: block; animation: teamPanelFade 0.35s ease; }

@keyframes teamPanelFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Leadership spotlight card */
.leadership-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 32px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--green) 100%);
  border-radius: 20px;
  padding: 44px 48px;
  color: #fff;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 20px;
}
.leadership-spotlight:last-child { margin-bottom: 0; }

.leadership-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 26px);
  pointer-events: none;
}

.leadership-spotlight-text { position: relative; z-index: 1; }
.leadership-spotlight-photo { position: relative; z-index: 1; display: flex; justify-content: center; }

.leadership-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.leadership-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--yellow);
}

.leadership-spotlight-text h3 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
}

.leadership-role {
  margin: 0 0 16px;
  font-size: 15px;
  opacity: 0.9;
}

.leadership-bio {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--yellow);
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.92;
  max-width: 480px;
}

.leadership-photo-ring {
  width: 200px;
  height: 200px;
  border-width: 5px;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  animation: leadershipGlow 3s ease-in-out infinite;
}
.leadership-photo-ring .profile-avatar { font-size: 46px; }

@keyframes leadershipGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.35); }
  50% { box-shadow: 0 0 0 14px rgba(250, 204, 21, 0); }
}

@media (max-width: 640px) {
  .leadership-spotlight {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
  }
  .leadership-spotlight-photo { order: -1; }
  .leadership-eyebrow { justify-content: center; }
  .leadership-bio { margin: 0 auto; text-align: left; }
}

/* Horizontal sliding carousel (IG-style) */
.carousel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 16px;
  flex: 1;
  scrollbar-width: thin;
}

.carousel-track > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.carousel-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.carousel-btn:hover { background: var(--bg-alt); }

.form-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.admin-scope-note {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 24px;
}
.admin-scope-note strong { color: var(--navy); }

.form-success {
  background: rgba(20, 148, 220, 0.1);
  color: var(--green);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

/* Profile page */
.profile-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #062544 0%, #135f96 55%, #0b4470 100%);
  color: #fff;
  padding: 56px 0;
}
.profile-banner .hexlayer { opacity: .5; color: rgba(255, 255, 255, .09); }
.profile-banner-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; }
.profile-banner-avatar { position: relative; flex-shrink: 0; }

.profile-avatar-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .06);
}
.profile-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }

.avatar-upload-btn {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 0;
  cursor: pointer;
}
.avatar-upload-btn:hover { background: var(--bg-alt); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-form-hint { color: var(--muted); font-size: 13px; margin: -8px 0 16px; }
.profile-banner-inner h1 { margin: 8px 0 4px; font-size: 26px; }
.profile-banner-inner p { margin: 0; opacity: 0.85; }
.profile-role-badge { background: rgba(255,255,255,0.2); color: #fff; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.profile-col { display: flex; flex-direction: column; gap: 24px; }

.profile-card-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
}
.profile-card-box h2 { margin-top: 0; font-size: 18px; color: var(--navy); }

.profile-form { max-width: none; padding: 0; border: none; }
.profile-form label { display: block; margin-bottom: 16px; font-weight: 500; font-size: 14px; }
.profile-form input, .profile-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
.profile-form input:disabled { background: var(--bg-alt); color: var(--muted); }

.profile-joined { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.profile-stats-grid { grid-template-columns: repeat(2, 1fr); }

/* Footer */
.site-footer { background: var(--navy-dark); color: #cbd5e1; padding: 50px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand .logo { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 12px; }
.footer-col h4 { color: #fff; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: 8px; color: #cbd5e1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  font-size: 13px;
  text-align: center;
}

/* Floating contact actions */
.float-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 42, 92, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.float-btn:hover { transform: translateY(-3px) scale(1.05); }

.float-btn-top {
  background: var(--navy);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.float-btn-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.float-btn-email {
  background: var(--green);
  animation: floatPulse 2.5s ease-in-out infinite;
}
.float-btn-email:hover { animation-play-state: paused; }

.float-btn-chat { background: #fff; font-size: 22px; padding: 8px; box-sizing: border-box; }
.float-btn-chat img { width: 100%; height: 100%; object-fit: contain; }

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 148, 220, 0.45), 0 6px 18px rgba(15, 42, 92, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(20, 148, 220, 0), 0 6px 18px rgba(15, 42, 92, 0.3); }
}

@media (max-width: 640px) {
  .float-actions { right: 16px; bottom: 16px; }
  .float-btn { width: 46px; height: 46px; font-size: 18px; }
}

/* Chat widget (chatbot AI) */
.chat-panel {
  display: none;
  flex-direction: column;
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 340px;
  height: 460px;
  max-height: calc(100vh - 130px);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 1000;
}
.chat-panel.open { display: flex; }
.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.chat-panel-title { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 15px;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.chat-panel-header button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .85);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 4px;
}
.chat-panel-header button:hover { color: #fff; }
.chat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-alt, #f2f8fc);
}
.chat-msg {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.chat-msg-user { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; white-space: pre-line; }
.chat-msg-bot, .chat-msg-typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg-typing { color: var(--steel); font-style: italic; }
.chat-msg-bot p { margin: 0 0 8px; }
.chat-msg-bot p:last-child { margin-bottom: 0; }
.chat-msg-bot ul { margin: 2px 0 8px; padding-left: 18px; }
.chat-msg-bot ul:last-child { margin-bottom: 0; }
.chat-msg-bot li { margin-bottom: 4px; }
.chat-msg-bot li:last-child { margin-bottom: 0; }
.chat-msg-bot strong { color: var(--navy); }
.chat-panel-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-panel-input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-family: inherit;
  min-width: 0;
}
.chat-panel-input button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-panel-input button:hover { background: var(--green-dark); }

@media (max-width: 640px) {
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 82px; }
}

/* Modal đăng ký tư vấn */
.contact-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 37, 68, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.contact-modal-overlay.open { display: flex; }
.contact-modal {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 40px 36px 34px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
}
.contact-modal-ic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-d));
  color: #fff;
}
.contact-modal h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; text-align: center; }
.contact-modal > p { margin: 0 0 24px; color: var(--muted); font-size: 14px; text-align: center; }
.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mist);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.contact-modal-close:hover { background: var(--line); color: var(--navy); }
.contact-modal label { display: block; margin-bottom: 16px; font-weight: 600; font-size: .86rem; color: var(--navy); }
.contact-modal .auth-input-wrap input {
  display: block;
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: .94rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color .2s;
}
.contact-modal textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: .94rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color .2s;
  box-sizing: border-box;
}
.contact-modal input:focus, .contact-modal textarea:focus { outline: none; border-color: var(--blue); }

/* Contact page */
.contact-vrec-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-vrec-grid { grid-template-columns: 1fr; }
}

.contact-highlight { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-highlight:last-child { margin-bottom: 0; }
.contact-highlight-ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); color: var(--blue);
}
.contact-highlight h4 { margin: 0 0 4px; color: var(--navy); font-size: 15.5px; }
.contact-highlight p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.contact-highlight p a { color: var(--blue); font-weight: 600; white-space: nowrap; }
.contact-highlight p a:hover { text-decoration: underline; }

.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contact-info-head {
  background: var(--blue);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  padding: 18px 28px;
}
.contact-info-body { padding: 28px; }
.contact-info-org { margin: 0 0 20px; color: var(--navy); font-weight: 700; font-size: 14px; letter-spacing: .02em; }

.contact-info-list { display: flex; flex-direction: column; gap: 18px; }
.contact-info-row { display: flex; align-items: flex-start; gap: 12px; line-height: 1.55; font-size: 14.5px; color: var(--text); }
.contact-info-row svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.contact-info-row a { color: var(--text); }
.contact-info-row a:hover { color: var(--blue); }

.contact-map-link {
  display: inline-block;
  margin-top: 26px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--blue);
}
.contact-map-link:hover { text-decoration: underline; }

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }
.contact-form-card > p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.contact-form-card label { display: block; margin-bottom: 16px; font-weight: 600; font-size: .86rem; color: var(--navy); }
.contact-form-card .auth-input-wrap input {
  display: block;
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: .94rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color .2s;
}
.contact-form-card textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: .94rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color .2s;
  box-sizing: border-box;
}
.contact-form-card input:focus, .contact-form-card textarea:focus { outline: none; border-color: var(--blue); }

/* Admin */
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.admin-tile {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  background: #fff;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.admin-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 42, 92, 0.12); border-color: var(--green); }
.admin-tile h3 { color: var(--navy); margin: 0 0 8px; }
.admin-tile p { color: var(--muted); margin: 0; font-size: 14px; }

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-toolbar-left .page-title { margin: 0; }
.admin-search-form {
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-search-form input {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  min-width: 220px;
}
.admin-search-form input:focus { outline: none; border-color: var(--green); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-neutral { background: var(--bg-alt); color: var(--muted); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }

.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  white-space: nowrap;
}
.admin-table th { color: var(--muted); font-weight: 600; }
.admin-table-actions { display: flex; gap: 8px; white-space: nowrap; }

.admin-table-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
@media (max-width: 900px) {
  .admin-table-truncate { max-width: 140px; }
}

.btn-danger { color: #b91c1c; }
.btn-link-danger {
  background: none;
  border: none;
  color: #b91c1c;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
}

.admin-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  max-width: 640px;
}
.admin-form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 14px;
}
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="url"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
.admin-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.checkbox-label { display: flex !important; align-items: center; gap: 8px; }
.checkbox-label input { width: auto; }

.admin-preview-image {
  max-width: 200px;
  border-radius: 8px;
  margin: -8px 0 16px;
  display: block;
}

.admin-logo-preview {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.admin-logo-preview img { max-height: 70px; width: auto; }

.settings-page-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.settings-page-block summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  cursor: pointer;
  background: var(--mist);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background 0.15s ease;
}
.settings-page-block summary:hover { background: #e3f0fa; }
.settings-page-block[open] > summary { border-bottom: 1px solid var(--border); }
.settings-page-block summary::-webkit-details-marker { display: none; }
.settings-page-block summary::after {
  content: '⌄';
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s ease;
}
.settings-page-block[open] summary::after { transform: rotate(180deg); }
.settings-page-block .settings-page-form {
  max-width: none;
  border: none;
  border-radius: 0;
  padding: 22px;
  margin: 0;
}

/* Accordion lồng bên trong (vd: 4 ảnh khu vực, 4 trang Hero) */
.settings-sub-block {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-alt);
}
.settings-sub-block:last-child { margin-bottom: 0; }
.settings-sub-block summary {
  padding: 13px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
  background: #fff;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background 0.15s ease;
}
.settings-sub-block summary:hover { background: var(--mist); }
.settings-sub-block[open] > summary { border-bottom: 1px solid var(--border); }
.settings-sub-block summary::-webkit-details-marker { display: none; }
.settings-sub-block summary::after {
  content: '⌄';
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.25s ease;
}
.settings-sub-block[open] summary::after { transform: rotate(180deg); }
.settings-sub-form {
  max-width: none;
  border: none;
  padding: 18px 16px;
  margin: 0;
  background: #fff;
}
.settings-sub-form label { display: block; margin-bottom: 14px; font-weight: 500; font-size: 14px; }
.settings-sub-form input[type="text"],
.settings-sub-form input[type="file"],
.settings-sub-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.admin-preview-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-avatar-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.admin-materials-list { margin-bottom: 20px; }
.admin-materials-list ul { list-style: none; padding: 0; margin: 8px 0 0; }
.admin-materials-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.admin-upload-forms { align-items: start; margin-bottom: 40px; }
.admin-upload-form h3 { margin-top: 0; font-size: 16px; color: var(--navy); }

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.admin-media-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.admin-media-card img, .admin-media-card video {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.admin-media-card p { padding: 10px 14px 0; margin: 0; font-size: 14px; font-weight: 500; }

.admin-hero-slides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.admin-hero-slide-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.admin-hero-slide-item img { width: 100%; height: 120px; object-fit: cover; display: block; }
.admin-hero-slide-item .inline-form { display: block; padding: 8px; }
.admin-hero-slide-item .btn { width: 100%; }

.admin-count-badge {
  background: var(--mist);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
}

.admin-media-card-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 10px 14px 14px; }
.admin-media-edit { position: relative; flex: 1; }
.admin-media-edit summary { list-style: none; }
.admin-media-edit summary::-webkit-details-marker { display: none; }
.admin-media-edit-form {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 16px;
}
.admin-media-edit-form label { display: block; margin-bottom: 12px; font-weight: 500; font-size: 13px; }
.admin-media-edit-form input[type="text"], .admin-media-edit-form input[type="file"] {
  display: block; width: 100%; margin-top: 6px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 13px; box-sizing: border-box;
}

.btn-icon {
  background: transparent;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.btn-icon:hover { background: var(--bg-alt); }
.btn-icon.btn-danger:hover { background: #fef2f2; }

.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--muted);
}
.role-badge-admin { background: rgba(20, 148, 220, 0.12); color: var(--green); }

.admin-form-actions { display: flex; gap: 12px; margin-top: 8px; }

.admin-section-heading {
  color: var(--navy);
  font-size: 18px;
  margin: 40px 0 16px;
}

.admin-chart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 28px;
}
.chart-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.chart-bar-row:last-child { margin-bottom: 0; }
.chart-bar-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.chart-bar-track {
  height: 18px;
  background: var(--mist);
  border-radius: 4px;
  overflow: hidden;
}
.chart-bar-fill {
  height: 100%;
  min-width: 4px;
  background: var(--green);
  border-radius: 4px;
  transition: width 0.5s ease, background 0.2s ease;
}
.chart-bar-fill.accent-blue { background: var(--green); }
.chart-bar-fill.accent-green { background: var(--success); }
.chart-bar-fill.accent-amber { background: var(--warning); }
.chart-bar-row:hover .chart-bar-fill.accent-blue { background: var(--green-dark); }
.chart-bar-row:hover .chart-bar-fill.accent-green { background: #146b45; }
.chart-bar-row:hover .chart-bar-fill.accent-amber { background: #8f6a08; }
.chart-bar-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(20, 148, 220, 0.5);
  animation: live-pulse 1.6s infinite;
}
.live-indicator-off { color: var(--muted); }
.live-indicator-off .live-dot { background: var(--muted); animation: none; }

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 148, 220, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(20, 148, 220, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 148, 220, 0); }
}

.stat-flash { animation: stat-flash 0.9s ease; }
@keyframes stat-flash {
  0% { color: var(--green); }
  100% { color: var(--navy); }
}

/* Admin shell: sidebar + topbar (redesign) */
.admin-shell {
  display: flex;
  min-height: 100vh;
  --adm-bg: #F6F7FA;
  --adm-panel: #fff;
  --adm-border: #E6E8EF;
  --adm-ink: #10121F;
  --adm-ink-2: #565B72;
  --adm-muted: #9498AC;
  --adm-sidebar: #0D1020;
  --adm-sidebar-line: rgba(255,255,255,.07);
  --adm-sidebar-text: #8B8FA8;
  --adm-sidebar-text-active: #fff;
  --adm-accent: #3654F4;
  --adm-accent-soft: #EEF1FE;
  --adm-amber: #B8842E;
  --adm-amber-soft: #FBF2E4;
  --adm-shadow: 0 1px 2px rgba(16,18,31,.04), 0 8px 20px rgba(16,18,31,.05);
  --adm-radius-lg: 16px;
  --adm-radius-md: 11px;
  font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--adm-ink);
}

.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--adm-sidebar);
  color: var(--adm-sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-brand { padding: 4px 10px 20px; border-bottom: 1px solid var(--adm-sidebar-line); margin-bottom: 14px; }
.admin-brand-logo { display: block; }
.admin-brand-logo .site-logo-img { height: 34px; }
.admin-brand-logo .wm { color: #fff; }
.admin-brand-logo .tag { color: #7d81a0; }
.admin-brand-sub { font-size: 10px; color: #5B5F78; font-weight: 700; letter-spacing: 1.2px; margin-top: 8px; }

.admin-sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }

.admin-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--adm-sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
}
.admin-sidebar-nav a:hover { background: rgba(255,255,255,.05); color: #DADCEC; }
.admin-sidebar-nav a.active { background: rgba(54,84,244,.16); color: var(--adm-sidebar-text-active); font-weight: 600; }
.admin-sidebar-nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--adm-accent); }

.admin-nav-section-title {
  margin: 16px 12px 6px;
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4C5070;
}
.admin-nav-section-title:first-child { margin-top: 2px; }

.admin-nav-icon { width: 17px; height: 17px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.admin-nav-group { display: flex; flex-direction: column; }
.admin-nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 4px 18px;
  padding-left: 12px;
  border-left: 1px solid var(--adm-sidebar-line);
}
.admin-nav-submenu a {
  padding: 8px 10px;
  border-radius: 6px;
  color: #7d81a0;
  font-size: 12.5px;
  font-weight: 500;
}
.admin-nav-submenu a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.admin-sidebar-home-link {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: auto 2px 0;
  padding: 12px;
  border-radius: 9px;
  border-top: 1px solid var(--adm-sidebar-line);
  padding-top: 18px;
  margin-top: 14px;
  color: var(--adm-sidebar-text);
  font-size: 13.5px;
  font-weight: 600;
}
.admin-sidebar-home-link:hover { color: #fff; }

.admin-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--adm-ink);
}

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.admin-topbar {
  min-height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--adm-border);
  background: var(--adm-panel);
}

.admin-topbar-left { min-width: 0; }
.admin-crumb { font-size: 12px; color: var(--adm-muted); font-weight: 500; margin-bottom: 4px; }
.admin-crumb b { color: var(--adm-ink-2); font-weight: 600; }
.admin-topbar-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--adm-ink); letter-spacing: -.2px; }

.admin-topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.admin-search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--adm-panel); border: 1px solid var(--adm-border);
  border-radius: 10px; padding: 8px 12px; width: 210px; color: var(--adm-muted);
}
.admin-search-box input { border: none; outline: none; font-size: 13px; font-family: inherit; width: 100%; background: transparent; color: var(--adm-ink); }
.admin-search-ic { width: 15px; height: 15px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-icon-btn {
  width: 36px; height: 36px; border-radius: 10px; background: var(--adm-panel); border: 1px solid var(--adm-border);
  display: flex; align-items: center; justify-content: center; color: var(--adm-ink-2); cursor: pointer; flex-shrink: 0;
}
.admin-icon-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-divider-v { width: 1px; height: 26px; background: var(--adm-border); }

.admin-content { padding: 26px 32px 48px; background: var(--adm-bg); flex: 1; }

@media (max-width: 900px) {
  .admin-search-box { display: none; }
}

/* User menu chip trong topbar admin — vuông bo góc thay vì tròn, khớp tông màu mới */
.admin-shell .user-avatar { border-radius: 9px; background: var(--adm-accent); }
.admin-shell .user-avatar-lg { border-radius: 12px; }
.admin-shell .user-menu-trigger:hover { background: var(--adm-bg); }
.admin-shell .user-menu-name { color: var(--adm-ink); }
.admin-shell .user-menu-role { color: var(--adm-muted); }
.admin-shell .user-dropdown { border-color: var(--adm-border); box-shadow: var(--adm-shadow); }
.admin-shell .user-dropdown-divider { background: var(--adm-border); }
.admin-shell .user-dropdown-item:hover { background: var(--adm-bg); }

/* ===== Dashboard admin (redesign) — class riêng adm-*, không dùng chung với profile.ejs ===== */
.adm-section-title { font-size: 15px; font-weight: 800; color: var(--adm-ink); margin: 0 0 13px; letter-spacing: -.1px; }

.adm-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 12px; margin-bottom: 28px; }
.adm-stat-card { background: var(--adm-panel); border: 1px solid var(--adm-border); border-radius: var(--adm-radius-lg); padding: 16px 16px 15px; box-shadow: var(--adm-shadow); }
.adm-stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.adm-stat-icon-box { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--adm-border); background: var(--adm-accent-soft); color: var(--adm-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adm-stat-icon-box.amber { background: var(--adm-amber-soft); color: var(--adm-amber); }
.adm-stat-icon-box svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.adm-stat-label { font-size: 12px; font-weight: 600; color: var(--adm-ink-2); }
.adm-stat-num { font-size: 25px; font-weight: 800; color: var(--adm-ink); letter-spacing: -.4px; }
.adm-stat-num sup { font-size: 13px; font-weight: 600; color: var(--adm-muted); margin-left: 1px; }

.adm-qa-panel { background: var(--adm-panel); border: 1px solid var(--adm-border); border-radius: var(--adm-radius-lg); box-shadow: var(--adm-shadow); overflow: hidden; margin-bottom: 28px; }
.adm-qa-grid { display: grid; grid-template-columns: 1fr 1fr; }
.adm-qa-row { display: flex; align-items: center; gap: 13px; padding: 14px 18px; border-bottom: 1px solid var(--adm-border); color: inherit; text-decoration: none; transition: background .12s; }
.adm-qa-grid .adm-qa-row:nth-child(odd) { border-right: 1px solid var(--adm-border); }
.adm-qa-row:hover { background: #FAFBFD; }
.adm-qa-icon-box { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--adm-border); background: var(--adm-accent-soft); color: var(--adm-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adm-qa-icon-box svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.adm-qa-title { display: block; font-size: 13.5px; font-weight: 700; color: var(--adm-ink); margin-bottom: 2px; }
.adm-qa-desc { display: block; font-size: 12px; color: var(--adm-muted); line-height: 1.4; }
.adm-qa-chev { margin-left: auto; width: 16px; height: 16px; flex-shrink: 0; color: var(--adm-muted); stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  .adm-qa-grid { grid-template-columns: 1fr; }
  .adm-qa-grid .adm-qa-row:nth-child(odd) { border-right: none; }
}

.adm-content-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: stretch; margin-bottom: 28px; }
@media (max-width: 980px) { .adm-content-row { grid-template-columns: 1fr; } }
.adm-panel { background: var(--adm-panel); border: 1px solid var(--adm-border); border-radius: var(--adm-radius-lg); padding: 22px 22px 18px; box-shadow: var(--adm-shadow); }

.adm-chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.adm-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .4px; color: var(--adm-muted); text-transform: uppercase; }
.adm-chart-title { font-size: 14.5px; font-weight: 800; color: var(--adm-ink); margin-top: 2px; }
.adm-chart-total { font-size: 12px; color: var(--adm-ink-2); font-weight: 600; text-align: right; }
.adm-chart-total b { font-size: 18px; color: var(--adm-ink); font-weight: 800; display: block; }

.adm-grid-wrap { position: relative; padding-top: 2px; }
.adm-grid-lines { position: absolute; left: 82px; right: 0; top: 0; bottom: 20px; display: flex; justify-content: space-between; pointer-events: none; }
.adm-grid-lines span { width: 1px; background: var(--adm-border); }
.adm-grid-axis { position: relative; left: 82px; width: calc(100% - 82px); display: flex; justify-content: space-between; font-size: 10.5px; color: var(--adm-muted); font-weight: 600; margin-top: 4px; }

.adm-bar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; position: relative; z-index: 1; }
.adm-bar-row:last-child { margin-bottom: 0; }
.adm-bar-label { width: 82px; flex-shrink: 0; display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--adm-ink-2); }
.adm-bar-label svg { width: 14px; height: 14px; color: var(--adm-muted); flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.adm-bar-track { flex: 1; height: 8px; background: #EEF0F5; border-radius: 100px; overflow: hidden; }
.adm-bar-fill { height: 100%; border-radius: 100px; background: var(--adm-accent); transition: width .5s ease; }
.adm-bar-value { width: 26px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--adm-ink-2); flex-shrink: 0; }

.adm-gauge-wrap { display: flex; flex-direction: column; align-items: center; padding-bottom: 2px; }
.adm-gauge-svg { width: 172px; height: 100px; }
.adm-gauge-svg path:last-child { transition: stroke-dashoffset .6s ease; }
.adm-gauge-num { font-size: 30px; font-weight: 800; color: var(--adm-ink); margin-top: -40px; letter-spacing: -.5px; }
.adm-gauge-num sub { font-size: 13px; font-weight: 600; color: var(--adm-muted); }
.adm-gauge-caption { font-size: 11.5px; color: var(--adm-muted); font-weight: 600; margin-top: 3px; }
.adm-panel-divider { height: 1px; background: var(--adm-border); margin: 20px 0; }

.adm-stack-bar { display: flex; width: 100%; height: 12px; border-radius: 100px; overflow: hidden; margin-bottom: 14px; }
.adm-stack-seg { height: 100%; }
.adm-legend { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.adm-legend-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--adm-ink-2); padding: 3px 0; }
.adm-legend-dot { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.adm-legend-row span { margin-left: auto; font-weight: 700; color: var(--adm-ink); }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}

.admin-stat-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.admin-stat-card.accent-blue { border-left-color: var(--green); }
.admin-stat-card.accent-green { border-left-color: var(--success); }
.admin-stat-card.accent-amber { border-left-color: var(--warning); }
.admin-stat-card.accent-red { border-left-color: var(--danger); }
.admin-stat-icon {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 30px;
  opacity: 0.15;
  line-height: 1;
}
.admin-stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.admin-stat-value { font-size: 26px; font-weight: 700; color: var(--navy); }

.admin-content .admin-table-wrap,
.admin-content .admin-form { background: #fff; }

.admin-content .admin-table { background: transparent; }
.admin-content .admin-table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.admin-content .admin-table-wrap .admin-table { border-radius: 0; }

/* Học tập: trang học (course-player) */
.player-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}
.player-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.player-back {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  font-size: 14px;
}
.player-back:hover { color: var(--green); }

.player-progress { margin-bottom: 20px; }
.player-progress-track {
  height: 8px;
  background: var(--mist);
  border-radius: 999px;
  overflow: hidden;
}
.player-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.player-progress span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--steel);
  font-weight: 600;
}

.player-week {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.player-week:last-of-type { margin-bottom: 0; }
.player-week-summary {
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: var(--mist);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.player-week-summary::-webkit-details-marker { display: none; }
.player-week-summary::before { content: '▸'; display: inline-block; margin-right: 6px; transition: transform .15s ease; color: var(--steel); }
.player-week[open] .player-week-summary::before { transform: rotate(90deg); }
.player-week-body { padding: 12px 12px 6px; }

.player-chapter-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.player-topics {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: var(--bg-alt);
  border-radius: 8px;
  list-style: none;
}
.player-topics li { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.player-cat { margin-bottom: 16px; }
.player-cat:last-child { margin-bottom: 4px; }
.player-cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.player-cat-head > span:last-child { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--steel); }
.player-cat-badge {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700;
}
.player-cat-badge.cat-lecture, .player-cat-badge.cat-interaction { background: var(--blue); }
.player-cat-badge.cat-practice, .player-cat-badge.cat-exam { background: var(--navy); }
.player-cat-empty { font-size: 12.5px; color: var(--muted); font-style: italic; padding: 4px 10px 8px; margin: 0; }
.player-materials {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.player-materials h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--steel);
}
.player-materials a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 2px;
}
.player-materials a:hover { background: var(--mist); }
.player-lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 2px;
  transition: background 0.15s ease;
}
.player-lesson:hover { background: var(--mist); }
.player-lesson.active { background: rgba(26, 143, 209, 0.1); color: var(--navy); font-weight: 600; }
.player-lesson-icon { font-size: 13px; opacity: 0.75; flex-shrink: 0; }
.player-lesson-title { flex: 1; line-height: 1.35; }
.player-lesson-check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.player-lesson.done .player-lesson-title { color: var(--steel); }

.player-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.player-lesson-heading { color: var(--navy); margin-top: 0; margin-bottom: 20px; }
.player-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #051726;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.player-video-wrap iframe,
.player-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-lesson-content {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  white-space: pre-line;
}
.player-lesson-actions { margin-top: 4px; }


/* Admin: nội dung khoá học (chương/bài học) */
.admin-lesson-list { margin: 4px 0 12px; }
.admin-lesson-type-icon { margin-right: 6px; }
.admin-form-hint { font-size: 13px; color: var(--steel); font-style: italic; margin: -8px 0 14px; }
.settings-sub-form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px;
    display: none;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .user-menu-names { display: none; }
  .course-detail { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 140px); }
  .gallery-large { grid-row: span 1; }
  .footer-inner { grid-template-columns: 1fr; }

  .admin-sidebar-toggle { display: block; }
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 40;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-topbar { padding: 0 16px; }
  .admin-content { padding: 20px; }
  .user-dropdown { right: -16px; }

  .profile-grid { grid-template-columns: 1fr; }
  .profile-banner-inner { flex-direction: column; text-align: center; }

  .player-layout { grid-template-columns: 1fr; }
  .player-sidebar { position: static; max-height: none; }
}
