/*
  Delhi Public School Pupri - Microsoft Fluent Metro Grid Edition
  Palette: Pure White (#ffffff), Soft Pearl (#f8fafc), Dark Slate (#0f172a), Green Palette (#006400, #008001, #169b1e, #2bab27)
  Aesthetic: Microsoft Fluent UI - Crisp 4px-6px subtle micro-curves, sharp rectangular cards, structured bento tiles, touch 48px+
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
  --canvas-bg: #ffffff;
  --section-bg: #f8fafc;
  --card-bg: #ffffff;
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  
  /* User Palette: 006400, 008001, 169B1E, 2BAB27 */
  --brand-cardinal: #006400;
  --brand-emerald: #008001;
  --brand-vibrant: #169b1e;
  --brand-bright: #2bab27;
  --brand-green-gradient: linear-gradient(135deg, #006400 0%, #008001 50%, #169b1e 100%);
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  
  --shadow-subtle: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 8px 24px -4px rgba(15, 23, 42, 0.07);
  --shadow-hover: 0 14px 32px -6px rgba(0, 100, 0, 0.15);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-code: 'Fira Code', monospace;
  
  /* Microsoft Subtle Micro-Curves */
  --radius-lg: 6px;
  --radius-md: 4px;
  --radius-sm: 3px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  background-color: var(--canvas-bg);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 80px;
  }
}

/* 1. Live Marquee Ticker Bar */
.ticker-wrap {
  background: #f0fdf4;
  color: var(--text-dark);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #dcfce7;
  font-size: 0.84rem;
  font-weight: 500;
}

.ticker-head {
  background: var(--brand-cardinal);
  color: #ffffff;
  font-weight: 700;
  padding: 0 1.2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  white-space: nowrap;
}

.ticker-move {
  display: flex;
  white-space: nowrap;
  animation: tickerMove 28s linear infinite;
}

.ticker-item {
  display: inline-block;
  padding: 0 2rem;
  color: #dc2626;
  font-weight: 600;
}

@keyframes tickerMove {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* 2. Top Utility Bar & Campus Info */
.top-utility-bar {
  background: var(--brand-green-gradient);
  color: #ffffff;
  padding: 8px 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
}

.top-contacts {
  display: flex;
  gap: 1.8rem;
}

.top-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.9;
}

/* Sticky Header & Hamburger */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  height: 74px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.brand-crest-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-dark);
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-crest-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--brand-cardinal);
  white-space: nowrap;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
  margin-top: 2px;
}

.nav-links-list {
  display: flex;
  gap: clamp(0.7rem, 1.1vw, 1.4rem);
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-item-link {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.25rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
}

.nav-item-link:hover {
  color: var(--brand-emerald);
}

.nav-ai-highlight {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.35rem 0.8rem !important;
  border-radius: var(--radius-sm) !important;
  background: rgba(0, 100, 0, 0.08) !important;
  color: var(--brand-cardinal) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  border: 1px solid rgba(0, 100, 0, 0.18) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: var(--transition) !important;
  line-height: 1 !important;
}

.nav-ai-highlight:hover {
  background: rgba(0, 100, 0, 0.15) !important;
  border-color: var(--brand-cardinal) !important;
}

.pulse-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
  display: inline-block;
  flex-shrink: 0;
}

.btn-header-outline-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 1.15rem;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--brand-cardinal);
  background: transparent;
  color: var(--brand-cardinal);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.btn-header-outline-green:hover {
  background: var(--brand-cardinal);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 100, 0, 0.25);
}

.btn-header-outline-green .btn-arrow-anim {
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn-header-outline-green:hover .btn-arrow-anim {
  transform: translateX(3px);
}

/* Hamburger Toggle Button */
.hamburger-toggle {
  display: none;
  background: var(--section-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.6rem;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  min-height: 48px;
  min-width: 48px;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.hamburger-toggle:active {
  transform: scale(0.96);
  background: var(--border-light);
}

.hamburger-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: flex-end;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-panel {
  width: 88%;
  max-width: 360px;
  background: #ffffff;
  height: 100vh;
  padding: 2rem 1.8rem;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.active .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  list-style: none;
  margin-top: 1.5rem;
}

.mobile-drawer-nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.8rem 0.4rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-drawer-nav a:active {
  background: var(--section-bg);
  color: var(--brand-cardinal);
}

/* Microsoft Style Crisp Rectangular Buttons (4px micro-curves, NO pill shape!) */
.btn-minimal-primary {
  background: var(--brand-green-gradient);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md); /* 4px subtle micro-curve */
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 3px 12px rgba(0, 100, 0, 0.2);
  transition: var(--transition);
  min-height: 48px;
}

.btn-minimal-primary:hover {
  background: linear-gradient(135deg, #008001 0%, #169b1e 50%, #2bab27 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 128, 1, 0.3);
}

.btn-minimal-primary:active {
  transform: scale(0.98);
}

.btn-header-outline-green {
  background: transparent;
  color: var(--brand-cardinal);
  border: 1.5px solid var(--brand-cardinal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md); /* 4px subtle micro-curve */
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  min-height: 48px;
}

.btn-header-outline-green:hover {
  background: rgba(0, 100, 0, 0.08);
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
  transform: translateY(-1px);
}

.btn-header-outline-green:hover .btn-arrow-anim {
  transform: translateX(4px);
}

.btn-arrow-anim {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-header-outline-green:active {
  transform: scale(0.98);
}

.nav-ai-highlight {
  position: relative;
  font-weight: 700 !important;
  color: var(--brand-cardinal) !important;
  background: rgba(0, 100, 0, 0.06);
  padding: 0.4rem 0.8rem !important;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 100, 0, 0.12);
  gap: 0.4rem;
}

.pulse-status-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-vibrant);
  border-radius: 50%;
  display: inline-block;
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Hero Dynamic Typing Span & Cursor */
.hero-typed-span {
  background: linear-gradient(135deg, #006400 0%, #008001 40%, #169b1e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  display: inline-block;
  min-height: 1.2em;
}

.typed-cursor {
  color: var(--brand-vibrant);
  font-weight: 300;
  animation: blinkCursor 0.8s infinite;
  margin-left: 3px;
  font-family: var(--font-body);
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Borderless Hero AI Button with Circular Video Graphic */
.hero-video-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.75rem 1.8rem 0.75rem 0.9rem;
  background: #ffffff;
  border: none !important; /* No outline for top AI box per directive! */
  border-radius: var(--radius-md); /* 4px subtle micro-curve */
  text-decoration: none;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 26px -4px rgba(15, 23, 42, 0.08);
  min-height: 56px;
}

.hero-video-ai-btn:hover {
  background: #f0fdf4;
  box-shadow: 0 12px 32px -4px rgba(0, 100, 0, 0.16);
  transform: translateY(-2px);
}

.hero-video-ai-btn:active {
  transform: scale(0.98);
}

/* Perfect Circular Video Graphic Mask */
.ai-video-circle-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(48% at 50% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}

.ai-header-circular-video {
  width: 135%;
  height: 135%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.28);
  clip-path: circle(48% at 50% 50%);
}

.siri-soul-orb-container {
  width: 42px;
  height: 42px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.siri-soul-orb-core {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #2bab27 0%, #169b1e 40%, #006400 100%);
  box-shadow: 0 0 16px #169b1e, 0 0 28px rgba(22, 155, 30, 0.6);
  z-index: 2;
  animation: soulPulse 2.4s ease-in-out infinite alternate;
}

.siri-soul-orb-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(3.5px);
  opacity: 0.75;
}

.siri-soul-orb-wave.wave-1 {
  background: conic-gradient(from 0deg, rgba(43, 171, 39, 0.6), rgba(22, 155, 30, 0.3), rgba(0, 100, 0, 0.6), rgba(43, 171, 39, 0.6));
  animation: siriSpin 3.5s linear infinite;
}

.siri-soul-orb-wave.wave-2 {
  background: conic-gradient(from 180deg, rgba(0, 128, 1, 0.5), rgba(43, 171, 39, 0.2), rgba(22, 155, 30, 0.6), rgba(0, 128, 1, 0.5));
  animation: siriSpin 5.5s linear infinite reverse;
  transform: scale(1.15);
  opacity: 0.6;
}

.siri-soul-orb-wave.wave-3 {
  animation: siriPulseWave 2.8s ease-in-out infinite alternate;
  background: radial-gradient(circle, rgba(43, 171, 39, 0.4) 0%, transparent 70%);
}

@keyframes siriSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes siriPulseWave {
  0% { transform: scale(0.85); opacity: 0.3; }
  100% { transform: scale(1.35); opacity: 0.8; }
}

@keyframes soulPulse {
  0% { transform: scale(0.88); box-shadow: 0 0 12px #169b1e, 0 0 20px rgba(22, 155, 30, 0.4); }
  100% { transform: scale(1.12); box-shadow: 0 0 22px #2bab27, 0 0 36px rgba(43, 171, 39, 0.8); }
}

.soul-btn-content {
  display: flex;
  flex-direction: column;
}

.soul-btn-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-cardinal);
  line-height: 1.2;
}

.soul-btn-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.15rem;
}

.soul-arrow {
  font-size: 1.2rem;
  color: var(--brand-cardinal);
  transition: transform 0.25s ease;
  margin-left: auto;
}

.emerald-soul-ai-btn:hover .soul-arrow {
  transform: translateX(5px);
  color: var(--brand-vibrant);
}

.btn-minimal-outline {
  background: #ffffff;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md); /* 4px subtle micro-curve */
  border: 1px solid var(--border-medium);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  min-height: 48px;
}

.btn-minimal-outline:hover {
  border-color: var(--brand-cardinal);
  color: var(--brand-cardinal);
  background: var(--section-bg);
  transform: translateY(-2px);
}

.btn-minimal-outline:active {
  transform: scale(0.98);
}

/* Hero Immersive Section with Architecture Background */
.hero-minimal {
  position: relative;
  max-width: 1360px;
  margin: 1.5rem auto 2.5rem;
  padding: 4.5rem 3.5rem;
  border-radius: var(--radius-lg); /* 6px subtle micro-curve */
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  min-height: 520px;
  display: flex;
  align-items: center;
  background: #fafafa;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 35%; /* Shifted so the central DPS crest & entrance tower are prominently displayed in the center */
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 34%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0.05) 66%, rgba(255, 255, 255, 0) 80%);
  z-index: 2;
}

.hero-content-inner {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.hero-chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md); /* 4px subtle micro-curve */
  background: var(--section-bg);
  border: 1px solid var(--border-light);
  color: var(--brand-cardinal);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.hero-heading-main {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-heading-main span {
  color: var(--brand-cardinal);
}

.hero-desc-text {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 2.2rem;
  max-width: 620px;
}

/* Key Statistics Strip */
.stat-strip-minimal {
  max-width: 1360px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}

.stat-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: #ffffff;
  padding: 2.2rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.stat-item-box {
  border-left: 3.5px solid var(--brand-cardinal);
  padding-left: 1.25rem;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-lbl {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Footer Social Links (Pure text with green color, no box/background) */
.footer-social-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--brand-cardinal) !important; /* Green coloured text */
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: var(--transition);
  width: fit-content;
}

.footer-social-btn span {
  color: var(--brand-cardinal) !important;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-social-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.footer-social-btn:hover {
  background: transparent !important;
  transform: translateX(4px);
  color: var(--brand-emerald) !important;
  text-decoration: underline;
}

.footer-social-btn:hover span {
  color: var(--brand-emerald) !important;
}

/* Gallery Dark Footer Social Links */
.footer-dark .footer-social-btn {
  background: transparent !important;
  border: none !important;
  color: #4ade80 !important;
}

.footer-dark .footer-social-btn span {
  color: #4ade80 !important;
}

.footer-dark .footer-social-btn:hover {
  background: transparent !important;
  color: #86efac !important;
}

.footer-dark .footer-social-btn:hover span {
  color: #86efac !important;
}

@media (max-width: 900px) {
  .stat-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
  .hero-minimal {
    padding: 3.5rem 2rem;
  }
  .hero-bg-overlay {
    background: rgba(255, 255, 255, 0.94);
  }
}

@media (max-width: 540px) {
  .stat-grid-container {
    grid-template-columns: 1fr;
    padding: 1.8rem;
  }
}

/* Microsoft Tile Bento Matrix (Crisp 4px-6px Micro-Curves) */
.ms-tile-grid-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.ms-tile-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
}

.ms-tile-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); /* 6px subtle micro-curve */
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ms-tile-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-emerald);
}

.card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-light);
}

.ms-tile-accent-bar {
  height: 4px;
  background: var(--brand-green-gradient);
  width: 100%;
}

.ms-tile-body {
  padding: 2rem;
  flex: 1;
}

.ms-tile-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md); /* 4px subtle micro-curve */
  background: rgba(0, 100, 0, 0.08);
  border: 1px solid rgba(0, 100, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-cardinal);
  margin-bottom: 1.4rem;
}

.ms-tile-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.ms-tile-text {
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.ms-tile-footer {
  padding: 1.2rem 2rem;
  background: var(--section-bg);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
}

.ms-tile-footer-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-cardinal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

/* Stat Strip & Animated Counters */
.stat-strip-minimal {
  background: var(--section-bg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 2.8rem 2rem;
}

.stat-grid-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item-box {
  border-left: 3.5px solid var(--brand-cardinal);
  padding-left: 1.2rem;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-lbl {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Interactive Event Bulletin Board (Crisp Micro-Curved Filter Buttons) */
.events-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.event-filter-btn {
  background: var(--section-bg);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md); /* 4px micro-curve, NO round pill! */
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
}

.event-filter-btn.active, .event-filter-btn:hover {
  background: var(--brand-cardinal);
  color: #ffffff;
  border-color: var(--brand-cardinal);
}

.event-filter-btn:active {
  transform: scale(0.96);
}

.events-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.event-bulletin-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); /* 6px subtle micro-curve */
  padding: 1.8rem;
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  transition: var(--transition);
}

.event-bulletin-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--brand-emerald);
}

.date-badge-box {
  background: var(--brand-green-gradient);
  color: #ffffff;
  border-radius: var(--radius-md); /* 4px micro-curve */
  padding: 0.8rem 1rem;
  text-align: center;
  min-width: 72px;
  box-shadow: 0 4px 12px rgba(0, 100, 0, 0.2);
}

.date-badge-box .day {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.date-badge-box .month {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-info-body h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.event-meta-line {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Student Achievement Spotlight Carousel */
.spotlight-card-minimal {
  background: var(--section-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); /* 6px subtle micro-curve */
  padding: 3rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.spotlight-avatar img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md); /* 4px micro-curve */
  border: 1px solid var(--border-light);
}

.spotlight-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.75;
  border-left: 3.5px solid var(--brand-cardinal);
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.spotlight-author-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.spotlight-author-desc {
  font-size: 0.88rem;
  color: var(--brand-cardinal);
  font-weight: 600;
}

.spotlight-nav-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.spotlight-dot {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-sm); /* Microsoft crisp square dot */
  background: var(--border-medium);
  cursor: pointer;
  transition: var(--transition);
}

.spotlight-dot.active {
  background: var(--brand-cardinal);
  transform: scale(1.25);
}

/* AI Assistant Terminal Section */
.ai-minimal-section {
  max-width: 1100px;
  margin: 3.5rem auto;
  padding: 0 2rem;
}

.ai-terminal-minimal {
  background: #ffffff;
  border: none; /* No outline for AI box per directive! */
  border-radius: var(--radius-lg); /* 6px micro-curve */
  padding: 2.2rem;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.07);
}

.ai-header-circular-video {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.ai-terminal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.ai-code-chip {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--brand-cardinal);
  background: rgba(0, 100, 0, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm); /* 3px micro-curve */
  border: 1px solid rgba(0, 100, 0, 0.2);
}

.ai-quick-chips-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.quick-chip-lbl {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-quick-chip {
  background: var(--section-bg);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-md); /* 4px micro-curve */
  cursor: pointer;
  transition: var(--transition);
}

.ai-quick-chip:hover {
  background: #f0fdf4;
  border-color: var(--brand-cardinal);
  color: var(--brand-cardinal);
  transform: translateY(-1px);
}

.ai-chat-stream {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem 0.2rem;
}

.ai-welcome-msg {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.ai-user-bubble {
  align-self: flex-end;
  background: var(--brand-cardinal);
  color: #ffffff;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  max-width: 82%;
  font-size: 0.94rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 100, 0, 0.18);
}

.ai-bot-bubble {
  align-self: flex-start;
  background: var(--section-bg);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  max-width: 90%;
  font-size: 0.96rem;
  line-height: 1.65;
}

.ai-input-flex {
  display: flex;
  gap: 1rem;
}

.ai-input-control {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md); /* 4px micro-curve */
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 0.9rem 1.4rem;
  min-height: 48px;
  outline: none;
  transition: var(--transition);
}

.ai-input-control:focus {
  border-color: var(--brand-cardinal);
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.1);
}

.ai-output-card {
  margin-top: 1.5rem;
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); /* 4px micro-curve */
  padding: 1.8rem;
}

.ai-output-card.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Sections General & Scroll Reveal */
.section-minimal {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
  opacity: 1;
  transform: translateY(0);
}

.sec-header-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.sec-tag-chip {
  color: var(--brand-cardinal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.sec-title-large {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.sec-desc-lead {
  color: var(--text-body);
  font-size: clamp(0.98rem, 2vw, 1.1rem);
}

/* Leadership Deans (Crisp Microsoft 4px Micro-Curved Buttons) */
.deans-tabs-minimal {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.dean-btn-minimal {
  background: var(--section-bg);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md); /* 4px micro-curve, NO round pill! */
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
}

.dean-btn-minimal.active, .dean-btn-minimal:hover {
  background: var(--brand-cardinal);
  color: #ffffff;
  border-color: var(--brand-cardinal);
}

.dean-btn-minimal:active {
  transform: scale(0.96);
}

.dean-card-minimal {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); /* 6px micro-curve */
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-subtle);
}

.dean-img-frame img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-md); /* 4px micro-curve */
  border: 1px solid var(--border-light);
}

.dean-title-name {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.dean-title-role {
  color: var(--brand-cardinal);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.dean-quote-text {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-body);
  border-left: 3.5px solid var(--brand-cardinal);
  padding-left: 1.4rem;
  line-height: 1.75;
}

/* Accordion FAQs */
.faq-accordion-group {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); /* 4px micro-curve */
  overflow: hidden;
  transition: var(--transition);
}

.faq-header-btn {
  width: 100%;
  padding: 1.2rem 1.6rem;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
}

.faq-header-btn:hover {
  color: var(--brand-cardinal);
}

.faq-content-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.6rem;
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item-card.active .faq-content-body {
  max-height: 300px;
  padding: 0 1.6rem 1.4rem;
}

/* Mobile Sticky Bottom Action Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  padding: 0.8rem 1.2rem max(0.8rem, env(safe-area-inset-bottom));
  z-index: 3000;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.12);
  justify-content: space-between;
  gap: 1rem;
}

.mobile-bottom-bar a, .mobile-bottom-bar button {
  flex: 1;
  text-align: center;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.7rem 0.8rem;
  min-height: 48px;
  border-radius: var(--radius-md); /* 4px micro-curve */
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
}

/* Footer */
.footer-minimal {
  background: var(--section-bg);
  border-top: 1px solid var(--border-light);
  padding: 4rem 2rem 2.5rem;
  margin-top: 5rem;
  font-size: 0.9rem;
}

.footer-grid-container {
  max-width: 1280px;
  margin: 0 auto 3.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.5rem;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.footer-head-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 0.6rem;
}

.footer-links-list a {
  color: var(--text-body);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  padding: 0.2rem 0;
  min-height: 38px;
}

.footer-links-list a:hover {
  color: var(--brand-cardinal);
}

.footer-bottom-copy {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Drawer Backdrop & Panel */
.portal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 4000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.portal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.portal-drawer-minimal {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  height: 100vh;
  overflow-y: auto;
  padding: 2.5rem 2rem;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
}

.form-group-minimal {
  margin-bottom: 1.4rem;
}

.form-lbl-minimal {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.form-input-minimal, .form-select-minimal, .form-area-minimal {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md); /* 4px micro-curve */
  color: var(--text-dark);
  font-family: inherit;
  font-size: 16px;
  min-height: 48px;
  outline: none;
  transition: var(--transition);
}

.form-input-minimal:focus, .form-select-minimal:focus, .form-area-minimal:focus {
  border-color: var(--brand-cardinal);
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Home Page Gallery Showcase Card & Dedicated Gallery Styles
   ========================================================================== */

/* Home Page Gallery Showcase Card */
.gallery-showcase-card {
  max-width: 1280px;
  margin: 0 auto 3.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); /* 6px subtle micro-curve */
  box-shadow: var(--shadow-card);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}

.gallery-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-green-gradient);
}

.gallery-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.gallery-card-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.5rem;
}

.gallery-card-sub {
  font-size: 0.96rem;
  color: var(--text-body);
  max-width: 680px;
  line-height: 1.6;
}

.gallery-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--brand-cardinal);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-md); /* 4px micro-curve */
}

.gallery-preview-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 180px;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md); /* 4px micro-curve */
  border: 1px solid var(--border-light);
  background: var(--section-bg);
  cursor: pointer;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-tile:hover img {
  transform: scale(1.06);
}

.gallery-tile.tile-lg {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-tile.tile-wide {
  grid-column: span 2;
}

.tile-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 100%);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.gallery-tile:hover .tile-caption {
  transform: translateY(0);
}

.gallery-card-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-light);
}

.gallery-bottom-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-gallery-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--brand-cardinal);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md); /* 4px subtle micro-curve */
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px -2px rgba(0, 100, 0, 0.25);
  min-height: 48px;
}

.btn-gallery-visit:hover {
  background: var(--brand-emerald);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -3px rgba(0, 100, 0, 0.35);
  color: #ffffff;
}

.btn-gallery-visit .btn-arrow-icon {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.btn-gallery-visit:hover .btn-arrow-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   Dedicated School Gallery Page Styles (gallery.html)
   ========================================================================== */

/* Gallery Hero Banner */
.gallery-hero-banner {
  max-width: 1360px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1.5rem;
}

.gallery-banner-inner {
  position: relative;
  width: 100%;
  min-height: 420px;
  border-radius: var(--radius-lg); /* 6px micro-curve */
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-end;
  background: #0f172a;
}

.gallery-banner-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.gallery-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0.92) 100%);
}

.gallery-banner-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2.5rem 2.2rem;
  color: #ffffff;
  max-width: 900px;
}

.gallery-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.gallery-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gallery-banner-quote {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.65;
  color: #f1f5f9;
  max-width: 760px;
  margin-bottom: 1.4rem;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.gallery-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-stats-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

/* Gallery Controls & Category Bar */
.gallery-controls-section {
  max-width: 1360px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.gallery-controls-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.6rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.gallery-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.g-filter-btn {
  background: var(--section-bg);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md); /* 4px micro-curve */
  cursor: pointer;
  transition: var(--transition);
  min-height: 40px;
}

.g-filter-btn.active, .g-filter-btn:hover {
  background: var(--brand-cardinal);
  color: #ffffff;
  border-color: var(--brand-cardinal);
}

.gallery-search-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  min-width: 260px;
}

.gallery-search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.gallery-search-input:focus {
  border-color: var(--brand-cardinal);
  box-shadow: 0 0 0 2px rgba(0, 100, 0, 0.1);
}

.gallery-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

/* Gallery Masonry Collage Grid (Original Ratio Microsoft Tiles) */
.gallery-grid-section {
  max-width: 1360px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.gallery-masonry-grid {
  column-count: 4;
  column-gap: 1.25rem;
}

@media (max-width: 1200px) {
  .gallery-masonry-grid { column-count: 3; }
}

@media (max-width: 800px) {
  .gallery-masonry-grid { column-count: 2; }
}

@media (max-width: 480px) {
  .gallery-masonry-grid { column-count: 1; }
}

.gallery-item-card {
  opacity: 1 !important;
  visibility: visible !important;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md); /* 4px subtle micro-curve */
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.04);
  position: relative;
  cursor: pointer;
}

.gallery-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -4px rgba(0, 100, 0, 0.14);
  border-color: var(--brand-emerald);
}

.gallery-img-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--section-bg);
}

.gallery-item-card img {
  width: 100%;
  height: auto; /* Natural original ratio! */
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item-card:hover img {
  transform: scale(1.035);
}

.gallery-card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item-card:hover .gallery-card-hover-overlay {
  opacity: 1;
}

.gallery-item-meta {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gallery-zoom-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-dark);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.gallery-item-card:hover .gallery-zoom-badge {
  opacity: 1;
  transform: scale(1);
}

/* Load More & Infinite Scroll UI */
.gallery-load-more-box {
  text-align: center;
  margin-top: 3rem;
}

.btn-load-more {
  background: #ffffff;
  border: 1.5px solid var(--brand-cardinal);
  color: var(--brand-cardinal);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 2.2rem;
  border-radius: var(--radius-md); /* 4px micro-curve */
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
}

.btn-load-more:hover {
  background: var(--brand-cardinal);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -3px rgba(0, 100, 0, 0.25);
}

/* Lightbox Modal */
.gallery-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-box {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-main-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.92rem;
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-nav-btn:hover {
  background: var(--brand-cardinal);
  border-color: var(--brand-emerald);
}

.lightbox-prev-btn { left: -60px; }
.lightbox-next-btn { right: -60px; }

@media (max-width: 768px) {
  .gallery-preview-tiles {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-tile.tile-lg {
    grid-column: span 2;
    height: 220px;
  }
  .gallery-tile {
    height: 140px;
  }
  .gallery-tile.tile-wide {
    grid-column: span 2;
    height: 140px;
  }
  .lightbox-prev-btn { left: 10px; }
  .lightbox-next-btn { right: 10px; }
  .gallery-banner-content { padding: 2rem 1.5rem 1.8rem; }
}

@media (max-width: 1180px) {
  .nav-links-list { display: none; }
  .hamburger-toggle { display: flex; }
  .hero-minimal { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; padding: 3rem 1.5rem 2rem; }
  .hero-desc-text { margin: 0 auto 2rem; }
  .hero-media-box img { height: 320px; }
  .ms-tile-grid-3 { grid-template-columns: 1fr; }
  .dean-card-minimal { grid-template-columns: 1fr; text-align: center; gap: 2rem; padding: 2rem 1.5rem; }
  .dean-img-frame img { height: 280px; }
  .spotlight-card-minimal { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; }
  .spotlight-avatar img { height: 220px; }
  .stat-grid-container { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid-container { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .top-utility-bar { padding: 8px 1.5rem; }
  .header-container { padding: 0.8rem 1.5rem; }
}

@media (max-width: 640px) {
  .top-contacts { display: none; }
  .top-utility-bar { justify-content: center; text-align: center; }
  .ai-input-flex { flex-direction: column; }
  .stat-grid-container { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer-grid-container { grid-template-columns: 1fr; gap: 2rem; }
  .hero-heading-main { font-size: 2.2rem; }
  .hero-media-box img { height: 240px; }
  .event-bulletin-card { flex-direction: column; gap: 1rem; padding: 1.4rem; }
  .date-badge-box { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1.2rem; }
  .date-badge-box .day { font-size: 1.3rem; }
  .section-minimal { padding: 3.5rem 1.2rem; }
  .ms-tile-body { padding: 1.5rem; }
  .spotlight-quote { font-size: 1rem; padding-left: 1rem; }
  .brand-title { font-size: 1.15rem; }
  .brand-subtitle { font-size: 0.68rem; }
}

/* ============================================================
   GLOBAL CONTENT SECURITY & ANTI-COPY SHIELD
   ============================================================ */
html, body {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* Allow interactive typing inside form inputs */
input, textarea, select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Protect institutional images from drag-saving */
img, video {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
}

/* Print Prevention: Disables PDF / Paper printing of sensitive school data */
@media print {
  html, body {
    display: none !important;
    visibility: hidden !important;
  }
}
