/* ============================================================
   Viswa Seva Sangha Trust — Premium Design System (Vanilla CSS)
   Fonts: Cormorant Garamond (serif) + Inter (sans-serif)
   Color palette: Cream, Soft White, Gold
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors (HSL) */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(0, 0%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(0, 0%, 15%);
  --primary: hsl(270, 50%, 20%);
  /* Deep Elegant Purple */
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-glow: hsl(270, 60%, 40%);
  --primary-deep: hsl(270, 60%, 10%);
  --secondary: hsl(300, 20%, 96%);
  --secondary-foreground: hsl(300, 40%, 20%);
  --muted: hsl(0, 0%, 96%);
  --muted-foreground: hsl(0, 0%, 40%);
  --accent: hsl(300, 70%, 88%);
  --border: hsl(0, 0%, 90%);
  --destructive: hsl(0, 70%, 50%);
  --destructive-foreground: hsl(0, 0%, 100%);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(300, 10%, 98%) 0%, hsl(300, 15%, 95%) 50%, hsl(300, 20%, 92%) 100%);
  --gradient-gold: linear-gradient(135deg, hsl(45, 90%, 60%) 0%, hsl(40, 80%, 45%) 100%);
  --gradient-soft: linear-gradient(180deg, hsl(0, 0%, 100%) 0%, hsl(300, 10%, 97%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100% / 0.9) 0%, hsl(300, 10%, 97% / 0.7) 100%);

  /* Shadows */
  --shadow-soft: 0 2px 8px -2px hsla(300, 30%, 20%, 0.06);
  --shadow-medium: 0 8px 24px -8px hsla(300, 30%, 20%, 0.12);
  --shadow-elegant: 0 20px 60px -20px hsla(300, 100%, 25%, 0.2);
  --shadow-gold: 0 10px 40px -10px hsla(300, 100%, 25%, 0.35);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radius */
  --radius: 0.75rem;

  /* Layout */
  --max-w: 72rem;
  --px: clamp(1rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  font-feature-settings: "kern", "liga";
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---- Layout utilities ---- */
.container-narrow {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

.section-padding {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* ---- Glass effects ---- */
.glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: hsla(0, 0%, 100%, 0.6);
  border: 1px solid hsla(0, 0%, 100%, 0.4);
}

.glass-strong {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: hsla(0, 0%, 100%, 0.8);
  border: 1px solid hsla(0, 0%, 100%, 0.5);
}

/* ---- Gold text gradient ---- */
.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- Gold divider ---- */
.gold-divider {
  height: 1px;
  width: 4rem;
  background: var(--gradient-gold);
  border: none;
  margin: 0;
}

.gold-divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Hover lift ---- */
.hover-lift {
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elegant);
}

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Animations ---- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.animate-fade-in {
  animation: fadeIn 0.7s var(--ease-smooth) both;
}

.animate-scale-in {
  animation: scaleIn 0.4s var(--ease-spring) both;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  text-decoration: none;
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: var(--card);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--secondary);
}

.btn-glass {
  background: hsla(0, 0%, 100%, 0.8);
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-glass:hover {
  background: var(--card);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-md {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===========================================================
   NAVBAR
   =========================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 70px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s var(--ease-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--px);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}

.nav-logo:hover .logo-badge {
  transform: scale(1.08);
}

.logo-badge--sm {
  width: 2rem;
  height: 2rem;
}

.logo-glyph {
  font-family: var(--font-serif);
  color: var(--primary-foreground);
  font-size: 1.125rem;
  line-height: 1;
}

.logo-text {
  line-height: 1.15;
}

.logo-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-sub {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

/* Nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

/* Nav Actions */
.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .nav-actions {
    display: flex;
  }
}

.nav-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  transition: all 0.2s var(--ease-spring);
  text-decoration: none;
}

.nav-btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.nav-btn-outline:hover {
  background: var(--primary);
  color: white;
}

.nav-btn-primary {
  background: var(--primary);
  color: white;
}

.nav-btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 45, 130, 0.2);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
  display: inline-block;
}

.nav-link:hover,
.nav-link--active {
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease-smooth), left 0.3s var(--ease-smooth);
}

.nav-link:hover::after,
.nav-link--active::after {
  width: calc(100% - 2rem);
  left: 1rem;
}

.nav-dot {
  display: none;
}

/* Nav actions */
.nav-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .nav-actions {
    display: flex;
  }
}

.nav-admin-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 0.5rem 0.75rem;
  transition: color 0.3s;
}

.nav-admin-link:hover {
  color: var(--foreground);
}

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--foreground);
  transition: color 0.2s;
}

.hamburger:hover {
  background: var(--secondary);
}

.hamburger-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.hamburger-icon--hidden {
  display: none;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-smooth);
}

.mobile-menu.open {
  max-height: 600px;
}

.mobile-menu-inner {
  padding-top: 0.75rem;
}

.mobile-menu-box {
  background: hsla(0, 0%, 100%, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsla(0, 0%, 100%, 0.5);
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: 0.75rem;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover {
  background: hsla(36, 30%, 94%, 0.6);
}

.mobile-nav-link--active {
  background: var(--secondary);
  color: var(--primary-deep);
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  opacity: 0.07;
}

.hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}

.hero-orb--1 {
  top: 25%;
  left: -8rem;
  width: 24rem;
  height: 24rem;
  background: hsla(42, 78%, 62%, 0.2);
}

.hero-orb--2 {
  bottom: 0;
  right: -8rem;
  width: 30rem;
  height: 30rem;
  background: hsla(35, 60%, 45%, 0.1);
}

.hero-inner {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-inner {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.hero-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: hsla(0, 0%, 100%, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid hsla(35, 60%, 45%, 0.2);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-deep);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-badge svg {
  width: 0.875rem;
  height: 0.875rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-title-gold {
  display: block;
  font-style: italic;
  margin-top: 0.5rem;
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

/* Stats strip */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: hsla(36, 25%, 88%, 0.6);
  border-radius: 1.25rem;
  overflow: hidden;
  margin-top: 6rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-cell {
  background: hsla(40, 38%, 98%, 0.7);
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}

/* ===========================================================
   SECTION HEADERS (reusable)
   =========================================================== */
.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
  font-weight: 500;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 500;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ===================== INNER PAGE HERO ===================== */
.inner-page-hero {
  position: relative;
  height: 60vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
  margin-top: 0;
}

.inner-page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,8,35,0.75) 0%, rgba(20,8,35,0.35) 100%);
  z-index: 1;
}

.inner-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 70px;
  /* Offset for navbar */
}

.text-white {
  color: white !important;
}

.text-white-80 {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ===========================================================
   INSTITUTION CARDS
   =========================================================== */
.institutions-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .institutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .institutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.inst-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(252, 248, 244, 0.7) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.inst-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elegant);
}

.inst-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.inst-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-foreground);
}

.inst-card-category {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.inst-card-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.inst-card-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  flex: 1;
}

.inst-card-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.inst-card-location svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--primary);
  flex-shrink: 0;
}

.inst-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.inst-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary-deep);
  transition: gap 0.25s;
}

.inst-card-link:hover {
  gap: 0.625rem;
}

.inst-card-link svg {
  width: 1rem;
  height: 1rem;
}

/* ===========================================================
   NEWS & EVENTS
   =========================================================== */
.news-section {
  background: var(--gradient-soft);
}

.news-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elegant);
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.news-badge--festival {
  background: hsla(42, 70%, 88%, 0.6);
  color: hsl(35, 55%, 30%);
}

.news-badge--admission {
  background: hsla(200, 70%, 88%, 0.6);
  color: hsl(200, 55%, 25%);
}

.news-badge--announcement {
  background: hsla(270, 40%, 92%, 0.6);
  color: hsl(270, 40%, 35%);
}

.news-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.news-date svg {
  width: 0.875rem;
  height: 0.875rem;
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.news-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* ===========================================================
   VISION & MISSION CARDS
   =========================================================== */
.vm-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .vm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vm-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 248, 244, 0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.5rem;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.vm-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(90, 45, 130, 0.08);
}

.vm-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  margin-bottom: 1.5rem;
}

.vm-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.vm-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
}

.vm-text {
  color: #1f1135;
  font-size: 1.05rem;
  line-height: 1.85;
  font-weight: 450;
}

.vm-list {
  color: #1f1135;
  font-size: 1.05rem;
  line-height: 1.85;
  padding-left: 1.25rem;
  font-weight: 450;
}

.vm-list li {
  list-style: disc;
  margin-bottom: 0.5rem;
}

.vm-list li::marker {
  color: var(--primary);
}

/* ===========================================================
   CHAIRMAN SECTION
   =========================================================== */
.chairman-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1024px) {
  .chairman-grid {
    grid-template-columns: 2fr 3fr;
  }
}

.chairman-img-wrap {
  position: relative;
}

.chairman-img-glow {
  position: absolute;
  inset: -1rem;
  background: var(--gradient-gold);
  opacity: 0.2;
  filter: blur(2rem);
  border-radius: 1.5rem;
}

.chairman-img-inner {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 20px rgba(240, 192, 64, 0.1);
  border: 6px solid #fff;
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}

.chairman-img-inner:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 30px 60px rgba(90, 45, 130, 0.25), 0 0 30px rgba(240, 192, 64, 0.2);
}

.chairman-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chairman-caption {
  position: absolute;
  bottom: -1rem;
  left: 1.5rem;
  right: 1.5rem;
  background: hsla(0, 0%, 100%, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsla(0, 0%, 100%, 0.5);
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-medium);
}

.chairman-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}

.chairman-role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  letter-spacing: 0.1em;
  margin-top: 0.125rem;
}

.chairman-content {
  padding-top: 1rem;
}

.chairman-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
  font-weight: 500;
}

.chairman-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--primary);
  line-height: 1.2;
  margin: 1.25rem 0 1.5rem;
}

.chairman-blockquote {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid hsla(35, 60%, 45%, 0.4);
}

.chairman-blockquote-icon {
  position: absolute;
  left: -0.75rem;
  top: -0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  background: var(--background);
  padding: 0.25rem;
}

.chairman-text {
  color: #1f1135;
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-weight: 450;
}

/* ===========================================================
   LAYOUT & CONTAINERS
   =========================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.container-narrow {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--px);
}

.section-padding {
  padding: 5rem 0;
}

.section-compact {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 0;
  }

  .section-compact {
    padding: 4rem 0;
  }
}

.about-bg-light-purple {
  background: linear-gradient(145deg, #fdfbfd 0%, #f4ecf7 100%);
}

/* ===========================================================
   CTA BANNER
   =========================================================== */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--gradient-gold);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-elegant);
}

@media (min-width: 768px) {
  .cta-banner {
    padding: 4rem;
  }
}

.cta-banner-orb {
  position: absolute;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.35);
  filter: blur(3rem);
  pointer-events: none;
}

.cta-banner-orb--1 {
  top: 0;
  left: 0;
  width: 16rem;
  height: 16rem;
}

.cta-banner-orb--2 {
  bottom: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: hsla(0, 0%, 100%, 0.25);
}

.cta-content {
  position: relative;
}

.cta-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  color: hsla(40, 38%, 98%, 0.9);
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--primary-foreground);
  margin-bottom: 1rem;
}

.cta-desc {
  color: hsla(40, 38%, 98%, 0.9);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.btn-white {
  background: white;
  color: var(--primary-deep);
  box-shadow: var(--shadow-medium);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant);
}

/* ===========================================================
   PAGE HERO (About, Gallery, Contact, Institutions)
   =========================================================== */
.page-hero {
  padding-bottom: 4rem;
}

.page-hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary);
  font-weight: 500;
}

.page-hero-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 500;
  margin: 1.25rem 0 1.25rem;
  line-height: 1.05;
}

.page-hero-desc {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  max-width: 42rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  padding: 2rem 0 1.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--primary-deep);
}

.breadcrumbs-sep {
  font-size: 0.625rem;
  opacity: 0.5;
}

.breadcrumbs span {
  color: var(--foreground);
}

/* ===========================================================
   ABOUT PAGE
   =========================================================== */
.about-bg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-bg-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.about-bg-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--primary);
  line-height: 1.2;
}

.about-bg-body {
  color: #1f1135;
  font-size: 1.05rem;
  line-height: 1.85;
  font-weight: 450;
}

.about-bg-body p+p {
  margin-top: 1.25rem;
}

.about-bg-img-wrap {
  position: relative;
}
.about-bg-img-inner {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 20px rgba(240, 192, 64, 0.1);
  border: 6px solid #fff;
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}
.about-bg-img-inner:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 30px 60px rgba(90, 45, 130, 0.25), 0 0 30px rgba(240, 192, 64, 0.2);
}
.about-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trustees-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .trustees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .trustees-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trustee-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(252, 248, 244, 0.7) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}

.trustee-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(90, 45, 130, 0.1);
}

.trustee-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  margin: 0 auto 0.75rem;
}

.trustee-avatar svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary-foreground);
}

.trustee-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
}

.trustee-role {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ===========================================================
   GALLERY PAGE
   =========================================================== */
.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elegant);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-smooth);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(30, 15%, 15%, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.gallery-item-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  color: var(--primary-foreground);
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-serif);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.4s, transform 0.4s var(--ease-smooth);
}

.gallery-item:hover .gallery-item-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: hsla(30, 15%, 15%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
  animation: fadeIn 0.3s var(--ease-smooth);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid hsla(0, 0%, 100%, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  z-index: 101;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.lightbox-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox-inner {
  max-width: 64rem;
  width: 100%;
  animation: scaleIn 0.3s var(--ease-spring);
}

.lightbox-inner img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 1rem;
}

.lightbox-caption {
  text-align: center;
  color: var(--primary-foreground);
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
}

/* ===========================================================
   CONTACT PAGE
   =========================================================== */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.contact-form-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(252, 248, 244, 0.7) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .contact-form-card {
    padding: 2.5rem;
  }
}

.form-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: hsla(40, 38%, 98%, 0.6);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(35, 60%, 45%, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(252, 248, 244, 0.7) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 1rem;
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}

.contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elegant);
}

.contact-info-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-foreground);
}

.contact-info-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-info-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  white-space: pre-line;
}

.map-wrap {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border);
  aspect-ratio: 16/8;
  margin-top: 3rem;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===========================================================
   INSTITUTION DETAIL PAGE
   =========================================================== */
.inst-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--gradient-hero);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .inst-hero-card {
    padding: 4rem;
  }
}

.inst-hero-orb {
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: hsla(42, 78%, 62%, 0.2);
  filter: blur(3rem);
  pointer-events: none;
}

.inst-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.inst-hero-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}

.inst-hero-icon-wrap svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary-foreground);
}

.inst-hero-category {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  font-weight: 500;
}

.inst-hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.inst-hero-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
}

.inst-hero-location svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.inst-detail-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 1024px) {
  .inst-detail-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.inst-highlights-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(252, 248, 244, 0.7) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 7rem;
}

.inst-highlights-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.inst-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inst-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.inst-highlight-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.glimpses-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
  .glimpses-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.glimpse-item {
  aspect-ratio: 4/5;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}

.glimpse-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elegant);
}

.glimpse-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-smooth);
}

.glimpse-item:hover img {
  transform: scale(1.05);
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  margin-top: 8rem;
  background: var(--primary);
  color: white;
}

.footer-inner {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 26rem;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: white;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

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

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #f0c040;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-motto {
  font-family: var(--font-serif);
  color: #f0c040;
}

/* ===========================================================
   404 PAGE
   =========================================================== */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--px);
}

.error-code {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
}

.error-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  margin: 1rem 0;
}

.error-desc {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* ===========================================================
   TOAST NOTIFICATION
   =========================================================== */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.875rem;
  box-shadow: var(--shadow-elegant);
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: auto;
  animation: fadeIn 0.4s var(--ease-spring);
  max-width: 22rem;
  backdrop-filter: blur(12px);
}

.toast--success {
  background: hsla(142, 70%, 95%, 0.95);
  color: hsl(142, 50%, 25%);
  border: 1px solid hsl(142, 40%, 85%);
}

.toast--error {
  background: hsla(0, 70%, 95%, 0.95);
  color: hsl(0, 55%, 30%);
  border: 1px solid hsl(0, 40%, 85%);
}

.toast-hide {
  animation: none;
  opacity: 0;
  transition: opacity 0.3s;
}

/* ===========================================================
   PAGE TRANSITIONS
   =========================================================== */
main {
  padding-top: 5rem;
}

/* Utility spacers */
.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.pb-8 {
  padding-bottom: 2rem;
}

.pb-16 {
  padding-bottom: 4rem;
}

.pb-32 {
  padding-bottom: 8rem;
}

.text-center {
  text-align: center;
}

/* ===========================================================
   EVENTS PAGE
   =========================================================== */
.events-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.625rem 1.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  transition: all 0.3s var(--ease-smooth);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gradient-gold);
  border-color: transparent;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-gold);
}

.events-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .events-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .events-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.event-item-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
  height: 100%;
}

.event-item-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elegant);
}

.event-card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

.event-item-card:hover .event-card-media img {
  transform: scale(1.06);
}

.event-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.event-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: white;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-medium);
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 3.25rem;
}

.event-date-month {
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.event-date-day {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.1;
}

.event-cat-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.event-cat--festival {
  background: hsla(45, 90%, 60%, 0.9);
  color: hsl(35, 55%, 15%);
}

.event-cat--admission {
  background: hsla(200, 80%, 55%, 0.9);
  color: white;
}

.event-cat--announcement {
  background: hsla(270, 60%, 45%, 0.9);
  color: white;
}

.event-card-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-meta-time {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.event-meta-time svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--primary);
}

.event-card-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
  transition: color 0.3s;
}

.event-item-card:hover .event-card-title {
  color: var(--primary-glow);
}

.event-card-excerpt {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.event-card-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: auto;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  max-width: 60%;
}

.event-location svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--primary);
  flex-shrink: 0;
}

.event-location span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-action-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: gap 0.2s;
}

.event-action-link:hover {
  gap: 0.5rem;
}

.event-action-link svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* Event Modals */
.event-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: hsla(270, 100%, 5%, 0.5);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-modal.open {
  display: flex;
  opacity: 1;
}

.event-modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  max-width: 32rem;
  width: 100%;
  box-shadow: var(--shadow-elegant);
  position: relative;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-spring);
}

.event-modal.open .event-modal-box {
  transform: scale(1);
}

.event-modal-banner {
  aspect-ratio: 16/9;
  position: relative;
}

.event-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s;
}

.event-modal-close:hover {
  transform: scale(1.1);
}

.event-modal-body {
  padding: 2rem;
}

.event-modal-cat {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.event-modal-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.event-modal-details-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: var(--gradient-soft);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.event-modal-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.event-modal-detail-item svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--primary);
}

.event-modal-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: hsl(270, 10%, 20%);
  margin-bottom: 1.75rem;
}

.event-modal-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  background: var(--gradient-gold);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  box-shadow: var(--shadow-gold);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.event-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-hover, 0 12px 24px -6px hsla(40, 100%, 25%, 0.45));
}

.no-events-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  max-width: 36rem;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.no-events-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 1.5rem;
}

.no-events-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.no-events-desc {
  color: var(--muted-foreground);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}