/* ==========================================================================
   AKTU Quantum - Modern Academic Portal Design System
   Modern, Professional UI/UX with High-Contrast Light/Dark Modes
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables & Color Tokens --- */
:root {
  /* Brand Palettes */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --secondary: #0ea5e9;
  --secondary-glow: rgba(14, 165, 233, 0.2);
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  --gradient-text: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #6366f1 100%);

  /* Neutrals & Surfaces (Light Mode) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --dropdown-bg: #ffffff;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  --border-color: rgba(226, 232, 240, 0.85);
  --border-focus: #818cf8;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(79, 70, 229, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Pitch Dark Mode Tokens (True OLED Pure Black #000000) */
html.dark-mode,
body.dark-mode {
  color-scheme: dark;
  --bg-body: #000000;
  --bg-surface: #09090b;
  --bg-subtle: #040406;
  --bg-muted: #111114;
  --nav-bg: rgba(0, 0, 0, 0.92);
  --dropdown-bg: #09090b;

  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --text-inverse: #000000;

  --border-color: rgba(255, 255, 255, 0.09);
  --border-focus: #6366f1;

  --gradient-text: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #818cf8 100%);
  --gradient-card: linear-gradient(180deg, rgba(14, 14, 16, 0.95) 0%, rgba(6, 6, 8, 0.98) 100%);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.9);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.95);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.98);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 1), 0 0 25px rgba(99, 102, 241, 0.18);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.35);
}

body.dark-mode {
  background-color: #000000;
  color: #ffffff;
}

body.dark-mode .home {
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
              #000000;
}

body.dark-mode .search-card,
body.dark-mode .stats-grid,
body.dark-mode .category .box,
body.dark-mode .year .box,
body.dark-mode .lab-card,
body.dark-mode .feature-pill-card,
body.dark-mode .about-card,
body.dark-mode .papers li a,
body.dark-mode .past-year-papers li a {
  background: #09090b;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

body.dark-mode .category .box:hover,
body.dark-mode .year .box:hover,
body.dark-mode .lab-card:hover {
  background: #0d0d11;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9), 0 0 20px rgba(99, 102, 241, 0.15);
}

body.dark-mode .lab-showcase-section {
  background: #000000;
  border-top-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .footer {
  background: #000000;
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .search-card:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

body.dark-mode .search-tag-pill {
  background: #121216;
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark-mode .search-tag-pill:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: transparent;
}

body.dark-mode .btn-secondary {
  background: #0e0e12;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .btn-secondary:hover {
  background: #181820;
  border-color: rgba(255, 255, 255, 0.25);
}

body.dark-mode .btn-outline {
  background: transparent;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18);
}

body.dark-mode .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--bg-body);
}

html.dark-mode {
  background-color: #000000;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-size: 1.6rem;
  line-height: 1.65;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

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

section {
  padding: 6rem 9%;
  position: relative;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #ffffff !important;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--shadow-glow);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff !important;
}

/* --- Header & Navigation --- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 9%;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.header .logo svg.brand-logo-svg {
  width: 3.4rem;
  height: 3.4rem;
  flex-shrink: 0;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
  transition: transform var(--transition-smooth);
}

.header .logo:hover svg.brand-logo-svg {
  transform: rotate(-8deg) scale(1.08);
}

.header .logo i {
  font-size: 2.4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header .logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.svg-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

.svg-icon-sm {
  width: 1em;
  height: 1em;
}

.svg-icon-lg {
  width: 1.75em;
  height: 1.75em;
}

.svg-icon-xl {
  width: 2.25em;
  height: 2.25em;
}

.header .navbar ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.6rem;
}

.header .navbar ul li {
  position: relative;
}

.header .navbar ul li a {
  padding: 0.9rem 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.header .navbar ul li a:hover,
.header .navbar ul li a.active {
  color: var(--primary);
  background: var(--primary-light);
}

body.dark-mode .header .navbar ul li a:hover,
body.dark-mode .header .navbar ul li a.active {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
}

/* Dropdown Menu */
.header .navbar ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 24rem;
  width: max-content;
  max-width: 29rem;
  background: var(--dropdown-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: none;
  flex-direction: column;
  padding: 0.8rem;
  gap: 0.4rem;
  margin-top: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.header .navbar ul li:hover ul {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header .navbar ul li ul li {
  width: 100%;
}

.header .navbar ul li ul li a {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 1.4rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.header .navbar ul li ul li a:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  transform: translateX(4px);
}

/* Header Actions (Theme Toggle + Mobile Menu) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.8rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn svg {
  width: 1.9rem;
  height: 1.9rem;
  display: block;
  transition: transform var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: rotate(15deg);
}

body.dark-mode .theme-toggle-btn {
  background: #0f1015;
  border-color: rgba(255, 255, 255, 0.12);
  color: #fbbf24;
}

body.dark-mode .theme-toggle-btn:hover {
  background: rgba(251, 191, 36, 0.16);
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.28);
}

#menu-btn {
  display: none;
  cursor: pointer;
  font-size: 2.2rem;
  color: var(--text-main);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

body.dark-mode #menu-btn {
  background: #0f1015;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

#menu-btn svg {
  width: 2.2rem;
  height: 2.2rem;
  display: block;
}

/* --- Hero Section --- */
.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  padding-top: 7rem;
  padding-bottom: 7rem;
  background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.06) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
}

.home .content {
  flex: 1 1 54rem;
  max-width: 65rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.6rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 1.35rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 2rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

body.dark-mode .hero-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.home .content h1 {
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 1.8rem;
}

.home .content h1 span.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home .content p {
  font-size: 1.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 3.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 3.5rem;
}

/* Quick Search / Filter Bar */
.search-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-md);
  max-width: 52rem;
}

.search-card i {
  color: var(--text-subtle);
  font-size: 1.8rem;
  margin-left: 0.4rem;
}

.search-card input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.5rem;
  color: var(--text-main);
}

.search-card input::placeholder {
  color: var(--text-subtle);
}

.search-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.search-tag-pill {
  padding: 0.4rem 1rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-tag-pill:hover {
  background: var(--primary);
  color: #ffffff;
}

/* --- Interactive 3D Graduation Component --- */
.hero-3d-wrapper {
  flex: 1 1 48rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 46rem;
  max-width: 58rem;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}

.grad-3d-glow {
  position: absolute;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(6, 182, 212, 0.12) 45%, transparent 70%);
  filter: blur(60px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}

body.dark-mode .grad-3d-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(6, 182, 212, 0.2) 45%, transparent 70%);
  filter: blur(70px);
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

#grad-3d-canvas {
  position: relative;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  border-radius: var(--radius-lg);
  transition: transform 0.15s ease-out;
}

#grad-3d-canvas:active {
  cursor: grabbing;
}

/* Floating Glassmorphic Badges */
.floating-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.6rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  pointer-events: none;
  transition: transform 0.3s ease;
}

body.dark-mode .floating-badge {
  background: rgba(10, 10, 12, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(99, 102, 241, 0.15);
}

.floating-badge.badge-top-right {
  top: 1.5rem;
  right: 0;
  animation: floatBadge1 4.5s ease-in-out infinite;
}

.floating-badge.badge-bottom-left {
  bottom: 3.5rem;
  left: 0;
  animation: floatBadge2 5s ease-in-out infinite;
}

@keyframes floatBadge1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.badge-icon-wrap {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.floating-badge strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.floating-badge span {
  display: block;
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Interactive Toss Cap Pill Button */
.grad-3d-action-bar {
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.toss-cap-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all var(--transition-fast);
}

body.dark-mode .toss-cap-pill-btn {
  background: #09090b;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
  color: #ffffff;
}

.toss-cap-pill-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
  background: var(--primary-light);
}

body.dark-mode .toss-cap-pill-btn:hover {
  background: #14141a;
  border-color: #818cf8;
}

.toss-cap-pill-btn.tossed-active {
  animation: tossButtonBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #ffffff;
  border-color: transparent;
}

@keyframes tossButtonBounce {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-10px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}

.toss-btn-icon {
  font-size: 1.8rem;
  display: inline-block;
  animation: bounceTrophy 3s ease-in-out infinite;
}

@keyframes bounceTrophy {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.toss-btn-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.toss-cap-pill-btn.tossed-active .toss-btn-text {
  color: #ffffff;
}

.toss-btn-hint {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 500;
}

.toss-cap-pill-btn.tossed-active .toss-btn-hint {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .hero-3d-wrapper {
    height: 28rem;
    min-height: 28rem;
    max-height: 30rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  .floating-badge {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-3d-wrapper {
    height: 25rem;
    min-height: 25rem;
    max-height: 27rem;
    margin: 0 auto;
  }
}


/* --- Stats Highlight Bar --- */
.stats-section {
  padding: 0 9% 4rem 9%;
  margin-top: -1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 4rem;
  box-shadow: var(--shadow-lg);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.stat-icon {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}

body.dark-mode .stat-icon {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.stat-info h4 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.stat-info p {
  font-size: 1.35rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Section Headings --- */
.section-header {
  text-align: center;
  max-width: 68rem;
  margin: 0 auto 4.5rem auto;
}

.section-tag {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 1rem;
}

body.dark-mode .section-tag {
  color: #818cf8;
}

.section-title {
  font-size: 3.6rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 1.2rem;
}

.section-desc {
  font-size: 1.65rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Legacy Section Titles compatibility */
.choice2, .choice3 {
  padding-bottom: 1rem;
}

.choice2 h1, .choice3 h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main) !important;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- Category / Cards Grid --- */
.category {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 2.2rem;
}

.category .box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.category .box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.category .box:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.category .box:hover::before {
  opacity: 1;
}

.category .box img {
  height: 9rem;
  object-fit: contain;
  margin-bottom: 2rem;
  transition: transform var(--transition-bounce);
}

.category .box:hover img {
  transform: scale(1.08);
}

.category .box h3 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.category .box p {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.category .box .explore-link {
  margin-top: auto;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.category .box:hover .explore-link {
  gap: 0.8rem;
}

/* Branch Badge Tag */
.badge-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1.2rem;
}

body.dark-mode .badge-tag {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

/* --- Lab Portal Showcase Section --- */
.lab-showcase-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.lab-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
  gap: 3rem;
}

.lab-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lab-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
}

.lab-card-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.lab-card-icon {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(59, 130, 246, 0.15));
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  flex-shrink: 0;
}

.lab-card-header h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lab-card p {
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1.65;
  margin-bottom: 2.4rem;
}

.lab-features-list {
  list-style: none;
  margin-bottom: 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.lab-features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  color: var(--text-muted);
}

.lab-features-list li i {
  color: var(--accent-emerald);
  font-size: 1.4rem;
}

/* --- About & Feature Pillars --- */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
}

.about .image {
  flex: 1 1 45rem;
}

.about .image img {
  width: 100%;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.08));
}

.about .content {
  flex: 1 1 50rem;
}

.about .content h3 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 1.8rem;
}

.about .content p {
  font-size: 1.65rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.8rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.feature-pill-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
}

.feature-pill-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-top: 0.2rem;
}

.feature-pill-card h5 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.feature-pill-card p {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* --- Modern Multi-Column Footer --- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 6rem 9% 3rem 9%;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.6rem;
}

.footer-brand .logo i {
  font-size: 2.4rem;
  color: var(--primary);
}

.footer-brand p {
  font-size: 1.45rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 36rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-main);
}

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

.footer-links li a {
  font-size: 1.45rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all var(--transition-fast);
}

.footer-links li a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-links li a i {
  font-size: 1.2rem;
  color: var(--text-subtle);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.footer-bottom .credit a {
  color: var(--primary);
  font-weight: 600;
}

.footer-disclaimer {
  font-size: 1.25rem;
  color: var(--text-subtle);
  max-width: 55rem;
}

/* Legacy Support for Subject/Paper List Pages (1year, 2year, etc.) */
.year {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  gap: 2.5rem;
}

.year .box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.year .box:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.year .box img {
  height: 18rem;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  margin: 0 auto 1.8rem auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.year .box h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.year .box p {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.heading {
  padding: 3rem 9% 1.5rem 9%;
}

.heading h2 {
  font-size: 2.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.heading h2 li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.heading h2 li .svg-icon {
  width: 1.1em;
  height: 1.1em;
}

.papers, .past-year-papers {
  padding: 1.5rem 9% 4rem 9%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
  gap: 1.5rem;
}

.papers li, .past-year-papers li {
  list-style: none;
}

.papers li a, .past-year-papers li a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.8rem;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.papers li a:hover, .past-year-papers li a:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}

body.dark-mode .papers li a:hover,
body.dark-mode .past-year-papers li a:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

/* --- PYQ Hub Showcase Section (Replacement for scattered PDF links) --- */
.pyq-showcase-section {
  padding: 1.5rem 9% 4rem 9%;
}

.pyq-hub-card {
  position: relative;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%), var(--bg-surface);
  border: 1.5px solid rgba(79, 70, 229, 0.22);
  border-radius: var(--radius-lg, 1.6rem);
  padding: 3rem;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
  overflow: hidden;
}

body.dark-mode .pyq-hub-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(14, 165, 233, 0.08) 100%), #111827;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.55);
}

.pyq-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: 9999px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.dark-mode .pyq-hub-badge {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

.pyq-hub-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.pyq-hub-desc {
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 78rem;
  margin: 0;
}

.pyq-hub-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.pyq-stat-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.6rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 1.2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pyq-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

body.dark-mode .pyq-stat-card {
  background: rgba(31, 41, 55, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

.pyq-stat-icon {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pyq-stat-info {
  display: flex;
  flex-direction: column;
}

.pyq-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.pyq-stat-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.pyq-hub-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.pyq-main-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 2.6rem;
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border-radius: var(--radius-md, 1rem);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.pyq-main-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45);
}

.pyq-quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pyq-quick-label {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.4rem;
}

.pyq-quick-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

body.dark-mode .pyq-quick-btn {
  background: rgba(31, 41, 55, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

.pyq-quick-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .pyq-showcase-section {
    padding: 1rem 5% 3.5rem 5%;
  }
  .pyq-hub-card {
    padding: 2rem 1.6rem;
  }
  .pyq-hub-title {
    font-size: 2rem;
  }
  .pyq-hub-stats {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin: 2rem 0;
  }
  .pyq-hub-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .pyq-main-cta {
    justify-content: center;
    width: 100%;
  }
  .pyq-quick-links {
    justify-content: flex-start;
  }
}


/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  html {
    font-size: 58%;
  }
  .header {
    padding: 1.6rem 5%;
  }
  section {
    padding: 5rem 5%;
  }
  .footer {
    padding: 5rem 5% 3rem 5%;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  #menu-btn {
    display: inline-flex;
  }
  .header .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 5%;
    display: none;
    box-shadow: var(--shadow-xl);
  }
  body.dark-mode .header .navbar {
    background: rgba(0, 0, 0, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  .header .navbar.active {
    display: block;
  }
  .header .navbar ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  .header .navbar ul li a {
    padding: 1.2rem 1.6rem;
    font-size: 1.6rem;
    width: 100%;
  }
  .header .navbar ul li ul {
    position: static;
    display: flex;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    width: 100%;
    box-shadow: none;
    background: var(--bg-subtle);
    margin-top: 0.5rem;
    padding: 0.8rem;
  }
  body.dark-mode .header .navbar ul li ul {
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .home {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    gap: 0;
  }
  .home .content {
    display: contents;
  }
  .hero-badge {
    order: 1;
    margin: 0 auto 1.2rem auto;
    font-size: 1.25rem;
    padding: 0.5rem 1.4rem;
  }
  .home .content h1 {
    order: 2;
    font-size: 3.4rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }
  .home .content p {
    order: 3;
    font-size: 1.45rem;
    line-height: 1.55;
    margin-bottom: 0.4rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-3d-wrapper {
    order: 4;
    height: 27rem;
    min-height: 27rem;
    max-height: 29rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  .hero-actions {
    order: 5;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 0.8rem auto 1.6rem auto;
  }
  .hero-actions .btn {
    width: auto;
    padding: 0.75rem 1.3rem;
    font-size: 1.25rem;
    gap: 0.5rem;
    border-radius: var(--radius-full);
    flex: 0 1 auto;
    white-space: nowrap;
  }
  .hero-actions .btn .svg-icon {
    width: 1.35rem;
    height: 1.35rem;
  }
  .search-card {
    order: 6;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1rem 1.4rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-sm);
  }
  .search-card input {
    flex: 1 1 18rem;
    min-width: 14rem;
    font-size: 1.35rem;
  }
  .search-card .search-tags {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-subtle);
  }
  .search-card .search-tags::before {
    content: "Quick:";
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-subtle);
    margin-right: 0.2rem;
  }
  .search-tag-pill {
    padding: 0.35rem 0.85rem;
    font-size: 1.15rem;
  }

  /* Stats Section aligned identically with Search Card */
  .stats-section {
    padding: 0 5% 3.5rem 5%;
    margin-top: 0.8rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    padding: 1.8rem 1.6rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  .stat-item {
    gap: 1.2rem;
    align-items: center;
  }
  .stat-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1.2rem;
  }
  .stat-icon svg {
    width: 2rem;
    height: 2rem;
  }
  .stat-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.2rem;
  }
  .stat-info p {
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--text-muted);
  }

  .about {
    flex-direction: column;
    text-align: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 52%;
  }
  .home {
    padding: 1.5rem 4% 1.8rem 4%;
  }
  .home .content h1 {
    font-size: 3.0rem;
    margin-bottom: 0.6rem;
  }
  .home .content p {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
  }
  .hero-3d-wrapper {
    order: 4;
    height: 24rem;
    min-height: 24rem;
    max-height: 26rem;
    margin: 0 auto;
  }
  .hero-actions {
    order: 5;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin: 0.6rem auto 1.4rem auto;
  }
  .hero-actions .btn {
    width: auto !important;
    padding: 0.65rem 1.15rem;
    font-size: 1.18rem;
    gap: 0.45rem;
    border-radius: var(--radius-full);
    flex: 0 1 auto;
    white-space: nowrap;
  }
  .hero-actions .btn .svg-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  .search-card {
    order: 6;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
  }
  .search-card input {
    font-size: 1.3rem;
  }
  .stats-section {
    padding: 0 4% 3rem 4%;
    margin-top: 0.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius-md);
  }
  .stat-item {
    gap: 0.9rem;
  }
  .stat-icon {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 1rem;
  }
  .stat-icon svg {
    width: 1.8rem;
    height: 1.8rem;
  }
  .stat-info h4 {
    font-size: 1.35rem;
  }
  .stat-info p {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   Web Designing Lab & Developer Code Editor System
   Supporting Light & Pitch Dark Modes with Live Browser Mockup Viewports
   ========================================================================== */

/* Lab Header & Breadcrumb */
.lab-header-banner {
  padding: 4.5rem 9% 3.5rem 9%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.lab-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.lab-breadcrumb a {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

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

.lab-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-areas:
    "content preview"
    "actions preview";
  gap: 2rem 4.5rem;
  align-items: center;
}

.lab-hero-content {
  grid-area: content;
}

.lab-hero-preview {
  grid-area: preview;
  position: relative;
}

.lab-hero-content h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 1.5rem;
}

.lab-hero-content p {
  font-size: 1.65rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 62rem;
}

.lab-hero-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.lab-hero-code-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: transform var(--transition-smooth);
}

.lab-hero-code-card:hover {
  transform: translateY(-4px);
}

/* Experiments Module Grid in webdlab.html */
.experiments-section {
  padding: 6rem 9%;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
  gap: 2.8rem;
  margin-top: 3.5rem;
}

.module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
}

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

.module-card-img-wrap {
  position: relative;
  height: 20rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.module-card:hover .module-card-img-wrap img {
  transform: scale(1.04);
}

.module-badge-floating {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.module-card-body {
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.module-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.module-tag {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

body.dark-mode .module-tag {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
}

.module-card-body h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.module-card-body p {
  font-size: 1.4rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex: 1;
}

.module-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-card-footer span {
  font-size: 1.3rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Callout Box for Lab Guidelines */
.lab-guidelines-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 2.2rem 2.6rem;
  margin-bottom: 4rem;
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.lab-guidelines-icon {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 2.2rem;
}

.lab-guidelines-content h4 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lab-guidelines-content p {
  font-size: 1.4rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Code Editor & Live Browser Output Preview (exp1&2.html)
   ========================================================================== */
.code-preview-section {
  padding: 3.5rem 9% 5.5rem 9%;
  border-bottom: 1px solid var(--border-color);
}

.code-preview-section:last-of-type {
  border-bottom: none;
}

.code-file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.file-heading-wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.file-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.file-desc-text {
  font-size: 1.5rem;
  color: var(--text-muted);
  max-width: 65rem;
  line-height: 1.55;
}

/* Grid: Code Editor on Left, Live Browser Preview on Right */
.code-preview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: start;
}

/* Left Window: Code Editor */
.code-editor-window {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

body.dark-mode .code-editor-window {
  background: #09090b;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.editor-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.6rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
}

body.dark-mode .editor-header-bar {
  background: #040406;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.editor-dots-and-tab {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.mac-window-dots {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mac-dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  display: inline-block;
}

.mac-dot-red { background-color: #ff5f56; }
.mac-dot-yellow { background-color: #ffbd2e; }
.mac-dot-green { background-color: #27c93f; }

.editor-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

.copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.copy-code-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.copy-code-btn:active {
  transform: translateY(0);
}

.copy-code-btn.copied {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

body.dark-mode .copy-code-btn {
  background: #121216;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.dark-mode .copy-code-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.editor-body-wrap {
  max-height: 48rem;
  overflow: auto;
  padding: 1.8rem 2rem;
  position: relative;
  background: transparent;
}

.editor-body-wrap pre {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  font-size: 1.35rem;
  line-height: 1.75;
  white-space: pre;
  tab-size: 4;
  color: #1e293b;
  text-transform: none;
}

body.dark-mode .editor-body-wrap pre {
  color: #f1f5f9;
}

/* Syntax Highlighting */
.syn-tag { color: #0284c7; font-weight: 600; }
.syn-attr { color: #8b5cf6; }
.syn-str { color: #059669; }
.syn-doctype { color: #e11d48; font-weight: 700; }
.syn-comment { color: #94a3b8; font-style: italic; }
.syn-prop { color: #ea580c; }
.syn-val { color: #0891b2; }

body.dark-mode .syn-tag { color: #38bdf8; font-weight: 600; }
body.dark-mode .syn-attr { color: #c084fc; }
body.dark-mode .syn-str { color: #34d399; }
body.dark-mode .syn-doctype { color: #fb7185; font-weight: 700; }
body.dark-mode .syn-comment { color: #71717a; font-style: italic; }
body.dark-mode .syn-prop { color: #fb923c; }
body.dark-mode .syn-val { color: #22d3ee; }

/* Right Window: Live Browser Mockup */
.browser-mockup-window {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: 9rem;
  transition: all var(--transition-smooth);
}

body.dark-mode .browser-mockup-window {
  background: #09090b;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.browser-chrome-bar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 1.4rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
}

body.dark-mode .browser-chrome-bar {
  background: #040406;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.browser-url-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 1.2rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  font-size: 1.2rem;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
}

body.dark-mode .browser-url-pill {
  background: #0d0d11;
  border-color: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

.browser-url-pill svg {
  color: #10b981;
  flex-shrink: 0;
}

.browser-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.browser-live-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background-color: #10b981;
  animation: pulseDot 2s infinite;
}

.browser-viewport-screen {
  padding: 1.6rem;
  background: var(--bg-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 24rem;
}

.browser-img-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  position: relative;
  cursor: pointer;
  background: #ffffff;
}

body.dark-mode .browser-img-container {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.browser-img-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.browser-img-container:hover img {
  transform: scale(1.015);
}

.browser-zoom-hint {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.browser-img-container:hover .browser-zoom-hint {
  opacity: 1;
}

.browser-caption-footer {
  padding: 1.2rem 1.6rem;
  font-size: 1.3rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.browser-caption-footer svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Lightbox Modal for zooming output images */
.lab-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lab-lightbox.active {
  display: flex;
}

.lab-lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lab-lightbox-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  display: block;
  object-fit: contain;
  background: #ffffff;
}

.lab-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lab-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

/* Responsive queries for code editor & preview */
@media (max-width: 968px) {
  .lab-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .code-preview-grid {
    grid-template-columns: 1fr;
  }
  .browser-mockup-window {
    position: static;
  }
}

@media (max-width: 480px) {
  .lab-header-banner {
    padding: 3rem 4% 2rem 4%;
  }
  .code-preview-section {
    padding: 2.5rem 4% 3.5rem 4%;
  }
  .editor-header-bar {
    padding: 0.9rem 1.2rem;
  }
  .editor-tab-pill {
    font-size: 1.15rem;
    padding: 0.3rem 0.7rem;
  }
  .copy-code-btn {
    padding: 0.5rem 1rem;
    font-size: 1.15rem;
  }
  .editor-body-wrap {
    padding: 1.2rem;
    font-size: 1.2rem;
  }
}

/* Compact Stats Ribbon */
.stats-section-compact {
  margin-top: 0 !important;
  padding: 1.4rem 9% !important;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.2rem;
}

.stat-item-compact {
  padding: 0.9rem 1.4rem !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all var(--transition-fast);
}

.stat-item-compact:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.stat-icon-compact {
  width: 3.4rem !important;
  height: 3.4rem !important;
  min-width: 3.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-item-compact .stat-info h4 {
  font-size: 1.35rem !important;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.stat-item-compact .stat-info p {
  font-size: 1.15rem !important;
  color: var(--text-muted);
  line-height: 1.2;
  margin: 0;
}

/* Lab Hero Image Card */
.lab-hero-img-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.lab-hero-img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25);
}

.lab-hero-img {
  width: 100%;
  height: auto;
  max-height: 38rem;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

@media (max-width: 768px) {
  .lab-header-banner {
    padding: 3rem 5% 2.4rem 5%;
  }
  .lab-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.6rem !important;
  }
  .lab-hero-content {
    order: 1 !important;
  }
  .lab-hero-preview {
    order: 2 !important;
    width: 100% !important;
    margin-bottom: 0.2rem !important;
  }
  .lab-hero-actions {
    order: 3 !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    gap: 1rem !important;
    align-items: stretch !important;
  }
  .lab-hero-actions .btn {
    flex: 1 1 0 !important;
    width: auto !important;
    padding: 1rem 0.8rem !important;
    font-size: 1.25rem !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.6rem !important;
    white-space: nowrap !important;
  }
  .lab-hero-content h1 {
    font-size: 2.6rem !important;
    line-height: 1.25;
    margin-bottom: 1.2rem;
  }
  .lab-hero-content p {
    font-size: 1.45rem;
    line-height: 1.55;
    margin-bottom: 0.5rem;
  }
  .lab-hero-img-card {
    padding: 0.8rem;
    border-radius: var(--radius-md);
    max-height: 28rem;
  }
  .lab-hero-img {
    max-height: 26rem;
  }
  .stats-section-compact {
    padding: 1.2rem 4% !important;
  }
  .stats-grid-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .stat-item-compact {
    padding: 0.8rem 1rem !important;
    gap: 0.8rem;
  }
  .stat-icon-compact {
    width: 3rem !important;
    height: 3rem !important;
    min-width: 3rem;
  }
  .stat-item-compact .stat-info h4 {
    font-size: 1.2rem !important;
  }
  .stat-item-compact .stat-info p {
    font-size: 1.05rem !important;
  }
  .experiments-section {
    padding: 3.5rem 5% !important;
  }
  .modules-grid {
    grid-template-columns: 1fr !important;
    gap: 1.8rem !important;
  }
  .code-preview-section {
    padding: 3rem 4% !important;
  }
  .code-preview-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .browser-mockup-window {
    position: static;
  }
}

@media (max-width: 480px) {
  .lab-header-banner {
    padding: 2.4rem 4% 1.8rem 4%;
  }
  .lab-hero-content h1 {
    font-size: 2.2rem !important;
  }
  .lab-hero-content p {
    font-size: 1.35rem;
  }
  .stats-grid-compact {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .stat-item-compact {
    padding: 0.7rem 0.9rem !important;
  }
  .lab-hero-img {
    max-height: 22rem;
  }
  .lab-hero-actions {
    gap: 0.6rem !important;
  }
  .lab-hero-actions .btn {
    padding: 0.85rem 0.6rem !important;
    font-size: 1.15rem !important;
    gap: 0.4rem !important;
  }
  .lab-hero-actions .btn svg {
    width: 14px !important;
    height: 14px !important;
  }
  .editor-header-bar {
    padding: 0.8rem 1rem;
  }
  .editor-tab-pill {
    font-size: 1.15rem;
    padding: 0.3rem 0.6rem;
  }
  .copy-code-btn {
    padding: 0.45rem 0.9rem;
    font-size: 1.15rem;
  }
  .editor-body-wrap {
    padding: 1rem;
    font-size: 1.2rem;
    max-height: 32rem;
  }
  .browser-chrome-bar {
    padding: 0.8rem 1rem;
  }
  .browser-url-pill {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
  }
}


/* ==========================================================================
   Data Structure Lab Studio & Automated PDF Engine
   High-Fidelity Interface, Document Previewer, Interactive Code Suite
   ========================================================================== */

/* Generator Studio Section */
.ds-studio-section {
  padding: 6rem 9%;
  background: var(--bg-body);
  position: relative;
}

.ds-studio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.ds-studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  padding: 4rem;
}

.ds-form-col {
  display: flex;
  flex-direction: column;
}

.ds-form-header {
  margin-bottom: 2.5rem;
}

.ds-form-header h3 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ds-form-header p {
  font-size: 1.45rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ds-input-group {
  margin-bottom: 2.2rem;
}

.ds-input-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.ds-input-hint {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-subtle);
}

.ds-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ds-input-icon {
  position: absolute;
  left: 1.4rem;
  color: var(--text-subtle);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.ds-input-field {
  width: 100%;
  padding: 1.25rem 1.4rem 1.25rem 4.4rem;
  font-size: 1.45rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

.ds-input-field:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3.5px var(--primary-glow);
}

.ds-form-actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-generator {
  flex: 2;
  min-width: 22rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.35rem 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-generator:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-generator:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-demo-helper {
  padding: 1.35rem 1.6rem;
  font-size: 1.35rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-demo-helper:hover {
  background: var(--bg-muted);
  border-color: var(--border-focus);
}

/* Generation Progress */
.ds-progress-wrap {
  margin-top: 2rem;
  display: none;
}

.ds-progress-wrap.active {
  display: block;
}

.ds-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.ds-progress-track {
  height: 0.8rem;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.ds-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.15s ease;
}

.ds-status-toast {
  margin-top: 1.6rem;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 1.35rem;
  display: none;
  align-items: center;
  gap: 1rem;
}

.ds-status-toast.success {
  display: flex;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.ds-status-toast.error {
  display: flex;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Feature Checkpoints under form */
.ds-guarantees {
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ds-guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  color: var(--text-muted);
}

.ds-guarantee-item svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Right Panel: Simulated Live A4 Sheet Preview */
.ds-preview-col {
  display: flex;
  flex-direction: column;
}

.ds-preview-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.ds-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
}

.ds-preview-badge-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.ds-a4-sheet {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 2.6rem 2.8rem;
  min-height: 44rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  font-family: 'Inter', -apple-system, sans-serif;
  transition: all var(--transition-smooth);
}

body.dark-mode .ds-a4-sheet {
  background: #121216;
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.ds-sheet-header {
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.12);
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
}

body.dark-mode .ds-sheet-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.ds-sheet-header h4 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 0.3rem;
}

body.dark-mode .ds-sheet-header h4 {
  color: #ffffff;
}

.ds-sheet-header span {
  font-size: 1.15rem;
  color: #64748b;
  font-weight: 600;
}

body.dark-mode .ds-sheet-header span {
  color: #94a3b8;
}

.ds-sheet-content {
  flex: 1;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #334155;
  background: rgba(241, 245, 249, 0.6);
  padding: 1.4rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px dashed rgba(0, 0, 0, 0.1);
}

body.dark-mode .ds-sheet-content {
  background: rgba(24, 24, 28, 0.8);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.08);
}

.ds-sheet-footer {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 2px dashed rgba(99, 102, 241, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.04);
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm);
}

body.dark-mode .ds-sheet-footer {
  background: rgba(99, 102, 241, 0.08);
  border-top-color: rgba(99, 102, 241, 0.4);
}

.preview-highlight {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.12);
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(79, 70, 229, 0.2);
  transition: all 0.2s ease;
}

body.dark-mode .preview-highlight {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

/* Experiments Filter & Search Section */
.ds-experiments-section {
  padding: 6rem 9%;
}

.ds-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 3.5rem;
  margin-bottom: 3rem;
}

.ds-search-wrap {
  position: relative;
  width: 100%;
}

.ds-search-wrap svg {
  position: absolute;
  left: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.ds-search-input {
  width: 100%;
  padding: 1.4rem 4rem 1.4rem 4.8rem;
  font-size: 1.5rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.ds-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.ds-clear-search-btn {
  position: absolute;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  display: none;
}

.ds-clear-search-btn:hover {
  color: var(--text-main);
}

.ds-filter-pills {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.ds-pill-btn {
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 1.35rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ds-pill-btn:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.ds-pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* Experiment Cards Grid */
.ds-exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32rem, 1fr));
  gap: 2.4rem;
}

.ds-exp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.6rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
}

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

.ds-exp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.ds-exp-num {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
}

body.dark-mode .ds-exp-num {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.ds-exp-complexity {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--bg-subtle);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.ds-exp-card h3 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.ds-exp-card p {
  font-size: 1.4rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex: 1;
}

.ds-exp-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.ds-exp-card-footer .btn {
  flex: 1;
  padding: 0.85rem 1.4rem;
  font-size: 1.3rem;
  justify-content: center;
}

/* Code Viewer Modal */
.ds-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.ds-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 86rem;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.ds-modal-backdrop.active .ds-modal-card {
  transform: scale(1);
}

.ds-modal-header {
  padding: 1.6rem 2.4rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ds-modal-title-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  overflow: hidden;
}

.ds-modal-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.ds-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

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

.ds-modal-body {
  padding: 2.4rem;
  overflow-y: auto;
  flex: 1;
}

.ds-modal-code-pre {
  background: #09090b;
  color: #f1f5f9;
  padding: 2rem;
  border-radius: var(--radius-md);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 1.35rem;
  line-height: 1.65;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: pre;
}

/* Viva Voce Section */
.ds-viva-section {
  padding: 6rem 9%;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.ds-viva-list {
  max-width: 90rem;
  margin: 3.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.ds-viva-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.ds-viva-item:hover {
  border-color: var(--border-focus);
}

.ds-viva-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.ds-viva-header {
  padding: 2rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 1.5rem;
}

.ds-viva-q {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.ds-viva-q-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.ds-viva-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.ds-viva-item.active .ds-viva-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.ds-viva-content {
  padding: 0 2.4rem 2.2rem 2.4rem;
  font-size: 1.45rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: none;
  border-top: 1px dashed var(--border-color);
  padding-top: 1.8rem;
}

.ds-viva-item.active .ds-viva-content {
  display: block;
}

/* Dark mode overrides for DS Lab */
body.dark-mode .ds-studio-card {
  background: #09090b;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95);
}

body.dark-mode .ds-input-field {
  background: #040406;
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.dark-mode .ds-input-field:focus {
  background: #09090b;
  border-color: #6366f1;
}

body.dark-mode .btn-demo-helper {
  background: #111114;
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.dark-mode .btn-demo-helper:hover {
  background: #1a1a20;
}

body.dark-mode .ds-search-input {
  background: #09090b;
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.dark-mode .ds-pill-btn {
  background: #09090b;
  border-color: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

body.dark-mode .ds-pill-btn:hover {
  color: #ffffff;
  border-color: #6366f1;
}

body.dark-mode .ds-exp-card {
  background: #09090b;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .ds-exp-card:hover {
  background: #0d0d11;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9), 0 0 20px rgba(99, 102, 241, 0.15);
}

body.dark-mode .ds-exp-complexity {
  background: #111114;
  border-color: rgba(255, 255, 255, 0.06);
  color: #a1a1aa;
}

body.dark-mode .ds-modal-card {
  background: #09090b;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .ds-modal-header {
  background: #040406;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .ds-viva-section {
  background: #000000;
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .ds-viva-item {
  background: #09090b;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .ds-viva-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

body.dark-mode .ds-viva-item.active {
  border-color: #6366f1;
  background: #0d0d12;
}

body.dark-mode .ds-viva-content {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .ds-studio-grid {
    grid-template-columns: 1fr;
    padding: 2.8rem 2rem;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .ds-studio-section,
  .ds-experiments-section,
  .ds-viva-section {
    padding: 4rem 5%;
  }
  .ds-form-actions {
    flex-direction: column;
  }
  .btn-generator,
  .btn-demo-helper {
    width: 100%;
  }
  .ds-exp-grid {
    grid-template-columns: 1fr;
  }
  .ds-sheet-footer {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
  .ds-modal-card {
    max-height: 92vh;
  }
  .ds-modal-header {
    padding: 1.2rem 1.6rem;
  }
  .ds-modal-body {
    padding: 1.4rem;
  }
}

/* ==========================================================================
   AKTU PYQ Bank - Landing Showcase Section & Year Cards
   ========================================================================== */
.pyq-landing-section {
  padding: 8rem 7%;
  position: relative;
  background: var(--bg-body);
}

.pyq-landing-header {
  text-align: center;
  max-width: 86rem;
  margin: 0 auto 4.5rem auto;
}

.pyq-landing-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1.8rem;
  margin-bottom: 4rem;
}

.pyq-landing-stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.2rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pyq-landing-stat-box:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

body.dark-mode .pyq-landing-stat-box {
  background: #111116;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .pyq-landing-stat-box:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.pyq-stat-icon-wrapper {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pyq-stat-text h4 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.pyq-stat-text p {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

/* 4-Year Option Cards Grid */
/* 4-Year Option Cards Grid - Compact, Professional & Ultra-Responsive */
.pyq-years-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  align-items: stretch;
}

@media (max-width: 1150px) {
  .pyq-years-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }
}

@media (max-width: 640px) {
  .pyq-years-showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

.pyq-option-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 14px);
  padding: 2.2rem 1.8rem 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pyq-option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--gradient-primary));
}

.pyq-option-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent-border, var(--primary));
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1), 0 0 16px -2px var(--card-accent-glow, rgba(99, 102, 241, 0.22));
}

body.dark-mode .pyq-option-card {
  background: #101015;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .pyq-option-card:hover {
  border-color: var(--card-accent-border, #6366f1);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.5), 0 0 20px -2px var(--card-accent-glow, rgba(99, 102, 241, 0.3));
}

.pyq-card-top {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-bottom: 1.6rem;
}

.pyq-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  gap: 0.8rem;
}

.pyq-custom-icon-wrap {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-icon-bg, rgba(99, 102, 241, 0.12));
  color: var(--card-accent-border, #6366f1);
  border: 1px solid var(--card-icon-border, rgba(99, 102, 241, 0.22));
  flex-shrink: 0;
}

.pyq-custom-icon-wrap svg {
  width: 2.2rem;
  height: 2.2rem;
  stroke: currentColor;
}

.pyq-paper-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
}

body.dark-mode .pyq-paper-count-badge {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.pyq-card-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.3rem;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.pyq-card-sem {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-accent-border, var(--primary));
  margin-bottom: 1rem;
}

.pyq-card-description {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.pyq-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.pyq-tag-item {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

body.dark-mode .pyq-tag-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.pyq-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border-color);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: auto;
  gap: 0.8rem;
}

.pyq-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

body.dark-mode .pyq-card-meta {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.pyq-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1.05rem 1.4rem;
  border-radius: var(--radius-sm, 10px);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  margin-top: 1.4rem;
}

.pyq-card-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

/* Paper rows inside PYQ pages */
.paper-icon-box svg {
  width: 2.1rem;
  height: 2.1rem;
  stroke: #ffffff;
  flex-shrink: 0;
}

.tag-pill.tag-pdf {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 768px) {
  .pyq-landing-section {
    padding: 5rem 5%;
  }
  .pyq-landing-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .pyq-landing-stats {
    grid-template-columns: 1fr;
  }
  .pyq-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* --- Notes Link Section Styling --- */
.notes {
  padding: 0 9% 3rem 9%;
}

.notes h1 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem 2.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-sm);
  margin: 0;
  max-width: 100%;
}

body.dark-mode .notes h1 {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.notes h1 a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .notes {
    padding: 0 5% 2.5rem 5%;
  }
}

@media (max-width: 768px) {
  .notes {
    padding: 0 4% 2rem 4%;
  }
  .notes h1 {
    font-size: 1.4rem;
    padding: 1.4rem 1.8rem;
    width: 100%;
    flex-wrap: wrap;
  }
}

/* ============================================================
   YouTube Channels Showcase Component (Modern UI & UX)
   No external avatar images required - 100% SVG + CSS Powered
   ============================================================ */
.youtube-section-wrap {
  padding: 3rem 9% 6rem 9%;
  width: 100%;
  box-sizing: border-box;
}

.yt-section-header {
  margin-bottom: 2.8rem;
  max-width: 100%;
}

.yt-section-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

body.dark-mode .yt-section-header .section-tag {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.yt-section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.yt-section-header p {
  font-size: 1.5rem;
  color: var(--text-muted);
  max-width: 72rem;
  line-height: 1.6;
}

.yt-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr));
  gap: 2.4rem;
  margin-bottom: 4rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .youtube-section-wrap {
    padding: 3rem 5% 5rem 5%;
  }
}

@media (max-width: 768px) {
  .youtube-section-wrap {
    padding: 2.5rem 4% 4rem 4%;
  }
  .yt-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .yt-section-header h2 {
    font-size: 2.2rem;
  }
}

.yt-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

body.dark-mode .yt-card {
  background: #121217;
  border-color: rgba(255, 255, 255, 0.08);
}

.yt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.yt-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 16px 36px -8px rgba(239, 68, 68, 0.18), var(--shadow-md);
}

.yt-card:hover::before {
  opacity: 1;
}

.yt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}

.yt-avatar-icon {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
  transition: transform var(--transition-bounce);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.yt-card:hover .yt-avatar-icon {
  transform: scale(1.1) rotate(-4deg);
}

.yt-avatar-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.4rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  transition: opacity var(--transition-fast);
}

.yt-avatar-icon svg {
  width: 2.4rem;
  height: 2.4rem;
  fill: #ffffff;
  position: relative;
  z-index: 1;
}

.yt-pill-badge {
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.yt-pill-badge.top-pick {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
}

.yt-card-content {
  margin-bottom: 2rem;
  flex: 1;
}

.yt-channel-name {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.yt-verified-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  flex-shrink: 0;
}

.yt-verified-check svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: #ffffff;
}

.yt-channel-desc {
  font-size: 1.35rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.yt-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.yt-tag-chip {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

body.dark-mode .yt-tag-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.yt-card:hover .yt-tag-chip {
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--text-main);
}

.yt-btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1.1rem 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

body.dark-mode .yt-btn-action {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.yt-card:hover .yt-btn-action,
.yt-btn-action:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.yt-btn-action svg {
  transition: transform var(--transition-fast);
}

.yt-card:hover .yt-btn-action svg,
.yt-btn-action:hover svg {
  transform: translateX(3px);
}

/* Category card SVG icon wrap */
.category-icon-wrap {
  width: 7.2rem;
  height: 7.2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  transition: transform var(--transition-bounce);
}

.category-icon-wrap.yt-gradient-wrap {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.category .box:hover .category-icon-wrap {
  transform: scale(1.1);
}

/* ==========================================================================
   Working On It / Content In Progress Component
   ========================================================================== */
.wip-status-section {
  padding: 1.5rem 9% 3.5rem 9%;
  width: 100%;
}

.wip-status-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.6rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 82rem;
  margin: 0 auto;
}

.wip-status-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #6366f1, #0ea5e9);
}

.wip-status-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.1), 0 0 20px -2px rgba(99, 102, 241, 0.15);
}

body.dark-mode .wip-status-card {
  background: #111116;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .wip-status-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 18px 36px -8px rgba(0, 0, 0, 0.6), 0 0 24px -2px rgba(99, 102, 241, 0.25);
}

.wip-icon-badge {
  width: 6.6rem;
  height: 6.6rem;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.25);
  margin-bottom: 0.4rem;
  animation: wipPulse 2.8s infinite ease-in-out;
}

@keyframes wipPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.25);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
  }
}

.wip-icon-badge svg {
  width: 3.4rem;
  height: 3.4rem;
}

.wip-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
  text-transform: uppercase;
}

body.dark-mode .wip-status-pill {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
}

.wip-status-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.25;
}

.wip-status-desc {
  font-size: 1.45rem;
  color: var(--text-muted);
  max-width: 62rem;
  line-height: 1.6;
  margin: 0;
}

.wip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.wip-category-badge {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 1.15rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

body.dark-mode .wip-category-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.18);
}


