/* ==========================================================================
   Delta Computer Science College — Modern EdTech design system
   ========================================================================== */

:root {
  /* Core palette */
  --ink: #0F172A;
  --ink-soft: #1E293B;
  --paper: #F7F9FC;
  --surface: #FFFFFF;
  --border: #E4E9F2;
  --border-strong: #CBD5E1;
  --muted: #64748B;
  --muted-soft: #94A3B8;

  /* Brand accents */
  --accent: #2563EB;
  --accent-strong: #1D4ED8;
  --accent-soft: #EFF4FF;
  --accent-2: #14B8A6;
  --accent-2-strong: #0D9488;
  --accent-2-soft: #ECFDF9;
  --amber: #F59E0B;
  --amber-soft: #FEF6E7;

  --gradient-brand: linear-gradient(135deg, #1D4ED8 0%, #2563EB 45%, #14B8A6 100%);
  --gradient-dark: linear-gradient(160deg, #0B1224 0%, #10192E 55%, #0F2A3C 100%);

  /* Shape + elevation */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.22);

  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em 0;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.mono, .course-code, .credits, .date-tag {
  font-family: 'Inter', sans-serif;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------- */
/* Buttons + badges                                                        */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.45); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.btn-dark { border-color: var(--border-strong); color: var(--ink); background: var(--surface); }
.btn-dark:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; justify-content: center; }

.pill-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent-strong); }
.pill-link .icon { width: 15px; height: 15px; transition: transform 0.15s ease; }
.pill-link:hover .icon { transform: translateX(3px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-full);
}
.badge-blue { background: var(--accent-soft); color: var(--accent-strong); }
.badge-teal { background: var(--accent-2-soft); color: var(--accent-2-strong); }
.badge-gray { background: #EEF1F6; color: var(--muted); }
.badge-amber { background: var(--amber-soft); color: #92610A; }

/* ---------------------------------------------------------------------- */
/* Top utility bar                                                         */
/* ---------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #B9C2D6;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #E2E8F5; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; }
.topbar-item .icon { width: 14px; height: 14px; opacity: 0.85; }
.topbar-item:last-child { margin-right: 0; }
.topbar-social { display: inline-flex; align-items: center; gap: 6px; }
.topbar-social .icon { width: 15px; height: 15px; }

/* ---------------------------------------------------------------------- */
/* Header / nav                                                            */
/* ---------------------------------------------------------------------- */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-top { display: flex; align-items: center; gap: 16px; padding: 14px 24px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; flex-shrink: 1; min-width: 0; }
.brand-mark {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 21px;
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, 0.55);
}
.brand-mark.brand-mark-logo { background: #fff; padding: 6px; box-shadow: var(--shadow-sm); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-text strong { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); }
.brand-text small { font-size: 12.5px; color: var(--muted); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.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); }

.main-nav { border-top: 1px solid var(--border); background: var(--surface); }
.main-nav .wrap { padding-top: 0; padding-bottom: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav > .wrap > ul > li { position: relative; }
.main-nav a.nav-link {
  display: flex; align-items: center; gap: 3px;
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.main-nav a.nav-link:hover, .main-nav li.active > a.nav-link { background: var(--accent-soft); color: var(--accent-strong); text-decoration: none; }
.main-nav .has-dropdown > a.nav-link::after { content: "▾"; font-size: 10px; margin-left: 2px; opacity: 0.6; }

.main-nav .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 40;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown { display: block; }
.main-nav .dropdown a {
  display: block;
  padding: 9px 12px;
  color: var(--ink-soft);
  font-size: 14px;
  border-radius: var(--radius-sm);
}
.main-nav .dropdown a:hover { background: var(--accent-soft); color: var(--accent-strong); text-decoration: none; }

/* ---------------------------------------------------------------------- */
/* Notice ticker                                                           */
/* ---------------------------------------------------------------------- */
.ticker {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticker-viewport { overflow: hidden; flex: 1; }
.ticker-inner {
  display: inline-block;
  padding: 9px 0;
  animation: ticker-scroll 30s linear infinite;
  font-size: 13.5px;
}
.ticker:hover .ticker-inner { animation-play-state: paused; }
.ticker-inner span { margin-right: 56px; color: #CBD5E1; }
.ticker-inner b { color: #fff; margin-right: 8px; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */
.hero {
  background: var(--gradient-dark);
  color: #E7ECF7;
  padding: 72px 0 68px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(37,99,235,0.35), transparent 60%),
    radial-gradient(500px 350px at 10% 90%, rgba(20,184,166,0.25), transparent 60%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  color: var(--accent-2);
  background: rgba(20,184,166,0.12);
  border: 1px solid rgba(20,184,166,0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}
.hero h2 {
  color: #fff;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.12;
  margin: 18px 0 18px;
}
.hero p.lede { color: #B9C2D6; font-size: 17px; max-width: 54ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-trust .badge { background: rgba(255,255,255,0.08); color: #DCE3F2; border: 1px solid rgba(255,255,255,0.14); }

/* Info card in hero */
.info-card {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.info-card h3 { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.info-card h3 .icon { width: 20px; height: 20px; color: var(--accent); }
.info-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-row .icon-chip {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
}
.info-row .icon-chip .icon { width: 17px; height: 17px; }
.info-row .info-label { color: var(--muted); flex: 1; }
.info-row .info-val { font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------------- */
/* Homepage slider                                                          */
/* ---------------------------------------------------------------------- */
.slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink);
}
.slider-viewport { position: relative; width: 100%; aspect-ratio: 16 / 6; }
.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
}
.slider-slide.active { opacity: 1; visibility: visible; }
.slider-slide img, .slider-slide a { display: block; width: 100%; height: 100%; }
.slider-slide img { object-fit: cover; }
.slider-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 88px 22px 28px;
  background: linear-gradient(180deg, transparent, rgba(9,14,28,0.88));
  color: #fff;
  pointer-events: none;
}
.slider-caption h3 { color: #fff; font-size: 21px; margin-bottom: 4px; }
.slider-caption p { color: #D7DEEE; font-size: 14px; margin: 0; max-width: 62ch; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 5;
  transition: background 0.15s ease, transform 0.15s ease;
}
.slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 20px; right: 28px;
  display: flex; gap: 7px;
  z-index: 5;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.slider-dot.active { background: #fff; width: 20px; border-radius: 5px; }

@media (max-width: 640px) {
  .slider-viewport { aspect-ratio: 4 / 3.4; }
  .slider-caption { padding: 16px 60px 16px 18px; }
  .slider-caption h3 { font-size: 17px; }
  .slider-arrow { width: 34px; height: 34px; font-size: 16px; }
}

/* ---------------------------------------------------------------------- */
/* Stat band                                                                */
/* ---------------------------------------------------------------------- */
.stat-band { background: var(--surface); border-bottom: 1px solid var(--border); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 0; }
.stat-item { text-align: center; padding: 0 12px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(24px, 3vw, 34px); color: var(--accent-strong); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------------------------------------------------------------------- */
/* Section headings                                                        */
/* ---------------------------------------------------------------------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 10px; }
.section-head .index { color: var(--accent-2-strong); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { font-size: 28px; margin-top: 4px; }
.section-head .see-all { font-size: 13.5px; font-weight: 600; }

/* ---------------------------------------------------------------------- */
/* Program cards                                                           */
/* ---------------------------------------------------------------------- */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.program-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.program-card .p-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.program-card .p-icon .icon { width: 24px; height: 24px; }
.program-card .p-code { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-soft); }
.program-card h3 { font-size: 20px; margin: 6px 0 10px; }
.program-card p { color: var(--muted); font-size: 14px; margin-bottom: 18px; min-height: 44px; }
.seat-stamp {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-2-soft); color: var(--accent-2-strong);
  border-radius: var(--radius-full);
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.seat-stamp::before { content: "●"; font-size: 8px; color: var(--accent-2); }
.program-card .p-links { padding-top: 14px; border-top: 1px solid var(--border); display: flex; gap: 20px; }

/* ---------------------------------------------------------------------- */
/* Notice list                                                             */
/* ---------------------------------------------------------------------- */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--border);
}
.notice-list li:first-child { padding-top: 4px; }
.notice-list .date-tag {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  min-width: 84px;
}
.notice-list .type-badge { flex-shrink: 0; }
.notice-list li > span:last-child { font-size: 14.5px; font-weight: 500; }

/* ---------------------------------------------------------------------- */
/* Tables                                                                   */
/* ---------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.data-table { width: 100%; border-collapse: collapse; background: var(--surface); }
table.data-table th, table.data-table td { padding: 13px 16px; font-size: 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.data-table thead th {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: none;
}
table.data-table tbody tr:hover { background: var(--accent-soft); }
table.data-table tbody tr:last-child td { border-bottom: none; }

.search-box { display: flex; gap: 10px; margin-bottom: 24px; }
.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
}
.search-box input:focus { outline: none; border-color: var(--accent); }

.pager { display: flex; gap: 8px; margin-top: 24px; align-items: center; }
.pager a, .pager span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13.5px;
  background: var(--surface);
}
.pager a:hover { border-color: var(--accent); color: var(--accent-strong); text-decoration: none; }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------------- */
/* Generic content page                                                    */
/* ---------------------------------------------------------------------- */
.page-header {
  background: var(--gradient-dark);
  color: #fff;
  padding: 44px 0;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 90% 0%, rgba(37,99,235,0.35), transparent 60%);
}
.breadcrumb-index {
  position: relative;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-header h1 { position: relative; color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 0; }

.content-body { font-size: 16px; line-height: 1.8; }
.content-body h2 { font-size: 22px; margin-top: 30px; }
.content-body p { margin: 0 0 16px; }

.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-box h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-box h4 .icon { width: 15px; height: 15px; color: var(--accent); }
.sidebar-box ul { list-style: none; margin: 0; padding: 0; }
.sidebar-box li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box li .icon { width: 14px; height: 14px; color: var(--muted-soft); flex-shrink: 0; }

.layout-2col { display: grid; grid-template-columns: 2.1fr 1fr; gap: 44px; }

/* ---------------------------------------------------------------------- */
/* CTA band                                                                 */
/* ---------------------------------------------------------------------- */
.cta-band {
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: 24px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--accent-strong); box-shadow: none; }
.cta-band .btn-primary:hover { background: #F1F5FF; }

/* ---------------------------------------------------------------------- */
/* Forms                                                                    */
/* ---------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form-field label .req { color: var(--accent-strong); }
.form-field input, .form-field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-field textarea { grid-column: 1 / -1; min-height: 130px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 12px; margin-top: 6px; }
.alert-success {
  background: var(--accent-2-soft); border: 1px solid rgba(13,148,136,0.25); color: var(--accent-2-strong);
  padding: 13px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.map-embed { margin-bottom: 28px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------------- */
/* Gallery                                                                  */
/* ---------------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gallery-grid figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-grid .img-wrap { overflow: hidden; height: 210px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption { padding: 12px 14px; font-size: 13px; color: var(--muted); font-weight: 500; }
.gallery-grid .img-wrap img.lightbox-trigger { cursor: zoom-in; }

/* ---------------------------------------------------------------------- */
/* Lightbox                                                                */
/* ---------------------------------------------------------------------- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 10, 12, 0.92);
  align-items: center; justify-content: center; flex-direction: column;
  padding: 40px 20px; opacity: 0; transition: opacity 0.2s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-image {
  max-width: min(90vw, 1100px); max-height: 80vh; object-fit: contain;
  border-radius: 8px; box-shadow: var(--shadow-lg);
  transform: scale(0.96); transition: transform 0.2s ease;
}
.lightbox.open .lightbox-image { transform: scale(1); }
.lightbox-caption { color: #fff; margin-top: 16px; font-size: 14px; text-align: center; max-width: 80vw; }
.lightbox-close {
  position: absolute; top: 18px; right: 24px; background: transparent; border: none;
  color: #fff; font-size: 36px; line-height: 1; cursor: pointer; padding: 4px 10px;
  border-radius: 6px; transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------------------------------------------------------------------- */
/* Empty states                                                            */
/* ---------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
footer.site-footer { background: var(--gradient-dark); color: #B9C2D6; padding: 56px 0 0; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 38px; height: 38px; font-size: 17px; border-radius: 10px; }
.footer-brand strong { color: #fff; font-family: 'Sora', sans-serif; font-size: 15px; }
.footer-grid h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid p, .footer-grid a { color: #B9C2D6; font-size: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.footer-social a:hover { background: var(--accent); }
.footer-social .icon { width: 17px; height: 17px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.footer-contact-item .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--accent-2); flex-shrink: 0; }
.footer-bottom { padding: 18px 0; font-size: 12.5px; color: #7D89A3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-bottom a { color: #9AA6C0; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                               */
/* ---------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid, .layout-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .program-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat-item:nth-child(2) { border-right: none; }
  .cta-band { padding: 34px; }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    border-top: none;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav .wrap { padding: 10px 16px; }
  .main-nav ul { flex-direction: column; align-items: stretch; width: 100%; gap: 2px; flex-wrap: nowrap; }
  .main-nav a.nav-link { padding: 12px 14px; }
  .main-nav .has-dropdown > a.nav-link::after { display: none; }
  .main-nav .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 4px 20px;
    margin: 0;
  }
  .main-nav .dropdown a { color: var(--muted); font-size: 13.5px; padding: 8px 12px; }
}

@media (max-width: 480px) {
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  .program-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 44px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---------------------------------------------------------------------- */
/* Admin login page                                                         */
/* ---------------------------------------------------------------------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}
.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 15% 15%, rgba(37,99,235,0.30), transparent 60%),
    radial-gradient(500px 350px at 90% 85%, rgba(20,184,166,0.22), transparent 60%);
  pointer-events: none;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 34px;
}
.auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 26px; }
.auth-brand .brand-mark { width: 54px; height: 54px; font-size: 24px; margin-bottom: 14px; }
.auth-brand h1 { font-size: 19px; margin-bottom: 4px; }
.auth-brand p { color: var(--muted); font-size: 13.5px; margin: 0; }
.auth-card .form-field { margin-bottom: 16px; }
.auth-card .form-actions { margin-top: 4px; }
.auth-card .password-reset-link { text-align: right; margin: -6px 0 18px; font-size: 13px; }
.alert-error {
  background: #FEF2F2; border: 1px solid #FCA5A5; color: #B91C1C;
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 13.5px; font-weight: 500;
}
.alert-error p { margin: 0; }
.auth-back { display: block; text-align: center; margin-top: 22px; font-size: 13.5px; color: #B9C2D6; position: relative; }
.auth-back a { color: #fff; font-weight: 600; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}