/* ==========================================================================
   American International School — Macherla - Karempudi
   Colourful Glossy Design System & Premium Interactive Animations
   ========================================================================== */

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

:root {
  --bg-canvas: #f5f8ff;
  --bg-surface: rgba(255, 255, 255, 0.84);
  --bg-surface-strong: rgba(255, 255, 255, 0.95);
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;

  /* Colourful Brand Gradients */
  --grad-royal: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-sunset: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  --grad-violet: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --grad-prism: linear-gradient(120deg, #2563eb 0%, #06b6d4 35%, #8b5cf6 70%, #f97316 100%);

  --shadow-soft: 0 12px 32px -8px rgba(30, 58, 138, 0.12), 0 4px 12px -4px rgba(15, 23, 42, 0.06);
  --shadow-glossy: 0 20px 45px -12px rgba(37, 99, 235, 0.22), 0 8px 20px -6px rgba(6, 182, 212, 0.16), inset 0 1.5px 0 rgba(255, 255, 255, 0.95);
  --shadow-hover: 0 28px 60px -14px rgba(37, 99, 235, 0.30), 0 12px 28px -8px rgba(236, 72, 153, 0.16), inset 0 1.5px 0 rgba(255, 255, 255, 1);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 9999px;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 8% 10%, rgba(56, 189, 248, 0.20) 0%, transparent 38%),
    radial-gradient(circle at 92% 14%, rgba(244, 114, 182, 0.16) 0%, transparent 36%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 18% 82%, rgba(139, 92, 246, 0.14) 0%, transparent 40%),
    var(--bg-canvas);
  background-attachment: fixed;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   Top Utility Strip & Glossy Navbar
   ========================================================================== */

.top-ribbon {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  color: #e2e8f0;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.top-ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
}

.top-ribbon-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.top-ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f8fafc;
  font-weight: 500;
  transition: color 0.25s ease;
}

.top-ribbon-item:hover {
  color: #38bdf8;
}

.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 12px 0;
  transition: all 0.35s var(--ease-spring);
}

.navbar-wrap.scrolled {
  padding: 8px 0;
}

.navbar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 36px -10px rgba(30, 58, 138, 0.18), inset 0 1.5px 0 rgba(255, 255, 255, 1);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-crest {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--grad-prism);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 10px 20px -6px rgba(37, 99, 235, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.65);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-spring);
}

.brand:hover .brand-crest {
  transform: rotate(-6deg) scale(1.06);
}

.brand-crest::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 140%;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink-900);
  white-space: nowrap;
}

.brand-loc {
  font-size: 0.74rem;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-700);
  position: relative;
  transition: all 0.28s var(--ease-spring);
}

.nav-link:hover {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.09);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #fff;
  background: var(--grad-royal);
  box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-900);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ==========================================================================
   Premium Glossy Buttons & Hover Shimmer Animations
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), filter 0.3s ease;
  user-select: none;
  white-space: nowrap;
}

/* Glossy top specular arc */
.btn::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 6%;
  width: 88%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-radius: var(--radius-pill);
  pointer-events: none;
}

/* Hover light sweep */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -110%;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  transition: left 0.65s var(--ease-spring);
  pointer-events: none;
}

.btn:hover::after {
  left: 135%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.025);
}

.btn:active {
  transform: translateY(0px) scale(0.98);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--grad-royal);
  color: #fff;
  box-shadow: 0 14px 28px -8px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-primary:hover {
  box-shadow: 0 20px 36px -8px rgba(37, 99, 235, 0.68), 0 0 24px rgba(6, 182, 212, 0.35);
}

.btn-sunset {
  background: var(--grad-sunset);
  color: #fff;
  box-shadow: 0 14px 28px -8px rgba(236, 72, 153, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-sunset:hover {
  box-shadow: 0 20px 36px -8px rgba(249, 115, 22, 0.62), 0 0 24px rgba(236, 72, 153, 0.35);
}

.btn-emerald {
  background: var(--grad-emerald);
  color: #fff;
  box-shadow: 0 14px 28px -8px rgba(16, 185, 129, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-violet {
  background: var(--grad-violet);
  color: #fff;
  box-shadow: 0 14px 28px -8px rgba(99, 102, 241, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  color: #1e3a8a;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-glass:hover {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.28);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 10px 22px -6px rgba(220, 38, 38, 0.45);
}

/* ==========================================================================
   Glossy Cards, Pills & Section Layout
   ========================================================================== */

.section {
  padding: 84px 0;
  position: relative;
}

.section-sm {
  padding: 56px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad-royal);
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.45), inset 0 1.5px 0 rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}

.section-pill.sunset { background: var(--grad-sunset); box-shadow: 0 8px 20px -6px rgba(236, 72, 153, 0.45), inset 0 1.5px 0 rgba(255, 255, 255, 0.65); }
.section-pill.emerald { background: var(--grad-emerald); box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.45), inset 0 1.5px 0 rgba(255, 255, 255, 0.65); }
.section-pill.violet { background: var(--grad-violet); box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.45), inset 0 1.5px 0 rgba(255, 255, 255, 0.65); }

.section-title {
  font-size: clamp(2rem, 3.6vw, 2.95rem);
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 14px;
}

.gradient-text {
  background: var(--grad-prism);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  font-size: 1.07rem;
  color: var(--ink-700);
}

.glossy-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glossy);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring), border-color 0.3s ease;
}

.glossy-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.0) 42%);
  pointer-events: none;
  z-index: 1;
}

.glossy-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(56, 189, 248, 0.65);
}

/* ==========================================================================
   Hero & Page Banners (Dynamic Customizable Backgrounds)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 72px 0 84px;
  margin: 10px 18px 0;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 64px -18px rgba(15, 23, 42, 0.38);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease-spring), background-image 0.5s ease;
  z-index: 0;
}

.hero:hover .hero-bg {
  transform: scale(1.025);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 58, 138, 0.72) 48%, rgba(14, 165, 233, 0.32) 100%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.25), transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
}

.hero-title {
  font-size: clamp(2.4rem, 4.7vw, 4.1rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  text-shadow: 0 6px 24px rgba(15, 23, 42, 0.45);
}

.hero-title span {
  background: linear-gradient(120deg, #38bdf8 0%, #fbbf24 52%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  color: rgba(241, 245, 249, 0.94);
  margin-bottom: 28px;
  max-width: 610px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stat-pill {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 14px 16px;
  color: #fff;
  transition: transform 0.3s var(--ease-spring), background 0.3s ease;
}

.hero-stat-pill:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-stat-pill strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: #fde047;
}

.hero-stat-pill span {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Right Glass Showcase Panel inside Hero */
.hero-glass-panel {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  border-radius: 28px;
  padding: 26px;
  color: #fff;
  box-shadow: 0 28px 54px -16px rgba(15, 23, 42, 0.5), inset 0 1.5px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.4s var(--ease-spring);
}

.hero-glass-panel:hover {
  transform: translateY(-6px);
}

.pathway-mini-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.pathway-mini-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.28s var(--ease-spring), background 0.28s ease;
}

.pathway-mini-item:hover {
  transform: translateX(6px);
  background: rgba(37, 99, 235, 0.55);
}

.pathway-mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.55);
}

/* Subpage Banner */
.page-banner {
  position: relative;
  margin: 10px 18px 0;
  border-radius: 30px;
  padding: 76px 0 68px;
  overflow: hidden;
  box-shadow: 0 22px 50px -16px rgba(15, 23, 42, 0.34);
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 58, 138, 0.78) 55%, rgba(6, 182, 212, 0.45) 100%);
  z-index: 1;
}

.page-banner-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-banner h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-banner p {
  max-width: 650px;
  color: rgba(241, 245, 249, 0.92);
  font-size: 1.06rem;
}

/* ==========================================================================
   Grids, Academic Cards, Facilities & Sports
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.academic-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.academic-ribbon {
  height: 7px;
  width: 100%;
  border-radius: 99px;
  margin-bottom: 22px;
}

.academic-stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  width: fit-content;
}

.tag-cambridge { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.tag-cbse { background: rgba(249, 115, 22, 0.14); color: #c2410c; }
.tag-scert { background: rgba(16, 185, 129, 0.14); color: #047857; }

.academic-card h3 {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.academic-list {
  list-style: none;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.academic-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.academic-list li::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Feature / Facility Cards with Images */
.media-card {
  display: flex;
  flex-direction: column;
}

.media-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.media-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}

.media-card:hover .media-card-img {
  transform: scale(1.08);
}

.media-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.media-card-body {
  padding: 24px;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.media-card-body h3 {
  font-size: 1.32rem;
  margin-bottom: 8px;
}

.media-card-body p {
  color: var(--ink-700);
  font-size: 0.94rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.glossy-chip {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.81rem;
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 4px 10px -4px rgba(37, 99, 235, 0.16);
  transition: transform 0.25s var(--ease-spring), background 0.25s ease, color 0.25s ease;
}

.glossy-chip:hover {
  transform: translateY(-2px);
  background: var(--grad-royal);
  color: #fff;
  border-color: transparent;
}

/* ==========================================================================
   Leadership Messages (Chairman & CEO)
   ========================================================================== */

.leader-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.leader-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.leader-avatar {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 14px 28px -8px rgba(37, 99, 235, 0.45), inset 0 2px 2px rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.leader-avatar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
}

.leader-role-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.leader-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink-900);
}

.leader-cred {
  font-size: 0.89rem;
  font-weight: 600;
  color: #2563eb;
  margin-top: 3px;
}

.leader-quote {
  position: relative;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-left: 4px solid #2563eb;
  color: var(--ink-700);
  font-size: 0.97rem;
  line-height: 1.72;
}

/* ==========================================================================
   Gallery Grid & Lightbox
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.28s var(--ease-spring);
}

.filter-pill:hover {
  transform: translateY(-2px);
  border-color: #2563eb;
  color: #1d4ed8;
}

.filter-pill.active {
  background: var(--grad-royal);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px -6px rgba(37, 99, 235, 0.5);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.gallery-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-thumb-wrap {
  position: relative;
  height: 235px;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: #e2e8f0;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.09);
}

.gallery-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

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

.gallery-info {
  padding: 18px 20px;
  position: relative;
  z-index: 2;
}

.gallery-info h4 {
  font-size: 1.12rem;
  margin-bottom: 5px;
}

.gallery-info p {
  font-size: 0.89rem;
  color: var(--ink-500);
}

/* ==========================================================================
   Events Cards & Attachments
   ========================================================================== */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
}

.event-card {
  display: flex;
  flex-direction: column;
}

.event-date-pill {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #1e3a8a;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 12px;
  font-size: 0.86rem;
  color: var(--ink-500);
  font-weight: 600;
}

.event-attachment-box {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ==========================================================================
   Forms, Admin Portal & Modals
   ========================================================================== */

.form-panel {
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-900);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.94);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-900);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.form-textarea {
  min-height: 98px;
  resize: vertical;
}

.upload-dropzone {
  border: 2px dashed rgba(37, 99, 235, 0.35);
  border-radius: 16px;
  padding: 18px;
  background: rgba(239, 246, 255, 0.6);
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}

.upload-dropzone:hover {
  border-color: #2563eb;
  background: rgba(219, 234, 254, 0.65);
}

/* Modal & Lightbox */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-dialog {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 32px 72px -12px rgba(15, 23, 42, 0.45);
  border: 1.5px solid #fff;
  position: relative;
  animation: popUp 0.32s var(--ease-spring);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-dialog.wide {
  max-width: 640px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: var(--ink-700);
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: rotate(90deg);
}

.lightbox-content {
  max-width: 920px;
  width: 100%;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 18px;
  color: #fff;
  position: relative;
}

.lightbox-img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
  background: #020617;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: 16px;
  color: #fff;
  font-weight: 600;
  font-size: 0.93rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  box-shadow: 0 18px 36px -8px rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.22);
  animation: slideInRight 0.32s var(--ease-spring);
}

.toast.success { background: var(--grad-emerald); }
.toast.error { background: linear-gradient(135deg, #ef4444 0%, #be123c 100%); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  margin-top: 64px;
  background: linear-gradient(155deg, #0f172a 0%, #172554 55%, #0f172a 100%);
  color: #e2e8f0;
  padding: 64px 0 28px;
  border-radius: 36px 36px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-prism);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 42px;
}

.footer h4 {
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.94rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: #94a3b8;
}

/* ==========================================================================
   Scroll Reveal & Keyframes
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-spring), transform 0.65s var(--ease-spring);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popUp {
  from { opacity: 0; transform: scale(0.92) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1040px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-radius: 22px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25);
    border: 1.5px solid #fff;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .grid-2, .grid-3, .grid-4, .form-grid {
    grid-template-columns: 1fr;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
  }
  .hero, .page-banner {
    margin: 8px 10px 0;
    border-radius: 24px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .brand-name {
    font-size: 0.94rem;
  }
}
