/* GD Public School — Dark Purple Tech Theme */
:root {
  --bg: #07061a;
  --bg-2: #0e0b2b;
  --bg-3: #15103a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(167, 139, 250, 0.22);
  --border-strong: rgba(192, 132, 252, 0.45);
  --text: #f3e8ff;
  --text-muted: #c4b5fd;
  --text-dim: #a78bfa99;
  --purple: #a855f7;
  --purple-2: #7c3aed;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --yellow: #facc15;
  --red: #ef4444;
  --green: #34d399;
  --grad: linear-gradient(135deg, #a855f7, #6366f1 45%, #3b82f6);
  --grad-soft: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(59, 130, 246, 0.15));
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Space Grotesk", "Outfit", sans-serif;
  --header-h: 78px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(168, 85, 247, 0.28), transparent 55%),
              radial-gradient(900px 500px at 90% 0%, rgba(59, 130, 246, 0.2), transparent 50%),
              var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1em; color: var(--text-muted); }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(147, 51, 234, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 51, 234, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 6, 26, 0.75);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(7, 6, 26, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 0.75rem;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  z-index: 2;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.15;
}
.brand-short { display: none; }
.cta-short { display: none; }
.brand-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  z-index: 2;
}
.footer-tagline {
  font-size: 0.92rem;
  max-width: 28rem;
}
.footer-contact a,
.footer-contact span {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.main-nav > ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem;
}
.main-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  color: #fff;
  background: var(--surface-2);
}
.has-dropdown { position: relative; }
.has-dropdown .chev { font-size: 0.7rem; opacity: 0.7; }
.dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 200px;
  padding: 0.5rem;
  background: #120f2e;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s;
  z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.dropdown a:hover { background: var(--surface-2); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: #fff;
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--grad-soft);
  color: #e9d5ff;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s ease both;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(120deg, #fff 20%, #c4b5fd 55%, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero .lead {
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  animation: fadeUp 0.8s 0.4s ease both;
}
.stat-pill {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.stat-pill strong {
  display: block;
  font-size: 1.35rem;
  font-family: var(--display);
  color: #fff;
}
.stat-pill span { font-size: 0.78rem; color: var(--text-muted); }

.hero-visual {
  position: relative;
  animation: fadeIn 1s 0.2s ease both;
}
.hero-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 180px 200px;
  gap: 0.85rem;
}
.hero-mosaic .tile {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background: var(--bg-3);
  box-shadow: var(--shadow);
}
.hero-mosaic .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.hero-mosaic .tile:hover img { transform: scale(1.06); }
.hero-mosaic .tile.tall { grid-row: span 2; }
.float-card {
  position: absolute;
  left: -1rem;
  bottom: 1.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(18, 15, 46, 0.92);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatY 4s ease-in-out infinite;
}
.float-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad);
  font-size: 1.2rem;
}
.float-card strong { display: block; font-size: 0.92rem; }
.float-card span { font-size: 0.75rem; color: var(--text-muted); }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--purple);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
}
.section-head p { margin-bottom: 0; }

.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.15), transparent);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
}
.page-hero p { max-width: 640px; margin: 0 auto; }

/* Cards / grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px rgba(88, 28, 135, 0.25);
}
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--grad);
  font-size: 1.4rem;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35);
}
.card h3 { color: #fff; font-size: 1.2rem; }
.card p { font-size: 0.95rem; margin-bottom: 0; }
.feature-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  min-height: 320px;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: #e9d5ff;
}

/* Calendar / events */
.events-list { display: grid; gap: 0.85rem; }
.event-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.event-date {
  text-align: center;
  background: var(--grad-soft);
  border-radius: 12px;
  padding: 0.5rem;
}
.event-date strong { display: block; font-size: 1.3rem; color: #fff; }
.event-date span { font-size: 0.72rem; text-transform: uppercase; color: var(--text-muted); }
.event-type {
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-transform: capitalize;
  color: var(--text-muted);
}
.event-type.exam { color: #fda4af; border-color: rgba(239, 68, 68, 0.4); }
.event-type.holiday { color: #86efac; border-color: rgba(52, 211, 153, 0.4); }
.event-type.celebration { color: #fde68a; border-color: rgba(250, 204, 21, 0.4); }
.event-type.club { color: #7dd3fc; border-color: rgba(34, 211, 238, 0.4); }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.blog-card .thumb {
  aspect-ratio: 16/10;
  background: var(--bg-3);
  overflow: hidden;
}
.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card .body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.blog-card h3 { font-size: 1.15rem; color: #fff; }
.blog-card p { flex: 1; font-size: 0.92rem; }
.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted);
}
.prose h2, .prose h3 { color: #fff; margin-top: 1.5em; }
.prose img { border-radius: var(--radius-sm); margin: 1.5rem 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-3);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  font-size: 0.85rem;
  color: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-card .frame {
  aspect-ratio: 16/9;
  background: #000;
}
.video-card .frame iframe,
.video-card .frame video {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card .body { padding: 1rem 1.15rem 1.25rem; }
.video-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 0.35rem; }

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #e9d5ff;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}
.alert {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.alert-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}
.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
}
.info-card h3 { color: #fff; font-size: 1.05rem; }
.info-card p, .info-card a { color: var(--text-muted); }

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(88, 28, 135, 0.12));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-brand img { margin-bottom: 0.75rem; border-radius: 12px; }
.footer-brand h3 { color: #fff; }
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-contact li {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.9rem;
}
.footer-contact strong { font-size: 0.75rem; color: var(--purple); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-contact a, .footer-contact span { color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* CTA band */
.cta-band {
  margin: 1rem 0;
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(168, 85, 247, 0.35), transparent 60%),
    var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.cta-band h2 { color: #fff; margin: 0 0 0.35rem; font-size: 1.8rem; }
.cta-band p { margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  place-items: center;
  padding: 1.5rem;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-height: 85vh;
  max-width: 95vw;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .card-grid, .blog-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    background: #0c0a22;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem 1rem 1.1rem;
    z-index: 120;
  }
  .main-nav.open { display: block; }
  .main-nav > ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .main-nav > ul > li > a {
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin: 0.15rem 0 0.35rem 0.65rem;
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .hero-mosaic { grid-template-rows: 160px 160px; }
  .hero-slider { min-height: 320px; aspect-ratio: 4/5; }
}

/* Notice ticker */
.notice-bar {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.35), rgba(37, 99, 235, 0.28));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.notice-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 40px;
}
.notice-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
  color: #f5e9ff;
}
.notice-track {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.notice-marquee {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 0.9rem;
  color: #e9d5ff;
}
.notice-marquee a { color: #fff; font-weight: 500; }
.notice-marquee a:hover { text-decoration: underline; }
.notice-marquee i { color: var(--cyan); font-style: normal; opacity: 0.7; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Hero slider */
.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  min-height: 420px;
  background: var(--bg-3);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slider-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  z-index: 2;
}
.hero-prev, .hero-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(7, 6, 26, 0.7);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.hero-dots { display: flex; gap: 0.4rem; }
.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: 0.2s;
}
.hero-dots button.is-active {
  width: 22px;
  background: #fff;
}

.float-wa {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  border-color: rgba(37, 211, 102, 0.55) !important;
  color: #fff !important;
}
.float-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  max-width: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(18, 15, 46, 0.95);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
  transition: transform 0.2s, box-shadow 0.2s;
  line-height: 1;
  flex-shrink: 0;
}
.float-btn svg { display: block; }
.float-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 28px rgba(88, 28, 135, 0.35);
}
.float-call {
  background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
  border-color: rgba(124, 58, 237, 0.55) !important;
  color: #fff !important;
}
.float-mail {
  background: rgba(18, 15, 46, 0.95) !important;
  color: #fff !important;
}
.float-apply {
  background: var(--grad) !important;
  border-color: rgba(168, 85, 247, 0.55) !important;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.4);
  color: #fff !important;
}

/* Hero polish */
.badge {
  color: #f5e9ff !important;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.25);
}
.hero h1 {
  text-shadow: 0 0 40px rgba(167, 139, 250, 0.25);
}
.hero .lead { color: #ddd6fe; }

.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .main-nav > ul > li > a { padding: 0.4rem 0.5rem; font-size: 0.8rem; }
}

@media (max-width: 1024px) {
  .card-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .hero-slider { min-height: 280px; aspect-ratio: 3/4; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .container { width: min(100% - 1rem, var(--container)); }

  .header-inner {
    gap: 0.5rem;
    min-height: 60px;
  }
  .brand {
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
  }
  .brand img { width: 36px; height: 36px; }
  .brand-full { display: none; }
  .brand-short { display: block; font-size: 0.9rem; }
  .brand-text span {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .header-cta {
    padding: 0.42rem 0.75rem;
    font-size: 0.75rem;
  }
  .nav-toggle { width: 38px; height: 38px; border-radius: 10px; }
  .header-actions { gap: 0.35rem; }

  .notice-bar-inner { min-height: 34px; gap: 0.5rem; }
  .notice-label { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
  .notice-marquee { font-size: 0.78rem; }

  .section { padding: 2.25rem 0; }
  .section-head { margin-bottom: 1.35rem; }
  .section-head h2 { font-size: 1.45rem; }
  .section-head p { font-size: 0.9rem; }

  .page-hero { padding: 2rem 0 1.25rem; }
  .page-hero h1 { font-size: 1.55rem; }
  .page-hero p { font-size: 0.9rem; }

  .hero { padding: 1.75rem 0 2.25rem; }
  .hero-grid { gap: 1.5rem; }
  .hero h1 { font-size: 1.85rem; margin-bottom: 0.65rem; }
  .hero .lead { font-size: 0.95rem; margin-bottom: 1.1rem; }
  .hero-actions { gap: 0.55rem; margin-bottom: 1rem; }
  .hero-actions .btn { padding: 0.7rem 1.1rem; font-size: 0.88rem; width: 100%; }
  .hero-stats { gap: 0.5rem; }
  .stat-pill { padding: 0.65rem 0.7rem; }
  .stat-pill strong { font-size: 1.05rem; }
  .stat-pill span { font-size: 0.68rem; }
  .badge { font-size: 0.75rem; padding: 0.35rem 0.75rem; margin-bottom: 0.85rem; }

  .hero-slider { min-height: 240px; aspect-ratio: 4/5; }
  .float-card { padding: 0.55rem 0.75rem; gap: 0.5rem; }
  .float-card .icon { width: 34px; height: 34px; font-size: 0.95rem; border-radius: 10px; }
  .float-card strong { font-size: 0.8rem; }
  .float-card span { font-size: 0.68rem; }

  .card-grid, .blog-grid { gap: 0.85rem; }
  .card {
    padding: 1rem 1.05rem;
    border-radius: 14px;
  }
  .card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
  }
  .card h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
  .card p { font-size: 0.86rem; }
  .feature-list { margin-top: 0.65rem; gap: 0.3rem; }
  .feature-list li { font-size: 0.82rem; }
  .pill { font-size: 0.72rem; padding: 0.25rem 0.55rem; }

  .split { gap: 1.25rem; }
  .split-media { min-height: 200px; }
  .split h2 { font-size: 1.4rem !important; }

  .blog-card .body { padding: 0.9rem; }
  .blog-card h3 { font-size: 1rem; }
  .blog-card p { font-size: 0.84rem; }

  .event-item { gap: 0.65rem; padding: 0.75rem 0.85rem; }
  .event-date { padding: 0.35rem; }
  .event-date strong { font-size: 1.05rem; }

  .cta-band { padding: 1.15rem; gap: 0.85rem; }
  .cta-band h2 { font-size: 1.25rem; }
  .cta-band p { font-size: 0.88rem; }
  .cta-band .btn { width: 100%; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
    padding: 1.75rem 0 1.25rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { width: 44px; height: 44px; margin-bottom: 0.5rem; }
  .footer-brand h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
  .footer-tagline { font-size: 0.84rem; margin-bottom: 0; }
  .site-footer h4 { font-size: 0.8rem; margin-bottom: 0.55rem; }
  .footer-links a { font-size: 0.86rem; }
  .footer-contact li { margin-bottom: 0.65rem; }
  .footer-contact a, .footer-contact span { font-size: 0.84rem; }

  .form-card { padding: 1.15rem; }
  .btn { padding: 0.75rem 1.15rem; font-size: 0.9rem; }

  /* Equal compact floating buttons on mobile */
  .float-actions {
    right: 0.65rem;
    bottom: 0.65rem;
    gap: 0.45rem;
  }
  .float-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    max-width: 42px;
  }
  .float-btn svg {
    width: 18px;
    height: 18px;
  }

  .stats-band { margin-bottom: 1.5rem; }
  .heading-section { font-size: 1.4rem; }
  .actions-row { width: 100%; }
  .actions-row .btn { flex: 1 1 auto; justify-content: center; }
  .cta-band .actions-row { width: 100%; }
  .cover-img { max-height: 220px; margin-bottom: 1.25rem; }
  .contact-grid, .split { gap: 1.1rem; }
  .form-card { width: 100%; }
  .gallery-grid { gap: 0.65rem; }
  .video-grid { gap: 0.85rem; }
  .counters { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .counter-card { padding: 0.9rem 0.7rem; }
  .counter-card strong { font-size: 1.35rem; }
  .counter-card span { font-size: 0.75rem; }
  .site-footer { padding-bottom: 4.5rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 640px) {
  .card-grid, .blog-grid, .form-grid, .hero-stats, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .event-item { grid-template-columns: 56px 1fr; }
  .event-type { grid-column: 2; justify-self: start; }
  .hero-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 100px 110px; }
}

@media (max-width: 400px) {
  .brand-text span { display: none; }
  .header-cta { padding: 0.4rem 0.7rem; font-size: 0.72rem; }
  .float-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
  }
  .float-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* ========== Global alignment utilities ========== */
.section-tight { padding-top: 0; }
.container-narrow { max-width: 860px; margin-inline: auto; }
.container-md { max-width: 800px; margin-inline: auto; }
.hero-stats.container-md { width: 100%; }
.month-title {
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

/* Counters */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.counter-card {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.counter-card strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  margin-bottom: 0.25rem;
}
.counter-card span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Testimonials */
.testimonial-card .stars {
  color: var(--yellow);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.testimonial-card h3 {
  margin: 0.85rem 0 0.15rem;
  font-size: 1rem;
}
.testimonial-card .muted {
  font-size: 0.82rem;
}
.text-center { text-align: center; }
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.25rem; }
.mt-lg { margin-top: 1.75rem; }
.mb-sm { margin-bottom: 0.75rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 2.5rem; }
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.actions-row.center { justify-content: center; }
.heading-light { color: #fff; }
.heading-section {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 0.75rem;
}
.eyebrow-inline {
  display: inline-block;
  color: var(--purple);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.eyebrow-inline.cyan { color: var(--cyan); }
.event-title {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}
.event-desc { margin: 0; font-size: 0.9rem; }
.card-link { display: block; color: inherit; }
.stats-band { margin-bottom: 2.5rem; }
.form-title { color: #fff; margin: 0 0 1rem; }
.form-subtitle { color: #e9d5ff; margin: 0.5rem 0 0; }
.muted { color: var(--text-muted); }
.cover-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

/* Keep content clear of floating buttons */
main {
  padding-bottom: 1rem;
}
body {
  padding-bottom: 0;
}

/* Align card grids evenly */
.card-grid > .card,
.card-grid > a.card,
.blog-grid > .blog-card {
  min-width: 0;
}
.card-grid {
  align-items: stretch;
}
.card h3, .blog-card h3 {
  word-wrap: break-word;
}

/* Centered page content blocks */
.page-block {
  width: 100%;
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-3);
  min-height: 360px;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}
@media (max-width: 768px) {
  .map-wrap { min-height: 260px; }
  .map-wrap iframe { height: 280px; }
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.footer-social a,
.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.footer-social a:hover,
.social-icon:hover {
  color: #fff;
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.footer-social svg { flex-shrink: 0; }

.social-follow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.social-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(124,58,237,.18), rgba(15,10,30,.65));
  color: #f5f0ff;
  text-decoration: none;
  font-weight: 600;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.social-follow-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(167,139,250,.55);
  box-shadow: 0 12px 30px rgba(76,29,149,.25);
  color: #fff;
}
.social-follow-btn.social-youtube:hover { border-color: rgba(255,80,80,.5); }
.social-follow-btn.social-facebook:hover { border-color: rgba(90,140,255,.5); }
.social-follow-btn.social-instagram:hover { border-color: rgba(244,114,182,.5); }

.social-yt-embed {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0614;
}
.social-yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.social-yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.social-yt-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(20,12,40,.45);
  transition: transform .25s ease, border-color .25s;
}
.social-yt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167,139,250,.45);
}
.social-yt-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #120a22;
}
.social-yt-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.social-yt-card .play {
  position: absolute;
  inset: auto auto 0.7rem 0.7rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(124,58,237,.9);
  color: #fff;
  font-size: 0.7rem;
}
.social-yt-card h3 {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .social-yt-grid { grid-template-columns: 1fr; }
}

/* Faculty */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.faculty-card {
  text-align: center;
  padding: 1.4rem 1.1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.faculty-photo {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(167,139,250,.35);
}
.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.faculty-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(145deg, #4c1d95, #1e1b4b);
  color: #f5e8ff;
}
.faculty-card h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.faculty-role {
  margin: 0;
  color: var(--text-muted);
  font-size: .92rem;
}
.faculty-dept {
  display: inline-block;
  margin-top: .55rem;
  font-size: .75rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.faculty-bio {
  margin: .85rem 0 0;
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.faculty-mail {
  display: inline-block;
  margin-top: .7rem;
  font-size: .82rem;
  color: #c4b5fd;
}

/* Downloads */
.download-list {
  display: grid;
  gap: .9rem;
  max-width: 920px;
  margin: 0 auto;
}
.download-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.download-ext {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  background: linear-gradient(145deg, rgba(124,58,237,.35), rgba(59,130,246,.2));
  border: 1px solid var(--border);
}
.download-cat {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .2rem;
}
.download-body h3 {
  margin: 0;
  font-size: 1.05rem;
}
.download-body p {
  margin: .35rem 0 0;
  color: var(--text-dim);
  font-size: .9rem;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* Announcement popup */
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.site-popup[hidden] { display: none !important; }
.site-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 16, .72);
  backdrop-filter: blur(4px);
}
.site-popup-card {
  position: relative;
  width: min(440px, 100%);
  padding: 1.6rem 1.4rem 1.35rem;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, #1a1238, #0d0a22 60%);
  box-shadow: var(--shadow);
  animation: popupIn .35s ease;
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.site-popup-close {
  position: absolute;
  top: .55rem;
  right: .7rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.site-popup-card h2 {
  margin: 0 1.5rem .65rem 0;
  font-size: 1.35rem;
}
.site-popup-card p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.site-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
body.popup-open { overflow: hidden; }

@media (max-width: 900px) {
  .faculty-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .faculty-grid { grid-template-columns: 1fr; }
  .download-item {
    grid-template-columns: 54px 1fr;
  }
  .download-item .btn { grid-column: 1 / -1; justify-self: start; }
}
