/* Brand color: replaces Bootstrap's default blue with your purple */
:root {
  --bs-primary: #6c4ff6;
  --bs-primary-rgb: 108, 79, 246;
  --bs-primary-bg-subtle: #efeaff;
  --bs-primary-border-subtle: #cfc4ff;
  --bs-primary-text-emphasis: #3b2896;
  --bs-link-color: #6c4ff6;
  --bs-link-color-rgb: 108, 79, 246;
  --bs-link-hover-color: #5539d6;
  --bs-link-hover-color-rgb: 85, 57, 214;
}

.btn-primary {
  --bs-btn-bg: #6c4ff6;
  --bs-btn-border-color: #6c4ff6;
  --bs-btn-hover-bg: #5539d6;
  --bs-btn-hover-border-color: #5539d6;
  --bs-btn-active-bg: #4a2fc4;
  --bs-btn-active-border-color: #4a2fc4;
  --bs-btn-disabled-bg: #6c4ff6;
  --bs-btn-disabled-border-color: #6c4ff6;
}

.btn-outline-primary {
  --bs-btn-color: #6c4ff6;
  --bs-btn-border-color: #6c4ff6;
  --bs-btn-hover-bg: #6c4ff6;
  --bs-btn-hover-border-color: #6c4ff6;
  --bs-btn-active-bg: #6c4ff6;
  --bs-btn-active-border-color: #6c4ff6;
  --bs-btn-disabled-color: #6c4ff6;
  --bs-btn-disabled-border-color: #6c4ff6;
}

.nav-pills {
  --bs-nav-pills-link-active-bg: #6c4ff6;
}

.form-control:focus {
  border-color: #6c4ff6;
  box-shadow: 0 0 0 0.25rem rgba(108, 79, 246, 0.2);
}

/* Login page left panel */
.auth-panel {
  background: linear-gradient(135deg, #6c4ff6 0%, #9b7bff 100%);
}

/* Subject colors: purple = Mathematics, teal = Science, coral = English */
.subject-purple { --subject: #6c4ff6; --subject-bg: #efeaff; }
.subject-teal   { --subject: #1d9e75; --subject-bg: #e2f5ee; }
.subject-coral  { --subject: #e8603c; --subject-bg: #fdebe4; }

.subject-card {
  border: 0;
  border-top: 4px solid var(--subject);
}

.subject-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--subject);
  background: var(--subject-bg);
}

/* Quiz screen */
.quiz-header {
  background: linear-gradient(135deg, #6c4ff6 0%, #9b7bff 100%);
}
.quiz-body {
  padding-bottom: 100px; /* room for the bottom bar */
}
.option-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f0f7;
  font-weight: 600;
  flex-shrink: 0;
}

/* ===== Admin area (v3) ===== */
.admin-body {
  background-color: #f6f7fb;
  background-image: linear-gradient(180deg, #ece8ff 0, #f6f7fb 320px);
  background-repeat: no-repeat;
  min-height: 100vh;
}
.admin-body h1 { color: #1f1b4a; letter-spacing: -0.02em; }

/* The page content stays hidden until the admin check has passed */
body:not(.admin-ready) #page-content { display: none; }

/* Frame: sidebar on the left, content on the right */
.admin-shell { display: flex; min-height: 100vh; }
.admin-aside {
  width: 264px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #2a2160 0%, #151230 100%);
  color: #fff;
}
.admin-main { flex: 1 1 auto; min-width: 0; }
.admin-content { padding: 1.5rem; }
.admin-topbar-mobile { display: none; }
.admin-backdrop { display: none; }

/* Phones: the sidebar slides in over the page */
@media (max-width: 767.98px) {
  .admin-aside {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1045;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .admin-shell.menu-open .admin-aside { transform: none; }
  .admin-shell.menu-open .admin-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.45);
  }
  .admin-topbar-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(135deg, #2a2160, #151230);
  }
  .admin-content { padding: 1rem; }
}

/* Sidebar parts */
.admin-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6c4ff6, #9b7bff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.admin-section-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 1.6rem 0 0.6rem 0.9rem;
}
.admin-nav .nav-link {
  color: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.admin-nav .nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.admin-nav .nav-link.active {
  background: linear-gradient(135deg, #6c4ff6, #9b7bff);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(108, 79, 246, 0.45);
}
.admin-user { background: rgba(255, 255, 255, 0.08); }
.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c4ff6, #9b7bff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.admin-btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border: 0; }
.admin-btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* Cards, tables, forms */
.admin-body .card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(60, 40, 140, 0.07);
}
.admin-body .card > .table-responsive { border-radius: 18px; }
.admin-body .modal-content { border: 0; border-radius: 20px; }
.admin-body .alert { border: 0; border-radius: 12px; }
.admin-body .btn { border-radius: 10px; font-weight: 500; }
.admin-body .btn-sm { border-radius: 8px; }
.admin-body .form-control, .admin-body .form-select { border-radius: 10px; }
.admin-body .badge { border-radius: 999px; font-weight: 600; padding: 0.45em 0.8em; }
.admin-body .table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a7894;
  font-weight: 600;
  padding: 1rem;
  border-bottom: 1px solid #ece9f8;
}
.admin-body .table td { padding: 0.9rem 1rem; border-color: #f0eefa; }
.admin-body .table tbody tr:hover > * { --bs-table-bg-state: #faf9ff; }

/* Dashboard stat cards */
.stat-card { transition: transform 0.15s, box-shadow 0.15s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(60, 40, 140, 0.14); }
.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-purple { background: #efeaff; color: #6c4ff6; }
.stat-green  { background: #e2f5ee; color: #1d9e75; }
.stat-amber  { background: #fff3dc; color: #d98a00; }
.stat-coral  { background: #fdebe4; color: #e8603c; }

/* ===== Cards v4: category and question set cards with images ===== */
.subject-purple { --subject-from: #6c4ff6; --subject-to: #9b7bff; }
.subject-teal   { --subject-from: #14866a; --subject-to: #3ec7a0; }
.subject-coral  { --subject-from: #e8603c; --subject-to: #ff9a76; }

/* Category card */
.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 176px;
  padding: 20px;
  border-radius: 26px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--subject-from), var(--subject-to));
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--subject-from) 70%, transparent);
  transition: transform 0.18s, box-shadow 0.18s;
}
.cat-card::before,
.cat-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}
.cat-card::before { width: 150px; height: 150px; right: -50px; top: -60px; }
.cat-card::after  { width: 90px; height: 90px; right: 34px; bottom: -48px; }
.cat-card > * { position: relative; z-index: 1; }
.cat-card:hover {
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 20px 34px -12px color-mix(in srgb, var(--subject-from) 75%, transparent);
}
.cat-thumb {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
}
.cat-title { font-size: 1.15rem; font-weight: 700; margin-top: 1rem; }
.cat-meta { opacity: 0.85; font-size: 0.85rem; }

/* Question set card */
.set-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(40, 30, 110, 0.08);
  transition: transform 0.18s, box-shadow 0.18s;
}
.set-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px -12px color-mix(in srgb, var(--subject-from) 55%, transparent);
}
.set-banner {
  position: relative;
  height: 88px;
  background: linear-gradient(135deg, var(--subject-from), var(--subject-to));
}
.set-banner::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  right: -30px;
  top: -44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.set-thumb {
  position: absolute;
  left: 20px;
  bottom: -30px;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.9rem;
  color: var(--subject-from);
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.set-thumb img { width: 100%; height: 100%; object-fit: cover; }
.set-flag {
  position: absolute;
  right: 16px;
  top: 14px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
}
.set-body { display: flex; flex-direction: column; flex: 1; padding: 42px 22px 22px; }
.set-progress { height: 8px; border-radius: 999px; background: #eeeaf9; }
.set-progress .progress-bar { border-radius: 999px; }

/* Small image box used in the admin tables and forms */
.cat-thumb-sm {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 1.4rem;
  color: #6c4ff6;
  background: #efeaff;
}
.cat-thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.cat-thumb-lg { width: 72px; height: 72px; border-radius: 18px; font-size: 2rem; }

/* ===== More subject colors ===== */
.subject-blue  { --subject: #2f6df6; --subject-bg: #e6eeff; --subject-from: #2f6df6; --subject-to: #6da0ff; }
.subject-pink  { --subject: #d6336c; --subject-bg: #fde7ef; --subject-from: #d6336c; --subject-to: #ff7aa8; }
.subject-amber { --subject: #e08a00; --subject-bg: #fff3dc; --subject-from: #e08a00; --subject-to: #ffc14d; }
.subject-green { --subject: #2f9e44; --subject-bg: #e3f6e7; --subject-from: #2f9e44; --subject-to: #69db7c; }

/* ===== Front page hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #4a2fc4 0%, #6c4ff6 55%, #9b7bff 100%);
  box-shadow: 0 18px 36px -18px rgba(108, 79, 246, 0.8);
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.hero::before { width: 220px; height: 220px; right: -60px; top: -90px; }
.hero::after  { width: 140px; height: 140px; right: 120px; bottom: -80px; }
.hero > * { position: relative; z-index: 1; }
.hero-hi { opacity: 0.85; font-weight: 500; }
.hero-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; max-width: 520px; }
.hero-art {
  position: absolute !important;
  right: 28px;
  bottom: -14px;
  font-size: 7rem;
  line-height: 1;
  opacity: 0.2;
}
.hero-stat {
  min-width: 96px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
}
.hero-stat b { display: block; font-size: 1.35rem; line-height: 1.2; }
.hero-stat span { font-size: 0.78rem; opacity: 0.85; }

/* ===== Test page ===== */
.quiz-top { padding: 14px 0 12px; }
.quiz-progress { height: 5px; background: rgba(255, 255, 255, 0.25); }
.quiz-progress > div { height: 100%; width: 0; background: #fff; transition: width 0.3s; }

.timer-ring { position: relative; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.timer-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 3.5; }
.ring-fg {
  fill: none;
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 119.38;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
}
.ring-text { position: relative; font-size: 0.78rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.timer-ring.warn .ring-fg { stroke: #ffd166; }
.timer-ring.danger .ring-fg { stroke: #ff6b6b; }
.timer-ring.danger { animation: ring-pulse 1s ease-in-out infinite; }
@keyframes ring-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.timer-untimed {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.q-card { border: 0; border-radius: 24px; box-shadow: 0 8px 28px rgba(40, 30, 110, 0.08); }
.q-number {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6c4ff6;
  background: #efeaff;
}

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  font-size: 1.02rem;
  color: #26233d;
  background: #fff;
  border: 2px solid #e8e5f5;
  border-radius: 16px;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.opt:hover { border-color: #b9a8ff; transform: translateX(2px); }
.opt .option-letter { transition: background 0.15s, color 0.15s; }
.opt.selected { border-color: #6c4ff6; background: #f4f1ff; }
.opt.selected .option-letter { background: #6c4ff6; color: #fff; }
.opt.correct { border-color: #1d9e75; background: #e9f8f2; }
.opt.correct .option-letter { background: #1d9e75; color: #fff; }
.opt.wrong { border-color: #e5484d; background: #fdeced; }
.opt.wrong .option-letter { background: #e5484d; color: #fff; }

.palette-card { border: 0; border-radius: 24px; box-shadow: 0 8px 28px rgba(40, 30, 110, 0.08); }
@media (min-width: 992px) { .palette-sticky { position: sticky; top: 100px; } }
.pal-bar { height: 8px; border-radius: 999px; background: #eeeaf9; overflow: hidden; }
.pal-bar > div { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #1d9e75, #3ec7a0); transition: width 0.3s; }
.q-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  color: #4b4a63;
  background: #f1f0f7;
  transition: transform 0.12s, box-shadow 0.12s;
}
.q-tile:hover { transform: translateY(-2px); }
.q-tile.answered { color: #fff; background: #1d9e75; }
.q-tile.flagged { color: #fff; background: #f5a623; }
.q-tile.flagged.answered::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d9e75;
  box-shadow: 0 0 0 2px #fff;
}
.q-tile.current { border-color: #6c4ff6; box-shadow: 0 0 0 4px rgba(108, 79, 246, 0.22); transform: scale(1.07); }
.legend-dot { display: inline-block; width: 12px; height: 12px; margin-right: 4px; border-radius: 4px; vertical-align: -1px; }

.bottom-bar { background: #fff; border-top: 1px solid #ece9f8; box-shadow: 0 -8px 24px rgba(40, 30, 110, 0.06); }

/* ===== Admin icon picker ===== */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.icon-choice {
  aspect-ratio: 1;
  border: 2px solid #e8e5f5;
  border-radius: 12px;
  font-size: 1.25rem;
  color: #5b5875;
  background: #fff;
  transition: border-color 0.12s, background 0.12s;
}
.icon-choice:hover { border-color: #b9a8ff; }
.icon-choice.selected { border-color: #6c4ff6; color: #6c4ff6; background: #efeaff; }


/* AssamTest-inspired QuizApp category hub: compact, searchable exam/subject browsing */
.category-hub { max-width: 1160px; }
.hub-hero { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between; min-height:245px; padding:34px 42px; border-radius:24px; color:#fff; background:linear-gradient(115deg,#28205f 0%,#5b43c7 58%,#876cf7 100%); box-shadow:0 14px 34px rgba(54,39,125,.16); }
.hub-hero-copy { position:relative; z-index:1; max-width:660px; }
.hub-eyebrow,.hub-kicker { display:inline-block; font-size:.7rem; font-weight:800; letter-spacing:.13em; }
.hub-eyebrow { color:#d9d1ff; margin-bottom:12px; }
.hub-hero h1 { font-size:clamp(1.8rem,4vw,2.65rem); line-height:1.12; font-weight:850; letter-spacing:-.04em; }
.hub-hero h1 > span:last-child { color:#ffcf70; }
.hub-hero p { color:rgba(255,255,255,.78); max-width:560px; margin:12px 0 22px; }
.hub-stats { display:flex; flex-wrap:wrap; gap:26px; }
.hub-stats div { display:flex; flex-direction:column; }
.hub-stats b { font-size:1.15rem; }
.hub-stats small { color:#ded8ff; font-size:.75rem; }
.hub-hero-art { position:relative; width:190px; height:190px; margin-right:30px; flex:0 0 auto; border:1px solid rgba(255,255,255,.2); border-radius:42px; background:rgba(255,255,255,.1); display:grid; place-items:center; transform:rotate(7deg); }
.hub-hero-art > i { font-size:6rem; color:#fff; transform:rotate(-7deg); }
.art-dot { position:absolute; display:block; border-radius:50%; background:#ffcf70; }
.dot-one { width:17px;height:17px;top:15px;right:14px; }.dot-two { width:10px;height:10px;bottom:19px;left:17px;background:#9cebd7; }
.hub-heading-row { display:flex; justify-content:space-between; align-items:end; gap:20px; margin:30px 0 18px; }
.hub-kicker { color:#7964d8; }.hub-heading-row h2 { font-size:1.55rem;font-weight:800;color:#211b49;margin:3px 0; }.hub-heading-row p { color:#77748a;margin:0;font-size:.9rem; }
.hub-search { display:flex;align-items:center;gap:9px;min-width:min(330px,100%);padding:10px 14px;background:#fff;border:1px solid #e8e5f2;border-radius:12px;color:#8b86a0; }
.hub-search input { border:0;outline:0;width:100%;background:transparent;color:#282344; }
.browse-section { background:#fff;border:1px solid #eeecf5;border-radius:18px;padding:20px;box-shadow:0 5px 18px rgba(32,25,76,.035); }
.browse-title { display:flex;align-items:center;gap:13px;margin-bottom:17px; }
.browse-title h3 { font-size:1.08rem;font-weight:800;color:#29234e;margin:0 0 3px; }.browse-title p { margin:0;color:#858197;font-size:.82rem; }
.browse-icon { width:43px;height:43px;display:grid;place-items:center;border-radius:13px;font-size:1.25rem; }.exam-icon { background:#fff2dc;color:#bd7a13; }.subject-icon { background:#eeeaff;color:#6c4ff6; }
.category-compact-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px; }
.category-compact { --subject:#6c4ff6; --subject-bg:#f1edff; display:flex;align-items:center;gap:12px;min-width:0;padding:12px 14px;border:1px solid #eeecf5;border-radius:13px;text-decoration:none;background:#fff;color:#292344;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.category-compact:hover { color:#292344;transform:translateY(-2px);border-color:var(--subject);box-shadow:0 7px 18px rgba(42,32,95,.08); }
.category-compact.subject-teal { --subject:#159b78;--subject-bg:#e6f7f1; }.category-compact.subject-coral { --subject:#e66b4c;--subject-bg:#fff0eb; }.category-compact.subject-blue { --subject:#3679d8;--subject-bg:#eaf2ff; }.category-compact.subject-pink { --subject:#cc5797;--subject-bg:#fcecf5; }.category-compact.subject-amber { --subject:#c58a24;--subject-bg:#fff5df; }.category-compact.subject-green { --subject:#26966a;--subject-bg:#e8f7ef; }
.compact-thumb { width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;overflow:hidden;border-radius:11px;background:var(--subject-bg);color:var(--subject);font-size:1.2rem; }.compact-thumb img { width:100%;height:100%;object-fit:cover; }
.compact-copy { min-width:0;display:flex;flex-direction:column;gap:3px; }.compact-copy strong { font-size:.91rem;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }.compact-copy small { font-size:.73rem;color:#88849a; }.compact-arrow { margin-left:auto;color:#aaa5bc;flex:0 0 auto; }
@media(max-width:767.98px) { .hub-hero { min-height:0;padding:25px 22px;border-radius:18px; }.hub-hero-art { width:92px;height:92px;margin:0 4px 0 10px;border-radius:25px; }.hub-hero-art>i { font-size:3.2rem; }.hub-stats { gap:17px; }.hub-heading-row { align-items:stretch;flex-direction:column; }.hub-search { min-width:0;width:100%; }.browse-section { padding:15px; }.category-compact-grid { grid-template-columns:1fr;gap:9px; } }
@media(max-width:380px) { .hub-hero-art { display:none; }.hub-hero { padding:22px 18px; } }

/* Student navigation: restore the established purple active/hover colors. */
.quiz-navbar{background:rgba(255,255,255,.97);border-bottom:1px solid #ece9f7;box-shadow:0 6px 24px rgba(45,35,90,.06);backdrop-filter:blur(14px);}
.nav-pill-link{border-radius:12px;padding:.65rem .9rem!important;color:#5b6070;font-weight:600;transition:background .18s,color .18s,transform .18s;}
.nav-pill-link:hover{background:#f2efff;color:#5638dc;transform:translateY(-1px);}
.nav-pill-link.active{background:#eee9ff;color:#5638dc!important;}
.profile-dropdown{min-width:220px;padding:.5rem;border-radius:16px;}
.profile-dropdown .dropdown-item{padding:.7rem .8rem;border-radius:10px;font-weight:500;}
.profile-dropdown .dropdown-item:hover{background:#f3f0ff;color:#5638dc;}
.category-directory-card{display:flex;align-items:center;gap:14px;padding:16px;background:#fff;border:1px solid #eeebf8;border-radius:15px;color:#25223a;box-shadow:0 4px 16px rgba(45,35,90,.045);transition:.18s;}
.category-directory-card:hover{transform:translateY(-2px);border-color:#cfc4ff;box-shadow:0 8px 22px rgba(45,35,90,.09);color:#5638dc;}
.directory-thumb{width:54px;height:54px;flex:0 0 54px;border-radius:13px;background:#f0ecff;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.directory-thumb img{width:100%;height:100%;object-fit:cover;}
.category-directory-card strong,.category-directory-card small{display:block;}
.category-directory-card small{font-size:.78rem;color:#858196;margin-top:3px;}
.category-directory-card>i{color:#8b83a8;}

/* Shared QuizApp footer */
.quiz-site-footer{background:#171b3b;color:#d9def4;margin-top:3rem}
.quiz-site-footer .footer-brand{font-size:1.35rem;font-weight:800;color:#fff;text-decoration:none}
.quiz-site-footer h6{font-weight:700;color:#fff;margin-bottom:.8rem}
.quiz-site-footer a:not(.footer-brand){display:block;color:#d9def4;text-decoration:none;font-size:.92rem;margin:.42rem 0}
.quiz-site-footer a:hover{color:#fff;text-decoration:underline}
.quiz-site-footer p{color:#c1c8e2;max-width:360px}
.quiz-site-footer .footer-bottom{border-top:1px solid rgba(255,255,255,.16);font-size:.85rem;color:#b9c0dc}
