/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { font-family: 'Outfit', sans-serif; overflow-x: hidden; }

/* ════════════════════════════════════════════
   LAYOUT SHELL  (dsh-* classes)
════════════════════════════════════════════ */

.dsh-wrap {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: #f4f5fa;
}

/* ══ SIDEBAR ════════════════════════════════ */
.dsh-side {
  width: 240px;
  min-width: 240px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #ecedf8;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 2px 0 16px rgba(59,79,168,0.06);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo */
.dsh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid #f0f0f8;
  flex-shrink: 0;
}
.dsh-logo img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.dsh-logo-txt { font-size: 16px; font-weight: 800; color: #1e2a6e; letter-spacing: -0.3px; }
.dsh-logo-txt em { color: #7568b8; font-style: normal; }

/* Navigation */
.dsh-nav {
  flex: 1;
  padding: 14px 10px 8px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.dsh-nav-group { margin-bottom: 4px; }

.dsh-nav-label {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #b0b8d4;
  padding: 10px 12px 4px;
}

.dsh-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: #4b5375;
  font-size: 13.5px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  position: relative;
  margin-bottom: 1px;
}
.dsh-nav-item:hover { background: #f0f1fa; color: #3b4fa8; }
.dsh-nav-item.active {
  background: linear-gradient(90deg, #eaecf8, #eceef9);
  color: #3b4fa8;
  font-weight: 600;
}
.dsh-nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 62%;
  background: linear-gradient(180deg, #3b4fa8, #7568b8);
  border-radius: 0 3px 3px 0;
}

.dsh-nav-icon {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex-shrink: 0;
}
.dsh-nav-icon svg { width: 18px; height: 18px; }

.dsh-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #3b4fa8, #7568b8);
  color: #fff;
  font-size: 9.5px; font-weight: 700;
  border-radius: 12px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* User card at bottom of sidebar */
.dsh-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 6px 10px 14px;
  background: linear-gradient(135deg, #f0f1fa 0%, #e9ebf7 100%);
  border-radius: 14px;
  border: 1px solid #e0e3f0;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.dsh-user-card:hover { background: linear-gradient(135deg, #e8eaf6 0%, #dde0f5 100%); border-color: #c5cae9; }

.dsh-user-ava {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #3b4fa8, #7568b8);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.dsh-user-ava img { width: 100%; height: 100%; object-fit: cover; }

.dsh-user-info { flex: 1; min-width: 0; }
.dsh-user-name {
  font-size: 13px; font-weight: 700; color: #1e2a6e;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dsh-user-sub { font-size: 10.5px; color: #7568b8; font-weight: 500; }

/* Sidebar scrollbar */
.dsh-side::-webkit-scrollbar       { width: 3px; }
.dsh-side::-webkit-scrollbar-track { background: transparent; }
.dsh-side::-webkit-scrollbar-thumb { background: #d1d5f0; border-radius: 10px; }

/* ══ MAIN AREA ══════════════════════════════ */
.dsh-main {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  min-width: 0;
}

/* Topbar */
.dsh-top {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-bottom: 1px solid #ecedf8;
  padding: 0 24px;
  height: 62px;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 1px 8px rgba(59,79,168,0.05);
}

.dsh-burger {
  background: none; border: none; cursor: pointer;
  color: #6b7280; display: none; align-items: center;
  padding: 7px; border-radius: 9px; flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.dsh-burger:hover { background: #f0f1fa; color: #3b4fa8; }
.dsh-burger svg { width: 22px; height: 22px; }

.dsh-search-box {
  flex: 1; display: flex; align-items: center;
  gap: 8px;
  background: #f4f5fa;
  border: 1.5px solid #ecedf8;
  border-radius: 12px;
  padding: 9px 15px;
  max-width: 460px;
  transition: border-color 0.18s, background 0.18s;
}
.dsh-search-box:focus-within { border-color: #7568b8; background: #fff; }
.dsh-search-box svg { width: 15px; height: 15px; color: #adb5d0; flex-shrink: 0; }
.dsh-search-box input {
  border: none; background: transparent; outline: none;
  font-family: 'Outfit', sans-serif; font-size: 13px; color: #374151; width: 100%;
}
.dsh-search-box input::placeholder { color: #b0b8d4; }

.dsh-top-right {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; margin-left: auto;
}

.dsh-notif {
  position: relative;
  background: #f4f5fa; border: 1.5px solid #ecedf8; border-radius: 10px;
  color: #6b7280; display: flex; align-items: center;
  padding: 8px; text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.dsh-notif:hover { background: #e8eaf6; color: #3b4fa8; border-color: #c5cae9; }
.dsh-notif svg { width: 20px; height: 20px; }

.dsh-notif-dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px;
  background: #ef4444; border-radius: 50%;
  border: 2px solid #fff;
}

.dsh-top-ava {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #3b4fa8, #7568b8);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  border: 2px solid #e8eaf6;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.dsh-top-ava:hover { border-color: #7568b8; transform: scale(1.05); }
.dsh-top-ava img { width: 100%; height: 100%; object-fit: cover; }

/* Scrollable content area */
.dsh-body {
  flex: 1; overflow-y: auto;
  padding: 28px 28px 0;
  background: #f4f5fa;
}
.dsh-body::-webkit-scrollbar       { width: 4px; }
.dsh-body::-webkit-scrollbar-track { background: transparent; }
.dsh-body::-webkit-scrollbar-thumb { background: #c5cae9; border-radius: 10px; }

/* Footer */
.dsh-foot {
  background: #fff;
  border-top: 1px solid #ecedf8;
  padding: 12px 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.dsh-foot span { font-size: 12px; color: #9ca3af; }
.dsh-foot div  { display: flex; gap: 18px; }
.dsh-foot a    { font-size: 12px; color: #6b7280; text-decoration: none; }
.dsh-foot a:hover { color: #3b4fa8; }

/* ══ MOBILE ══════════════════════════════════ */
.dsh-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 199;
  background: rgba(20, 30, 80, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.dsh-overlay.dsh-show { display: block; }

.dsh-bnav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: #fff;
  border-top: 1px solid #ecedf8;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  justify-content: space-around;
  box-shadow: 0 -3px 16px rgba(59,79,168,0.1);
}

.dsh-bn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: #9ca3af;
  font-size: 10px; font-weight: 500;
  flex: 1; padding: 4px 0;
  transition: color 0.15s;
}
.dsh-bn svg { width: 22px; height: 22px; }
.dsh-bn.active { color: #3b4fa8; }
.dsh-bn:hover  { color: #3b4fa8; }

/* ════════════════════════════════════════════
   STANDALONE PAGE WRAPPER
   (when dashboard.css is used inside base.html
    with fixed top navbar, not sidebar layout)
════════════════════════════════════════════ */
.main-db-page {
  padding: 104px 0 60px;
  background: #f4f5fa;
  min-height: 100vh;
}
.db-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .main-db-page { padding: 88px 0 48px; }
  .db-inner { padding: 0 16px; }
}

/* ── Standard back button (used across all sub-pages) ── */
.db-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: #6366f1;
  text-decoration: none; margin-bottom: 20px;
  transition: color 0.15s;
}
.db-back:hover { color: #4338ca; }
.db-back svg { width: 14px; height: 14px; }

/* ════════════════════════════════════════════
   PAGE COMPONENTS  (db-* / component classes)
════════════════════════════════════════════ */

/* ── Welcome ───────────────────────────────── */
.db-welcome { margin-bottom: 24px; }
.db-welcome h1 { font-size: 22px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.db-welcome p  { font-size: 14px; color: #6b7280; }

/* ── Stats ─────────────────────────────────── */
.db-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat-card {
  background: #fff; border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 2px 14px rgba(59,79,168,0.07);
  display: flex; align-items: flex-start; gap: 14px;
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.si-purple { background: #e8eaf6; color: #5a60b4; }
.stat-icon.si-blue   { background: #dbeafe; color: #2563eb; }
.stat-icon.si-green  { background: #dcfce7; color: #16a34a; }
.stat-icon.si-orange { background: #fef3c7; color: #d97706; }

.stat-content { flex: 1; min-width: 0; }
.stat-label  { font-size: 12px;   color: #6b7280; margin-bottom: 2px; }
.stat-number { font-size: 26px;   font-weight: 700; color: #111827; line-height: 1.1; margin-bottom: 2px; }
.stat-desc   { font-size: 11px;   color: #9ca3af; margin-bottom: 8px; }
.stat-growth {
  display: inline-flex; align-items: center; gap: 4px;
  background: #dcfce7; color: #16a34a;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
}
.stat-growth svg { width: 11px; height: 11px; }

/* ── Section header ────────────────────────── */
.db-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.db-section-header h2 {
  font-size: 16.5px; font-weight: 700; color: #111827;
  display: flex; align-items: center; gap: 6px;
}
.db-view-link { font-size: 13px; font-weight: 600; color: #5a60b4; text-decoration: none; white-space: nowrap; }
.db-view-link:hover { text-decoration: underline; }

/* ── Degree cards ──────────────────────────── */
.db-degrees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px; margin-bottom: 26px;
}
.deg-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(59,79,168,0.10);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.deg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(59,79,168,0.16);
}
.deg-img-wrap { position: relative; height: 156px; overflow: hidden; flex-shrink: 0; }
.deg-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deg-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #eaecf8 0%, #c5cae9 100%);
  display: flex; align-items: center; justify-content: center;
}
.deg-img-placeholder svg { width: 44px; height: 44px; color: #7568b8; opacity: 0.45; }

/* degree type tag (replaces risk badge) */
.deg-type-badge {
  position: absolute; bottom: 10px; left: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.2px;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.92);
  color: #3b4fa8;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(59,79,168,0.15);
}
.deg-bookmark-btn {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.92); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.deg-bookmark-btn:hover { background: #fff; }
.deg-bookmark-btn svg { width: 13px; height: 13px; color: #6b7280; }

.deg-body { padding: 14px 14px 10px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.deg-name {
  font-size: 13.5px; font-weight: 700; color: #111827; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 36px;
}
.deg-meta { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #6b7280; }
.deg-meta svg { width: 12px; height: 12px; flex-shrink: 0; color: #9ca3af; }
.deg-risk-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 6px; border-top: 1px solid #f3f4f6; }
.deg-risk-text { font-size: 12px; color: #374151; font-weight: 600; }
.deg-circle { flex-shrink: 0; }
.deg-circle .track      { stroke: #e5e7eb; }
.deg-circle .arc-low    { stroke: #10b981; }
.deg-circle .arc-medium { stroke: #f59e0b; }
.deg-circle .arc-high   { stroke: #ef4444; }
.deg-circle .arc-none   { stroke: #e5e7eb; }
.deg-btn {
  display: block;
  margin: 8px 14px 18px;
  background: linear-gradient(90deg, #3b4fa8, #7568b8);
  color: #fff; font-size: 12.5px; font-weight: 600;
  text-align: center; text-decoration: none;
  border-radius: 12px; padding: 10px 0;
  transition: opacity 0.15s, transform 0.15s; flex-shrink: 0;
  letter-spacing: 0.2px;
}
.deg-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Lower grid ────────────────────────────── */
.db-lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.db-panel { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 2px 14px rgba(59,79,168,0.07); min-width: 0; overflow: hidden; }
.db-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.db-panel-header h3 { font-size: 15px; font-weight: 700; color: #3b4fa8; }
.db-panel-title-dark { color: #111827 !important; }

.learner-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f0f8; }
.learner-row:last-child { border-bottom: none; }
.learner-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #c5cae9; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #1a237e;
}
.learner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.learner-info { flex: 1; min-width: 0; }
.learner-name { font-size: 13px; font-weight: 600; color: #111827; }
.learner-meta { font-size: 11px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.learner-time { font-size: 11px; color: #9ca3af; white-space: nowrap; flex-shrink: 0; }

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

/* ── Premium Quick Action tiles ─────────────────────────── */
.qa-tile {
  background: linear-gradient(160deg, #ffffff 0%, #f5f4fe 100%);
  border: 1.5px solid #e8e6f4;
  border-radius: 20px;
  padding: 18px 12px 30px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  cursor: pointer; text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform 0.20s cubic-bezier(.34,1.56,.64,1), box-shadow 0.20s ease, border-color 0.16s ease;
  box-shadow: 0 2px 8px rgba(67,56,202,0.06), 0 1px 2px rgba(0,0,0,0.03);
  will-change: transform;
}

/* Bottom-right chevron arrow on every tile */
.qa-tile::after {
  content: '';
  position: absolute; bottom: 12px; right: 13px;
  width: 6px; height: 6px;
  border-right: 2px solid rgba(80,80,160,0.38);
  border-top: 2px solid rgba(80,80,160,0.38);
  transform: rotate(45deg);
  border-radius: 1px;
  transition: border-color 0.16s ease, transform 0.18s cubic-bezier(.34,1.56,.64,1);
}
.qa-tile:hover::after {
  border-color: rgba(99,102,241,0.80);
  transform: rotate(45deg) translate(3px, -3px);
}

.qa-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(67,56,202,0.14), 0 3px 8px rgba(0,0,0,0.05);
  border-color: #c4b5fd;
}
.qa-tile:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(67,56,202,0.08);
  transition: transform 0.10s ease, box-shadow 0.10s ease;
}

/* Icon container */
.qa-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; flex-shrink: 0;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.60) 0%, rgba(255,255,255,0.05) 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.50) inset;
  transition: box-shadow 0.18s ease;
}
.qa-tile:hover .qa-icon {
  box-shadow: 0 4px 14px rgba(0,0,0,0.12), 0 0 0 1px rgba(255,255,255,0.50) inset;
}
.qa-icon svg { width: 20px; height: 20px; }

/* CSS-mask icon span */
.qa-icon-mask {
  display: block; width: 20px; height: 20px;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}

.qa-title { font-size: 11.5px; font-weight: 800; color: #1e1b4b; margin-bottom: 3px; line-height: 1.25; letter-spacing: -0.1px; }
.qa-desc  { font-size: 10px; color: #94a3b8; line-height: 1.35; font-weight: 500; }

/* Icon colour variants */
.qi-purple { background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 100%); box-shadow: 0 2px 8px rgba(139,92,246,0.18), 0 0 0 1px rgba(255,255,255,0.50) inset; }
.qi-green  { background: linear-gradient(135deg, #dcfce7 0%, #86efac 100%); box-shadow: 0 2px 8px rgba(34,197,94,0.18),  0 0 0 1px rgba(255,255,255,0.50) inset; }
.qi-orange { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); box-shadow: 0 2px 8px rgba(245,158,11,0.18), 0 0 0 1px rgba(255,255,255,0.50) inset; }
.qi-pink   { background: linear-gradient(135deg, #fce7f3 0%, #f9a8d4 100%); box-shadow: 0 2px 8px rgba(236,72,153,0.18), 0 0 0 1px rgba(255,255,255,0.50) inset; }
.qi-blue   { background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%); box-shadow: 0 2px 8px rgba(59,130,246,0.18), 0 0 0 1px rgba(255,255,255,0.50) inset; }
.qi-teal   { background: linear-gradient(135deg, #ccfbf1 0%, #5eead4 100%); box-shadow: 0 2px 8px rgba(20,184,166,0.18), 0 0 0 1px rgba(255,255,255,0.50) inset; }
.qi-indigo { background: linear-gradient(135deg, #e0e7ff 0%, #a5b4fc 100%); box-shadow: 0 2px 8px rgba(99,102,241,0.18), 0 0 0 1px rgba(255,255,255,0.50) inset; }

/* ── "All Actions" tile — soft lavender highlight ── */
.qa-tile-all {
  background: linear-gradient(160deg, #f7f5ff 0%, #ede9fe 100%);
  border: 1.5px solid #c4b5fd;
  box-shadow: 0 2px 10px rgba(139,92,246,0.10), 0 1px 2px rgba(0,0,0,0.03);
}
.qa-tile-all:hover {
  box-shadow: 0 12px 28px rgba(139,92,246,0.18), 0 3px 8px rgba(0,0,0,0.05);
  border-color: #a78bfa;
}
.qa-tile-all .qa-icon { background: linear-gradient(135deg, #e0e7ff 0%, #a5b4fc 100%); box-shadow: 0 3px 10px rgba(99,102,241,0.22); }
.qa-tile-all .qa-icon-mask { background-color: #4338ca; }
.qa-tile-all-arrow { display: none; }

.qa-badge {
  position: absolute; top: 6px; right: 6px;
  background: #ef4444; color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Announcements ─────────────────────────── */
.ann-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 26px; }
.ann-card { background: #fff; border-radius: 16px; padding: 18px 16px 16px; box-shadow: 0 2px 12px rgba(59,79,168,0.07); }
.ann-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.ann-icon svg { width: 20px; height: 20px; }
.ai-pink   { background: #fce7f3; color: #ec4899; }
.ai-green  { background: #dcfce7; color: #16a34a; }
.ai-purple { background: #e8eaf6; color: #5a60b4; }
.ann-title { font-size: 13.5px; font-weight: 700; color: #111827; margin-bottom: 5px; }
.ann-desc  { font-size: 12px; color: #6b7280; line-height: 1.45; margin-bottom: 8px; }
.ann-time  { font-size: 11px; color: #9ca3af; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (min-width: 1025px) {
  .dsh-burger { display: none !important; }
}

@media (max-width: 1280px) {
  .db-degrees-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .db-stats        { grid-template-columns: repeat(2, 1fr); }
  .db-degrees-grid { grid-template-columns: repeat(2, 1fr); }
  .ann-grid        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .db-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .dsh-side {
    transform: translateX(-100%);
  }
  .dsh-side.dsh-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
  }
  .dsh-main  { margin-left: 0; }
  .dsh-burger { display: flex; }
  .dsh-bnav   { display: flex; }
  .dsh-body   { padding-bottom: 74px; }
}

@media (max-width: 768px) {
  .db-stats        { gap: 10px; }
  .stat-card       { padding: 12px 12px; gap: 10px; border-radius: 16px; }
  .stat-icon       { width: 38px; height: 38px; border-radius: 10px; }
  .stat-icon svg   { width: 17px; height: 17px; }
  .stat-label      { font-size: 11px; }
  .stat-number     { font-size: 20px; }
  .stat-desc       { font-size: 10px; margin-bottom: 6px; }
  .stat-growth     { font-size: 10px; padding: 3px 8px; }
  .stat-growth svg { width: 10px; height: 10px; }
  /* carousel arrows hidden on touch — native swipe works */
  .deg-arrow { display: none; }
  /* contain carousel so cards don't break page width */
  .deg-carousel-wrap { overflow: hidden; }
  /* quick actions 2-col on mobile */
  .qa-grid-new { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .qa-tile     { padding: 14px 10px 24px; border-radius: 16px; }
  .qa-tile::after { bottom: 9px; right: 10px; }
  /* bottom row stacks */
  .db-bottom-row { grid-template-columns: 1fr; }
  /* announcement stacks */
  .db-ann-single { flex-direction: column; align-items: flex-start; gap: 12px; }
  .db-ann-btn    { width: 100%; text-align: center; }
}

@media (max-width: 640px) {
  .db-stats          { grid-template-columns: repeat(2, 1fr); }
  .db-degrees-grid   { grid-template-columns: 1fr; }
  .ann-grid          { grid-template-columns: 1fr; }
  .qa-grid           { grid-template-columns: repeat(2, 1fr); }
  .qa-grid-new       { grid-template-columns: repeat(2, 1fr); }
  /* carousel card width handled by mobile-first rule above */
  .dsh-body          { padding: 18px 16px 74px; }
  .dsh-search-box    { max-width: 200px; }
  .dsh-top           { padding: 0 14px; }
}

@media (max-width: 400px) {
  .dsh-search-box { display: none; }
  .db-stats       { grid-template-columns: 1fr 1fr; }
  .stat-number    { font-size: 18px; }
  .stat-content   { min-width: 0; }
  .stat-growth    { display: none; }
  .qa-grid-new    { gap: 8px; }
  .qa-tile        { padding: 12px 8px 20px; border-radius: 14px; }
  .db-inner       { padding: 0 12px; }
}

/* ════════════════════════════════════════════
   DEGREE CAROUSEL
════════════════════════════════════════════ */
.deg-carousel-wrap {
  position: relative;
  margin-bottom: 26px;
  max-width: 100%;
}
.deg-carousel-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.deg-carousel-track::-webkit-scrollbar { display: none; }
.deg-carousel-track .deg-card {
  flex: 0 0 72%;   /* mobile: ~1.3 cards visible */
  min-width: 200px;
  scroll-snap-align: start;
}
@media (min-width: 481px) {
  .deg-carousel-track .deg-card { flex: 0 0 56%; }
}
@media (min-width: 769px) {
  .deg-carousel-track .deg-card { flex: 0 0 calc(25% - 12px); }
}
.deg-arrow {
  position: absolute;
  top: 50%; transform: translateY(-60%);
  z-index: 10;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(59,79,168,0.14);
  color: #374151;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.deg-arrow:hover { background: #e8eaf6; border-color: #7568b8; color: #5a60b4; }
.deg-arrow svg   { width: 18px; height: 18px; }
.deg-arrow-left  { left: -20px; }
.deg-arrow-right { right: -20px; }

/* ════════════════════════════════════════════
   QUICK ACTIONS — 5 × 2
════════════════════════════════════════════ */
.qa-grid-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* mobile-first: 2 col */
  gap: 14px;
  margin-bottom: 28px;
}
@media (min-width: 769px) {
  .qa-grid-new { grid-template-columns: repeat(5, 1fr); }
}

/* ════════════════════════════════════════════
   BOTTOM ROW  (learners + announcement)
════════════════════════════════════════════ */
.db-bottom-row {
  display: grid;
  grid-template-columns: 1fr; /* mobile-first: stack */
  gap: 16px;
  margin-bottom: 32px;
  align-items: start;
}
@media (min-width: 769px) {
  .db-bottom-row { grid-template-columns: 1fr 1fr; }
}

/* Horizontal learners */
.learner-hrow {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.learner-hrow::-webkit-scrollbar { display: none; }
.learner-hcard {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; flex-shrink: 0;
}
.learner-hcard-link {
  text-decoration: none; cursor: pointer;
  border-radius: 14px; padding: 8px 6px;
  transition: background .15s, transform .15s;
}
.learner-hcard-link:hover { background: #f5f3ff; transform: translateY(-2px); }
.learner-hcard-link:hover .learner-hname { color: #4338ca; }
.learner-hcard-link:hover .learner-avatar-lg { box-shadow: 0 0 0 3px rgba(99,102,241,.25); }
.learner-avatar-lg {
  width: 52px; height: 52px; border-radius: 50%;
  background: #c5cae9; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #1a237e;
  margin-bottom: 6px;
}
.learner-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.learner-hname {
  font-size: 12px; font-weight: 600; color: #111827;
  max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.learner-htime { font-size: 10.5px; color: #9ca3af; margin-top: 2px; }

/* Announcement card */
.db-ann-single {
  background: #fff; border-radius: 18px;
  padding: 20px;
  box-shadow: 0 2px 14px rgba(59,79,168,0.07);
  display: flex; align-items: center; gap: 16px;
  height: 100%;
}
.db-ann-ic {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  display: flex; align-items: center; justify-content: center;
  color: #5a60b4; flex-shrink: 0;
}
.db-ann-ic svg { width: 24px; height: 24px; }
.db-ann-body   { flex: 1; min-width: 0; }
.db-ann-title  { font-size: 14px; font-weight: 700; color: #3b4fa8; margin-bottom: 5px; }
.db-ann-desc   { font-size: 12px; color: #6b7280; line-height: 1.5; }
.db-ann-btn {
  flex-shrink: 0;
  background: #eaecf8; color: #3b4fa8;
  font-size: 12.5px; font-weight: 700;
  padding: 9px 18px; border-radius: 10px;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s;
}
.db-ann-btn:hover { background: #c5cae9; }
