*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
input {
  font-family: inherit;
}

:root {
  --font: "Outfit", system-ui, sans-serif;
  --bg: #0b0d1a;
  --bg2: #0d1023;
  --bg3: #111428;
  --card: #161a2e;
  --card2: #1a1f38;
  --border: #344054;
  --border2: rgba(255, 255, 255, 0.13);
  --txt: #ffffff;
  --txt2: #8b96c8;
  --txt3: #4e5880;
  --accent: #7c5cfc;
  --accent2: #06d6e3;
  --accent-glow: rgba(124, 92, 252, 0.35);
  --cyan-glow: rgba(6, 214, 227, 0.28);
  --star: #f59e0b;
  --nav-h: 68px;
  --timer-h: 25px;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="light"] {
  --bg: #eef0ff;
  --bg2: #e4e7f8;
  --bg3: #ffffff;
  --card: #ffffff;
  --card2: #f4f6ff;
  --border: rgba(0, 0, 0, 0.08);
  --border2: rgba(0, 0, 0, 0.15);
  --txt: #0a0d20;
  --txt2: #4a5280;
  --txt3: #9098c0;
  --accent-glow: rgba(124, 92, 252, 0.18);
  --cyan-glow: rgba(6, 214, 227, 0.18);
}
/* CTA */
[data-theme="light"] footer {
  background: #e8eaf8;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  transition:
    background 0.4s,
    color 0.4s;
}

.timer__inner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 10px;
  padding: 0.2rem 1rem;
  background: var(--txt);
  color: var(--bg3);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}
.timer__spacer {
  flex-shrink: 0;
  width: 28px;
}
.timer__text {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  row-gap: 0.15rem;
  text-align: center;
}
.timer__label {
  display: inline-flex;
  align-items: center;
}
.timer__label a {
  margin-left: 0.25rem;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.timer__countdown {
  display: inline-flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
}
.timer__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--bg3);
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.timer__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Timer bar — responsive */
@media (max-width: 768px) {
  .timer__inner {
    padding: 0.35rem 1rem;
    font-size: 0.72rem;
  }
}
@media (max-width: 480px) {
  .timer__inner {
    font-size: 0.5rem;
    padding: 0.35rem 0.75rem;
  }
  .timer__spacer {
    width: 22px;
  }
  .timer__close {
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }
}

/* HERO GRID LINES */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 80% at 55% 45%,
    black 20%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 80% 80% at 55% 45%,
    black 20%,
    transparent 100%
  );
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.eyebrow {
  display: inline-block;
  background: rgba(124, 92, 252, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(124, 92, 252, 0.35);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 1.1rem;
  margin-bottom: 1.25rem;
}
.sec-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.sec-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  line-height: 1.15;
}
.sec-head p {
  font-size: 0.95rem;
  color: var(--txt2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--txt);
}
.btn-outline:hover {
  border-color: var(--txt2);
}
.btn-cyan {
  background: var(--accent2);
  color: #000;
}
.btn-cyan:hover {
  box-shadow: 0 0 28px var(--cyan-glow);
  filter: brightness(1.07);
}
.btn-purple {
  background: var(--accent);
  color: #fff;
}
.btn-purple:hover {
  box-shadow: 0 0 28px var(--accent-glow);
}
.btn-ghost-border {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--txt);
  border-radius: 100px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-ghost-border:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* ═══ NAVBAR ═══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: var(--timer-h);
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(11, 13, 26, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition:
    background 0.35s,
    transform 0.35s var(--ease);
}
[data-theme="light"] .navbar {
  background: rgba(238, 240, 255, 0.95);
}
.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-logo-words {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-left: 0.2rem;
  font-size: 0.75rem;
}

.university {
  font-size: 0.58rem;
  color: var(--txt3);
  letter-spacing: 0.1em;
}
/* Search bar */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.48rem 1.1rem;
  flex: 1;
  max-width: 340px;
  transition: border 0.25s;
}
.nav-search:focus-within {
  border-color: var(--border2);
}
.nav-search svg {
  width: 15px;
  height: 15px;
  stroke: var(--txt3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}
.nav-search input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--txt);
  width: 100%;
}
.nav-search input::placeholder {
  color: var(--txt3);
}

/* Main nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  list-style: none;
  margin-left: 0.5rem;
}
.nav-item {
  position: relative;
}
.nav-item > a,
.nav-item > button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--txt2);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition:
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
}
.nav-item > a:hover,
.nav-item > button:hover {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.05);
}
.nav-item > a.active {
  color: var(--txt);
}
.nav-item > button.active {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.06);
}
.dd-item.active,
.sub-item.active {
  color: var(--txt);
  background: rgba(124, 92, 252, 0.14);
}
.dd-item-wrap > .dd-item.active {
  color: var(--txt);
}
.nav-chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.nav-item.open > button .nav-chevron {
  transform: rotate(180deg);
}

/* ── DROPDOWN BASE ── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 0.6rem;
  min-width: 220px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease);
  z-index: 300;
}
.nav-item.open .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Dropdown single-column items */
.dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--txt2);
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s;
  text-decoration: none;
}
.dd-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--txt);
}
.dd-item-chevron {
  width: 14px;
  height: 14px;
  stroke: var(--txt3);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── COURSES DROPDOWN — two columns ── */
.dd-courses {
  left: 0;
  min-width: 520px;
  padding: 0.85rem 1rem;
}
.dd-courses-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt3);
  padding: 0.25rem 0.5rem 0.65rem;
  display: block;
}
.dd-courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.dd-courses-grid .dd-item {
  font-size: 0.8rem;
  padding: 0.5rem 0.7rem;
}

/* ── RESOURCES DROPDOWN — single long column ── */
.dd-resources {
  left: 0;
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.6rem;
}
.dd-resources::-webkit-scrollbar {
  width: 4px;
}
.dd-resources::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}

/* Nav right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}
.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border2);
  display: grid;
  place-items: center;
  transition: all 0.25s;
  flex-shrink: 0;
  cursor: pointer;
}
.theme-btn:hover {
  border-color: var(--accent2);
}
.theme-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--txt2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-login {
  padding: 0.48rem 1.2rem;
  border-radius: 100px;
  border: 1.5px solid var(--border2);
  color: var(--txt);
  font-size: 0.83rem;
  font-weight: 600;
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
}
.nav-login:hover {
  border-color: var(--txt2);
}
.nav-cta {
  padding: 0.52rem 1.3rem;
  border-radius: 100px;
  background: var(--accent2);
  color: #000;
  font-size: 0.83rem;
  font-weight: 700;
  transition: all 0.25s;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  border: none;
}
.nav-cta:hover {
  box-shadow: 0 0 22px var(--cyan-glow);
  filter: brightness(1.08);
}

/* Hamburger */
.nav-ham {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-ham span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--txt);
  border-radius: 2px;
  transition: all 0.32s var(--ease);
}
.nav-ham.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-ham.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-ham.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-ov {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(11, 13, 26, 0.98);
  backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 6rem 2rem 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
[data-theme="light"] .mobile-ov {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.04);
}
.mobile-ov.open {
  opacity: 1;
  pointer-events: all;
}

/* Close button inside overlay */
.mob-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
[data-theme="light"] .mob-close {
  background: #f7f8ff;
  border-color: rgba(0, 0, 0, 0.08);
}
.mob-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--txt2);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Top-level mobile links */
.mob-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--txt);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: color 0.2s;
  cursor: pointer;
  text-decoration: none;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--border);
  width: 100%;
  font-family: var(--font);
}
.mob-link.active,
.mob-sub-item.active {
  color: var(--accent2);
}
[data-theme="light"] .mob-link {
  color: #172033;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.mob-link:hover,
.mob-link:focus {
  color: var(--accent2);
  outline: none;
}
.mob-link:last-of-type {
  border-bottom: none;
}
.mob-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--txt3);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.mob-item.mob-open .mob-chevron {
  transform: rotate(180deg);
  stroke: var(--accent2);
}
.mob-item.mob-open .mob-link {
  color: var(--accent2);
}

/* Accordion sub-list */
.mob-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  padding-left: 0.5rem;
}
.mob-item.mob-open .mob-sub {
  max-height: 3000px;
}

.mob-sub-item {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--txt2);
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s;
}
[data-theme="light"] .mob-sub-item {
  color: #4a5280;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.mob-sub-item:hover {
  color: var(--accent2);
}
.mob-sub-item:last-child {
  border-bottom: none;
}

/* Mobile search bar */
.mob-search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}
[data-theme="light"] .mob-search {
  background: #f7f8ff;
  border-color: rgba(0, 0, 0, 0.08);
}
.mob-search svg {
  width: 16px;
  height: 16px;
  stroke: var(--txt3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}
.mob-search input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--txt);
  width: 100%;
}
.mob-search input::placeholder {
  color: var(--txt3);
}

/* Mobile sub-group label */
.mob-sub-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt3);
  padding: 0.75rem 0.5rem 0.3rem;
  display: block;
}
.mob-sub-group {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}
.mob-sub-group:last-child {
  border-bottom: none;
}

/* ── SUB-DROPDOWN (nested flyout) ── */
.dd-item-wrap {
  position: relative;
}
.dd-item-wrap:hover .sub-dropdown,
.dd-item-wrap.sub-open .sub-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.sub-dropdown {
  position: absolute;
  top: 0;
  left: calc(100% + 0.4rem);
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 0.6rem;
  min-width: 220px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
  z-index: 400;
}
/* Transparent bridge fills the gap between the row and the flyout panel
   so the mouse never leaves the hover zone while crossing the gap */
.sub-dropdown::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  width: 0.6rem;
  height: 100%;
}
.sub-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt3);
  padding: 0.2rem 0.7rem 0.6rem;
}
.sub-item {
  display: block;
  padding: 0.58rem 0.8rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--txt2);
  text-decoration: none;
  transition:
    background 0.18s,
    color 0.18s;
  white-space: nowrap;
}
.sub-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--txt);
}

/* dd-item with nested sub — show arrow indicator */
.dd-item-wrap .dd-item {
  justify-content: space-between;
}
.dd-item-wrap .dd-item .dd-item-chevron {
  transition: transform 0.2s;
}
.dd-item-wrap:hover .dd-item .dd-item-chevron {
  transform: rotate(0deg);
  stroke: var(--accent2);
}

@media (max-width: 900px) {
  .nav-links,
  .nav-search,
  .navbar .nav-login,
  .navbar .nav-cta {
    display: none;
  }
  .nav-ham {
    display: flex;
  }
}

/* HERO */
.hero {
  min-height: 100dvh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  align-items: center;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 0.35rem 1rem 0.35rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--txt2);
  margin-top: 30px;
  margin-bottom: 1rem;
}
.hero-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-badge-icon svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
/* Generic gradient accent text — reusable on any heading, any page */
.accent-line {
  background: linear-gradient(90deg, #06d6e3 0%, #a78bfa 55%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Hero-specific override: block display + fixed height for the rotating word effect */
.hero-title .accent-line {
  display: block;
  /* Fixed height = prevents layout reflow when text changes length */
  height: 1.1em;
  overflow: hidden;
  position: relative;
}
/* Rotator — fills the accent-line block, clips overflow */
.course-rotator {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.course-rotator-word {
  display: block;
  width: 100%;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  background: linear-gradient(90deg, #06d6e3 0%, #a78bfa 55%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.course-rotator-word.active {
  opacity: 1;
  transform: translateY(0);
}
.course-rotator-word.exit {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-desc {
  font-size: 0.95rem;
  color: var(--txt2);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 1rem;
  padding-block: 1rem;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.hero-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 1rem;
}
.hero-stats {
  display: flex;
  gap: 0;
}
.hero-stat {
  flex: 1;
  padding-right: 1.5rem;
  margin-right: 1.5rem;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
.hs-num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 1;
}
.hs-label {
  font-size: 0.78rem;
  color: var(--txt3);
  margin-top: 0.3rem;
}
.hero-visual {
  margin-top: -150px;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 500px;
}

/* 3D CUBE */
.cube-scene {
  width: 440px;
  height: 460px;
  max-width: 100%;
  position: relative;
  z-index: 2;
  flex-shrink: 0; /* NEVER shrink regardless of sibling content */
}
#cubeCanvas,
#cubeStage {
  display: block;
  width: 440px !important;
  height: 460px !important;
  max-width: 100%;
}
.cube-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 92, 252, 0.4) 0%,
    rgba(6, 214, 227, 0.18) 45%,
    transparent 70%
  );
  animation: glowPulse 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

/* FLAGS */
.flags-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  overflow: hidden;
  margin-top: 20px;
}
.flags-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--txt3);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
/* Marquee track */
.flags-marquee {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: flagsScroll 28s linear infinite;
  will-change: transform;
}
.flags-marquee:hover {
  animation-play-state: paused;
}
@keyframes flagsScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.flag {
  width: 100px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  cursor: default;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.flag:hover {
  transform: translateY(-4px) scale(1.12);
  border-color: var(--border2);
}

/* COURSES */
.courses-sec {
  padding: 7rem 0;
  position: relative;
  z-index: 1;
}
.courses-sec::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 15%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(124, 92, 252, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.ftab {
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  border: 1.5px solid var(--border2);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--txt2);
  background: transparent;
  transition: all 0.25s;
  cursor: pointer;
}
.ftab:hover {
  color: var(--txt);
  border-color: var(--txt3);
}
.ftab.active {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #000;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ccard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.ccard:hover {
  border-color: rgba(124, 92, 252, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}
.ccard-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.ccard-img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ccard:hover .ccard-img-inner {
  transform: scale(1.05);
}
.img-ds {
  background: linear-gradient(
    135deg,
    #0d1040 0%,
    #1e1060 40%,
    #3c1890 70%,
    #06d6e3 100%
  );
}
.img-ux {
  background: linear-gradient(
    135deg,
    #180840 0%,
    #3a0888 50%,
    #7040c0 80%,
    #a040f0 100%
  );
}
.img-eng {
  background: linear-gradient(
    135deg,
    #081028 0%,
    #101460 40%,
    #4010b0 70%,
    #9040e0 100%
  );
}
.img-ai {
  background: linear-gradient(
    135deg,
    #0a0000 0%,
    #1e0000 30%,
    #3d0000 55%,
    #ff6200 85%,
    #ffd000 100%
  );
}
.img-fs {
  background: linear-gradient(
    135deg,
    #081426 0%,
    #18205a 40%,
    #3040a0 70%,
    #5090f0 100%
  );
}
.img-fe {
  background: linear-gradient(
    135deg,
    #0a0828 0%,
    #180860 40%,
    #4020a0 70%,
    #8040d8 100%
  );
}
.img-cyber {
  background: linear-gradient(
    135deg,
    #001020 0%,
    #002840 40%,
    #005080 70%,
    #00c8e0 100%
  );
}
.img-mgmt {
  background: linear-gradient(
    135deg,
    #0a1a08 0%,
    #163010 40%,
    #285820 70%,
    #4caf50 100%
  );
}
.ccard-body {
  padding: 1.3rem 1.3rem 1.6rem;
}
.ccard-tags {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.ctag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.7rem;
  border-radius: 100px;
  color: #fff;
  border: 1px solid var(--border);
}

.ctag-design,
.ctag-ds,
.ctag-ai,
.ctag-eng,
.ctag-cyber,
.ctag-mgmt {
  background: rgba(124, 58, 237, 0.31);
}

.ctag-lvl {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--txt3);
}
.ccard-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--txt);
  margin-bottom: 0.7rem;
  line-height: 1.35;
}
.ccard-stars {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.star-row {
  display: flex;
  gap: 2px;
}
.star {
  width: 13px;
  height: 13px;
  fill: var(--star);
}
.star.empty {
  fill: rgba(255, 255, 255, 0.15);
}
.rv {
  font-size: 0.82rem;
  font-weight: 700;
}
.rc {
  font-size: 0.75rem;
  color: var(--txt3);
}
.ccard-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.cmeta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--txt2);
}
.cmeta svg {
  width: 16px;
  height: 16px;
  stroke: var(--txt3);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.ccard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
}
.inst-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.inst-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border2);
}
.inst-av img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.inst-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--txt);
}
.inst-role {
  font-size: 0.65rem;
  color: var(--txt3);
}
.price-col {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 0.5rem;
}
.price-old {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--txt3);
  text-decoration: line-through;
}
.price-new {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent2);
  letter-spacing: -0.03em;
}
.enroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s;
  cursor: pointer;
}
.enroll-btn:hover {
  background: #6d4bf0;
  box-shadow: 0 0 22px var(--accent-glow);
}
.enroll-btn svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* FACULTIES */
.fac-sec {
  padding: 7rem 0;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--bg2) 40%,
    var(--bg) 100%
  );
  position: relative;
  z-index: 1;
}
.fac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.fac-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.fac-card:hover {
  border-color: rgba(6, 214, 227, 0.35);
  background: rgba(6, 214, 227, 0.04);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}
.fac-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(6, 214, 227, 0.1);
  border: 1px solid rgba(6, 214, 227, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.fac-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fac-name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}
.fac-count {
  font-size: 0.72rem;
  color: var(--txt3);
  margin-top: 0.2rem;
}

/* SUCCESS STORIES */
.stories-sec {
  padding: 7rem 0;
  position: relative;
  z-index: 1;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}
.story-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.story-card:hover {
  border-color: rgba(6, 214, 227, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}
.story-av {
  width: 150px;
  height: 100px;
  margin: 0 auto 1rem;
}

.story-av img {
  width: 100%;
}
.story-name {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.story-data {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.story-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.story-meta-row {
  display: flex;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--txt3);
}

.story-score {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent2);
  letter-spacing: -0.05em;
}

/* EMPLOYERS */
.employers-sec {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.emp-label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--txt3);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.marq-track {
  display: flex;
  gap: 5rem;
  animation: marquee 24s linear infinite;
  width: max-content;
  will-change: transform;
  align-items: center;
}
.marq-track:hover {
  animation-play-state: paused;
}
.marq-item {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--txt3);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.25s;
  letter-spacing: -0.01em;
}
.marq-item:hover {
  color: var(--txt);
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ROADMAP */
.roadmap-sec {
  padding: 7rem 0;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.path-tabs-wrap {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem;
  gap: 0.2rem;
  width: fit-content;
  margin: 2.5rem auto;
  overflow-x: auto;
  max-width: 100%;
}
.path-tabs-wrap::-webkit-scrollbar {
  display: none;
}
.ptab {
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--txt2);
  background: transparent;
  transition: all 0.25s;
  white-space: nowrap;
  cursor: pointer;
}
.ptab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.ptab:hover:not(.active) {
  color: var(--txt);
}

.roadmap-wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3.5rem;
  align-items: start;
}

/* ── LEFT: step list ── */
.roadmap-steps {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* The vertical line — runs between all step circles */
.roadmap-steps::before {
  content: "";
  position: absolute;
  left: 19px; /* centre of the 40px icon */
  top: 40px; /* start below first icon */
  bottom: 40px; /* end above last icon */
  width: 2px;
  background: var(--border2);
  z-index: 0;
}

/* Each step row */
.rstep {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 0 0.75rem 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* ── Circle icon ── */
.rstep-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 800;
  position: relative;
  z-index: 2; /* sits on top of the line */
  transition: all 0.3s var(--ease);
}

/* Done — solid green with white checkmark */
.rstep-icon.done {
  background: #10b981;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.rstep-icon.done svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Active — solid teal/cyan with number */
.rstep-icon.active-icon {
  background: var(--accent2);
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(6, 214, 227, 0.18);
}

/* Upcoming — dark background, border, muted number */
.rstep-icon.pending-icon {
  background: var(--card2);
  border: 2px solid var(--border2);
  color: var(--txt3);
}

/* ── Step content ── */
.rstep-body {
  flex: 1;
  padding-bottom: 1.25rem;
}
.rstep:last-child .rstep-body {
  padding-bottom: 0;
}

.rstep-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 0.35rem;
  line-height: 1.3;
  transition: color 0.2s;
}
/* Active step title is cyan */
.rstep.is-active .rstep-title {
  color: var(--accent2);
}

.rstep-desc {
  font-size: 0.8rem;
  color: var(--txt2);
  line-height: 1.65;
  margin-bottom: 0.55rem;
}

/* Calendar icon + weeks · modules */
.rstep-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.73rem;
  color: var(--accent2);
  font-weight: 500;
}
.rstep-meta svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent2);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.rstep-meta-sep {
  color: var(--txt3);
  margin: 0 0.1rem;
}

/* ── RIGHT: path info card ── */
.path-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.pc-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 2×2 stat grid */
.pc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}
.pc-stat {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.pc-stat-val {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--accent2);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pc-stat-label {
  font-size: 0.7rem;
  color: var(--txt3);
}

/* Skills */
.pc-skills-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}
.pchip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.28rem 0.8rem;
  border-radius: 100px;
  background: transparent;
}
.pchip-purple {
  border: 1.5px solid #a78bfa;
  color: #a78bfa;
}
.pchip-cyan {
  border: 1.5px solid #06d6e3;
  color: #06d6e3;
}
.pchip-green {
  border: 1.5px solid #10b981;
  color: #10b981;
}
.pchip-orange {
  border: 1.5px solid #f59e0b;
  color: #f59e0b;
}
.pchip-teal {
  border: 1.5px solid #2dd4bf;
  color: #2dd4bf;
}
.pchip-red {
  border: 1.5px solid #f87171;
  color: #f87171;
}
.pchip-blue {
  border: 1.5px solid #60a5fa;
  color: #60a5fa;
}
.pchip-pink {
  border: 1.5px solid #f472b6;
  color: #f472b6;
}

/* Job guarantee */
.pc-guarantee {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.35rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.pc-guarantee-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.pc-guarantee-icon svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pc-guarantee-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 0.25rem;
}
.pc-guarantee-text {
  font-size: 0.76rem;
  color: var(--txt2);
  line-height: 1.6;
}

/* CTA button */
.pc-cta {
  width: 100%;
  padding: 0.95rem;
  border-radius: 12px;
  background: transparent;
  border: 1.5px solid var(--border2);
  color: var(--txt);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all 0.25s;
}
.pc-cta:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}
.pc-cta svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* TESTIMONIALS */
.testimonials-sec {
  padding: 7rem 0;
  position: relative;
  z-index: 1;
}
.testimonials-sec::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(124, 92, 252, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem;
  transition: all 0.3s var(--ease);
}
.tcard:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.tcard.featured {
  background: radial-gradient(#7c3aed, #2e1065);
  border-color: var(--accent);
}
.tcard.featured .tcard-text {
  color: rgba(255, 255, 255, 0.9);
}
.tcard.featured .tcard-role {
  color: rgba(255, 255, 255, 0.7);
}
.tcard-text {
  font-size: 0.85rem;
  color: var(--txt2);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.tcard-author {
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tcard-border {
  border-bottom: 1px solid #344054;
}
.tcard-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.tcard-name {
  font-size: 0.85rem;
  font-weight: 700;
}
.tcard-role {
  font-size: 0.72rem;
  color: var(--txt3);
  margin-top: 0.1rem;
}
.tgrid-row2 {
  position: relative;
  margin-top: 1.5rem;
  overflow: hidden;
  /* Fade edges left and right */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}
/* The scrolling track inside */
.tgrid-row2-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: testimScroll 30s linear infinite;
  will-change: transform;
}
.tgrid-row2:hover .tgrid-row2-track {
  animation-play-state: paused;
}
@keyframes testimScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* Cards inside track — fixed width so they don't shrink */
.tgrid-row2-track .tcard {
  flex-shrink: 0;
  width: 380px;
}

/* TRUST */
.trust-sec {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}
.trust-sec h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 3rem;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.trust-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
}
.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.trust-icon img {
  width: 40px;
  display: inline-block;
  margin: 0 auto;
}
.trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.trust-desc {
  font-size: 0.78rem;
  color: var(--txt3);
  line-height: 1.6;
}

/* BLOG */
.blog-sec {
  padding: 7rem 0;
  position: relative;
  z-index: 1;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.blog-img {
  height: 200px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}
.blog-img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-img-inner {
  transform: scale(1.04);
}
.blog-body {
  padding: 1.35rem 1.35rem 1.6rem;
}
.blog-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.6rem;
}
.blog-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--txt);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.blog-title span {
  flex: 1;
}
.blog-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
  transition: all 0.25s;
}
.blog-card:hover .blog-arrow {
  background: var(--accent2);
  border-color: var(--accent2);
}
.blog-arrow svg {
  width: 12px;
  height: 12px;
  stroke: var(--txt2);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
}
.blog-card:hover .blog-arrow svg {
  stroke: #000;
}
.blog-excerpt {
  font-size: 0.8rem;
  color: var(--txt2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* FAQ */
.faq-sec {
  padding: 7rem 0 5rem;
  position: relative;
  z-index: 1;
}
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.open {
  border-color: var(--border2);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  color: var(--txt);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  gap: 1rem;
  transition: color 0.2s;
  cursor: pointer;
}
.faq-q:hover {
  color: var(--accent2);
}
.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.faq-chevron svg {
  width: 14px;
  height: 14px;
  stroke: var(--txt2);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-chevron {
  background: var(--accent);
  border-color: var(--accent);
}
.faq-item.open .faq-chevron svg {
  transform: rotate(180deg);
  stroke: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--txt2);
  line-height: 1.75;
}

/* CTA BANNER — full bleed purple, no wrapper constraint */
.cta-banner-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
}
.cta-banner {
  width: 100%;
  background-image:
    linear-gradient(rgba(48, 30, 81, 0.4), rgba(48, 30, 81, 0.4)),
    url("/assets/bg.png");
  background-size: cover;
  background-position: center;
  padding: 5rem 2rem 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
/* Top-right orb — the holographic oval in screenshot */
.cta-orb-1 {
  width: 140px;
  height: 180px;
  top: 10px;
  right: 8%;
}
/* Bottom-left orb */
.cta-orb-2 {
  width: 110px;
  height: 140px;
  bottom: 60px;
  left: 5%;
}
.cta-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
}
.cta-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.97;
  margin-bottom: 1.5rem;
}
.cta-title .cta-accent {
  color: var(--accent2);
}
.cta-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-btn-w {
  padding: 0.85rem 2rem;
  border-radius: 100px;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s;
}
.cta-btn-w:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.cta-btn-t {
  padding: 0.85rem 2rem;
  border-radius: 100px;
  background: var(--accent2);
  color: #000;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-btn-t:hover {
  box-shadow: 0 0 28px var(--cyan-glow);
  filter: brightness(1.07);
}
.cta-btn-t svg {
  width: 16px;
  height: 16px;
  stroke: #000;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* FOOTER — dark tray with large border-radius on top, sitting on the purple */
footer {
  background: var(--bg2);
  border-radius: 40px 40px 0 0;
  padding: 4rem 0 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: -36px;
}
footer::after {
  content: "VEPHLA UNI";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
}
.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  margin-bottom: 3.5rem;
}
.f-logo {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}
.f-logo-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.f-logo-words {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.f-logo-words b {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.f-logo-words span {
  font-size: 0.58rem;
  color: var(--txt3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.fc-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--txt2);
}
.fc-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--txt3);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  flex-shrink: 0;
}
.fc-row a:hover {
  color: var(--accent2);
}
.f-socials {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.f-soc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--txt3);
  transition: all 0.2s;
  font-style: normal;
}
.f-soc:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.f-soc svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.fc-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt2);
  margin-bottom: 1.1rem;
}
.fc-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.zcriptta {
  color: var(--txt);
  transition: color 0.2s;
}
.zcriptta:hover {
  color: var(--accent2);
}

.fc-ul a {
  font-size: 0.82rem;
  color: var(--txt3);
  transition: color 0.2s;
}
.fc-ul a:hover {
  color: var(--accent2);
}
.footer-newsletter {
  border-top: 1px solid var(--border);
  padding: 2rem 0 1.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.fnl-left h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.fnl-left p {
  font-size: 0.78rem;
  color: var(--txt3);
  line-height: 1.5;
}
.fnl-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 320px;
}
.fnl-form {
  display: flex;
  gap: 0.6rem;
}
.fnl-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 0.7rem 1.25rem;
  font-size: 0.85rem;
  color: var(--txt);
  outline: none;
  transition: border 0.25s;
}
.fnl-input::placeholder {
  color: var(--txt3);
}
.fnl-input:focus {
  border-color: var(--accent2);
}
.fnl-send {
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.fnl-send:hover {
  background: #6d4bf0;
  box-shadow: 0 0 20px var(--accent-glow);
}
.fnl-send svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fnl-note {
  font-size: 0.72rem;
  color: var(--txt3);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 5rem;
  display: flex;
  justify-content: center;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--txt3);
  text-align: center;
}

/* SCROLL REVEAL */
.sr {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.sr.v {
  opacity: 1;
  transform: none;
}
.sd1 {
  transition-delay: 0.05s;
}
.sd2 {
  transition-delay: 0.1s;
}
.sd3 {
  transition-delay: 0.15s;
}
.sd4 {
  transition-delay: 0.2s;
}
.sd5 {
  transition-delay: 0.25s;
}
.sd6 {
  transition-delay: 0.3s;
}

/* ── GLOBAL OVERFLOW FIX ──────────────────────────────────────
   The #1 cause of mobile horizontal overflow: fixed-width elements
   (cube canvas, wide dropdowns, sub-dropdown panels) that don't
   shrink. We clamp them here without breaking desktop.
   ──────────────────────────────────────────────────────────── */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Dropdowns never wider than viewport on mobile */
.nav-dropdown,
.sub-dropdown,
.dd-courses {
  max-width: calc(100vw - 2rem);
}

/* Hero float badges that can stick out */
.hero-float-badge {
  max-width: 180px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .stories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .fac-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .roadmap-wrap {
    grid-template-columns: 1fr 400px;
  }
}
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 2rem);
    gap: 0;
  }
  .hero-content {
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-divider {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    order: -1;
    margin-top: 0;
    min-height: 420px;
    width: 100%;
  }
  .cube-scene,
  #cubeCanvas,
  #cubeStage {
    width: 380px !important;
    height: 400px !important;
  }
  .cube-glow-ring {
    width: 420px;
    height: 420px;
  }
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .path-card {
    position: static;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tgrid {
    grid-template-columns: 1fr 1fr;
  }
  .tgrid-row2 {
    grid-template-columns: 1fr 1fr;
  }
  .roadmap-steps::before {
    display: none;
  }
}
@media (max-width: 768px) {
  .nav-links,
  .navbar .nav-login,
  .navbar .nav-cta {
    display: none;
  }
  .nav-ham {
    display: flex;
  }
  .course-grid,
  .blog-grid,
  .fac-grid {
    grid-template-columns: 1fr;
  }
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tgrid,
  .tgrid-row2 {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-right: 0;
    padding-right: 0;
  }
  .hero-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .hero-visual {
    min-height: 340px;
  }
  .cube-scene,
  #cubeCanvas,
  #cubeStage {
    width: 300px !important;
    height: 320px !important;
  }
  .cube-glow-ring {
    width: 340px;
    height: 340px;
  }
  .footer-newsletter {
    flex-direction: column;
  }
  .fnl-right {
    min-width: 100%;
    width: 100%;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .path-tabs-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Cube: fixed px size → let it scale down on small screens */
@media (max-width: 520px) {
  .hero-visual {
    min-height: 300px;
  }
  .cube-scene,
  #cubeCanvas,
  #cubeStage {
    width: 260px !important;
    height: 280px !important;
  }
  .cube-glow-ring {
    width: 300px;
    height: 300px;
  }
}

/* Very small phones: shrink once more, keep well clear of the fixed nav */
@media (max-width: 380px) {
  .hero {
    padding-top: calc(var(--nav-h) + 1.5rem);
  }
  .hero-visual {
    min-height: 260px;
  }
  .cube-scene,
  #cubeCanvas,
  #cubeStage {
    width: 220px !important;
    height: 240px !important;
  }
  .cube-glow-ring {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
  .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .stories-grid {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    padding: 3.5rem 1.5rem;
  }
  /* Price text too large on very small screens */
  .price-old,
  .price-new {
    font-size: 1.2rem;
  }
  /* Hero CTA buttons stack cleanly */
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-cta a,
  .hero-cta button {
    width: 100%;
    justify-content: center;
  }
  /* Roadmap path tab pills wrap tightly */
  .path-tabs-wrap {
    gap: 0.4rem;
  }

  .ptab {
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
  }

  /* Course filter tabs wrap */
  .course-tabs {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
}

/* ══ ABOUT / CONTACT / FACULTY PAGES MOBILE ═══════════════════ */
@media (max-width: 768px) {
  /* About stats → 2 col */
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  /* Involved grid → single col */
  .involved-grid {
    grid-template-columns: 1fr;
  }
  /* Contact info grid → single col */
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  /* Faculty other-faculty pills wrap */
  .fac-other-pills {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  /* Faculty grid → 1 col on mobile */
  .fac-grid {
    grid-template-columns: 1fr;
  }
  /* Faculty stats → 2 col */
  .fac-stats.cols-3,
  .fac-stats.cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  /* Faculty visual image */
  .fac-visual {
    height: 200px;
  }
  /* Course page: meta row wraps */
  .course-meta {
    gap: 0.4rem 0.8rem;
  }
  .cmeta-divider {
    display: none;
  }
  /* Course reviews → 1 col */
  .course-reviews-grid {
    grid-template-columns: 1fr;
  }
  /* Course other → 1 col */
  .course-other-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* Course mentor card stacks */
  .course-mentor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .mentor-stats {
    justify-content: center;
  }
  /* Enroll bar stacks */
  .course-enroll-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .course-enroll-btn {
    width: 100%;
  }
  /* Ccard price on mobile: slightly smaller */
  .price-old,
  .price-new {
    font-size: 1.4rem;
  }
}

/* ══ COURSE PAGES MOBILE ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .course-hero {
    padding: 6rem 0 1.5rem;
  }
  .course-title {
    font-size: 1.6rem;
  }
  .course-badges {
    gap: 0.4rem;
  }
  .course-tools {
    gap: 0.4rem;
  }
  .course-tool-pill {
    font-size: 0.72rem;
    padding: 0.35rem 0.8rem;
  }
  .module-header {
    padding: 1rem;
  }
  .module-body-inner {
    padding: 0 1rem 1rem;
  }
  .fac-hero {
    padding: 6.5rem 0 1.5rem;
  }
  .fac-title {
    font-size: 1.7rem;
  }
  .about-hero {
    padding: 6.5rem 0 1.5rem;
  }
  .about-title {
    font-size: 1.7rem;
  }
  /* Price even smaller at 480px */
  .price-old,
  .price-new {
    font-size: 1.15rem;
  }
  .course-other-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══ SEARCH OVERLAY ═══ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 6, 18, 0.92);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 2rem;
}
.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-overlay-inner {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding-top: 5rem;
}

/* Input row */
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1rem;
  transition: border 0.25s;
}
.search-input-wrap:focus-within {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(6, 214, 227, 0.1);
}
.search-input-wrap svg {
  width: 18px;
  height: 18px;
  stroke: var(--txt3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}
#enhancedSearchInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 1.05rem;
  color: var(--txt);
}
#enhancedSearchInput::placeholder {
  color: var(--txt3);
}
.search-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.search-close-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.search-close-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--txt2);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.search-close-btn:hover svg {
  stroke: #fff;
}

/* Filter tabs */
.search-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.filter-tag {
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1.5px solid var(--border2);
  color: var(--txt2);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.filter-tag:hover {
  border-color: var(--txt2);
  color: var(--txt);
}
.filter-tag.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Suggestions */
#enhancedSearchSuggestions {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 0.4rem;
  margin-bottom: 0.75rem;
  display: none;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--txt2);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--txt);
}
.suggestion-item svg {
  flex-shrink: 0;
  stroke: var(--txt3);
}

/* Results */
#enhancedSearchResults {
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  border-radius: 12px;
}
#enhancedSearchResults::-webkit-scrollbar {
  width: 4px;
}
#enhancedSearchResults::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}

.sr-count {
  font-size: 0.8rem;
  color: var(--txt3);
  padding: 0.5rem 0.25rem 1rem;
}
.sr-count strong {
  color: var(--txt2);
}

.sr-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.sr-item:hover {
  border-color: var(--accent2);
  transform: translateX(3px);
}

.sr-item-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.sr-cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  flex-shrink: 0;
}
.sr-cat-courses {
  background: rgba(124, 92, 252, 0.15);
  color: #a78bfa;
}
.sr-cat-faculties {
  background: rgba(6, 214, 227, 0.12);
  color: var(--accent2);
}
.sr-cat-resources {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}
.sr-cat-kids {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}
.sr-cat-main {
  background: rgba(255, 255, 255, 0.06);
  color: var(--txt2);
}

.sr-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--txt);
}
.sr-snippet {
  font-size: 0.78rem;
  color: var(--txt2);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}
.sr-url {
  font-size: 0.68rem;
  color: var(--txt3);
}

mark.sh {
  background: rgba(6, 214, 227, 0.2);
  color: var(--accent2);
  border-radius: 3px;
  padding: 0 2px;
}

.sr-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  color: var(--txt2);
  font-size: 0.85rem;
}
.sr-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  border-top-color: var(--accent2);
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sr-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--txt2);
}
.sr-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.75rem 0 0.4rem;
}
.sr-empty p {
  font-size: 0.85rem;
  color: var(--txt3);
}

/* ══════════════════════════════════════════════════════
   ABOUT / CONTACT — shared header pattern
   ══════════════════════════════════════════════════════ */
.about-hero {
  position: relative;
  padding: 9rem 0 3rem;
  text-align: center;
  overflow: hidden;
}
.about-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(
    ellipse 60% 60% at 50% 0%,
    rgba(124, 92, 252, 0.16) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.about-breadcrumb {
  font-size: 0.78rem;
  color: var(--txt3);
  margin-bottom: 1.5rem;
}
.about-breadcrumb a {
  color: var(--txt3);
  text-decoration: none;
  transition: color 0.2s;
}
.about-breadcrumb a:hover {
  color: var(--txt2);
}
.about-breadcrumb span {
  margin: 0 0.15rem;
}
.about-breadcrumb .current {
  color: var(--txt2);
}
.about-badge {
  margin-bottom: 1.5rem;
}
.about-badge b {
  color: var(--accent2);
  font-weight: 700;
}
.about-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.1rem;
}
.about-sub {
  font-size: 1rem;
  color: var(--txt2);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* Stats bar (about page only) */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 760px;
  margin: 3rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.about-stat-num {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.about-stat-label {
  font-size: 0.78rem;
  color: var(--txt3);
}

/* ══════════════════════════════════════════════════════
   ABOUT — content blocks
   ══════════════════════════════════════════════════════ */
.about-blocks {
  padding: 4rem 0 2rem;
}
.about-block {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}
.about-block:last-child {
  border-bottom: none;
}
.about-block-img {
  width: 100%;
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  border: 1.5px solid var(--accent);
  margin-bottom: 2.2rem;
}
.about-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-block-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  position: relative;
  padding-bottom: 0.9rem;
}
.about-block-num::after {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 2.2rem;
  width: 90px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.5;
}
.about-block-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}
.about-block-text {
  font-size: 0.92rem;
  color: var(--txt2);
  line-height: 1.75;
  max-width: 680px;
}

/* ══════════════════════════════════════════════════════
   GET INVOLVED — 2x2 card grid
   ══════════════════════════════════════════════════════ */
.involved-sec {
  padding: 5rem 0 6rem;
  background: radial-gradient(
    ellipse 70% 50% at 50% 0%,
    rgba(6, 214, 227, 0.06) 0%,
    transparent 70%
  );
}
.involved-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto;
}
.involved-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.4rem 2rem;
  text-align: center;
  transition: border-color 0.25s var(--ease);
}
.involved-card:hover {
  border-color: var(--border2);
}
.involved-emoji {
  font-size: 2.4rem;
  margin-bottom: 1.1rem;
}
.involved-card h4 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}
.involved-card p {
  font-size: 0.85rem;
  color: var(--txt2);
  line-height: 1.65;
}
.involved-card p a {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 600;
}
.involved-card p a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════ */
.contact-hero {
  padding-bottom: 2.5rem;
}
.contact-sec {
  padding: 1rem 0 6rem;
}
.contact-container {
  max-width: 700px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.3rem;
  transition: border-color 0.25s var(--ease);
}
.contact-card:hover {
  border-color: var(--border2);
}
.contact-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-card-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt3);
  margin-bottom: 0.3rem;
}
.contact-card-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--txt);
  text-decoration: none;
  line-height: 1.4;
}
a.contact-card-value:hover {
  color: var(--accent2);
}
.contact-card-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--txt3);
  text-decoration: none;
  margin-top: 0.25rem;
}
a.contact-card-sub:hover {
  color: var(--accent2);
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.2rem;
}
.contact-form-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.contact-form-sub {
  font-size: 0.85rem;
  color: var(--txt2);
  margin-bottom: 1.75rem;
}
.cf-field {
  margin-bottom: 1.25rem;
}
.cf-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--txt2);
  margin-bottom: 0.5rem;
}
.cf-field input,
.cf-field textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--txt);
  outline: none;
  transition: border-color 0.2s;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--txt3);
}
.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--accent);
}
.cf-field textarea {
  resize: vertical;
  min-height: 120px;
}
.cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent2);
  color: #000;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.85rem 1.9rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.cf-submit:hover {
  box-shadow: 0 0 28px var(--cyan-glow);
  filter: brightness(1.05);
}
.cf-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.cf-submit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #000;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cf-success {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #10b981;
}
.cf-success.show {
  display: flex;
}
.cf-error {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ef4444;
}
.cf-error.show {
  display: flex;
}
form.submitted .cf-field,
form.submitted .cf-submit {
  display: none;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — About / Contact
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .about-hero {
    padding: 7rem 0 2rem;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
  }
  .about-block-img {
    height: 220px;
  }
  .involved-grid,
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 1.5rem;
  }
}
@media (max-width: 480px) {
  .about-title {
    font-size: 1.9rem;
  }
  .about-block-num::after {
    display: none;
  }
  .fnl-form {
    flex-direction: column;
  }
  .fnl-send {
    justify-content: center;
  }
}
