/* ==========================================================================
   1. GLOBAL SYSTEM TOKENS & 3D ISOMETRIC VARIABLES
   ========================================================================== */
:root {
  --bg-white: #ffffff;
  --bg-soft: #f0f7ff;
  --bg-alt: #f8fafc;
  --bg-canvas: #f1f5f9;

  /* Brand Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --accent-hover: #d97706;

  /* System Cluster Colors */
  --color-notes: #2563eb;
  --color-notes-bg: #eff6ff;
  --color-notes-border: #bfdbfe;

  --color-ncert: #059669;
  --color-ncert-bg: #ecfdf5;
  --color-ncert-border: #a7f3d0;

  --color-support: #ea580c;
  --color-support-bg: #fff7ed;
  --color-support-border: #fed7aa;

  --color-student: #7c3aed;
  --color-student-bg: #f5f3ff;
  --color-student-border: #ddd6fe;

  --color-info: #334155;
  --color-info-bg: #f8fafc;
  --color-info-border: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;

  --border-color: #e2e8f0;
  --border-card: #e5e7eb;

  --footer-bg: #1f2937;
  --footer-text: #9ca3af;

  /* 3D Depth Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 6px 14px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 14px 28px -4px rgba(15, 23, 42, 0.09), 0 6px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-3d: 0 20px 35px -5px rgba(37, 99, 235, 0.16), 0 10px 15px -3px rgba(15, 23, 42, 0.06);
  --shadow-inset-3d: inset 0 1px 2px rgba(255, 255, 255, 0.9), inset 0 -2px 4px rgba(15, 23, 42, 0.04);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --header-height: 70px;
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(at 0% 0%, rgba(219, 234, 254, 0.6) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(254, 243, 199, 0.4) 0px, transparent 50%),
    radial-gradient(at 50% 30%, rgba(240, 247, 255, 0.75) 0px, transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==========================================================================
   2. SITE HEADER (MATCHES SDLC ECOSYSTEM EXACTLY)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-text {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-sd { color: var(--primary); }
.brand-learning { color: var(--text-main); margin: 0 2px; }
.brand-center { color: var(--accent); }
.brand-sdlc-desktop { display: inline-block; }
.brand-sdlc-mobile { display: none; }

.portal-badge-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-border);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 650;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.2;
  border: 1px solid transparent;
}

.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  background-color: var(--bg-soft);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-text-desktop { display: inline; }
.btn-text-mobile { display: none; }

@media (max-width: 640px) {
  :root { --header-height: 58px; }
  .site-header { height: 58px; }
  .brand-sdlc-desktop { display: none; }
  .brand-sdlc-mobile { display: inline-block; }
  .brand-text { font-size: 1.2rem; }
  .btn-text-desktop { display: none !important; }
  .btn-text-mobile { display: inline !important; }
  .header-container { padding: 0 0.85rem; }
  .portal-badge-title { display: none; }
  .header-right .btn { padding: 0.42rem 0.75rem; font-size: 0.8rem; }
}

/* ==========================================================================
   3. 3D HERO BANNER & SEARCH TOOLBAR
   ========================================================================== */
main { flex: 1; width: 100%; overflow-x: hidden; }

.page-section {
  padding: clamp(1.75rem, 4vw, 3rem) 1rem clamp(2.5rem, 5vw, 4rem) 1rem;
  width: 100%;
}

.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-3d-card {
  background: linear-gradient(135deg, #090e1a 0%, #0f172a 45%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 4.5vw, 3.25rem) clamp(1.5rem, 3.5vw, 2.75rem);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.35), var(--shadow-inset-3d);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-3d-card::before {
  content: '';
  position: absolute;
  top: -25%;
  right: -5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(14, 165, 233, 0.1) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(25px);
}

.hero-3d-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(25px);
}

.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #93c5fd;
  backdrop-filter: blur(8px);
}

.hero-tag svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.785rem;
  font-weight: 800;
  color: #6ee7b7;
  backdrop-filter: blur(4px);
}

.hero-heading {
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 2;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(0.95rem, 1.8vw, 1.125rem);
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 800px;
  position: relative;
  z-index: 2;
  margin-bottom: 1.75rem;
}

/* Live Search & Filter Bar */
.sitemap-toolbar-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 1rem 1.15rem;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon-svg {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.sitemap-search-input {
  width: 100%;
  padding: 0.75rem 2.85rem 0.75rem 2.75rem;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 500;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  outline: none;
  transition: all var(--transition);
}
.sitemap-search-input::placeholder {
  color: #94a3b8;
}
.sitemap-search-input:focus {
  border-color: #60a5fa;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

.search-clear-btn {
  position: absolute;
  right: 0.85rem;
  color: #94a3b8;
  display: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
}
.search-clear-btn:hover { color: #ffffff; }

.filter-chips-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.785rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.filter-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.filter-chip.active {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   4. INTERACTIVE 3D ISOMETRIC TOPOLOGY MAP (DESKTOP HIGHLIGHT)
   ========================================================================== */
.topology-map-panel {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.topology-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.topology-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.topology-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  color: var(--primary);
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topology-title {
  font-size: 1.3rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.topology-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Visual Graph Rig */
.visual-tree-rig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  padding: 0.5rem 0;
}

.root-hub-node {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.65rem;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px -3px rgba(37, 99, 235, 0.4);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  border: 2px solid #ffffff;
  position: relative;
  z-index: 2;
}

.root-stem-line {
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, #2563eb 0%, #cbd5e1 100%);
}

.branches-cluster-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  width: 100%;
  position: relative;
}

.branch-node-pill {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  transition: all var(--transition);
  cursor: pointer;
}
.branch-node-pill:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.branch-icon-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ring-notes { background: var(--color-notes-bg); color: var(--color-notes); border: 1px solid var(--color-notes-border); }
.ring-ncert { background: var(--color-ncert-bg); color: var(--color-ncert); border: 1px solid var(--color-ncert-border); }
.ring-support { background: var(--color-support-bg); color: var(--color-support); border: 1px solid var(--color-support-border); }
.ring-student { background: var(--color-student-bg); color: var(--color-student); border: 1px solid var(--color-student-border); }
.ring-info { background: var(--color-info-bg); color: var(--color-info); border: 1px solid var(--color-info-border); }

.branch-node-title {
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.branch-node-count {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .topology-map-panel { display: none; }
}

/* ==========================================================================
   5. COMPREHENSIVE SITEMAP CLUSTERS & 3D CARDS GRID
   ========================================================================== */
.clusters-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.cluster-block {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  transition: all var(--transition);
  position: relative;
}

.cluster-block:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* Top Accent Ribbons */
.cluster-notes { border-top: 4px solid var(--color-notes); }
.cluster-ncert { border-top: 4px solid var(--color-ncert); }
.cluster-support { border-top: 4px solid var(--color-support); }
.cluster-student { border-top: 4px solid var(--color-student); }
.cluster-info { border-top: 4px solid var(--color-info); }
.cluster-home { border-top: 4px solid #1e40af; }

.cluster-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.cluster-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cluster-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-notes { background: var(--color-notes-bg); color: var(--color-notes); border: 1px solid var(--color-notes-border); }
.icon-ncert { background: var(--color-ncert-bg); color: var(--color-ncert); border: 1px solid var(--color-ncert-border); }
.icon-support { background: var(--color-support-bg); color: var(--color-support); border: 1px solid var(--color-support-border); }
.icon-student { background: var(--color-student-bg); color: var(--color-student); border: 1px solid var(--color-student-border); }
.icon-info { background: var(--color-info-bg); color: var(--color-info); border: 1px solid var(--color-info-border); }
.icon-home { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.cluster-title-text h2 {
  font-size: 1.3rem;
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cluster-title-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.cluster-meta-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Node Cards Grid / Tree Hierarchy Flow */
.nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
}

/* Tiered Hierarchy Flow (For Notes, NCERT, Support) */
.hierarchy-flow-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.hierarchy-step-node {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.15rem 1.35rem;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
}
.hierarchy-step-node:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Visual Stepped Indents on Desktop */
.step-level-1 { margin-left: 0; }
.step-level-2 { margin-left: 1.5rem; border-left: 3px solid var(--primary); }
.step-level-3 { margin-left: 3rem; border-left: 3px solid var(--secondary); }
.step-level-4 { margin-left: 4.5rem; border-left: 3px solid var(--color-ncert); }

.node-content-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.node-header-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.node-title-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.node-tier-tag {
  font-size: 0.685rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}
.tier-portal { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.tier-reader { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.tier-form { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.tier-policy { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.node-description {
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.node-path-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.2rem;
  background: var(--bg-soft);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  width: fit-content;
  border: 1px solid #dbeafe;
}

.node-arrow-cta {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  margin-top: 0.25rem;
}
.hierarchy-step-node:hover .node-arrow-cta {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateX(4px);
}

/* Standard Cards Grid (For Student, Info & Legal) */
.standard-link-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.standard-link-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-top-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: auto;
}

.card-action-text {
  font-size: 0.825rem;
  font-weight: 750;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.standard-link-card:hover .card-action-text svg {
  transform: translateX(3px);
}
.card-action-text svg {
  transition: transform var(--transition);
}

/* Empty Search Notice */
.empty-search-card {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  background: #ffffff;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-2xl);
}
.empty-search-card.show { display: block; }

/* ==========================================================================
   6. INSTITUTIONAL PHYSICAL CAMPUS STRIP
   ========================================================================== */
.campus-location-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: #ffffff;
  border-radius: var(--radius-2xl);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.campus-location-banner::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.campus-text-col {
  flex: 1;
  min-width: 280px;
  position: relative;
  z-index: 1;
}

.campus-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.campus-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

.campus-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-white:hover {
  background-color: var(--bg-soft);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS (DOWN TO 320PX MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
  .step-level-2, .step-level-3, .step-level-4 {
    margin-left: 0.75rem;
  }
  .nodes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-section { padding: 1.25rem 0.75rem 3.5rem 0.75rem; }
  .hero-3d-card { padding: 1.75rem 1.15rem; border-radius: var(--radius-xl); }
  .hero-heading { font-size: 1.75rem; }
  .hero-lead { font-size: 0.925rem; margin-bottom: 1.25rem; }
  .sitemap-toolbar-card { padding: 0.85rem; border-radius: var(--radius-lg); }
  .cluster-block { padding: 1.35rem 1rem; border-radius: var(--radius-xl); }
  .step-level-2, .step-level-3, .step-level-4 { margin-left: 0.35rem; }
  .hierarchy-step-node { padding: 1rem 0.95rem; gap: 0.65rem; }
  .node-arrow-cta { width: 32px; height: 32px; }
  .campus-location-banner { padding: 1.5rem 1.15rem; border-radius: var(--radius-xl); }
  .campus-actions { width: 100%; }
  .campus-actions .btn { width: 100%; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.5rem 1rem 2rem 1rem;
  border-top: 1px solid #374151;
  margin-top: auto;
}