/* ===================================================
   EduShort — Modern Redesign
   Clean, premium aesthetic with subtle glassmorphism
   =================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Brand */
  --brand-primary: #2d2db5;
  --brand-primary-dark: #1e1e8f;
  --brand-primary-light: #4f4fd4;
  --brand-accent: #d4a843;

  /* Neutrals */
  --bg-body: #f0f0f8;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafe;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-light: #e5e7eb;
  --border-card: rgba(0, 0, 0, 0.06);

  /* Tag Colors */
  --tag-primary-bg: #e8e8f4;
  --tag-primary-text: #2d2db5;
  --tag-success-bg: #fef3c7;
  --tag-success-text: #b45309;
  --tag-neutral-bg: #f3f4f6;
  --tag-neutral-text: #374151;

  /* Button */
  --btn-bg: #2d2db5;
  --btn-bg-hover: #1e1e8f;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 40px rgba(0, 0, 0, 0.06);
  --shadow-btn: 0 4px 14px rgba(45, 45, 181, 0.35);
  --shadow-navbar: 0 1px 3px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --navbar-height: 64px;
  --container-max: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

/* ---------- Navbar ---------- */
.edu-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: 1000;
  background: rgba(240, 240, 248, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.edu-navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-navbar);
}

.edu-navbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.edu-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 1001;
}

.edu-brand-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--brand-primary);
  letter-spacing: -0.5px;
}

/* Nav Links */
.edu-nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.edu-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.edu-nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
  position: relative;
}

.edu-nav-link:hover {
  color: var(--text-primary);
  background: rgba(45, 45, 181, 0.06);
}

.edu-nav-link.active {
  color: var(--brand-primary);
  font-weight: 600;
}

.edu-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
}

/* Toggle Menu Button (Down Arrow) */
.edu-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(45, 45, 181, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  z-index: 1001;
  transition: all var(--transition-smooth);
}

.edu-menu-btn:hover {
  background: rgba(45, 45, 181, 0.1);
  color: var(--brand-primary);
}

.edu-menu-btn .material-symbols-outlined {
  font-size: 22px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.edu-menu-btn.active {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

.edu-menu-btn.active .material-symbols-outlined {
  transform: rotate(180deg);
}

/* ---------- Profile Dropdown ---------- */
.edu-profile-dropdown {
  position: relative;
  margin-left: 12px;
  z-index: 1002;
}

.edu-profile-trigger {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.edu-profile-trigger:hover,
.edu-profile-dropdown.active .edu-profile-trigger {
  border-color: var(--brand-primary-light);
  color: var(--brand-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 45, 181, 0.12);
}

.edu-profile-trigger span {
  font-size: 26px;
}

.edu-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 40px);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

/* Show menu on hover (desktop) or when active class is added */
.edu-profile-dropdown:hover .edu-dropdown-menu,
.edu-profile-dropdown.active .edu-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.edu-dropdown-header {
  margin-bottom: 20px;
}

.edu-dropdown-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-dropdown-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.edu-dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 16px 0;
}

.edu-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: var(--radius-pill);
  color: #374151;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.edu-google-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.edu-google-btn svg {
  flex-shrink: 0;
}

/* Adjustments for mobile */
@media (max-width: 768px) {
  .edu-profile-dropdown {
    margin-left: 10px;
    margin-right: 4px;
  }
}

/* Compact Mobile Menu Dropdown */
.edu-mobile-menu {
  position: fixed;
  top: calc(var(--navbar-height) + 8px);
  right: 16px;
  width: 220px;
  z-index: 999;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.edu-mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.edu-mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edu-mobile-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.edu-mobile-link:hover,
.edu-mobile-link.active {
  color: var(--brand-primary);
  background: rgba(45, 45, 181, 0.06);
}

/* ---------- Main Content ---------- */
.edu-main {
  padding-top: calc(var(--navbar-height) + 32px);
  min-height: calc(100vh - 80px);
}

/* ---------- Page Section ---------- */
.edu-page-section {
  padding-bottom: 80px;
}

.edu-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Page Header ---------- */
.edu-page-header {
  margin-bottom: 48px;
}

.edu-page-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.edu-page-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 480px;
}

/* ---------- Cards Grid ---------- */
.edu-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* ---------- Class Card ---------- */
.edu-class-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  cursor: default;
}

.edu-class-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: rgba(45, 45, 181, 0.1);
}

/* Card Icon */
.edu-card-icon-wrapper {
  position: relative;
  z-index: 2;
}

.edu-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

/* Alternating card icon colors via nth-child */
.edu-class-card:nth-child(odd) .edu-card-icon {
  background: rgba(45, 45, 181, 0.1);
  color: var(--brand-primary);
}

.edu-class-card:nth-child(even) .edu-card-icon {
  background: rgba(212, 168, 67, 0.15);
  color: #96700a;
}

.edu-class-card:hover .edu-card-icon {
  transform: scale(1.08);
}

/* Card Content */
.edu-card-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.edu-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

/* Tags */
.edu-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.edu-tag.tag-primary {
  background: var(--tag-primary-bg);
  color: var(--tag-primary-text);
  border-color: rgba(45, 45, 181, 0.12);
}

.edu-tag.tag-success {
  background: var(--tag-success-bg);
  color: var(--tag-success-text);
  border-color: rgba(180, 83, 9, 0.12);
}

.edu-tag.tag-neutral {
  background: var(--tag-neutral-bg);
  color: var(--tag-neutral-text);
  border-color: rgba(55, 65, 81, 0.1);
}

/* Card Gradient Decoration */
.edu-card-gradient {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  opacity: 0.06;
  z-index: 1;
  transition: var(--transition-smooth);
  pointer-events: none;
}

/* Alternating card gradient colors via nth-child */
.edu-class-card:nth-child(odd) .edu-card-gradient {
  background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
}

.edu-class-card:nth-child(even) .edu-card-gradient {
  background: radial-gradient(circle, var(--brand-accent) 0%, transparent 70%);
}

.edu-class-card:hover .edu-card-gradient {
  opacity: 0.1;
  transform: scale(1.15);
}

/* Card Button */
.edu-card-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 22px;
  background: var(--btn-bg);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  margin-top: auto;
}

.edu-card-btn:hover {
  background: var(--btn-bg-hover);
  box-shadow: 0 6px 20px rgba(45, 45, 181, 0.45);
  transform: translateY(-1px);
  color: #ffffff;
}

.edu-card-btn svg {
  transition: var(--transition-fast);
}

/* Admin header actions */


.edu-card-btn:hover svg {
  transform: translateX(4px);
}

/* ---------- Footer ---------- */
.edu-footer {
  background: var(--bg-body);
  border-top: 1px solid var(--border-light);
  padding: 28px 0;
}

.edu-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.edu-footer-brand .edu-brand-text {
  font-size: 1.1rem;
}

.edu-footer-links {
  display: flex;
  gap: 28px;
}

.edu-footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-fast);
}

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

/* ---------- Hero Banner ---------- */
.edu-hero-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 248, 0.8) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  margin-bottom: 48px;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

.edu-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.edu-hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-primary);
  background: rgba(45, 45, 181, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.edu-hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 20px;
}

.edu-hero-board {
  color: var(--brand-primary);
  font-style: italic;
  font-family: 'DM Sans', sans-serif;
}

.edu-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.edu-hero-decoration {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
}

.edu-hero-blob {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45, 45, 181, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.edu-hero-blob.blob-2 {
  top: 40%;
  right: 15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.1) 0%, transparent 70%);
}

/* ---------- Subjects Grid ---------- */
.edu-subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.edu-subject-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.edu-subject-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(45, 45, 181, 0.1);
}

.edu-subject-icon {
  width: 52px;
  height: 52px;
  background: rgba(45, 45, 181, 0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

/* restore spacing between icon and chapter heading */
.edu-subject-icon-wrapper { margin-bottom: 12px; }

.edu-subject-card:hover .edu-subject-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(45, 45, 181, 0.1);
}

.edu-subject-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-subject-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.edu-subject-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.edu-subject-chapters {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.5px;
}

.edu-subject-arrow {
  width: 32px;
  height: 32px;
  background: rgba(45, 45, 181, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  transition: var(--transition-fast);
}

.edu-subject-card:hover .edu-subject-arrow {
  background: var(--brand-primary);
  color: white;
  transform: translateX(3px);
}

/* Design-only edit button (non-functional) */
.btn-edit-design {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.06);
  color: var(--text-primary);
  border: none;
  cursor: pointer;
  z-index: 4;
  /* hidden by default; appears when card is hovered/focused */
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  pointer-events: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
.btn-edit-design .material-symbols-outlined { font-size: 16px; line-height: 1; }

/* Reveal edit button when the subject card is hovered or focused (accessibility) */
.edu-subject-card:hover .btn-edit-design,
.edu-subject-card:focus-within .btn-edit-design {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.btn-edit-design:hover {
  background: var(--brand-primary);
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(45,45,181,0.18);
}
.btn-edit-design:focus { outline: none; }

/* Ensure edit button is visible by default on touch devices or when hover isn't supported */
@media (hover: none), (pointer: coarse) {
  .btn-edit-design {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

/* (modal-hide rule removed — edit button visibility now handled by hover and touch fallbacks) */

/* Visual badge to indicate item was edited (design-only) */
.edu-badge-edited {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(45,45,181,0.08);
  color: var(--brand-primary);
  border: 1px solid rgba(45,45,181,0.12);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  z-index: 5;
}

/* ---------- Stats Section ---------- */
.edu-stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 64px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.edu-stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edu-stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
}

.edu-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

/* ---------- Empty State ---------- */
.edu-empty-state {
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.edu-empty-state h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.edu-empty-state p {
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 24px;
}

/* ---------- Search Bar (Chapters Page) ---------- */
.edu-search-wrapper {
  max-width: 480px;
}

.edu-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 4px 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.edu-search-bar:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 24px rgba(45, 45, 181, 0.1);
}

.edu-search-icon {
  position: absolute;
  left: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.edu-search-bar input {
  width: 100%;
  padding: 12px 20px 12px 50px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  color: var(--text-primary);
}

/* ---------- View More Button ---------- */
.edu-view-more-container {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

.edu-view-more-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: white;
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-pill);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.edu-view-more-btn:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

.edu-view-more-btn svg {
  transition: var(--transition-smooth);
}

.edu-view-more-btn:hover svg {
  transform: translateY(2px);
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 992px) {
  .edu-hero-banner {
    padding: 48px 32px;
  }
  
  .edu-stats-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .edu-hero-decoration {
    display: none;
  }
  
  .edu-hero-banner {
    padding: 40px 24px;
    text-align: center;
    justify-content: center;
  }
  
  .edu-hero-content {
    max-width: 100%;
  }

  .edu-subjects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .edu-stats-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .edu-hero-title {
    font-size: 2.25rem;
  }
}

.edu-footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .edu-navbar-inner {
    padding: 0 16px;
  }

  .edu-nav-links {
    display: none;
  }

  .edu-brand-text {
    font-size: 1.15rem;
  }

  .edu-menu-btn {
    display: flex;
  }

  .edu-nav-actions {
    gap: 4px;
  }

  .edu-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .edu-page-header {
    margin-bottom: 32px;
  }

  .edu-footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .edu-footer-links {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .edu-container {
    padding: 0 16px;
  }

  .edu-class-card {
    padding: 24px 20px 20px;
    border-radius: var(--radius-lg);
  }

  .edu-card-title {
    font-size: 1.4rem;
  }
}

/* ===================================================
   Existing Utility Styles (preserved for other pages)
   =================================================== */

/* Batch heading (batch_subjects page) */
.batch-heading {
  padding: 15px;
  background: linear-gradient(135deg, #4f46e5 0%, #2d2db5 100%);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  border-radius: var(--radius-xl);
  font-weight: 600;
}

/* Subject icon */
.subject-icon {
  min-height: 60px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: xx-large;
  margin: 10px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  border-radius: var(--radius-lg);
}

/* Subject name */
.subject-name {
  width: 200px;
  height: 60px;
  overflow: hidden;
}

.subject-name .card-title {
  font-size: 100%;
}

/* Generic card transitions */
.card {
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  border-radius: var(--radius-lg);
}

.card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-card-hover);
}

/* Progressive disclosure */
.progressive-disclosure {
  height: 350px;
  position: relative;
  overflow: hidden;
}

.view-more-btn-container {
  height: 48px;
  background: var(--bg-body);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.disclose-collapsed {
  height: 435px;
  overflow: hidden;
  position: relative;
}

.disclose-collapsed::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: linear-gradient(0deg, var(--bg-body) 0%, rgba(240, 240, 248, 0.8) 32%, rgba(240, 240, 248, 0.7) 42%, rgba(240, 240, 248, 0.48) 70%, rgba(240, 240, 248, 0) 100%);
}

/* Search container */
.search-container {
  height: 48px;
  padding: 5px;
  padding-left: 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}

.search-container input {
  outline: none;
  width: 100%;
  font-family: inherit;
}

.search-container button {
  outline: none;
  border: none;
  background: var(--btn-bg);
  height: 100%;
  width: 100px;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
  font-family: inherit;
}

.search-container button:hover {
  cursor: pointer;
  background: var(--btn-bg-hover);
  transform: scale(1.03);
}

/* Bootstrap overrides for consistency */
.btn-primary {
  background-color: var(--btn-bg) !important;
  border-color: var(--btn-bg) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  transition: var(--transition-fast) !important;
}

.btn-primary:hover {
  background-color: var(--btn-bg-hover) !important;
  border-color: var(--btn-bg-hover) !important;
  box-shadow: var(--shadow-btn) !important;
}

/* ===================================================
   Chapter View — Tabbed Interface
   =================================================== */

/* ---------- Chapter Header ---------- */
.cv-header {
  margin-bottom: 32px;
}

.cv-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
}

.cv-back-link:hover {
  color: var(--brand-primary);
  background: rgba(45, 45, 181, 0.06);
}

.cv-back-link .material-symbols-outlined {
  font-size: 18px;
}

.cv-header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.cv-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.cv-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ---------- Tabs ---------- */
.cv-tabs-wrapper {
  position: sticky;
  top: var(--navbar-height);
  z-index: 100;
  background: var(--bg-body);
  padding: 8px 0 0;
  margin-bottom: 32px;
}

.cv-tabs {
  position: relative;
  display: inline-flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 5px;
  box-shadow: var(--shadow-card);
}

.cv-tab {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.cv-tab .material-symbols-outlined {
  font-size: 20px;
  transition: var(--transition-fast);
}

.cv-tab:hover {
  color: var(--text-primary);
}

.cv-tab.active {
  color: #ffffff;
  font-weight: 600;
}

.cv-tab.active .material-symbols-outlined {
  color: #ffffff;
}

/* Sliding indicator behind active tab */
.cv-tab-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  z-index: 1;
  background: var(--brand-primary);
  border-radius: var(--radius-pill);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(45, 45, 181, 0.3);
}

/* ---------- Panels ---------- */
.cv-panels {
  min-height: 400px;
}

.cv-panel {
  display: none;
  animation: cvFadeIn 0.35s ease;
}

.cv-panel.active {
  display: block;
}

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

/* ---------- YouTube Panel ---------- */
.cv-admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.cv-admin-panel-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 4px 0 0;
}

.cv-admin-add-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border: none;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(45, 45, 181, 0.22);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cv-admin-add-btn:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-2px);
}

.cv-admin-add-btn .material-symbols-outlined {
  font-size: 24px;
}

.cv-admin-modal {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.cv-admin-modal .modal-header,
.cv-admin-modal .modal-body,
.cv-admin-modal .modal-footer {
  padding-left: 24px;
  padding-right: 24px;
}

.cv-admin-modal-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cv-admin-video-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-admin-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cv-admin-input {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--bg-body);
  padding: 14px 16px;
  font: inherit;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.cv-admin-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(45, 45, 181, 0.08);
}

.cv-admin-helper {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cv-relative-field {
  position: relative;
}

.cv-admin-search-helper {
  position: relative;
  display: flex;
  align-items: center;
}

.cv-admin-search-helper .cv-admin-input {
  padding-right: 48px;
}

.cv-admin-copy-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: var(--bg-body);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cv-admin-copy-btn:hover {
  background: var(--brand-primary);
  color: #fff;
}

.cv-admin-copy-btn .material-symbols-outlined {
  font-size: 18px;
}

.cv-copy-feedback {
  position: absolute;
  bottom: -4px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  z-index: 10;
}

.cv-copy-feedback .material-symbols-outlined {
  font-size: 16px;
}

.cv-copy-feedback.cv-show {
  opacity: 1;
  transform: translateY(0);
}

.cv-admin-primary-btn {
  border: none;
  border-radius: var(--radius-pill);
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 18px;
}

.cv-admin-primary-btn:hover {
  background: var(--brand-primary-dark);
  color: #ffffff;
}

.cv-yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.cv-video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.cv-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(45, 45, 181, 0.1);
}

.cv-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.cv-video-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.cv-video-thumb-placeholder .material-symbols-outlined {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
}

.cv-video-card:hover .cv-video-thumb-placeholder .material-symbols-outlined {
  color: #ff4444;
  transform: scale(1.15);
}

.cv-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.cv-video-info {
  padding: 16px;
}

.cv-video-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cv-video-channel {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 4px;
}

.cv-video-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cv-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ---------- AI Chat Panel ---------- */
.cv-chat-container {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-height: 480px;
}

.cv-chat-messages {
  flex: 1;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.cv-chat-msg {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: cvFadeIn 0.3s ease;
}

.cv-chat-msg.cv-chat-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.cv-chat-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(45, 45, 181, 0.12) 0%, rgba(79, 79, 212, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}

.cv-chat-avatar .material-symbols-outlined {
  font-size: 20px;
}

.cv-chat-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  line-height: 1.55;
  font-size: 0.9rem;
}

.cv-chat-ai .cv-chat-bubble {
  background: var(--bg-body);
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
}

.cv-chat-user .cv-chat-bubble {
  background: var(--brand-primary);
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.cv-chat-input-wrapper {
  border-top: 1px solid var(--border-light);
  padding: 16px 20px;
  background: var(--bg-card);
}

.cv-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 20px;
  transition: var(--transition-smooth);
}

.cv-chat-input-bar:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(45, 45, 181, 0.08);
}

.cv-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  padding: 10px 0;
  color: var(--text-primary);
}

.cv-chat-send {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: none;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(45, 45, 181, 0.3);
}

.cv-chat-send:hover {
  background: var(--brand-primary-dark);
  transform: scale(1.08);
}

.cv-chat-send .material-symbols-outlined {
  font-size: 20px;
}

.cv-chat-disclaimer {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---------- Interactives Panel ---------- */
.cv-interactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.cv-interactive-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.cv-interactive-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(45, 45, 181, 0.08);
}

.cv-interactive-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.cv-interactive-card:hover .cv-interactive-icon {
  transform: scale(1.1) rotate(5deg);
}

.cv-interactive-icon .material-symbols-outlined {
  font-size: 24px;
}

.cv-interactive-info {
  flex: 1;
  min-width: 0;
}

.cv-interactive-info h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.cv-interactive-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0;
}

.cv-interactive-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--tag-neutral-bg);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.cv-interactive-badge.badge-new {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* ---------- Question Bank Panel ---------- */
.cv-qbank-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cv-qbank-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.cv-qbank-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 10px;
}

.cv-qbank-toolbar-copy h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.cv-qbank-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.cv-qbank-filter span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cv-qbank-filter select {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: var(--bg-body);
  padding: 12px 16px;
  font: inherit;
  color: var(--text-primary);
  outline: none;
}

.cv-qbank-stage {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(320px, 1fr) minmax(110px, 140px);
  align-items: center;
  gap: 28px;
  padding: 12px 8px 8px;
}

.cv-qbank-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  padding: 10px 4px;
}

.cv-qbank-nav .material-symbols-outlined {
  font-size: 20px;
}

.cv-qbank-viewer {
  position: relative;
  padding-top: 26px;
}

.cv-qbank-frame {
  background: #f4f4f4;
  border: 4px solid #111111;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.cv-qbank-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cv-qbank-topic {
  position: absolute;
  top: 0;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 32px;
  padding: 6px 16px;
  border: 4px solid #111111;
  border-radius: var(--radius-pill);
  background: #f4f4f4;
  font-size: 0.92rem;
  font-weight: 600;
  color: #111111;
}

/* ---------- Chapter View Responsive ---------- */
@media (max-width: 768px) {
  .cv-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .cv-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }

  .cv-tab {
    padding: 9px 16px;
    font-size: 0.82rem;
  }

  .cv-tab .material-symbols-outlined {
    font-size: 18px;
  }

  .cv-yt-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cv-admin-panel-head {
    align-items: flex-start;
  }

  .cv-interactive-grid {
    grid-template-columns: 1fr;
  }

  .cv-qbank-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
  }

  .cv-qbank-filter {
    min-width: 100%;
  }

  .cv-qbank-stage {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cv-chat-msg {
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .cv-tab span:not(.material-symbols-outlined) {
    display: none;
  }

  .cv-tab {
    padding: 10px 16px;
    gap: 0;
  }

  .cv-title {
    font-size: 1.5rem;
  }

  .cv-qbank-nav {
    justify-content: space-between;
    width: 100%;
  }

  .cv-qbank-topic {
    left: 12px;
    min-width: 70px;
    min-height: 30px;
    font-size: 0.82rem;
  }
}

.cv-admin-copy-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}


/* Override Bootstrap navbar for legacy pages */
.navbar {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(16px) !important;
}
