/* ============================================================
   ANGELS PRIMARY SCHOOL — STYLESHEET
   Premium, Modern, Responsive School Website
   ============================================================ */

/* ----- RESET & BASE ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(79,142,247,0.55) rgba(255,255,255,0.08);
}
body {
  font-family: 'Outfit', sans-serif;
  background-color: #0d0f14;
  color: #e8eaf0;
  overflow-x: hidden;
  line-height: 1.7;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.06);
}

body::-webkit-scrollbar-thumb {
  background: rgba(79,142,247,0.55);
  border-radius: 999px;
  border: 2px solid rgba(13,15,20,0.85);
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(79,142,247,0.75);
}

/* ----- CSS VARIABLES ----- */
:root {
  --blue: #4f8ef7;
  --purple: #7c3aed;
  --teal: #2dd4bf;
  --gold: #f59e0b;
  --dark-bg: #0d0f14;
  --card-bg: #13161e;
  --card-border: rgba(255,255,255,0.07);
  --text-muted: #94a3b8;
  --section-pad: 7rem 1.5rem;
  --max-w: 1240px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- GRADIENT TEXT ----- */
.gradient-text {
  background: linear-gradient(120deg, var(--blue), var(--purple), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- SCROLL REVEAL ----- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#chatbot-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}
#chatbot-teaser {
  background: rgba(19, 22, 30, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border-bottom-right-radius: 2px;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
#chatbot-teaser.show { opacity: 1; visibility: visible; }

@keyframes bounceIn {
  0% { transform: scale(0.8) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

#chatbot-trigger {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(79,142,247,0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Typing Indicator Animation */
.typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.typing-dots span { width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%; animation: dotPulse 1.4s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse { 0%, 100% { transform: scale(0.8); opacity: 0.4; } 50% { transform: scale(1.2); opacity: 1; } }

/* ====== CHATBOT WINDOW ====== */
#chatbot-trigger:hover { transform: scale(1.12); box-shadow: 0 15px 40px rgba(79,142,247,0.5); }

#chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 340px;
  max-height: 500px;
  background: rgba(13, 15, 20, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
#chatbot-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
#chatbot-header {
  padding: 1.25rem;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
}
.chatbot-avatar { font-size: 1.6rem; }
#chatbot-header h4 { margin: 0; font-size: 1rem; color: #fff; font-weight: 700; }
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  margin-right: 4px;
}
#chatbot-header > div { display: flex; flex-direction: column; gap: 2px; }
#chatbot-header > div span { font-size: 0.78rem; color: var(--text-muted); }
#chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
  flex-shrink: 0;
}
#chatbot-close:hover { color: #fff; }
#chatbot-messages {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
  max-height: 260px;
}
.message {
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.87rem;
  line-height: 1.5;
}
.message.bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.07);
  color: #e8eaf0;
  border-bottom-left-radius: 3px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border-bottom-right-radius: 3px;
}
#chatbot-quick-replies {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-top: 1px solid var(--card-border);
  flex-shrink: 0;
}
.quick-reply {
  background: rgba(79,142,247,0.08);
  border: 1px solid rgba(79,142,247,0.22);
  color: var(--blue);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}
.quick-reply:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.full-chat-reply {
  background: rgba(79,142,247,0.08);
  border: 1px solid rgba(79,142,247,0.22);
  color: var(--blue);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
}
.full-chat-reply:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Chatbot Input Area */
#chatbot-input-area {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.75rem 0.75rem;
  border-top: 1px solid var(--card-border);
  flex-shrink: 0;
}
#chatbot-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0.5rem 0.9rem;
  color: #e8eaf0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}
#chatbot-input::placeholder { color: var(--text-muted); }
#chatbot-input:focus { border-color: var(--blue); }
#chatbot-send {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
#chatbot-send:hover { transform: scale(1.1); }

/* ============================================================
   PHOTO SLIDESHOW
   ============================================================ */
#slideshow {
  width: 100%;
  overflow: hidden;
  background: #000;
  position: relative;
}
.slideshow-container {
  position: relative;
  width: 100%;
  height: 520px;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-caption {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13,15,20,0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.12);
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,15,20,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-btn:hover { background: var(--blue); border-color: var(--blue); }
.slide-prev { left: 1.5rem; }
.slide-next { right: 1.5rem; }
.slide-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.slide-dot.active { background: var(--blue); transform: scale(1.4); }
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 1.1rem 1.5rem;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.7rem 1.5rem;
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-img { height: 45px; width: auto; object-fit: contain; }
.logo-text { font-size: 1.25rem; color: #fff; letter-spacing: -0.02em; font-weight: 600; }
.logo-text strong { color: #fff; font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--blue);
  transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }

/* Identity & Footer Logo */
.footer-logo-wrap { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.footer-logo { height: 40px; width: auto; object-fit: contain; }

/* Hamburger (hidden on desktop, shown on mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 100;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 999px;
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(13,15,20,0.4) 0%, rgba(13,15,20,0.9) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 1.5rem;
}
.badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.3);
  color: var(--blue);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--blue), var(--purple), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3.5rem;
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}
.stat-num::after { content: '+'; font-size: 1.5rem; color: var(--blue); vertical-align: super; }
.stat-item p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(79,142,247,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(79,142,247,0.4); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: #fff; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  padding: var(--section-pad);
  background: var(--dark-bg);
}
.section-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image-wrapper {
  position: relative;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: cover;
  height: 480px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.about-img-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 12px 40px rgba(79,142,247,0.4);
}
.about-img-badge strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.about-img-badge span { font-size: 0.8rem; opacity: 0.85; font-weight: 500; }
.section-tag {
  display: inline-block;
  background: rgba(79,142,247,0.12);
  border: 1px solid rgba(79,142,247,0.25);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-tag.light { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); }
.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.2rem;
}
.section-heading.light { color: #fff; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.02rem; }
.about-pillars { display: flex; flex-direction: column; gap: 1rem; margin: 1.8rem 0 2rem; }
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.pillar:hover { border-color: rgba(79,142,247,0.3); transform: translateX(5px); }
.pillar-dropdown {
  cursor: pointer;
}

.pillar-dropdown > summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.pillar-dropdown > summary::-webkit-details-marker { display: none; }

.pillar-dropdown-body {
  margin-top: 0.75rem;
}

.pillar-dropdown-body p {
  margin: 0;
}
.pillar-icon { font-size: 1.5rem; margin-top: 0.1rem; flex-shrink: 0; }
.pillar strong { display: block; color: #fff; font-weight: 700; font-size: 0.98rem; margin-bottom: 0.2rem; }
.pillar p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ============================================================
   EVENTS CALENDAR
   ============================================================ */
.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.events-calendar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.cal-month {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  flex: 1;
  text-align: center;
  margin: 0;
}
.cal-event-count {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: rgba(79,142,247,0.12);
  border: 1px solid rgba(79,142,247,0.3);
  border-radius: 50px;
  vertical-align: middle;
}
.cal-nav-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  color: #e8eaf0;
  font-size: 1.4rem;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.cal-nav-btn:hover {
  background: rgba(79,142,247,0.18);
  border-color: rgba(79,142,247,0.5);
  color: #fff;
  transform: translateY(-1px);
}
.cal-legend {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.cal-legend-dot-event {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,142,247,0.18);
}
.cal-legend-dot-today {
  background: transparent;
  border: 1px solid rgba(79,142,247,0.5);
  box-shadow: 0 0 0 3px rgba(79,142,247,0.12);
}
.cal-days-of-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}
.cal-day-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-cell {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  min-height: 90px;
  padding: 0.4rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.cal-cell:hover {
  background: rgba(255,255,255,0.06);
}
.cal-empty {
  background: transparent;
  min-height: 0;
}
.cal-today {
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.25);
}
.cal-day-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}
.cal-today .cal-day-num {
  color: var(--blue);
}
.cal-has-event {
  background: rgba(79,142,247,0.18);
  border: 1px solid rgba(79,142,247,0.45);
  box-shadow: 0 0 0 1px rgba(79,142,247,0.15) inset;
}
.cal-has-event:hover {
  background: rgba(79,142,247,0.26);
}
.cal-has-event .cal-day-num {
  color: #fff;
  font-weight: 700;
}
.cal-events-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
.cal-event-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(79,142,247,0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event-icon {
  font-size: 0.65rem;
  flex-shrink: 0;
}
.cal-event-title {
  color: #e8eaf0;
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event-download {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.cal-event-download:hover {
  color: #fff;
}
.cal-extra-events {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}
.cal-extra-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}
.cal-extra-item:hover {
  background: rgba(255,255,255,0.06);
}
.cal-extra-item .cal-event-icon {
  font-size: 1.2rem;
}
.cal-extra-item .cal-event-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.cal-extra-item .cal-event-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
}
.cal-extra-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f1f5f9;
}
.cal-extra-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.cal-extra-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cal-event-caption {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 0.15rem;
}

/* Clickable event-day cells */
.cal-cell.cal-has-event {
  cursor: pointer;
  user-select: none;
}
.cal-cell.cal-has-event:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* "Today" event-day badge on the hero */
.hero-event-badge {
  position: absolute;
  top: 7.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(13,15,20,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(79,142,247,0.35);
  border-radius: 50px;
  color: #fff;
  font-size: 0.78rem;
  z-index: 3;
  max-width: calc(100% - 2rem);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  pointer-events: none;
}
.hero-event-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(79,142,247,0.25);
  animation: hero-badge-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes hero-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79,142,247,0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(79,142,247,0.05); }
}
.hero-event-badge-label {
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.hero-event-badge-title {
  font-weight: 500;
  color: #e8eaf0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
}

/* "Download as PDF" button on event cards */
.events-doc-btn--pdf {
  background: linear-gradient(135deg, rgba(167,139,250,0.18), rgba(79,142,247,0.18));
  color: #c4b5fd;
  border-color: rgba(167,139,250,0.4);
}
.events-doc-btn--pdf:hover {
  background: linear-gradient(135deg, #a78bfa, var(--blue));
  color: #fff;
  border-color: transparent;
}

/* Event-day modal slideshow */
.event-day-modal .modal-content {
  position: relative;
  max-width: 900px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.event-modal-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.event-modal-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #1e293b;
}
.event-modal-caption-wrap {
  text-align: center;
  color: #e8eaf0;
  max-width: 600px;
}
.event-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #fff;
}
.event-modal-caption {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}
.event-modal-prev,
.event-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,15,20,0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.event-modal-prev { left: 1.5rem; }
.event-modal-next { right: 1.5rem; }
.event-modal-prev:hover,
.event-modal-next:hover {
  background: rgba(79,142,247,0.4);
  border-color: rgba(79,142,247,0.7);
}
.event-modal-pdf {
  position: absolute;
  top: 1.25rem;
  right: 4rem;
  background: rgba(79,142,247,0.18);
  color: #fff;
  border: 1px solid rgba(79,142,247,0.4);
  border-radius: 50px;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}
.event-modal-pdf:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.event-modal-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.event-modal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
}
.event-modal-dot.active {
  background: var(--blue);
  transform: scale(1.25);
}

@media (max-width: 600px) {
  .cal-cell {
    min-height: 60px;
    padding: 0.25rem;
  }
  .cal-day-num {
    font-size: 0.75rem;
  }
  .cal-event-item {
    font-size: 0.6rem;
    padding: 1px 3px;
  }
  .cal-extra-item {
    flex-wrap: wrap;
  }
  .cal-extra-thumb {
    width: 60px;
    height: 60px;
  }
}

/* ============================================================
   AERIAL VIEW (VIDEO SLIDESHOW)
   ============================================================ */
#aerial {
  padding: var(--section-pad);
  background: linear-gradient(180deg, #0d0f14 0%, #0f1520 50%, #0d0f14 100%);
  text-align: center;
}
.aerial-header { max-width: 700px; margin: 0 auto 3.5rem; }
.aerial-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-top: 1rem; }

.aerial-video-slideshow {
  width: 100%;
}

.aerial-video-slide {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.aerial-video-slideshow .video-wrapper {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.aerial-video-slideshow .video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.aerial-video-slideshow a.previous.round,
.aerial-video-slideshow a.next.round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(19, 22, 30, 0.85);
  border: 1px solid var(--card-border);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.aerial-video-slideshow a.previous.round {
  width: 52px;
  height: 52px;
  font-size: 26px;
}
/* ============================================================
   AERIAL VIEW (HOTSPOT MAP)
   ============================================================ */
.aerial-map-wrapper {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  border: 1px solid var(--card-border);
}
.aerial-img {
  width: 100%;
  height: auto;
  display: block;
}
.hotspot {
  position: absolute;
  width: 20px;
  height: 20px;
  cursor: pointer;
  z-index: 5;
}
.hotspot-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  background: var(--blue);
  border-radius: 50%;
  opacity: 0.6;
  animation: pulse 2s infinite;
}
.hotspot-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--blue);
}
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}
.hotspot-tooltip {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  color: #1a1e26;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  width: 240px;
  bottom: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}
.hotspot-tooltip.active { opacity: 1; visibility: visible; bottom: calc(100% + 15px); }
.hotspot-tooltip h4 { margin-bottom: 0.35rem; color: var(--dark-bg); font-weight: 700; font-size: 1rem; }
.hotspot-tooltip p { font-size: 0.85rem; color: #4b5563; line-height: 1.5; }
.aerial-overlay-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.6;
}

/* Navigation Controls */
.aerial-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(13,15,20,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}
.aerial-nav-btn:hover { background: var(--blue); border-color: var(--blue); }
.aerial-nav-btn svg { width: 24px; height: 24px; }
.aerial-prev { left: 1.5rem; }
.aerial-next { right: 1.5rem; }

.aerial-dots {
  position: absolute;
  bottom: 1.5rem;
  right: 2.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.aerial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.aerial-dot.active {
  background: var(--blue);
  transform: scale(1.3);
}
.aerial-features {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.aerial-feat-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}
.aerial-feat-item:hover { border-color: rgba(79,142,247,0.3); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.feat-icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.aerial-feat-item strong { font-size: 1.8rem; font-weight: 900; color: #fff; }
.aerial-feat-item span { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* ============================================================
   ACADEMICS SECTION
   ============================================================ */
#academics {
  padding: var(--section-pad);
  background: var(--dark-bg);
}
.directions-btn {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2rem;
}
.directions-btn svg { opacity: 0.9; }

.section-inner-header {
  max-width: 620px;
  margin: 0 auto 50px; /* Changed from 3.5rem to 50px */
  text-align: center;
}
.section-inner-header p { color: var(--text-muted); font-size: 1rem; }
.academics-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.academic-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.academic-card:hover { transform: translateY(-8px); border-color: rgba(79,142,247,0.25); box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
}
.academic-card h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.academic-card p { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.2rem; line-height: 1.7; }
.card-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}
.card-link:hover { gap: 6px; opacity: 0.8; }

/* News & Announcements */
.news-flag {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 1.5rem;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(239,68,68,0.5));
  animation: newsFlagPulse 1.5s ease-in-out infinite;
}

@keyframes newsFlagPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.news-date {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Academics Accordion */
.academics-accordion-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.academics-accordion {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.academics-accordion[open] {
  border-color: rgba(79,142,247,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.academics-accordion summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  transition: var(--transition);
  user-select: none;
}

.academics-accordion summary::-webkit-details-marker { display: none; }

.academics-accordion:hover summary { background: rgba(255,255,255,0.03); }

.accordion-icon { font-size: 1.5rem; flex-shrink: 0; }

.accordion-label { flex: 1; }

.accordion-arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.academics-accordion[open] .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.accordion-item:hover {
  background: rgba(79,142,247,0.05);
  border-color: rgba(79,142,247,0.15);
}

.accordion-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
}

.accordion-item-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .academics-accordion summary { padding: 1rem 1.2rem; font-size: 1rem; }
  .accordion-body { padding: 0 1.2rem 1rem; }
  .accordion-item { padding: 0.85rem 1rem; }
}

@media (max-width: 480px) {
  .academics-accordion summary { padding: 0.85rem 1rem; font-size: 0.95rem; }
  .accordion-body { padding: 0 1rem 0.85rem; }
  .accordion-item { padding: 0.75rem 0.85rem; }
  .accordion-item-title { font-size: 0.92rem; }
  .accordion-item-text { font-size: 0.85rem; }
}

/* ============================================================
   GALLERY SECTION - TETRIS MASONRY
   ============================================================ */
#gallery {
  padding: var(--section-pad);
  background: #0f1520;
}

/* Tetris masonry grid */
.gallery-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

/* Tile size variants */
.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.gallery-tile.tile-large  { grid-column: span 2; grid-row: span 2; }
.gallery-tile.tile-wide   { grid-column: span 2; grid-row: span 1; }
.gallery-tile.tile-tall   { grid-column: span 1; grid-row: span 2; }
.gallery-tile.tile-square { grid-column: span 1; grid-row: span 1; }

/* Multi-image crossfade container */
.gallery-tile .tile-images {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-tile .tile-images .tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.gallery-tile .tile-images .tile-img.active {
  opacity: 1;
}

/* Static image fallback (single image) */
.gallery-tile .tile-static {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* Fade-in on load for all gallery tiles */
.gallery-tile {
  opacity: 0;
  animation: galleryFadeIn 0.7s ease forwards;
}

@keyframes galleryFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Staggered delays — each tile fades in a bit later */
.gallery-tile:nth-child(1)  { animation-delay: 0.05s; }
.gallery-tile:nth-child(2)  { animation-delay: 0.10s; }
.gallery-tile:nth-child(3)  { animation-delay: 0.15s; }
.gallery-tile:nth-child(4)  { animation-delay: 0.20s; }
.gallery-tile:nth-child(5)  { animation-delay: 0.25s; }
.gallery-tile:nth-child(6)  { animation-delay: 0.30s; }
.gallery-tile:nth-child(7)  { animation-delay: 0.35s; }
.gallery-tile:nth-child(8)  { animation-delay: 0.40s; }
.gallery-tile:nth-child(9)  { animation-delay: 0.45s; }
.gallery-tile:nth-child(10) { animation-delay: 0.50s; }
.gallery-tile:nth-child(11) { animation-delay: 0.55s; }
.gallery-tile:nth-child(12) { animation-delay: 0.60s; }
.gallery-tile:nth-child(13) { animation-delay: 0.65s; }
.gallery-tile:nth-child(14) { animation-delay: 0.70s; }
.gallery-tile:nth-child(15) { animation-delay: 0.75s; }
.gallery-tile:nth-child(16) { animation-delay: 0.80s; }

.gallery-tile:hover .tile-static,
.gallery-tile:hover .tile-images .tile-img {
  transform: scale(1.07);
}

/* Download button */
.gallery-tile .gallery-download {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 22, 30, 0.85);
  border: 1px solid var(--card-border);
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: var(--transition);
}

.gallery-tile:hover .gallery-download {
  opacity: 1;
  transform: translateY(0);
}

.gallery-download:hover {
  border-color: rgba(79,142,247,0.5);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.modal-download {
  position: absolute;
  top: 18px;
  right: 62px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 22, 30, 0.85);
  border: 1px solid var(--card-border);
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}

.modal-download:hover {
  border-color: rgba(79,142,247,0.5);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* Responsive Tetris */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-tile.tile-large,
  .gallery-tile.tile-wide,
  .gallery-tile.tile-tall { grid-column: span 2; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 0.6rem; }
  .gallery-tile.tile-large  { grid-column: span 2; grid-row: span 2; }
  .gallery-tile.tile-wide   { grid-column: span 2; grid-row: span 1; }
  .gallery-tile.tile-tall   { grid-column: span 1; grid-row: span 2; }
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
  padding: var(--section-pad);
  background: var(--dark-bg);
}
.contact-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: flex-start;
}
.contact-info p { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-detail-item { display: flex; align-items: flex-start; gap: 1rem; }
.detail-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-detail-item strong { display: block; color: #fff; font-weight: 700; font-size: 0.95rem; }
.contact-detail-item span { color: var(--text-muted); font-size: 0.9rem; }
.contact-detail-item .contact-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}
.contact-detail-item .contact-link:hover {
  color: var(--blue);
}
/* Form */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-form h3 { color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.25rem; }
.form-group label { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}
.form-group select option { background: #1a1d25; color: #fff; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(79,142,247,0.06);
  box-shadow: 0 0 0 3px rgba(79,142,247,0.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-success {
  display: none;
  background: rgba(45,212,191,0.12);
  border: 1px solid rgba(45,212,191,0.3);
  color: var(--teal);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
}
.form-success.show { display: block; }
.form-error {
  display: none;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
}
.form-error.show { display: block; }
/* Cloudflare Turnstile widget — invisible mode means zero size in the
   happy path, but a managed challenge may expand the iframe. */
#turnstile-widget { margin: 0.5rem 0 0; min-height: 0; }
#turnstile-widget:empty { min-height: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #090b10;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 1.5rem 2rem;
}
.footer-content {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin: 1rem 0 1.5rem; line-height: 1.7; max-width: 280px; }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
}
.social-link:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-3px); }

.social-link[aria-label="WhatsApp"] { color: #25D366; }
.social-link[aria-label="Facebook"] { color: #1877F2; }
.social-link[aria-label="TikTok"] { color: #ffffff; }

.social-link[aria-label="WhatsApp"]:hover {
  background: rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.55);
  color: #25D366;
}

.social-link[aria-label="Facebook"]:hover {
  background: rgba(24, 119, 242, 0.16);
  border-color: rgba(24, 119, 242, 0.55);
  color: #1877F2;
}

.social-link[aria-label="TikTok"]:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  color: #ffffff;
}

.footer-logos {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 104px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--card-border);
  text-decoration: none;
  transition: var(--transition);
}
.footer-logo-link:hover {
  background: rgba(255,255,255,0.98);
  border-color: rgba(79,142,247,0.35);
  transform: translateY(-3px);
}
.footer-logo-link.mopse-logo,
.footer-logo-link.mopse-logo:hover {
  width: 200px;
  height: 128px;
  padding: 10px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.footer-logo-link.zimsec-logo,
.footer-logo-link.zimsec-logo:hover {
  width: 200px;
  height: 128px;
  padding: 10px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.footer-partner-logo {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: contrast(1.12) saturate(1.06);
}
.footer-links-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 1.2rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-links-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  transition: var(--transition);
}
.footer-links-col a:hover { color: var(--blue); padding-left: 4px; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--blue); }

/* ============================================================
   GALLERY MODAL
   ============================================================ */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 10000;
}
.modal-close:hover {
  color: var(--blue);
}
.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gallery-modal.active .modal-content {
  transform: scale(1);
}
.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.modal-controls {
  display: flex;
  justify-content: center;
}

/* ============================================================
   STAFF MEMBERS SECTION
   ============================================================ */
#staff {
  padding: var(--section-pad);
  background: #0f1520;
}
.staff-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.staff-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.staff-card:hover {
  transform: translateY(-10px);
  border-color: rgba(79,142,247,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.staff-img-wrapper {
  height: 300px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.staff-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,15,20,0.8) 0%, transparent 40%);
}
.staff-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s ease;
}
.staff-card:hover .staff-img-wrapper img {
  transform: scale(1.02);
}
.staff-info {
  padding: 1.5rem;
  text-align: center;
}
.staff-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}
.staff-info span {
  display: block;
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.staff-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .academics-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .aerial-features { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-logo-link.mopse-logo,
  .footer-logo-link.zimsec-logo { width: 140px; height: 100px; }
  .staff-img-wrapper { height: 260px; }
}
@media (max-width: 768px) {
  :root { --section-pad: 5rem 1.2rem; }
  #navbar { padding: 0.85rem 1rem; }
  #navbar.scrolled { padding: 0.6rem 1rem; }
  .nav-container { gap: 1rem; }
  .logo-img { height: 40px; }
  .logo-text { font-size: 1.05rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(13,15,20,0.97);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .slide-prev { left: 0.75rem; }
  .slide-next { right: 0.75rem; }
  .slide-btn { width: 44px; height: 44px; font-size: 1.6rem; }
  .slide-indicators { bottom: 1rem; }

  .section-container { grid-template-columns: 1fr; gap: 3rem; }
  .about-img { height: 320px; }
  .about-img-badge { bottom: -1rem; right: 1rem; }
  .gallery-tile { height: auto; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1.2rem; }
  .stat-divider { width: 60%; height: 1px; }
  .stat-item { padding: 0; }
  .academics-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-img-wrapper { height: 220px; }
  .aerial-features { grid-template-columns: 1fr 1fr; }
  .aerial-video-slideshow a.previous.round,
  .aerial-video-slideshow a.next.round { width: 40px; height: 40px; font-size: 18px; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-logos { justify-content: center; }
  .footer-logo-link.mopse-logo,
  .footer-logo-link.zimsec-logo { width: 120px; height: 80px; }
  #chatbot-window { width: 300px; right: -10px; }
}
@media (max-width: 480px) {
  :root { --section-pad: 4.25rem 1rem; }
  .logo-text { font-size: 0.98rem; }
  .hero-content { padding: 0 1rem; }
  .badge { margin-bottom: 1.4rem; font-size: 0.78rem; }
  .hero-description { margin-bottom: 2.2rem; }
  .hero-actions { display: flex; flex-direction: column; gap: 0.9rem; align-items: center; }
  .hero-actions a { width: min(320px, 100%); }

  .staff-grid { grid-template-columns: 1fr; }
  .staff-img-wrapper { height: 280px; }
  .staff-info { padding: 1rem; }
  .staff-info h3 { font-size: 1.05rem; }
  .staff-info p { font-size: 0.85rem; }

  .aerial-features { grid-template-columns: 1fr; }
  .aerial-image-container img { height: 280px; }
  .aerial-video-slideshow a.previous.round,
  .aerial-video-slideshow a.next.round { width: 36px; height: 36px; font-size: 16px; }

  #chatbot-container { bottom: 1rem; right: 1rem; }
  #chatbot-trigger { width: 50px; height: 50px; font-size: 1.25rem; }
  #chatbot-window { width: calc(100vw - 2rem); right: 0; max-height: 70vh; }
  #chatbot-messages { max-height: 180px; }
  #chatbot-teaser { font-size: 0.78rem; padding: 0.55rem 1rem; max-width: 200px; }

  .about-img { height: 240px; }
  .contact-form { padding: 1.5rem; }
  .modal-content { max-width: 95vw; }
  .modal-close { top: 0.75rem; right: 1rem; font-size: 2.2rem; }
  .modal-download { top: 14px; right: 50px; width: 38px; height: 38px; }
  .footer-logo-wrap img { height: 32px; }
  .social-link { width: 34px; height: 34px; }
  .event-modal-pdf { top: 1rem; right: 3.5rem; padding: 0.35rem 0.7rem; font-size: 0.72rem; }
  .event-modal-prev { left: 0.5rem; width: 36px; height: 36px; }
  .event-modal-next { right: 0.5rem; width: 36px; height: 36px; }
  .hero-event-badge { top: 6.5rem; font-size: 0.7rem; padding: 0.4rem 0.75rem; gap: 0.35rem; }
  .section-heading { font-size: 1.6rem; }
}

