/*
Theme Name: EduTrust — Education Foundation
Theme URI: https://yourtrustwebsite.com
Author: Your Trust Name
Description: A beautiful, animation-rich WordPress theme for Education Trusts. Elementor compatible. Blog & Gallery ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: edutrust
Tags: education, trust, elementor, responsive, blog, gallery
*/

/* ============================================================
   IMPORT FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=Noto+Sans+Kannada:wght@400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette — Deep Indigo × Saffron × Ivory */
  --ink:          #0F1B2D;
  --indigo:       #1B3A6B;
  --indigo-mid:   #2A5298;
  --saffron:      #E07B39;
  --saffron-lt:   #F0A06A;
  --gold:         #C8952A;
  --ivory:        #FAF7F2;
  --cream:        #F2EDE4;
  --sand:         #E8DFD0;
  --muted:        #7A8394;
  --border:       #DDD5C5;
  --white:        #FFFFFF;

  /* Text */
  --text-body:    #2C2C3A;
  --text-muted:   #5E6678;
  --text-light:   #9AA3B2;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-kannada: 'Noto Sans Kannada', sans-serif;

  /* Scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  4rem;
  --fs-hero: clamp(2.8rem, 6vw, 5.5rem);

  /* Spacing */
  --nav-h:     80px;
  --section-y: 100px;
  --radius:    4px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(15,27,45,0.08);
  --shadow-md:  0 8px 32px rgba(15,27,45,0.12);
  --shadow-lg:  0 20px 60px rgba(15,27,45,0.16);
  --shadow-card: 0 4px 24px rgba(15,27,45,0.10);

  /* Transitions */
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }

body {
  background: var(--ivory);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   GRAIN OVERLAY
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.6;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left  { opacity: 0; transform: translateX(-50px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(50px);  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.35s; }
.reveal-d4 { transition-delay: 0.5s; }
.reveal-d5 { transition-delay: 0.65s; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(250,247,242,0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-emblem {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-mid));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(27,58,107,0.35);
  transition: transform 0.3s var(--ease-spring);
}

.site-logo:hover .logo-emblem { transform: rotate(-8deg) scale(1.08); }

.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.logo-tagline {
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-menu a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--saffron);
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}

.nav-menu a:hover,
.nav-menu a.current-menu-item { color: var(--ink); }
.nav-menu a:hover::after,
.nav-menu a.current-menu-item::after { width: 100%; }

.nav-cta {
  background: var(--saffron);
  color: white !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: var(--fs-sm) !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  box-shadow: 0 4px 16px rgba(224,123,57,0.35);
  transition: background 0.3s, transform 0.25s var(--ease-spring), box-shadow 0.3s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--ink) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,27,45,0.25);
  color: white !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Animated background blobs */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: blobFloat 12s ease-in-out infinite;
}

.hero-blob-1 {
  width: 600px; height: 600px;
  background: var(--indigo);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.hero-blob-2 {
  width: 500px; height: 500px;
  background: var(--saffron);
  bottom: -50px; right: 30%;
  animation-delay: -4s;
}

.hero-blob-3 {
  width: 400px; height: 400px;
  background: var(--gold);
  top: 40%; right: -100px;
  animation-delay: -8s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* Diagonal split */
.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
  background: var(--ivory);
  clip-path: polygon(0 0, 96% 0, 100% 100%, 0 100%);
}

.hero-right {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--ink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 60px 60px 80px;
  overflow: hidden;
}

/* Floating particles in hero-right */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(200,149,42,0.3);
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--saffron);
  display: block;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  color: var(--indigo-mid);
  display: block;
}

.hero-sub {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 44px;
}

/* Hero stats strip */
.hero-stats {
  display: flex;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--indigo);
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* Hero image card */
.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}

.hero-image-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-image-card:hover img { transform: scale(1.04); }

/* Floating badge on image */
.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: badgeFloat 4s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.badge-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.badge-text strong {
  display: block;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink);
}

.badge-text span {
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* Decorative corner frame */
.hero-image-wrap::before {
  content: '';
  position: absolute;
  top: -16px; right: -16px;
  width: 80%; height: 80%;
  border: 2px solid rgba(200,149,42,0.35);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
section {
  padding: var(--section-y) 80px;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--saffron);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, var(--fs-3xl));
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--indigo-mid);
}

.section-sub {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 60px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  text-decoration: none;
}

.btn-arrow::after {
  content: '\2192';
  transition: transform 0.25s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(5px); }

.btn-primary {
  background: var(--saffron);
  color: white;
  box-shadow: 0 4px 16px rgba(224,123,57,0.35);
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(15,27,45,0.3);
}

.btn-indigo {
  background: var(--indigo);
  color: white;
  box-shadow: 0 4px 16px rgba(27,58,107,0.35);
}
.btn-indigo:hover {
  background: var(--ink);
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid var(--border);
  color: var(--text-body);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--indigo);
  font-weight: 600;
  padding: 0;
  gap: 8px;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--saffron); }

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   TRUST PILLARS / ABOUT SECTION
   ============================================================ */
.pillars-section { background: var(--cream); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 60px;
  background: var(--border);
}

.pillar-card {
  background: white;
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--saffron));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-card:hover::before { transform: scaleX(1); }

.pillar-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-mid) 100%);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: transform 0.35s var(--ease-spring);
}

.pillar-card:hover .pillar-icon { transform: rotate(-8deg) scale(1.1); }

.pillar-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.pillar-body { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.8; }

/* ============================================================
   PROGRAMS SECTION
   ============================================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.program-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.program-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

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

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

.program-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--saffron);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
}

.program-body { padding: 28px; }

.program-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.program-desc { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }

.program-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.program-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   IMPACT / STATS
   ============================================================ */
.impact-section {
  background: linear-gradient(135deg, var(--ink) 0%, var(--indigo) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.impact-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,149,42,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
  border: 1px solid rgba(255,255,255,0.1);
}

.impact-item {
  padding: 44px 32px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
  transition: background 0.3s;
}

.impact-item:last-child { border-right: none; }
.impact-item:hover { background: rgba(255,255,255,0.05); }

.impact-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  color: var(--saffron-lt);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.impact-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ============================================================
   BLOG / NEWS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

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

.blog-img {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--cream);
}

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

.blog-card:hover .blog-img img { transform: scale(1.06); }

.blog-category {
  position: absolute;
  bottom: 12px; left: 12px;
  background: var(--indigo);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: 12px;
}

.blog-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color 0.25s;
}

.blog-card:hover .blog-title { color: var(--indigo-mid); }

.blog-excerpt { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.75; flex: 1; }
.blog-readmore {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--saffron);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  transition: gap 0.25s;
}
.blog-readmore:hover { gap: 10px; color: var(--indigo); }

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--sand);
}

.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1/2; }

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,27,45,0.8), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  display: flex; align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); }

.gallery-caption {
  color: white;
  font-size: var(--fs-sm);
  font-weight: 500;
  transform: translateY(12px);
  transition: transform 0.4s var(--ease);
}

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

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--cream); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.4s var(--ease);
}

.testimonial-card:hover { transform: translateY(-4px); }

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--saffron);
  opacity: 0.2;
  line-height: 1;
  position: absolute;
  top: 16px; left: 24px;
}

.testimonial-text {
  font-size: var(--fs-md);
  color: var(--text-body);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--indigo), var(--saffron));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  color: var(--ink);
  font-size: var(--fs-sm);
  display: block;
}

.author-role {
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--ink) 100%);
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title { color: white; }
.contact-info .section-sub { color: rgba(255,255,255,0.7); }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.contact-text-val {
  font-size: var(--fs-md);
  color: white;
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: white;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: border-color 0.3s, background 0.3s;
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--saffron);
  background: rgba(255,255,255,0.12);
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 80px 80px 40px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 80px; right: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo-name { color: white; font-size: var(--fs-lg); margin-bottom: 16px; }
.footer-desc { font-size: var(--fs-sm); line-height: 1.8; color: rgba(255,255,255,0.45); max-width: 280px; }

.footer-col-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 24px;
}

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.45);
  transition: color 0.25s;
  display: flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: var(--saffron-lt); }
.footer-links a::before { content: '\25C6'; font-size: 0.35rem; color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--fs-xs);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-socials { display: flex; gap: 12px; }

.social-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.3s var(--ease-spring);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--saffron);
  color: white;
  transform: translateY(-3px);
}

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 80px 80px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--ink) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--ivory);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.page-hero-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron-lt);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}

.page-hero-label::before { content: ''; width: 20px; height: 2px; background: var(--saffron-lt); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, var(--fs-4xl));
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.page-hero-sub {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.25s; }
.breadcrumb a:hover { color: var(--saffron-lt); }
.breadcrumb-sep { opacity: 0.4; }

/* ============================================================
   SINGLE BLOG POST
   ============================================================ */
.post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 80px;
}

.post-content h1, .post-content h2, .post-content h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin-top: 40px;
  margin-bottom: 16px;
}

.post-content p { margin-bottom: 24px; color: var(--text-body); line-height: 1.85; }

.post-content img {
  border-radius: var(--radius-lg);
  margin: 32px 0;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-stack { position: relative; }

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img { width: 100%; display: block; border-radius: var(--radius-lg); }

.about-img-accent {
  position: absolute;
  bottom: -30px; right: -30px;
  width: 45%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--ivory);
}

.about-img-accent img { width: 100%; display: block; }

.founded-badge {
  position: absolute;
  top: 24px; left: -24px;
  background: var(--saffron);
  color: white;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.founded-year {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  display: block;
  line-height: 1;
}

.founded-text { font-size: var(--fs-xs); letter-spacing: 0.08em; opacity: 0.85; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.team-card {
  text-align: center;
  transition: transform 0.4s var(--ease);
}

.team-card:hover { transform: translateY(-6px); }

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  background: var(--cream);
}

.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--indigo), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex; align-items: flex-end; padding: 16px;
  gap: 8px;
}

.team-card:hover .team-overlay { opacity: 1; }

.team-social {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 0.85rem;
  transition: background 0.25s;
  text-decoration: none;
}

.team-social:hover { background: var(--saffron); }

.team-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.team-role { font-size: var(--fs-sm); color: var(--muted); }

/* ============================================================
   WP CONTENT STYLING (Classic editor / Gutenberg)
   ============================================================ */
.entry-content p { margin-bottom: 1.5em; }
.entry-content h2 { font-family: var(--font-display); color: var(--ink); margin: 2em 0 0.75em; }
.entry-content img { border-radius: var(--radius); }
.entry-content ul li { padding-left: 1.5em; position: relative; }
.entry-content ul li::before { content: '\25C6'; position: absolute; left: 0; color: var(--saffron); font-size: 0.4em; top: 0.8em; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}

.page-numbers {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: 600;
  background: white;
  border: 1px solid var(--border);
  color: var(--text-body);
  transition: all 0.25s;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--indigo);
  color: white;
  border-color: var(--indigo);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px rgba(0,0,0,0.8);
  transform: scale(0.9);
  transition: transform 0.4s var(--ease-spring);
}

.lightbox-overlay.active .lightbox-img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.25s, transform 0.25s;
}
.lightbox-close:hover { background: var(--saffron); transform: rotate(90deg); }

/* ============================================================
   STICKY ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: linear-gradient(90deg, var(--indigo), var(--indigo-mid), var(--saffron));
  background-size: 200% 100%;
  animation: barShimmer 6s ease infinite;
  color: white;
  text-align: center;
  padding: 10px 80px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 501;
}

@keyframes barShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.announcement-close {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.7;
  font-size: 1.1rem;
}

/* ============================================================
   COUNTER ANIMATION
   ============================================================ */
.count-up { display: inline-block; }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: white;
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.97); }
  50%       { opacity: 1;   transform: scale(1.02); }
}

.loader-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 2px;
  animation: loaderFill 1.2s var(--ease) forwards;
}

@keyframes loaderFill { from { width: 0; } to { width: 100%; } }

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */
.elementor-section { padding: 0 !important; }
.elementor-section > .elementor-container { max-width: 100%; }

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  html { font-size: 17px; }
  section { padding: 80px 48px; }
  .site-header { padding: 0 48px; }
  .hero-left { padding: 60px 40px 60px 48px; }
  .hero-right { padding: 60px 48px 60px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .site-footer { padding: 60px 48px 32px; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .impact-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  html { font-size: 16px; }
  :root { --section-y: 60px; --nav-h: 64px; }

  .site-header { padding: 0 20px; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(250,247,242,0.98);
    backdrop-filter: blur(20px);
    padding: 0;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open li { border-bottom: 1px solid var(--border); }
  .nav-menu.open a { display: block; padding: 18px 24px; font-size: var(--fs-base); }
  .nav-cta { display: block !important; text-align: center; border-radius: 0 !important; }

  /* Hero stacks */
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-left {
    padding: 60px 20px 40px;
    clip-path: none;
  }
  .hero-right { padding: 40px 20px 60px; }

  /* Sections */
  section { padding: var(--section-y) 20px; }
  .page-hero { padding: calc(var(--nav-h) + 40px) 20px 60px; }

  .pillars-grid { grid-template-columns: 1fr; gap: 2px; }
  .programs-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 1; }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding: 48px 20px 24px; }
  .site-footer::before { left: 20px; right: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .announcement-bar { padding: 10px 48px 10px 20px; font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .impact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-badge { display: none; }
}
