/* =====================================================
   delhi.css — REDESIGNED — Dark Cyber Academic Theme
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Core palette */
  --ink:        #0a0e1a;
  --ink-soft:   #111827;
  --surface:    #141929;
  --surface-2:  #1c2340;
  --border:     rgba(255,255,255,0.07);
  --border-mid: rgba(255,255,255,0.12);

  /* Accent */
  --neon:       #f0c040;
  --neon-glow:  rgba(240,192,64,0.35);
  --neon-dim:   rgba(240,192,64,0.12);
  --blue:       #3b82f6;
  --blue-glow:  rgba(59,130,246,0.25);
  --cyan:       #22d3ee;

  /* Text */
  --text:       #e8eaf0;
  --text-muted: #8892aa;
  --text-dim:   #4a5568;

  /* Legacy compat */
  --primary:        #1e3a8a;
  --primary-light:  #3b82f6;
  --secondary:      #f0c040;
  --dark:           #0a0e1a;
  --light:          #f8fafc;
  --gray:           rgba(255,255,255,0.1);
  --dark-gray:      #8892aa;
  --success:        #10b981;
  --danger:         #ef4444;
  --white:          #ffffff;
  --black:          #000000;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ===================== RESET ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===================== PAGE LOADER ===================== */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.loader-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid var(--neon);
  box-shadow: 0 0 30px var(--neon-glow), 0 0 60px var(--neon-dim);
  animation: logoPulse 2s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 20px var(--neon-glow), 0 0 50px var(--neon-dim); }
  50%      { box-shadow: 0 0 40px var(--neon-glow), 0 0 80px rgba(240,192,64,0.2); }
}

.loader-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid var(--surface-2);
  border-top-color: var(--neon);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pulseText 1.8s ease-in-out infinite;
}
@keyframes pulseText { 0%,100%{opacity:.4} 50%{opacity:1} }

/* ===================== SCROLL PROGRESS ===================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 2px;
  background: transparent;
  z-index: 1200;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  box-shadow: 0 0 8px var(--neon-glow);
  transition: width 0.1s linear;
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  padding: 0.6rem 0;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-shell {
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-mid);
  padding: 0.6rem 1.25rem;
  box-shadow:
    0 0 0 1px rgba(240,192,64,0.06),
    0 8px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid rgba(240,192,64,0.4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.brand-text span {
  font-size: 0.68rem;
  color: var(--neon);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===================== DESKTOP NAV ===================== */
.main-nav { display: none; }
.menu { list-style: none; display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  display: inline-block;
}
.nav-link > span { position: relative; z-index: 1; }
.nav-link::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 999px;
  background: var(--neon-dim);
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::before, .nav-link.active::before { opacity: 1; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 12px; right: 12px;
  height: 1.5px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Dropdown toggle */
.has-dropdown { position: relative; }
.dropdown-toggle {
  background: none; border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s, background 0.2s;
}
.dropdown-toggle::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -2px;
}
.has-dropdown[aria-expanded="true"] .dropdown-toggle::after { transform: rotate(-135deg); }
.dropdown-toggle:hover { color: var(--white); background: var(--neon-dim); }

/* ===================== MEGA PANEL ===================== */
.mega .mega-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(560px, 90vw);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(240,192,64,0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transition: all 0.22s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 200;
}
.mega:hover .mega-panel,
.has-dropdown.hover-active .mega-panel,
.has-dropdown:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.results-dropdown .mega-panel { width: min(480px, 90vw); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.results-section {
  position: relative;
  padding: 0 0.5rem;
}
.results-section:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0; right: -0.625rem;
  height: 100%; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-mid), transparent);
}

.results-section h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.results-links { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.results-links a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
}
.results-links a:hover {
  background: var(--neon-dim);
  color: var(--white);
  border-color: rgba(240,192,64,0.2);
  transform: translateX(4px);
}
.results-submenu { background: rgba(0,0,0,0.01) !important; margin: 0.25rem 0 !important; padding-left: 1rem !important; }
.results-submenu li { border-bottom: none !important; }
.results-submenu a { background: rgba(255,255,255,0.02) !important; }
.results-submenu a:hover { background: var(--neon-dim) !important; color: var(--white) !important; }

/* Mega grid (legacy) */
.mega-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1rem; position: relative; }
.mega-grid section { position: relative; padding: 0 0.5rem; }
.mega-grid section:not(:last-child)::after { content: ''; position: absolute; top: 0; right: -0.5rem; height: 100%; width: 1px; background: linear-gradient(to bottom, transparent, var(--border-mid), transparent); }
.mega-grid section h4 { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neon); margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.mega-grid section ul { list-style: none; }
.mega-grid section li a { display: block; padding: .4rem .5rem; border-radius: 8px; color: var(--text-muted); text-decoration: none; font-size: .88rem; transition: all 0.2s; }
.mega-grid section li a:hover { background: var(--neon-dim); color: var(--white); transform: translateX(4px); }
.mega-links { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.mega-links a { text-decoration: none; color: var(--text-muted); padding: 0.65rem 1rem; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); font-size: 0.88rem; transition: all 0.2s; display: block; }
.mega-links a:hover { background: var(--neon-dim); color: var(--white); transform: translateX(4px); }
.mega-cta { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.mega-panel.thin { width: min(300px, 90vw); }

/* ===================== SEARCH & ACTIONS ===================== */
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-search { display: none; }
.nav-search input {
  width: 240px;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-mid);
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%238892aa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat 10px center / 16px,
    rgba(255,255,255,0.04);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search input::placeholder { color: var(--text-dim); }
.nav-search input:focus {
  outline: none;
  border-color: rgba(240,192,64,0.4);
  box-shadow: 0 0 0 3px var(--neon-dim);
}
.nav-search.mobile { display: block; margin: 0.5rem 0 1rem; }
.nav-search.mobile input { width: 100%; background-color: var(--surface-2); }
.hide-mobile { display: none; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-mid);
}
.btn:hover {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--neon);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--neon-glow);
}
.btn.small { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
.btn-primary {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--neon);
  font-weight: 700;
}
.btn-primary:hover {
  background: #ffd454;
  box-shadow: 0 8px 28px var(--neon-glow);
  transform: translateY(-2px);
}
.btn-secondary, .btn-outline, .btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-secondary:hover, .btn-outline:hover, .btn-ghost:hover { background: var(--neon); color: var(--ink); }
.full-width { width: 100%; }

/* ===================== HAMBURGER ===================== */
.hamburger {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.5rem;
  width: 38px; height: 38px;
  position: relative;
  z-index: 1001;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  overflow: hidden;
}
.hamburger span {
  width: 20px; height: 2px;
  background: var(--text);
  margin: 2.5px 0;
  transition: all 0.3s ease;
  transform-origin: center;
  border-radius: 2px;
  position: relative;
  z-index: 2;
}
.hamburger:hover { border-color: var(--neon); background: var(--neon-dim); }
.hamburger:hover span { background: var(--neon); }
.hamburger[aria-expanded="true"] { transform: rotate(90deg); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scale(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===================== MOBILE PANEL ===================== */
.mobile-panel {
  position: fixed;
  top: 0; right: -100%;
  width: 100%; max-width: 380px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border-mid);
  box-shadow: -20px 0 60px rgba(0,0,0,0.6);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}
.mobile-panel[aria-hidden="false"] { right: 0; }
.mobile-inner {
  padding: 1.25rem;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 2rem;
}
.mobile-backdrop {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: all 0.4s ease;
  z-index: 999;
}
.mobile-panel[aria-hidden="false"] + .mobile-backdrop { opacity: 1; visibility: visible; }

.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-top strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mobile-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  width: 32px; height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.mobile-close:hover { color: var(--white); border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.1); }

.mobile-menu { list-style: none; margin-bottom: 1rem; }
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu a {
  display: block;
  padding: 0.9rem 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu a:hover { color: var(--neon); padding-left: 6px; }

.mobile-accordion {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 0.9rem 0;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
  transition: color 0.2s;
}
.mobile-accordion::after {
  content: '▶';
  font-size: 0.6rem;
  color: var(--text-dim);
  transition: transform 0.3s, color 0.2s;
}
.mobile-group.active .mobile-accordion { color: var(--neon); }
.mobile-group.active .mobile-accordion::after { transform: rotate(90deg); color: var(--neon); }
.mobile-group > ul {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  list-style: none;
  padding-left: 1rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
  margin: 0.4rem 0;
}
.mobile-group.active > ul { max-height: 1000px; padding: 0.5rem 0 0.5rem 1rem; }
.mobile-group .mobile-group > ul { background: rgba(255,255,255,0.01); margin: 0.25rem 0; }
.mobile-group .mobile-group.active > ul { padding: 0.25rem 0 0.25rem 1rem; }
.mobile-ctas { display: flex; gap: 0.5rem; flex-direction: column; }

.mobile-panel[aria-hidden="false"] .mobile-menu > li {
  opacity: 0;
  transform: translateY(8px);
  animation: menuFade 0.45s ease forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes menuFade { to { opacity: 1; transform: translateY(0); } }

/* Mobile font override */
.mobile-panel, .mobile-panel * { font-size: 0.88rem !important; line-height: 1.5; }
.mobile-accordion { font-size: 0.88rem !important; font-weight: 500; }
.mobile-menu a, .mobile-menu span { font-size: 0.88rem !important; }
.mobile-top strong { font-size: 0.85rem !important; }
.mobile-close { font-size: 1rem !important; }
.nav-search.mobile input { font-size: 0.85rem !important; }
@media (max-width: 480px) {
  .mobile-panel, .mobile-panel * { font-size: 0.82rem !important; }
  .mobile-accordion { font-size: 0.85rem !important; padding: 0.8rem 0 !important; }
}

/* ===================== RIPPLE ===================== */
.hamburger .ripple, .mobile-accordion .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 950ms ease-out;
  background: rgba(240,192,64,0.25);
  pointer-events: none;
  z-index: 1;
}
@keyframes rippleAnim { to { transform: scale(3.2); opacity: 0; } }

/* ===================== HERO SLIDESHOW ===================== */
.hero-slideshow {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 860px;
  overflow: hidden;
}

.slides, .slide {
  position: absolute;
  inset: 0;
}

.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  transform: scale(1.04);
  transition: opacity 1.4s ease, transform 8s ease;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Hero dark gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(10,14,26,0.96) 0%, rgba(10,14,26,0.55) 50%, rgba(10,14,26,0.35) 100%),
    linear-gradient(to right, rgba(10,14,26,0.4), transparent 60%);
}

/* Scanline texture on hero */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 min(8vw, 7rem);
  max-width: 860px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  animation: heroSlide 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Neon accent word */
.hero-content h1 em {
  font-style: normal;
  color: var(--neon);
  text-shadow: 0 0 30px var(--neon-glow);
}

.hero-content p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(232,234,240,0.75);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.7;
  animation: heroSlide 0.8s 0.1s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes heroSlide {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: heroSlide 0.8s 0.2s cubic-bezier(0.23, 1, 0.32, 1) both;
}
.hero-buttons .btn {
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  border-radius: 10px;
}
.hero-buttons .btn-primary {
  background: var(--neon);
  color: var(--ink);
  border: none;
  font-weight: 700;
}
.hero-buttons .btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.hero-buttons .btn-secondary:hover {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--neon);
}

/* ===================== SECTIONS ===================== */
section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.section-head h2 span { color: var(--neon); }
.section-head p { font-size: 1rem; color: var(--text-muted); }

/* ===================== CARDS ===================== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(240,192,64,0.12), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.card:hover::before { opacity: 1; }
.card img { width: 100%; height: 200px; object-fit: cover; filter: brightness(0.85); transition: filter 0.3s, transform 0.4s; }
.card:hover img { filter: brightness(1); transform: scale(1.03); }
.card-body { padding: 1.4rem; }
.card h3 { font-family: var(--font-display); color: var(--white); margin-bottom: 0.6rem; font-size: 1.1rem; font-weight: 700; }
.bullets { list-style: none; margin-bottom: 1rem; }
.bullets li { padding: 0.25rem 0; color: var(--text-muted); font-size: 0.9rem; }

/* ===================== PORTAL TILES ===================== */
.portal { background-color: var(--surface); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.tile {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text);
}
.tile:hover {
  background: var(--neon-dim);
  border-color: rgba(240,192,64,0.3);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px var(--neon-dim);
}
.tile span { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); font-family: var(--font-body); }
.tile:hover span { color: var(--white); }

/* Portal link style */
.portal-link {
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: color 0.2s;
}
.portal-link:hover { color: var(--neon); }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--ink-soft);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.4;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.foot-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 1.25rem;
}
.foot-col p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.foot-col .btn { margin-bottom: 0.6rem; }
.foot-col .btn + .btn { margin-top: 0.4rem; }

.links { list-style: none; }
.links li { padding: 0.35rem 0; }
.links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.links a:hover { color: var(--neon); padding-left: 4px; }

.list { list-style: none; }
.list li { padding: 0.4rem 0; opacity: 0.8; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }

.social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  transition: all 0.25s;
}
.soc:hover { background: var(--neon); border-color: var(--neon); transform: translateY(-2px); }
.soc svg { width: 18px; height: 18px; fill: var(--text-muted); transition: fill 0.2s; }
.soc:hover svg { fill: var(--ink); }

.newsletter { display: flex; flex-direction: column; gap: 0.65rem; }
.newsletter input {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.newsletter input:focus { outline: none; border-color: rgba(240,192,64,0.5); }
.newsletter input::placeholder { color: var(--text-dim); }
.help { color: var(--text-dim); font-size: 0.8rem; }

.legal {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.motto { color: var(--neon); font-weight: 700; margin-bottom: 0.5rem; font-size: 0.85rem; letter-spacing: 0.05em; }
.legal p { color: var(--text-dim); font-size: 0.82rem; }
.legal a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.legal a:hover { color: var(--neon); }

/* Map link */
.map-link { color: var(--text-muted); text-decoration: none; transition: all 0.3s; display: inline-block; padding: 0.25rem 0; }
.map-link:hover { color: var(--neon) !important; transform: translateX(3px); }

/* ===================== MODALS ===================== */
.modal { border: none; border-radius: var(--radius); padding: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); }
.modal::backdrop { background: rgba(0,0,0,0.6); }
.modal-card { background: var(--surface); border: 1px solid var(--border-mid); padding: 1.75rem; border-radius: var(--radius); max-width: 500px; width: 90vw; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.modal-close:hover { color: var(--danger); }
.modal-card h3 { font-family: var(--font-display); color: var(--white); margin-bottom: 1rem; text-align: center; font-weight: 700; }
.modal-card label { display: block; margin-bottom: 0.6rem; font-weight: 500; color: var(--text); font-size: 0.9rem; }
.modal-card input, .modal-card select {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.modal-card input:focus, .modal-card select:focus { outline: none; border-color: rgba(240,192,64,0.5); }
.muted { text-align: center; margin-top: 0.5rem; color: var(--text-dim); font-size: 0.85rem; }
.link { color: var(--neon); text-decoration: none; }
.link:hover { color: var(--cyan); }

/* ===================== FLOATING ELEMENTS ===================== */
.floating-elements { position: absolute; inset: 0; pointer-events: none; }
.floating-element {
  position: absolute;
  background: rgba(240,192,64,0.05);
  border: 1px solid rgba(240,192,64,0.08);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}
.floating-element:nth-child(1){ width:100px; height:100px; top:20%; left:10%; }
.floating-element:nth-child(2){ width:150px; height:150px; top:60%; right:10%; animation-delay:2s; }
.floating-element:nth-child(3){ width:80px; height:80px; bottom:20%; left:20%; animation-delay:4s; }
@keyframes float { 0%,100%{transform:translateY(0) rotate(0deg);} 50%{transform:translateY(-20px) rotate(180deg);} }

/* Floating social bar */
.floating-social-bar {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.floating-social-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.2s;
}
.floating-social-icon:hover {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--neon);
  transform: translateX(-3px);
}

/* ===================== HERO (legacy non-slideshow) ===================== */
.hero { background: linear-gradient(135deg, var(--ink) 0%, var(--surface-2) 100%); color: var(--white); padding: 6rem 0; position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.hero h1 { font-family: var(--font-display); font-size: 3.2rem; font-weight: 800; margin-bottom: 1.25rem; line-height: 1.2; color: var(--white); }
.hero p { font-size: 1.1rem; margin-bottom: 2rem; color: var(--text-muted); }
.hero-actions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

/* ===================== DEPARTMENTS ===================== */
.departments { background: var(--surface); }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.level {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s;
}
.level:hover { border-color: rgba(240,192,64,0.3); transform: translateY(-3px); }
.level span {
  width: 44px; height: 44px;
  background: var(--neon-dim);
  border: 1px solid rgba(240,192,64,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  color: var(--neon);
  flex-shrink: 0;
}
.level h3 { color: var(--white); font-size: 0.95rem; font-weight: 600; }

/* Language badges */
.language-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.language-badge {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.language-badge:hover { border-color: rgba(240,192,64,0.3); color: var(--white); }

/* AI Showcase */
.ai-showcase { background: var(--surface); padding: 5rem 0; }
.ai-slider { position: relative; max-width: 800px; margin: 2rem auto; min-height: 200px; }
.ai-slide {
  display: none;
  text-align: center;
  padding: 2.5rem;
  background: var(--ink);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: fadeIn 0.6s ease-in-out;
}
.ai-slide.active { display: block; }
.ai-slide h3 { font-family: var(--font-display); color: var(--white); font-size: 1.5rem; margin-bottom: 0.75rem; }
.ai-slide p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.ai-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.ai-version {
  background: var(--neon);
  color: var(--ink);
  padding: 3px 9px;
  font-size: 0.72rem;
  border-radius: 20px;
  margin-left: 6px;
  font-weight: 700;
}
.ai-list { list-style: none; margin-top: 1rem; padding: 0; }
.ai-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }
.ai-list li:last-child { border-bottom: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== UTILITY BAR ===================== */
.utility-bar { background: var(--ink-soft); color: var(--text-muted); padding: 0.35rem 0; font-size: 0.82rem; border-bottom: 1px solid var(--border); }
.utility-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.utility-info { display: flex; gap: 1rem; flex-wrap: wrap; }
.utility-item { display: flex; align-items: center; gap: 0.25rem; line-height: 1.2; }
.utility-actions { display: flex; gap: 0.75rem; }
.utility-link { color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 0.25rem; transition: color 0.2s; }
.utility-link:hover { color: var(--neon); }

/* ===================== ACCESSIBILITY ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

/* Prevent double-tap zoom on interactive elements without blocking <a> navigation */
.btn, .portal-link, .nav-link, .dropdown-toggle, .hamburger, .mobile-accordion {
  touch-action: manipulation;
}

/* ===================== RESPONSIVE ===================== */
@media (min-width: 992px) {
  .main-nav { display: flex; align-items: center; }
  .nav-search { display: block; }
  .hide-mobile { display: inline-flex; }
}

@media (max-width: 991px) {
  .hero-content { padding: 0 min(5vw, 3rem); align-items: center; text-align: center; }
  .hero-buttons { justify-content: center; }
}

@media (max-width: 768px) {
  .hero-slideshow { height: 75vh; min-height: 420px; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-content p { font-size: 0.9rem; }
  .hero-buttons .btn { font-size: 0.8rem; padding: 0.55rem 1rem; }
  section { padding: 3.5rem 0; }
  .section-head h2 { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .floating-social-bar { top: auto; bottom: 1.25rem; right: 0.75rem; transform: none; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-text strong { font-size: 0.9rem; }
  .brand-text span { font-size: 0.62rem; }
}

@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.55rem; }
  .hero-content p { font-size: 0.82rem; }
  .card-body { padding: 1.1rem; }
}
