/* ==========================================================================
   择校通 - 现代化多级页面与路由样式表
   Design System & Subpage Views Stylesheet
   ========================================================================== */

:root {
  /* Brand Palette - Modern Royal Blue */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fa;
  --primary-400: #60a5fa;
  --primary-500: #2563eb; /* Main Brand Blue */
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --primary-800: #1e3a8a;
  --primary-900: #172554;

  /* Accent Colors */
  --accent-orange: #ff7d00;
  --accent-orange-light: #fff3e6;
  --accent-orange-hover: #e86e00;
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #ecfeff;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #f5f3ff;
  --accent-amber: #f59e0b;

  /* Neutral & Base */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(37, 99, 235, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 30px -10px rgba(37, 99, 235, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Multi-View / Page Routing System
   ========================================================================== */
.page-view {
  display: none;
  min-height: calc(100vh - 76px - 320px);
}

.page-view.active {
  display: block;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Breadcrumb Navigation */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 24px 0 10px;
  font-weight: 500;
}

.page-breadcrumb a {
  color: var(--primary-600);
  font-weight: 600;
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

.subpage-hero-banner {
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 50%, var(--bg-main) 100%);
  padding: 40px 0 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.subpage-title-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.subpage-title-box h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.subpage-title-box p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  cursor: pointer;
}

.brand-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-title .main-name {
  background: linear-gradient(135deg, #0f172a, var(--primary-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  white-space: nowrap;
  line-height: 1.2;
}

.brand-title .tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-sub);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap !important;
  word-break: keep-all !important;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
  background-color: var(--primary-50);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.btn-orange {
  background: linear-gradient(135deg, #ff8a14, var(--accent-orange));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 125, 0, 0.35);
}

.btn-orange:hover {
  background: linear-gradient(135deg, #ffa03b, #ff7d00);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 125, 0, 0.45);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-sub);
}

.btn-outline:hover {
  border-color: var(--primary-400);
  color: var(--primary-600);
  background: var(--primary-50);
}

.btn-subtle-blue {
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
}

.btn-subtle-blue:hover {
  background: var(--primary-100);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  padding: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 45%, var(--bg-main) 100%);
  padding: 56px 0 44px;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -60px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--primary-200);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-700);
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.hero-badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-500);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  color: #0f172a;
  margin-bottom: 16px;
}

.hero-title .highlight {
  color: var(--primary-600);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(37, 99, 235, 0.18);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.18rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

/* Stats Counter Row */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.stat-item {
  display: flex;
  flex-direction: column;
  white-space: nowrap !important;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-600);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap !important;
}

.stat-divider {
  width: 1px;
  height: 38px;
  background-color: var(--border-color);
}

/* Hero Visual Banner */
.hero-visual-card {
  position: relative;
  background: linear-gradient(145deg, #ffffff, #eff6ff);
  border-radius: var(--radius-xl);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ==========================================================================
   Clean Transparent Constellation Network (完全透明无框导师星网矩阵)
   ========================================================================== */
.hero-art-box.cosmic-constellation-box {
  width: 100%;
  height: 310px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

#cosmic-constellation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.constellation-nodes-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.cosmic-node-wrap {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  user-select: none;
}

.cosmic-node-wrap:hover {
  transform: translate(-50%, -50%) scale(1.15) !important;
  z-index: 30 !important;
}

.cosmic-avatar-circle {
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2), 0 2px 6px rgba(0, 0, 0, 0.06);
  background: #ffffff;
  transition: all 0.3s ease;
}

.cosmic-node-wrap:hover .cosmic-avatar-circle {
  border-color: #2563eb;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.38);
}

.cosmic-node-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: #1e40af;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
  white-space: nowrap;
  border: 1px solid #bfdbfe;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
  opacity: 0.95;
  transition: all 0.25s ease;
}

.cosmic-node-wrap:hover .cosmic-node-name {
  opacity: 1;
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.cosmic-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  z-index: 10;
}

.hero-card-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.hero-card-footer-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.hero-card-footer-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
}

/* ==========================================================================
   Core Feature Grid (6-Grid Functional Hub)
   ========================================================================== */
.feature-hub-section {
  padding: 30px 0 50px;
}

.hub-card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.hub-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-300);
}

.hub-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.hub-card:hover .hub-icon-wrap {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.icon-wrap-blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.icon-wrap-rose { background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%); }
.icon-wrap-amber { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }
.icon-wrap-purple { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); }
.icon-wrap-cyan { background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%); }
.icon-wrap-indigo { background: linear-gradient(135deg, #818cf8 0%, #4338ca 100%); }

.hub-svg-icon {
  width: 28px;
  height: 28px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.hub-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.hub-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff4d4f;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Expert Consultant Banner (1v1 Consultation)
   ========================================================================== */
.expert-banner-section {
  padding: 10px 0 40px;
}

.expert-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fef3c7 100%);
  border-radius: var(--radius-xl);
  border: 1px solid #fed7aa;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.12);
  position: relative;
  overflow: hidden;
}

.expert-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 20%;
  width: 250px;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.expert-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.expert-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  overflow: hidden;
}

.expert-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.expert-meta h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 4px;
  white-space: nowrap;
}

.expert-meta p {
  font-size: 0.95rem;
  color: #c2410c;
  font-weight: 500;
  margin-bottom: 12px;
  white-space: nowrap;
}

.expert-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.expert-tag {
  background: rgba(255, 255, 255, 0.9);
  color: #c2410c;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(249, 115, 22, 0.2);
  white-space: nowrap !important;
}

.expert-right {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* ==========================================================================
   Section Header Standard
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-pillar {
  width: 5px;
  height: 22px;
  background: var(--primary-500);
  border-radius: 4px;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.section-more-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.section-more-link:hover {
  color: var(--primary-600);
}

/* ==========================================================================
   School Topics & Ranking Cards (热门学校专题)
   ========================================================================== */
.topics-section {
  padding: 20px 0 40px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topic-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.topic-blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}

.topic-amber {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #fcd34d;
}

.topic-emerald {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #7dd3fc;
}

.topic-purple {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  border-color: #c4b5fd;
}

.topic-content h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  white-space: nowrap;
}

.topic-content p {
  font-size: 0.88rem;
  color: #475569;
  font-weight: 500;
}

.topic-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
  width: fit-content;
  margin-top: 16px;
  white-space: nowrap;
}

.topic-card:hover .topic-btn {
  background: var(--primary-600);
  color: #ffffff;
}

/* ==========================================================================
   School Guides & Articles (选校攻略)
   ========================================================================== */
.guides-section {
  padding: 20px 0 40px;
}

.guides-container-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.guides-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
}

.guide-featured {
  background: linear-gradient(145deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.guide-featured:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-400);
}

.guide-tags-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-badge {
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap !important;
}

.tag-blue { background: #dbeafe; color: var(--primary-700); }
.tag-cyan { background: #cffafe; color: #0e7490; }
.tag-amber { background: #fef3c7; color: #b45309; }

.guide-featured h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.4;
}

.guide-featured p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 18px;
}

.guide-link-action {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.guide-item:hover {
  background: #ffffff;
  border-color: var(--primary-300);
  box-shadow: var(--shadow-xs);
  transform: translateX(4px);
}

.guide-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.guide-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-arrow {
  color: var(--text-light);
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   School Tours & Video Scenes (探校实景)
   ========================================================================== */
.tours-section {
  padding: 20px 0 40px;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tour-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.tour-video-thumb {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.play-button-overlay {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  transition: var(--transition);
}

.tour-card:hover .play-button-overlay {
  background: var(--primary-500);
  border-color: #ffffff;
  transform: scale(1.12);
}

.tour-info {
  padding: 16px;
}

.tour-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
}

/* ==========================================================================
   Hot News & Articles Feed (热门资讯)
   ========================================================================== */
.news-section {
  padding: 20px 0 50px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.news-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  gap: 18px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.news-thumb-icon {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}

.news-detail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  overflow: hidden;
}

.news-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* ==========================================================================
   Full School Directory & Filter System (香港学校选校系统 - 二级专页)
   ========================================================================== */
.school-directory-section {
  padding: 30px 0 60px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Search Bar */
.school-search-bar {
  position: relative;
  max-width: 760px;
  margin: 0 auto 28px;
}

.school-search-input {
  width: 100%;
  padding: 16px 24px 16px 54px;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary-300);
  background: #ffffff;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
  outline: none;
  transition: var(--transition);
}

.school-search-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.18);
}

.school-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-600);
  font-size: 1.3rem;
}

/* Filter Controls Box */
.filter-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 30px;
}

/* Stage Tabs (幼儿园 / 小学 / 中学 / 国际学校 / 本科 / 硕 / 博) */
.stage-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.stage-tab-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition);
  white-space: nowrap !important;
}

.stage-tab-btn:hover {
  color: var(--primary-600);
  background: rgba(37, 99, 235, 0.08);
}

.stage-tab-btn.active {
  color: #ffffff;
  background: var(--primary-500);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Sub Filters Row */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-sub);
  min-width: 68px;
  white-space: nowrap;
}

.filter-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap !important;
}

.filter-pill:hover {
  border-color: var(--primary-400);
  color: var(--primary-700);
}

.filter-pill.active {
  background: var(--primary-100);
  border-color: var(--primary-500);
  color: var(--primary-800);
  font-weight: 700;
}

.filter-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.filter-status-bar strong {
  color: var(--primary-600);
}

/* School Cards Grid */
.school-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.school-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.school-card:hover {
  border-color: var(--primary-400);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.school-card-top {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.school-badge-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  padding: 4px;
}

.school-badge-box svg,
.school-badge-box img.school-official-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.school-names h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.school-names .en-name {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.school-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.school-tag {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap !important;
}

.school-tag.type { background: #dbeafe; color: var(--primary-700); }
.school-tag.rel { background: #fef3c7; color: #b45309; }
.school-tag.gender { background: #ede9fe; color: #6d28d9; }

.school-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.school-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
}

.school-action-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap !important;
}

.school-action-btn:hover {
  background: var(--primary-500);
  color: #ffffff;
}

/* ==========================================================================
   Mentors & Faculty Matrix (名师与导师团队)
   ========================================================================== */
.mentors-section {
  padding: 30px 0 60px;
  background: var(--bg-main);
}

.mentors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mentor-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.mentor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-300);
}

.mentor-photo-wrap {
  height: 240px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mentor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.mentor-card:hover .mentor-avatar-img {
  transform: scale(1.05);
}

.mentor-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-700);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.mentor-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.mentor-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  white-space: nowrap;
}

.mentor-subject {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 10px;
  white-space: nowrap;
}

.mentor-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.mentor-booking-btn {
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff8a14, var(--accent-orange));
  color: #ffffff;
  text-align: center;
  transition: var(--transition);
  white-space: nowrap;
}

.mentor-booking-btn:hover {
  box-shadow: 0 4px 12px rgba(255, 125, 0, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   Admission Calendar & Timeline (投递日程)
   ========================================================================== */
.calendar-section {
  padding: 30px 0 60px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.timeline-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.timeline-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--primary-400);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.timeline-phase {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--primary-100);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 10px;
  white-space: nowrap;
}

.timeline-date {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  white-space: nowrap;
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Floating Action Bar & AI Bot Bubble ("择校通AI")
   ========================================================================== */
.ai-floating-trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 8px 18px 8px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  border: 2px solid var(--primary-300);
  cursor: pointer;
  transition: var(--transition);
  animation: float 4s ease-in-out infinite;
}

.ai-floating-trigger:hover {
  transform: scale(1.06) translateY(-2px);
  border-color: var(--primary-500);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.4);
}

.ai-robot-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #bfdbfe, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ai-robot-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.ai-robot-text .name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.ai-robot-text .status {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-600);
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--border-color);
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card.large {
  max-width: 860px;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.modal-close-btn {
  font-size: 1.4rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--bg-main);
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

/* AI Chat Window Specifics */
.ai-chat-body {
  height: 380px;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-xs);
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--primary-500);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.ai-quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.quick-opt-btn {
  font-size: 0.8rem;
  padding: 6px 12px;
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid var(--primary-200);
  transition: var(--transition);
  white-space: nowrap;
}

.quick-opt-btn:hover {
  background: var(--primary-500);
  color: #ffffff;
}

.ai-chat-input-bar {
  display: flex;
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  gap: 10px;
}

.ai-chat-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  outline: none;
  font-size: 0.92rem;
}

.ai-chat-input:focus {
  border-color: var(--primary-500);
}

/* ==========================================================================
   Academic Assessment & 5-Dimension Radar Question Bank System
   ========================================================================== */
.quiz-container {
  display: flex;
  flex-direction: column;
}

/* Track Selector Cards */
.quiz-tracks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 10px;
}

.quiz-track-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.quiz-track-card:hover {
  border-color: var(--primary-500);
  background: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.quiz-track-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.quiz-track-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.quiz-track-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.quiz-track-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 700;
}

/* Assessment Question Progress Bar */
.quiz-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.quiz-track-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--primary-100);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.quiz-step-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.quiz-progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), #38bdf8);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.quiz-question-box h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.quiz-question-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Option Items */
.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition);
}

.quiz-option-card:hover {
  border-color: var(--primary-400);
  background: var(--primary-50);
}

.quiz-option-card.selected {
  border-color: var(--primary-600);
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.quiz-opt-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
}

.quiz-option-card.selected .quiz-opt-letter {
  background: var(--primary-500);
  color: #ffffff;
}

.quiz-opt-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
}

.quiz-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Diagnostic Result & Radar Screen */
.quiz-result-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quiz-result-header {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quiz-score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-600);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.quiz-score-num {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.quiz-score-sub {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.9;
}

.quiz-result-summary h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 4px;
}

.quiz-result-summary p {
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.45;
}

.radar-chart-container {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-svg {
  width: 280px;
  height: 280px;
}

/* 3-Tier School Recommendation Cards */
.tier-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tier-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.tier-card {
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tier-reach { background: #fef2f2; border-color: #fecaca; }
.tier-match { background: #eff6ff; border-color: #bfdbfe; }
.tier-safety { background: #f0fdf4; border-color: #bbf7d0; }

.tier-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 8px;
}

.tier-reach .tier-tag { background: #fee2e2; color: #dc2626; }
.tier-match .tier-tag { background: #dbeafe; color: #2563eb; }
.tier-safety .tier-tag { background: #dcfce7; color: #16a34a; }

.tier-card h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.tier-card p {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   Cantonese & English Interactive Language Hub System (7-Day Themed Tracks)
   ========================================================================== */
.daily-week-nav {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.daily-day-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  user-select: none;
}

.daily-day-card:hover {
  border-color: var(--primary-400);
  background: #eff6ff;
  transform: translateY(-2px);
}

.daily-day-card.active {
  border-color: var(--primary-600);
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.daily-day-name {
  font-size: 0.76rem;
  font-weight: 800;
  color: #475569;
}

.daily-day-card.active .daily-day-name {
  color: var(--primary-700);
}

.daily-day-theme {
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.daily-day-card.active .daily-day-theme {
  color: var(--primary-800);
  font-weight: 700;
}

.daily-today-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

.daily-header-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.daily-header-banner.english-theme {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}

.daily-banner-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #14532d;
  display: flex;
  align-items: center;
  gap: 6px;
}

.english-theme .daily-banner-title {
  color: #1e3a8a;
}

.daily-banner-sub {
  font-size: 0.8rem;
  color: #166534;
  margin-top: 2px;
}

.english-theme .daily-banner-sub {
  color: #1e40af;
}

.phrase-list-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.phrase-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: var(--transition);
}

.phrase-card:hover {
  border-color: var(--primary-400);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

.phrase-info {
  flex: 1;
}

.phrase-hk {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

.phrase-jyutping {
  font-size: 0.78rem;
  color: var(--primary-600);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin-bottom: 3px;
  font-weight: 600;
}

.phrase-zh {
  font-size: 0.82rem;
  color: #64748b;
}

.phrase-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #eff6ff;
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-play-btn:hover {
  background: var(--primary-600);
  color: #ffffff;
  transform: scale(1.08);
}

.mic-record-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mic-record-btn:hover {
  background: #ea580c;
  color: #ffffff;
  transform: scale(1.08);
}

.mic-record-btn.recording {
  background: #ef4444;
  color: #ffffff;
  animation: pulse 1s infinite;
}

/* Interview Q&A Cards */
.interview-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
}

.interview-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-block;
  margin-bottom: 8px;
}

.interview-question {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.interview-strategy {
  font-size: 0.8rem;
  color: #d97706;
  background: #fffbeb;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-weight: 600;
}

.interview-answer-box {
  background: #f8fafc;
  border-left: 3px solid var(--primary-500);
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
}

.interview-answer-text {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
}

.interview-answer-trans {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}

.interview-vocab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.vocab-tag {
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  white-space: nowrap;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--primary-400);
}

.footer-contact-card {
  background: #1e293b;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.85rem;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.82rem;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1200px) {
  .nav-links {
    gap: 2px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 0.88rem;
  }
}

@media (max-width: 1024px) {
  .hub-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .school-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mentors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   User Auth & Header Profile System
   ========================================================================== */
.auth-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary-600);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.auth-role-card {
  cursor: pointer;
  position: relative;
}

.auth-role-card input[type="radio"] {
  display: none;
}

.role-box {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.auth-role-card input[type="radio"]:checked + .role-box {
  border-color: var(--primary-600);
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.role-icon {
  font-size: 1.2rem;
}

.role-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.auth-role-card input[type="radio"]:checked + .role-box .role-name {
  color: var(--primary-700);
}

.quick-demo-accounts {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.quick-demo-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-demo-chip:hover {
  background: #eff6ff;
  border-color: var(--primary-400);
  color: var(--primary-700);
}

/* User Nav Dropdown */
.user-nav-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 10px 4px 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.user-nav-badge:hover {
  background: #eff6ff;
  border-color: var(--primary-300);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.user-nav-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

.user-nav-role-tag {
  font-size: 0.68rem;
  background: #e0f2fe;
  color: #0284c7;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 200px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  display: none;
  z-index: 1000;
}

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

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.85rem;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.user-dropdown-item:hover {
  background: #f1f5f9;
  color: var(--primary-600);
}

/* ==========================================================================
   Admin Console & Management Dashboard
   ========================================================================== */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.admin-kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}

.admin-kpi-val {
  font-size: 1.65rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 4px;
}

.admin-kpi-trend {
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-up { color: #16a34a; }
.trend-alert { color: #ea580c; }

.admin-kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.kpi-blue { background: #eff6ff; color: #2563eb; }
.kpi-amber { background: #fffbeb; color: #d97706; }
.kpi-emerald { background: #ecfdf5; color: #059669; }
.kpi-purple { background: #f5f3ff; color: #7c3aed; }

/* Admin Toolbar */
.admin-toolbar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-search-box {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 8px 14px;
}

.admin-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  width: 100%;
  color: #0f172a;
}

.admin-filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-select {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  outline: none;
}

.admin-select:focus {
  border-color: var(--primary-600);
}

/* Admin Data Table */
.admin-table-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-table-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.user-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.user-data-table th {
  background: #f8fafc;
  padding: 12px 18px;
  text-align: left;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.user-data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.user-data-table tr:hover td {
  background: #f8fafc;
}

.user-cell-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-cell-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.user-cell-name {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.user-cell-phone {
  font-size: 0.76rem;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.status-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
  white-space: nowrap;
}

.status-new { background: #eff6ff; color: #1d4ed8; }
.status-eval { background: #e0f2fe; color: #0284c7; }
.status-planning { background: #fef3c7; color: #b45309; }
.status-interview { background: #f5f3ff; color: #7c3aed; }
.status-offer { background: #ecfdf5; color: #047857; }
.status-vip { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }

.score-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

.table-action-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 4px;
}

.table-action-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary-500);
  color: var(--primary-600);
}

.table-action-btn.btn-delete:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
}

/* ==========================================================================
   Drawer Component (Student Profile Drawer)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 520px;
  max-width: 90vw;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer-overlay.active .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}

.drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

.drawer-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.drawer-section:last-child {
  border-bottom: none;
}

.drawer-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.meta-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 12px;
}

.meta-label {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 2px;
}

.meta-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
}

@media (max-width: 1024px) {
  .admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .expert-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .expert-left {
    flex-direction: column;
  }
  .guides-layout {
    grid-template-columns: 1fr;
  }
  .tours-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .school-grid {
    grid-template-columns: 1fr;
  }
  .mentors-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .timeline-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hub-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Interactive Admissions Calendar & School Event Marker System
   ========================================================================== */
.calendar-app-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 36px;
}

@media (max-width: 980px) {
  .calendar-app-layout {
    grid-template-columns: 1fr;
  }
}

.calendar-picker-box {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 20px;
}

.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #52c41a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.2s ease;
}

.cal-nav-btn:hover {
  background: #f6ffed;
  border-color: #b7eb8f;
  color: #389e0d;
}

.cal-month-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-today-badge {
  font-size: 0.72rem;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.cal-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: #6b7280;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.cal-cell:hover:not(.other-month) {
  background: #f3f4f6;
}

.cal-cell.other-month {
  color: #d1d5db;
  cursor: default;
}

.cal-cell.today:not(.selected) {
  border: 1.5px solid #52c41a;
  color: #237804;
}

.cal-cell.selected {
  background: #52c41a !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(82, 196, 26, 0.35);
}

.cal-dots-wrap {
  display: flex;
  gap: 2px;
  margin-top: 2px;
  height: 4px;
}

.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #52c41a;
}

.cal-cell.selected .cal-dot {
  background: #ffffff;
}

.cal-dot.dot-exam { background: #ef4444; }
.cal-dot.dot-custom { background: #fa8c16; }
.cal-dot.dot-postgrad { background: #1677ff; }

/* Right Panel: School Events & Schedule Details */
.calendar-events-panel {
  display: flex;
  flex-direction: column;
}

.cal-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 18px;
}

.cal-panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-panel-count {
  font-size: 0.88rem;
  color: #8c8c8c;
  font-weight: 600;
}

.cal-events-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 400px;
  padding-right: 4px;
  margin-bottom: 20px;
}

.cal-event-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.cal-event-item:hover {
  border-color: #b7eb8f;
  box-shadow: 0 4px 14px rgba(82, 196, 26, 0.08);
}

.cal-event-main {
  flex: 1;
}

.cal-event-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.cal-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.tag-deadline { background: #fff1f0; color: #cf1322; border: 1px solid #ffa39e; }
.tag-open { background: #e6f4ff; color: #0958d9; border: 1px solid #91caff; }
.tag-interview { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }
.tag-custom { background: #fff7e6; color: #d46b08; border: 1px solid #ffd591; }

.cal-event-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 4px;
}

.cal-event-desc {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.5;
}

.cal-event-del-btn {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}

.cal-event-del-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}

.cal-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #9ca3af;
  background: #fafafa;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
}

.btn-add-schedule {
  width: 100%;
  padding: 14px;
  background: #52c41a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(82, 196, 26, 0.3);
}

.btn-add-schedule:hover {
  background: #389e0d;
  box-shadow: 0 6px 18px rgba(82, 196, 26, 0.4);
  transform: translateY(-1px);
}

/* Major Admission Table & Live Search Directory */
.major-schedule-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  margin-top: 36px;
}

.major-schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.major-table-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.major-search-input {
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.85rem;
  min-width: 220px;
}

.major-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.major-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.major-schedule-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.major-schedule-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.major-schedule-table tr:hover td {
  background: #f8fafc;
}

.round-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 4px;
}

.round-early { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.round-r1 { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.round-r2 { background: #fefce8; color: #a16207; border: 1px solid #fef08a; }
.round-rolling { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

