:root {
  --bg-base: #F5F5F0;
  --bg-elevated: #E6D8C3;
  --glass-surface: rgba(230, 216, 195, 0.5);
  --glass-border: rgba(194, 166, 140, 0.3);
  --accent-gold: #5D866C;
  --accent-gold-soft: #C2A68C;
  --accent-teal: #C2A68C;
  --accent-wine: #C1554B;
  --text-primary: #2C2C2C;
  --text-secondary: #6B6B6B;
  --success: #5D866C;
  --error: #C1554B;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Sora', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-card: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Push footer to the bottom on every page, regardless of content height */
#main-content {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

/* Subtle noise/grain overlay on the entire page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content sits above grain */
body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--accent-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-gold-soft); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--text-primary); }

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Glass Card Component --- */
.glass-card {
  background: var(--glass-surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: none;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: none;
  transition: transform var(--transition), border-color var(--transition);
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(245, 245, 240, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-teal));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-base);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.nav-logo-mark-sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.nav-logo-footer { font-size: 1.1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent-gold); }

/* ─── Navbar Dropdown ──────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  transition: color var(--transition);
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible {
  color: var(--accent-gold);
  outline: none;
}

.nav-dropdown-trigger .dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  line-height: 1;
}

.nav-dropdown.open .nav-dropdown-trigger .dropdown-arrow,
.nav-dropdown-trigger[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 200px;
  background: rgba(245, 245, 240, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  z-index: 200;
}

/* Small visual pointer */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(245, 245, 240, 0.95);
  border-left: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border);
  z-index: 5;
}

/* Invisible hover bridge spanning gap between button and dropdown */
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  height: 24px;
  background: transparent;
  display: block;
  pointer-events: auto;
  z-index: 4;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown-menu[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a:focus-visible {
  background: rgba(93, 134, 108, 0.08);
  color: var(--accent-gold);
  outline: none;
}

.nav-dropdown-menu li a.active {
  color: var(--accent-gold);
  font-weight: 500;
}

/* ─── Footer Dropdown (opens upward) ──────────────────────────────────── */
.footer-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
}

.footer-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  transition: color var(--transition);
}

.footer-dropdown-trigger:hover,
.footer-dropdown-trigger:focus-visible {
  color: var(--accent-gold);
  outline: none;
}

.footer-dropdown-trigger .dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  line-height: 1;
}

.footer-dropdown.open .footer-dropdown-trigger .dropdown-arrow,
.footer-dropdown-trigger[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.footer-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: rgba(245, 245, 240, 0.95);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  z-index: 200;
}

/* Invisible hover bridge spanning gap below footer menu */
.footer-dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  right: -20px;
  height: 24px;
  background: transparent;
  display: block;
  pointer-events: auto;
  z-index: 4;
}

.footer-dropdown-menu::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(245, 245, 240, 0.95);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  z-index: 5;
}

.footer-dropdown.open .footer-dropdown-menu,
.footer-dropdown-menu[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (hover: hover) and (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown:hover .nav-dropdown-trigger .dropdown-arrow,
  .nav-dropdown:focus-within .nav-dropdown-trigger .dropdown-arrow {
    transform: rotate(180deg);
  }

  .footer-dropdown:hover .footer-dropdown-menu,
  .footer-dropdown:focus-within .footer-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .footer-dropdown:hover .footer-dropdown-trigger .dropdown-arrow,
  .footer-dropdown:focus-within .footer-dropdown-trigger .dropdown-arrow {
    transform: rotate(180deg);
  }
}

.footer-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.footer-dropdown-menu li a:hover,
.footer-dropdown-menu li a:focus-visible {
  background: rgba(93, 134, 108, 0.08);
  color: var(--accent-gold);
  outline: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent-gold);
  color: #F5F5F0;
  box-shadow: 0 4px 20px rgba(93, 134, 108, 0.35);
}

.btn-primary:hover {
  color: #F5F5F0;
  box-shadow: 0 6px 28px rgba(93, 134, 108, 0.55);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--glass-surface);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* --- Section / Hero --- */
.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }

/* Eyebrow label above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

/* --- Ambient Background Glow Blobs --- */
.bg-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.07;
  z-index: 0;
}

.bg-glow-gold {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: drift 18s ease-in-out infinite alternate;
}

.bg-glow-teal {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* --- Scroll-reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Semester Tabs --- */
.sem-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sem-tab {
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.sem-tab:hover,
.sem-tab.active {
  background: var(--accent-gold);
  color: var(--bg-base);
  border-color: var(--accent-gold);
  font-weight: 600;
}

/* --- Subject Grid Cards --- */
.subjects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: flex-start;
}

.subject-card {
  padding: 1.75rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  width: 260px;
  flex: 0 0 auto;
}

.subject-card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.subject-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.subject-icon-emoji {
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.subject-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.subject-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
}

/* --- Code Blocks --- */
.code-block {
  background: rgba(44, 44, 44, 0.85);
  border: 1px solid rgba(93, 134, 108, 0.2);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.75;
  overflow-x: auto;
  color: #E6D8C3;
  position: relative;
  white-space: pre;
}

/* --- Quiz Timer (minimal countdown badge) --- */
.quiz-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-gold);
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition);
}

.quiz-timer-icon { font-size: 0.95rem; }

.quiz-timer.low-time {
  color: var(--error);
  border-color: var(--error);
  animation: timerPulse 1s ease-in-out infinite;
}

.quiz-timer.expired {
  color: var(--error);
  border-color: var(--error);
  opacity: 0.85;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* --- MCQ Summary / Result box --- */
#mcq-summary {
  max-width: 640px;
  margin: 0 auto;
}

/* --- MCQ Split Layout --- */
.mcq-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 0.3rem;
}

.mcq-left-col {
  min-width: 0;
}

.mcq-card-wrapper {
  position: relative;
}

.mcq-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* Explanation panel on the right */
.mcq-explanation {
  background: var(--glass-surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  min-height: 200px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.mcq-explanation.has-content {
  border-color: var(--accent-gold);
  box-shadow: 0 0 24px rgba(93, 134, 108, 0.12);
}

.mcq-explanation-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mcq-explanation-placeholder {
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
}

.mcq-explanation-result {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.mcq-explanation-result.is-correct {
  background: rgba(93, 134, 108, 0.12);
  border: 1px solid rgba(93, 134, 108, 0.25);
  color: var(--success);
}

.mcq-explanation-result.is-wrong {
  background: rgba(193, 85, 75, 0.12);
  border: 1px solid rgba(193, 85, 75, 0.25);
  color: var(--error);
}

.mcq-explanation-result-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}

.mcq-explanation-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.7;
  padding: 0.75rem;
  background: rgba(245, 245, 240, 0.5);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-gold);
}

/* Logo area at bottom right */
.mcq-logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--glass-surface);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  min-height: 120px;
}

.mcq-logo-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.mcq-logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-teal));
  border-radius: 12px;
}

.mcq-logo-img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.mcq-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mcq-logo-tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* --- MCQ Question Card --- */
.mcq-container {
  transition: height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mcq-card {
  transition: min-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mcq-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

.mcq-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  width: 100%;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.mcq-option:hover:not(:disabled) {
  border-color: var(--accent-gold);
  background: rgba(93, 134, 108, 0.08);
}

/* When hovering a selected correct option, maintain green */
.mcq-option.correct:hover {
  border-color: var(--success);
  background: rgba(93, 134, 108, 0.25);
  box-shadow: 0 0 20px rgba(93, 134, 108, 0.3);
}

/* When hovering a selected wrong option, maintain red */
.mcq-option.wrong:hover {
  border-color: var(--error);
  background: rgba(193, 85, 75, 0.25);
  box-shadow: 0 0 20px rgba(193, 85, 75, 0.3);
}

.mcq-option.correct {
  border-color: var(--success);
  background: rgba(93, 134, 108, 0.18);
  box-shadow: 0 0 16px rgba(93, 134, 108, 0.2);
}

.mcq-option.wrong {
  border-color: var(--error);
  background: rgba(193, 85, 75, 0.18);
  box-shadow: 0 0 16px rgba(193, 85, 75, 0.2);
}

/* Disabled options that are neither correct nor wrong (unselected) - keep them dimmed without hover */
.mcq-option:disabled:not(.correct):not(.wrong) {
  opacity: 0.45;
  cursor: default;
}

/* --- Line-by-line Explanation Table --- */
.lbl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lbl-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  background: rgba(93, 134, 108, 0.08);
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lbl-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(44, 44, 44, 0.08);
  vertical-align: top;
}

.lbl-table tr:last-child td { border-bottom: none; }

.lbl-table .line-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #2C2C2C;
  white-space: pre;
  min-width: 220px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--text-primary); }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-gold { background: rgba(93,134,108,0.15); color: var(--accent-gold); border: 1px solid rgba(93,134,108,0.3); }
.badge-teal { background: rgba(93,134,108,0.2); color: var(--accent-gold); border: 1px solid rgba(93,134,108,0.4); }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 0;
  background: rgba(230, 216, 195, 0.3);
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-tagline { font-size: 0.82rem; color: var(--text-primary); }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent-gold); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-primary);
  opacity: 0.7;
}

.footer-copy a {
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Hero Section --- */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-inner {
  max-width: 620px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration {
  width: 100%;
  max-width: 400px;
  filter: drop-shadow(0 24px 60px rgba(93, 134, 108, 0.28));
  animation: heroFloat 6s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text-primary) 60%, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 560px;
}

/* ─── Redesigned About Page (UI/UX Pro Max) ────────────────────────────── */
.about-hero-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.about-hero-header h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0.75rem 0 1rem;
}

.about-hero-subtitle {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 640px;
}

/* ─── Hero Section: Mission Card & Dedicated Artwork Card ─── */
.about-hero-section {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 1.75rem;
  align-items: stretch;
  margin-bottom: 2.75rem;
}

.about-mission-card {
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-mission-title {
  font-size: 1.7rem;
  font-family: var(--font-display);
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.about-mission-text {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 1.35rem;
}

.about-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.about-highlight-item strong {
  color: var(--text-primary);
}

.highlight-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(93, 134, 108, 0.2);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Dedicated Portrait Artwork Card */
.about-poster-card {
  position: relative;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111713;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.about-poster-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22), 0 0 32px rgba(212, 175, 55, 0.15);
}

.about-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: inherit;
  transition: transform 0.5s ease;
}

.about-poster-card:hover .about-poster-img {
  transform: scale(1.03);
}

.about-poster-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 15%, rgba(212, 175, 55, 0.08), transparent 70%);
  border-radius: inherit;
}

/* 4 Core Pillars */
.about-pillars-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-pillars-header h2 {
  font-size: 1.6rem;
  margin-top: 0.35rem;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

.pillar-card {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(93, 134, 108, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.pillar-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* Developer & Ecosystem Cards */
.about-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

.about-dev-card,
.about-ecosystem-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.about-dev-top,
.about-ecosystem-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.about-dev-avatar,
.about-ecosystem-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #121A16;
  font-family: var(--font-display);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dev-tag,
.ecosystem-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 0.2rem;
}

.about-dev-name,
.about-ecosystem-title {
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}

.about-dev-role,
.about-ecosystem-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.about-dev-bio,
.about-ecosystem-bio {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
}

.about-dev-actions,
.about-ecosystem-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dev-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.about-ecosystem-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
}

/* Trust / Info Bottom Strip */
.about-trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-sm);
  background: rgba(18, 26, 22, 0.3);
  border: 1px solid var(--glass-border);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-val {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-gold);
  font-family: var(--font-display);
}

.trust-lbl {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
}

/* --- Error Pages (400 / 404 / 500) --- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.error-card {
  padding: 3rem 2rem;
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.error-code {
  font-size: clamp(3rem, 12vw, 5rem);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
}

.error-code.is-danger { color: var(--accent-wine); }

.error-card h1 { font-size: 1.4rem; margin: 0.75rem 0; }
.error-card p { color: var(--text-secondary); margin-bottom: 2rem; }

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 2rem 0 2rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}

.page-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-header p { color: var(--text-secondary); margin-top: 0.5rem; }

/* --- Hub Cards (Syntax / MCQ / Lab) --- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.hub-card {
  padding: 2.25rem;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hub-card .hub-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.hub-card h2 {
  font-size: 1.3rem;
}

.hub-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.hub-card .hub-arrow {
  color: var(--accent-gold);
  font-size: 1.2rem;
  align-self: flex-end;
  transition: transform var(--transition);
}

.hub-card:hover .hub-arrow { transform: translateX(5px); }

/* --- Syntax Topic Card --- */
.topic-card {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.topic-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  color: var(--accent-gold);
}

.topic-section { margin-bottom: 1.25rem; }

.topic-label {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

/* --- Workflow Steps --- */
.workflow-steps {
  list-style: none;
  counter-reset: step;
}

.workflow-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(44, 44, 44, 0.08);
  font-size: 0.95rem;
}

.workflow-steps li:last-child { border-bottom: none; }

.workflow-steps li::before {
  content: counter(step);
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-teal));
  color: var(--bg-base);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Cycle / Question List Items --- */
.list-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: all var(--transition);
  font-size: 0.95rem;
}

.list-link-item:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateX(5px);
}

/* --- Score Summary --- */
.score-bar-wrap { background: rgba(44, 44, 44, 0.08); border-radius: 999px; height: 10px; }
.score-bar { background: linear-gradient(90deg, var(--accent-gold), var(--success)); border-radius: 999px; height: 10px; transition: width 0.8s ease; }

/* --- Lab Cycles Index Page --- */
.lab-cycles-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 0.5rem;
}

.lab-cycles-header-text {
  max-width: 780px;
}

.lab-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  background: rgba(93, 134, 108, 0.12);
  border: 1px solid rgba(93, 134, 108, 0.25);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.lab-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 0 rgba(93, 134, 108, 0.7);
  animation: labPulse 2s infinite;
}

@keyframes labPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(93, 134, 108, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(93, 134, 108, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(93, 134, 108, 0); }
}

.lab-cycles-stats-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-card);
  flex-shrink: 0;
}

.lab-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lab-stat-val {
  font-size: 1.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1.1;
}

.lab-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.lab-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

.lab-cycles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.lab-cycle-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem;
  position: relative;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.lab-cycle-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(93, 134, 108, 0.12);
}

.lab-cycle-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.lab-cycle-num-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  background: rgba(93, 134, 108, 0.12);
  border: 1px solid rgba(93, 134, 108, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.lab-cycle-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.lab-cycle-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.lab-cycle-card-title a:hover {
  color: var(--accent-gold);
}

.lab-cycle-preview-section {
  flex: 1;
  margin-bottom: 1.5rem;
}

.lab-cycle-preview-heading {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.lab-cycle-preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lab-cycle-preview-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.lab-preview-bullet {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(93, 134, 108, 0.12);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lab-preview-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-cycle-preview-more {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--accent-gold);
  margin-top: 0.25rem;
  padding-left: 1.75rem;
}

.lab-cycle-preview-empty {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

.lab-cycle-card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
}

.lab-cycle-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
}

.lab-cycle-action-btn .btn-arrow {
  transition: transform 0.2s ease;
}

.lab-cycle-action-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.lab-cycles-bottom-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* --- Lab Question Layout & Stable Sidebar --- */
.lab-cycle-title-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.lab-cycle-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.lab-container {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.lab-sidebar-wrapper {
  position: sticky;
  top: 90px;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
}

.lab-sidebar {
  background: var(--glass-surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  scrollbar-width: thin;
  scrollbar-color: rgba(93, 134, 108, 0.3) transparent;
}

.lab-sidebar::-webkit-scrollbar,
.lab-question-nav::-webkit-scrollbar {
  width: 4px;
  height: 0px;
}

.lab-sidebar::-webkit-scrollbar-thumb,
.lab-question-nav::-webkit-scrollbar-thumb {
  background: rgba(93, 134, 108, 0.3);
  border-radius: 999px;
}

.lab-sidebar-header {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--glass-border);
}

.lab-sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.lab-sidebar-title-row h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.lab-sidebar-count {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(93, 134, 108, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(93, 134, 108, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

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

.lab-search-input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.lab-search-input:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
}

.lab-search-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  opacity: 0.6;
  pointer-events: none;
}

.lab-question-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
  overflow-x: hidden !important;
  padding-right: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(93, 134, 108, 0.3) transparent;
}

.lab-question-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.lab-question-btn:hover {
  background: rgba(93, 134, 108, 0.1);
  border-color: var(--accent-gold);
  color: var(--text-primary);
  box-shadow: inset 3px 0 0 var(--accent-gold);
}

.lab-question-btn.active {
  background: rgba(93, 134, 108, 0.16);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 600;
  box-shadow: inset 3.5px 0 0 var(--accent-gold), 0 2px 10px rgba(93, 134, 108, 0.08);
}

.question-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 20px;
  color: var(--accent-gold);
  opacity: 0.85;
}

.question-title-short {
  flex: 1;
  line-height: 1.35;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lab-nav-empty {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 1.5rem 0.5rem;
  font-style: italic;
}

.lab-sidebar-back {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.lab-btn-back {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
}

/* --- Unified Lab Studio Workspace --- */
.lab-main {
  min-width: 0;
  width: 100%;
}

.lab-studio-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lab-studio-card {
  padding: 2.25rem;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background: var(--glass-surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
}

/* Studio Header */
.lab-studio-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.lab-studio-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.lab-q-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  background: rgba(93, 134, 108, 0.12);
  border: 1px solid rgba(93, 134, 108, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.lab-header-nav-btns {
  display: flex;
  gap: 0.5rem;
}

.lab-nav-pill-btn {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
}

.lab-nav-pill-btn:hover:not(:disabled) {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.lab-nav-pill-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.lab-studio-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

/* Problem Statement Box */
.lab-problem-box {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
}

.lab-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.lab-problem-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0;
}

/* Studio Tabs Navigation */
.lab-studio-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem;
  background: rgba(44, 44, 44, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  flex-wrap: wrap;
}

.lab-studio-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.lab-studio-tab-btn * {
  pointer-events: none;
}

.lab-studio-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.5);
}

.lab-studio-tab-btn.active {
  background: #ffffff;
  color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lab-tab-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(93, 134, 108, 0.12);
  color: var(--accent-gold);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

/* Tab Panels */
.lab-tab-panel {
  display: none !important;
}

.lab-tab-panel.active {
  display: block !important;
  animation: labFadeIn 0.2s ease;
}

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

/* Solution Code Panel */
.lab-code-panel-inner {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.lab-code-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 0.85rem;
}

.lab-code-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.lab-lang-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #2C2C2C;
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.lab-solution-switcher {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(93, 134, 108, 0.1);
  border: 1px solid rgba(93, 134, 108, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
}

.lab-sol-counter {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.lab-switch-btn {
  background: var(--accent-gold);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: opacity var(--transition);
}

.lab-switch-btn:hover {
  opacity: 0.9;
}

.lab-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
}

.lab-copy-btn:hover {
  background: #ffffff;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.lab-copy-btn.copied {
  border-color: var(--success);
  background: rgba(93, 134, 108, 0.1);
}

.lab-code-container {
  background: #181c1f;
  overflow: hidden;
}

.lab-code-block {
  margin: 0;
  padding: 1.5rem 1.75rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.7;
  color: #d8dee9;
}

.lab-code-block code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
}

/* Line-by-Line Breakdown Table */
.lab-table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.4);
}

.lbl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.lbl-table th {
  text-align: left;
  padding: 0.85rem 1.25rem;
  background: rgba(93, 134, 108, 0.12);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--glass-border);
}

.lbl-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(44, 44, 44, 0.08);
  vertical-align: top;
}

.lbl-table tr:last-child td {
  border-bottom: none;
}

.lbl-table .line-code code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #2C2C2C;
  background: rgba(93, 134, 108, 0.08);
  border: 1px solid rgba(93, 134, 108, 0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  white-space: pre-wrap;
  word-break: break-all;
}

.lbl-table .line-desc {
  line-height: 1.65;
  color: var(--text-primary);
}

/* Workflow Stepper */
.workflow-stepper {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1rem 0.5rem;
}

.workflow-step-item {
  display: flex;
  gap: 1.25rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.workflow-step-item:last-child {
  padding-bottom: 0;
}

.workflow-step-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: rgba(93, 134, 108, 0.25);
}

.workflow-step-item:last-child::before {
  display: none;
}

.workflow-step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(93, 134, 108, 0.15);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.workflow-node-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent-gold);
}

.workflow-step-content {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  flex: 1;
}

.workflow-step-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0;
}

/* Bottom Nav Controls */
.lab-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-radius: var(--radius-card);
}

.lab-bottom-page-indicator {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* --- Syntax Accordion --- */
.syntax-accordion-item {
  margin-bottom: 0.75rem;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.syntax-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.syntax-accordion-header:hover {
  background: rgba(93, 134, 108, 0.06);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.syntax-accordion-header.active {
  background: rgba(93, 134, 108, 0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.syntax-accordion-title {
  flex: 1;
  font-weight: 500;
}

.syntax-accordion-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent-gold);
  transition: transform var(--transition);
  min-width: 28px;
  text-align: center;
}

.syntax-accordion-header.active .syntax-accordion-icon {
  transform: rotate(45deg);
}

.syntax-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.syntax-accordion-content.active {
  max-height: 2000px;
}

.syntax-accordion-content .glass-card {
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  border-top: none;
  margin-top: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
  .hero-visual { order: -1; }
  .hero-illustration { max-width: 320px; margin: 0 auto; }
  .mcq-split-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(245,245,240,0.97); padding: 1rem; gap: 0.5rem; border-bottom: 1px solid var(--glass-border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-left: 2px solid var(--glass-border);
    border-radius: 0;
    margin-left: 0.75rem;
    padding: 0.25rem 0;
    display: none;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-menu[aria-hidden="false"] { display: block; transform: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hub-grid { grid-template-columns: 1fr; }
  .subjects-grid { justify-content: center; }
  .subject-card { width: 220px; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-inner { max-width: 100%; }
  .about-hero-section { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-poster-card { max-width: 280px; height: 380px; margin: 0 auto; width: 100%; order: -1; }
  .about-pillars-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .about-team-grid { grid-template-columns: 1fr; }
  .lab-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .lab-sidebar-wrapper {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .lab-sidebar {
    max-height: 380px;
  }
  .lab-cycles-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .lab-cycles-stats-card {
    width: 100%;
    justify-content: space-around;
  }
  .lab-cycles-grid {
    grid-template-columns: 1fr;
  }
  .lab-workspace-header {
    padding: 1.25rem 1.5rem;
  }
  .lab-card {
    padding: 1.5rem;
  }
  .lab-bottom-nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .lab-bottom-nav .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-pillars-grid { grid-template-columns: 1fr; }
  .about-hero-header h1 { font-size: 1.85rem; }
  .about-mission-card { padding: 1.5rem; }
  .subjects-grid { justify-content: center; }
  .subject-card { width: 100%; max-width: 300px; }
  .sem-tabs { gap: 0.4rem; }
  .sem-tab { padding: 0.5rem 1rem; font-size: 0.82rem; }
  .footer-dropdown-menu { min-width: 160px; }
}

@media (max-width: 360px) {
  .container { padding: 0 1rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-illustration { max-width: 200px; }
  .nav-logo { font-size: 1.15rem; }
  .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
  .mcq-nav { flex-wrap: wrap; }
}


/* ══════════════════════════════════════════════════════════════════
   HERO v2 — Image background + layout
   ══════════════════════════════════════════════════════════════════ */

.hero-v2 {
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  padding: 7rem 0 6rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: #161a1e; /* Solid dark fallback */
}

.hero-v2 .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.hero-v2-container {
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Full-bleed background image aligned to top */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  display: block;
  border-radius: 0;
}

/* Dark left-to-right overlay: high contrast on left for text, clear visibility on right for art image */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 18, 22, 0.96) 0%,
    rgba(15, 18, 22, 0.88) 38%,
    rgba(15, 18, 22, 0.50) 68%,
    rgba(15, 18, 22, 0.10) 100%
  );
}

.hero-v2-content {
  max-width: 640px;
}

/* Hero text — crisp warm white on dark background */
.hero-v2-heading {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-v2-subtext {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.80);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-v2-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2.5rem;
}

/* Hero-specific button variants */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  background: var(--accent-gold);
  color: #F5F5F0;
  box-shadow: 0 4px 24px rgba(93, 134, 108, 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-hero-primary:hover {
  color: #F5F5F0;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(93, 134, 108, 0.65);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 240, 232, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero stats — white on dark */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #F5F0E8;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.55);
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, 20px) scale(1.06); }
  100% { transform: translate(-20px, 35px) scale(0.96); }
}

/* ══════════════════════════════════════════════════════════════════
   FEATURE PILLS STRIP
   ══════════════════════════════════════════════════════════════════ */

.features-strip {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.features-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-pill {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem 2rem;
  border-right: 1px solid var(--glass-border);
}

.feature-pill:last-child {
  border-right: none;
}

.feature-pill-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(93, 134, 108, 0.1);
  border: 1px solid rgba(93, 134, 108, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-top: 0.1rem;
}

.feature-pill-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.feature-pill-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════
   QUICK ACCESS / SUBJECT CARDS v2
   ══════════════════════════════════════════════════════════════════ */

.section-label-row {
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* Semester tabs v2 */
.sem-tabs-v2 {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.sem-tabs-v2::-webkit-scrollbar { display: none; }

.sem-tab-v2 {
  position: relative;
  padding: 0.7rem 1.4rem;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

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

.sem-tab-v2.active {
  color: var(--accent-gold);
  font-weight: 600;
  border-bottom-color: var(--accent-gold);
}

/* Subject grid v2 */
.subjects-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.subject-card-v2 {
  position: relative;
  overflow: hidden;
  background: var(--glass-surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.subject-card-v2:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.subject-card-v2-accent {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.07;
  pointer-events: none;
  transition: opacity var(--transition);
}

.subject-card-v2:hover .subject-card-v2-accent {
  opacity: 0.12;
}

.subject-card-v2-icon {
  width: 48px;
  height: 48px;
}

.subject-card-v2-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.subject-card-v2-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.subject-card-v2-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.subject-card-v2-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(93, 134, 108, 0.08);
  border: 1px solid rgba(93, 134, 108, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.subject-card-v2:hover .subject-card-v2-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* Chips */
.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: rgba(44, 44, 44, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.subject-card-v2:hover .chip {
  border-color: rgba(93, 134, 108, 0.3);
  color: var(--accent-gold);
  background: rgba(93, 134, 108, 0.06);
}

.chip-sm {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
}

/* Empty state */
.subject-empty-state {
  padding: 3rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.6;
  background: var(--glass-surface);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-card);
}

/* ══════════════════════════════════════════════════════════════════
   LEARN PAGE — Page Header
   ══════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════
   LEARN PAGE — Redesigned Curriculum Hub
   ══════════════════════════════════════════════════════════════════ */

.learn-page-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(
    180deg,
    rgba(93, 134, 108, 0.07) 0%,
    rgba(230, 216, 195, 0.25) 60%,
    transparent 100%
  );
  position: relative;
}

.learn-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-gold) 35%,
    var(--accent-teal) 65%,
    transparent 100%
  );
}

.learn-header-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.learn-header-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.learn-header-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.6rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Header Stat Pills (Centered, no dots) */
.learn-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.learn-stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 180ms ease;
}

.learn-stat-pill:hover {
  border-color: rgba(93, 134, 108, 0.4);
}

/* ── Tab Switcher Bar ── */
/* ── Centered Container & Tab Switcher Bar ── */
.learn-centered-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.learn-tab-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.learn-tab-bar::-webkit-scrollbar { display: none; }

.learn-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
  padding: 0.7rem 1.4rem;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  min-width: 140px;
  transition: all 200ms ease;
}

.learn-tab:hover {
  color: var(--text-primary);
  border-color: rgba(93, 134, 108, 0.35);
}

.learn-tab.active {
  background: rgba(93, 134, 108, 0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 2px 14px rgba(93, 134, 108, 0.12);
}

.learn-tab-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.learn-tab.active .learn-tab-title {
  color: var(--accent-gold);
}

.learn-tab-count {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.75;
}

/* ── Panel Wrapper — Fits active content height with zero blank space ── */
.learn-panels-wrapper {
  position: relative;
  width: 100%;
}

/* Multi-subject cards arranged in a single row on desktop */
.learn-subject-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  width: 100%;
}

.learn-subject-grid.active {
  display: grid;
  animation: smoothPanelFade 200ms ease-out forwards;
}

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

/* ── Individual Wide Subject Card ── */
.learn-wide-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.learn-wide-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.09);
}

.learn-card-accent {
  position: absolute;
  top: -55px;
  right: -55px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.learn-wide-card:hover .learn-card-accent {
  opacity: 0.16;
}

/* Main Card Header */
.learn-card-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.15rem;
}

.learn-card-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 240px;
}

.learn-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(93, 134, 108, 0.08);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  flex-shrink: 0;
}

.learn-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.learn-card-titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.learn-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.learn-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.learn-card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(93, 134, 108, 0.1);
  border: 1px solid rgba(93, 134, 108, 0.22);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.learn-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.learn-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

/* ── 3 Options Grid (Syntax, Lab, MCQ) ── */
.learn-card-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: auto;
}

.learn-option-tile {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.15rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all 200ms ease;
}

.learn-option-tile:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(93, 134, 108, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.learn-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.learn-option-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(93, 134, 108, 0.1);
  border: 1px solid rgba(93, 134, 108, 0.2);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.learn-option-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.learn-option-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.learn-option-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.learn-option-action {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(93, 134, 108, 0.15);
  transition: gap 180ms ease;
}

.learn-option-tile:hover .learn-option-action {
  gap: 0.55rem;
}

/* Empty State */
.learn-empty-state {
  padding: 3.5rem 2rem;
  text-align: center;
  background: var(--glass-surface);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-card);
}

.learn-empty-icon {
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.learn-empty-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.learn-empty-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════
   LEARN PAGE — Revision Strategy Section
   ══════════════════════════════════════════════════════════════════ */

.learn-roadmap-section {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.learn-roadmap-card {
  background: linear-gradient(
    145deg,
    #171F1B 0%,
    #1E2822 60%,
    #141B17 100%
  );
  border: 1px solid rgba(143, 196, 163, 0.28);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(14, 22, 17, 0.2);
}

.learn-roadmap-header {
  max-width: 620px;
  margin-bottom: 2rem;
}

.learn-roadmap-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: #F8F6F0;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.learn-roadmap-subtitle {
  font-size: 0.9rem;
  color: rgba(240, 245, 242, 0.72);
  line-height: 1.6;
}

.learn-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.learn-roadmap-step {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(143, 196, 163, 0.16);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.learn-step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #A4D9B8;
  line-height: 1;
}

.learn-step-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #F8F6F0;
  margin: 0;
}

.learn-step-body {
  font-size: 0.82rem;
  color: rgba(240, 245, 242, 0.7);
  line-height: 1.55;
  margin: 0;
}

/* Responsive adjustments for Learn Page */
@media (max-width: 860px) {
  .learn-roadmap-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .learn-card-options-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .learn-card-main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .learn-card-header-cta {
    width: 100%;
  }

  .learn-hub-link {
    width: 100%;
    justify-content: center;
  }

  .learn-wide-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 580px) {
  .learn-roadmap-card {
    padding: 1.75rem 1.25rem;
  }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — New components
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-v2-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-v2-copy {
    text-align: center;
  }

  .hero-eyebrow,
  .hero-v2-subtext {
    max-width: 100%;
  }

  .hero-v2-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-v2-visual {
    order: -1;
  }

  .hero-image-frame {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .features-strip-grid {
    grid-template-columns: 1fr;
  }

  .feature-pill {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .feature-pill:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .hero-v2 {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-v2-heading {
    font-size: 2.2rem;
  }

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

  .learn-subject-grid {
    grid-template-columns: 1fr;
  }

  .learn-card-cta {
    display: none;
  }
}

@media (max-width: 540px) {
  .subjects-grid-v2 {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .hero-stat {
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
  }
}

/* ══════════════════════════════════════════════════════════════════
   QUICK ACCESS / PICK A SUBJECT SECTION (Home Page)
   ══════════════════════════════════════════════════════════════════ */

.quick-access {
  position: relative;
  border-bottom: 1px solid var(--glass-border);
}

.qa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.qa-header-text {
  flex: 1;
  min-width: 240px;
}

.qa-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.qa-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Semester Tab Pills in Quick Access Header */
.sem-tabs-v2 {
  display: flex;
  gap: 0.45rem;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.35rem 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.sem-tabs-v2::-webkit-scrollbar { display: none; }

.sem-tab-v2 {
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 180ms ease;
}

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

.sem-tab-v2.active {
  background: var(--accent-gold);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(93, 134, 108, 0.3);
}

/* Quick Access Container — Fits active content height with zero blank space */
.qa-main-wrapper {
  position: relative;
  width: 100%;
}

.qa-panel-view {
  display: none;
  flex-direction: column;
  width: 100%;
}

.qa-panel-view.active {
  display: flex;
  animation: smoothPanelFade 200ms ease-out forwards;
}

/* Subject Grid: Arranged in a single row for multiple subjects, full width for 1 subject */
.qa-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  width: 100%;
}

.qa-wide-card {
  width: 100%;
}

/* Empty state */
.qa-empty {
  grid-column: 1 / -1;
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.7;
  background: var(--glass-surface);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-card);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 1040px) {
  .qa-subject-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Navbar Mobile Hamburger Toggle */
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 210;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Compact Centered Mobile Nav Dropdown directly beneath Navbar */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 80px);
    background: rgba(245, 245, 240, 0.98);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.35rem 1.25rem 1.6rem;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
    z-index: 150;
    overflow-y: auto;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links > li {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nav-links > li > a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    display: inline-block;
    text-align: center;
  }

  /* Centered Learn Dropdown in Mobile */
  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nav-dropdown-trigger {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 auto;
    text-align: center;
  }

  .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 290px !important;
    margin: 0.5rem auto 0 !important;
    background: rgba(230, 216, 195, 0.45) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.4rem 0 !important;
    display: none;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .nav-dropdown-menu::before {
    display: none !important;
  }

  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown-menu[aria-hidden="false"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .nav-dropdown-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-dropdown-menu li a {
    font-size: 0.96rem;
    font-weight: 500;
    text-align: center;
    padding: 0.55rem 1rem;
    white-space: normal;
    display: block;
    width: 100%;
  }

  .qa-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .sem-tabs-v2 {
    width: 100%;
  }
}




