/* ============================================================
   Quick Research — Design System v4  (All-Light Pastel)
   Palette: Ink #0F172A | Navy #1B3478 | Blue #2563C4 | Body #475569
   Hero: White + floating pastel blobs
   Cards: Mint / Lavender / Sky / Cream per nth-child
   ============================================================ */

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

/* ── Custom Properties ── */
:root {
  /* Brand */
  --ink:        #0F172A;
  --navy:       #1B3478;
  --blue:       #2563C4;
  --sky:        #5B9CF6;

  /* Light palette */
  --bg:         #F8FAFC;
  --white:      #FFFFFF;
  --off:        #F1F5F9;
  --soft:       #EEF2FF;
  --border:     #E2E8F0;
  --body:       #475569;
  --muted:      #64748B;

  /* Pastel card colors */
  --mint:       #F0FDF4;
  --mint-b:     #BBF7D0;
  --lavender:   #F5F3FF;
  --lavender-b: #C4B5FD;
  --sky-p:      #EFF6FF;
  --sky-b:      #BFDBFE;
  --cream:      #FFFBEB;
  --cream-b:    #FDE68A;

  /* Blob colors */
  --blob1:      rgba(219,234,254,0.95);   /* sky-blue */
  --blob2:      rgba(196,181,253,0.8);    /* violet */
  --blob3:      rgba(167,243,208,0.75);   /* mint-green */
  --blob4:      rgba(253,230,138,0.65);   /* soft gold */

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0,0,0,.04);
  --shadow-sm:  0 2px 10px rgba(0,0,0,.06);
  --shadow-md:  0 6px 24px rgba(0,0,0,.09);
  --shadow-lg:  0 16px 56px rgba(0,0,0,.12);

  /* Shape */
  --r:          16px;
  --r-sm:       10px;
  --r-pill:     999px;

  /* Motion */
  --ease:       cubic-bezier(.4,0,.2,1);
  --t:          .28s;

  /* Layout */
  --nav-h:      72px;
}

/* ── Base ── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--body); background: var(--white);
  line-height: 1.7; overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--ink); line-height: 1.15; font-weight: 700;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Layout ── */
.container    { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section      { padding: 100px 0; }
.section-sm   { padding: 64px 0; }
.two-col      { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.three-col    { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.four-col     { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.two-col-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.text-center  { text-align: center; }
.text-center .section-subtext { margin: 0 auto; }

/* ── Typography ── */
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .69rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue); background: var(--soft);
  border: 1px solid rgba(37,99,196,.18);
  padding: 5px 14px; border-radius: var(--r-pill); margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}
.section-tag::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
}
.section-heading {
  font-size: clamp(1.85rem, 3.5vw, 2.7rem);
  color: var(--ink); margin-bottom: 16px; letter-spacing: -.015em;
}
.section-subtext {
  font-size: 1.02rem; color: var(--muted);
  max-width: 600px; line-height: 1.8;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600; font-family: 'Inter', sans-serif;
  letter-spacing: .01em; cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              background var(--t) var(--ease),
              border-color var(--t) var(--ease),
              color var(--t) var(--ease);
  text-decoration: none; white-space: nowrap; position: relative; overflow: hidden;
}
.btn svg {
  width: 16px; height: 16px; flex-shrink: 0;
  transition: transform .22s var(--ease);
}
.btn:hover svg { transform: translateX(3px); }

/* Navy solid — primary action */
.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 3px 14px rgba(27,52,120,.28);
}
.btn-primary:hover {
  background: #142b6a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27,52,120,.38);
}
.btn-primary:active { transform: translateY(0); }

/* Dark outline for light backgrounds */
.btn-outline-dark {
  background: transparent; color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,52,120,.22);
}

/* White outline for dark backgrounds (footer / overlays) */
.btn-outline {
  background: rgba(255,255,255,.08); color: #fff;
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
}

/* Soft ghost */
.btn-ghost {
  background: var(--soft); color: var(--navy); border-color: var(--border);
}
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* White solid (for dark sections) */
.btn-white {
  background: #fff; color: var(--navy);
  box-shadow: 0 4px 18px rgba(0,0,0,.14);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Ghost for dark bg (legacy) */
.btn-glass {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
}

/* ── Scroll progress ── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 9999;
  background: linear-gradient(90deg, var(--navy), var(--sky));
  width: 0; transition: width .1s linear;
}

/* ═══════════════════════════════════════════════
   NAVBAR  — always light/dark-text
═══════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              height var(--t) var(--ease);
}
#navbar.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 4px 24px rgba(0,0,0,.07);
  height: 62px;
  border-bottom-color: transparent;
}
.nav-inner {
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding: 0 28px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img {
  height: 46px; transition: height var(--t) var(--ease);
  /* No filter — logo shows in original colors on light nav */
}
#navbar.scrolled .nav-logo img { height: 40px; }

/* Links */
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links li a {
  padding: 8px 13px; border-radius: 8px;
  font-size: .875rem; font-weight: 500; font-family: 'Inter', sans-serif;
  color: var(--body); transition: all var(--t) var(--ease);
}
.nav-links li a:hover,
.nav-links li a.active {
  background: var(--soft); color: var(--navy);
}
.nav-cta {
  background: var(--navy) !important;
  border: 1.5px solid var(--navy) !important;
  color: #fff !important; font-weight: 600 !important;
  border-radius: var(--r-pill) !important;
  padding: 8px 20px !important; margin-left: 8px;
  box-shadow: 0 3px 14px rgba(27,52,120,.22);
  transition: all var(--t) var(--ease) !important;
}
.nav-cta:hover {
  background: #142b6a !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(27,52,120,.32) !important;
}

/* Mobile nav panel — HIDDEN on desktop entirely */
#nav-panel { display: none; }
.nav-panel-header { display: none; }
.nav-panel-links { display: none; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: 8px; cursor: pointer;
  background: var(--off);
  border: 1.5px solid var(--border);
  transition: all var(--t);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 4px;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay — above page content, below the sliding panel */
.nav-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(5,10,30,.5); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .38s var(--ease), visibility .38s;
}
.nav-overlay.visible { opacity: 1; visibility: visible; }

/* ═══════════════════════════════════════════════
   HOME HERO  — white background + animated blobs
═══════════════════════════════════════════════ */
.hero-home {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: var(--nav-h);
  background: #FFFFFF;
}

/* Subtle dot-grid pattern */
.hero-home::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(37,99,196,.1) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* Floating pastel blob orbs */
.hero-bg-circles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-circle { position: absolute; border-radius: 50%; filter: blur(60px); }

.hc1 {
  width: 600px; height: 600px;
  background: var(--blob1);
  top: -160px; right: -100px;
  will-change: transform;
}
.hc2 {
  width: 450px; height: 450px;
  background: var(--blob2);
  bottom: -120px; left: -80px;
  will-change: transform;
}
.hc3 {
  width: 320px; height: 320px;
  background: var(--blob3);
  top: 30%; right: 20%;
  will-change: transform;
}
.hc4 {
  width: 250px; height: 250px;
  background: var(--blob4);
  top: 10%; left: 15%;
  will-change: transform;
}

/* Keep hero-orb class for JS parallax */
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; will-change: transform; }

/* blobFloat only for touch devices (JS drives it on desktop) */
@keyframes blobFloat {
  0%   { transform: translate(0px,   0px)  scale(1); }
  25%  { transform: translate(20px, -30px) scale(1.04); }
  50%  { transform: translate(-15px, 20px) scale(0.97); }
  75%  { transform: translate(25px,  10px) scale(1.02); }
  100% { transform: translate(0px,   0px)  scale(1); }
}
@media (hover: none) {
  .hc1 { animation: blobFloat 12s ease-in-out infinite; }
  .hc2 { animation: blobFloat 16s ease-in-out infinite reverse 2s; }
  .hc3 { animation: blobFloat 10s ease-in-out infinite 4s; }
  .hc4 { animation: blobFloat 14s ease-in-out infinite reverse 1s; }
}

.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
  position: relative; z-index: 2; padding: 64px 0;
}

/* Hero tag */
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .69rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); background: var(--soft);
  border: 1px solid rgba(37,99,196,.2);
  padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 28px;
  font-family: 'Inter', sans-serif;
}
.hero-tag svg { color: var(--blue); width: 14px; height: 14px; }

/* Headline */
.hero-headline {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800; color: var(--ink);
  line-height: 1.08; letter-spacing: -.025em; margin-bottom: 26px;
}
.hero-headline span[style] {
  color: var(--blue) !important;
  font-style: italic;
}

.hero-sub {
  font-size: 1.06rem; color: var(--muted);
  line-height: 1.78; max-width: 520px; margin-bottom: 44px;
}

/* CTA row */
.hero-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

/* Chips */
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chip {
  font-size: .74rem; font-weight: 500; font-family: 'Inter', sans-serif;
  padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--off); color: var(--muted);
  border: 1px solid var(--border); letter-spacing: .01em;
}

/* Hero cards (right column) — premium hover handled by JS */
.hero-visual { display: flex; flex-direction: column; gap: 14px; }
.hero-vis-card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(37,99,196,.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 20px; padding: 26px 28px;
  cursor: default;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  will-change: transform;
  isolation: isolate;
  /* transition only for non-JS states */
  transition: box-shadow .35s ease, border-color .35s ease;
}
.hero-vis-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: background .35s ease;
}
.hero-vis-icon svg { width: 20px; height: 20px; stroke: var(--navy); transition: stroke .35s ease; }
.hero-vis-card h4 {
  color: var(--ink); font-size: 1rem; font-weight: 700;
  margin-bottom: 6px; font-family: 'Inter', sans-serif;
}
.hero-vis-card p { font-size: .855rem; color: var(--muted); line-height: 1.6; }

/* Stat pills */
.visual-stat-pill { display: none; }

/* ═══════════════════════════════════════════════
   STATS BAND  — light with border
═══════════════════════════════════════════════ */
.stats-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
}
.stat-item {
  text-align: center; padding: 20px 16px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  display: block; font-family: 'Inter', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800;
  color: var(--navy); letter-spacing: -.03em; line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: .75rem; color: var(--muted);
  font-family: 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
}

/* ═══════════════════════════════════════════════
   CARDS (generic)
═══════════════════════════════════════════════ */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px 28px;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
  will-change: transform;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg); border-color: rgba(37,99,196,.18);
}

/* Pastel per-card colors on service cards */
.service-card:nth-child(1) {
  background: var(--mint);
  border-color: var(--mint-b);
}
.service-card:nth-child(2) {
  background: var(--lavender);
  border-color: var(--lavender-b);
}
.service-card:nth-child(3) {
  background: var(--sky-p);
  border-color: var(--sky-b);
}
.service-card:nth-child(4) {
  background: var(--cream);
  border-color: var(--cream-b);
}
.service-card { border-width: 1.5px; }

/* Icon wrap */
.icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
  transition: background var(--t) var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.icon-wrap svg { width: 22px; height: 22px; stroke: var(--navy); transition: stroke var(--t); }
.card:hover .icon-wrap { background: var(--navy); box-shadow: none; }
.card:hover .icon-wrap svg { stroke: #fff; }

.card h3 {
  font-size: 1.02rem; font-weight: 700; color: var(--ink);
  margin-bottom: 10px; font-family: 'Inter', sans-serif;
}
.card p {
  font-size: .88rem; color: var(--body); line-height: 1.7; margin-bottom: 20px;
}

.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--blue);
  font-family: 'Inter', sans-serif;
  transition: gap .22s var(--ease), color var(--t);
}
.read-more svg { width: 14px; height: 14px; }
.read-more:hover { gap: 11px; color: var(--navy); }

/* ═══════════════════════════════════════════════
   ABOUT IMAGE BLOCK
═══════════════════════════════════════════════ */
.about-img-block {
  background: linear-gradient(135deg, var(--navy), #2D5FBF);
  border-radius: 24px;
  padding: 48px 40px; position: relative; overflow: hidden;
  min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
}
.aib-pattern {
  position: absolute; inset: 0; opacity: .04;
  background-image: radial-gradient(circle, rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 26px 26px;
}
.aib-badge {
  position: absolute; top: 32px; right: 28px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px); border-radius: 16px;
  padding: 16px 20px; text-align: center;
}
.aib-badge strong {
  display: block; font-size: 1.9rem; font-weight: 800;
  color: #fff; font-family: 'Inter', sans-serif; line-height: 1;
}
.aib-badge span {
  font-size: .7rem; color: rgba(255,255,255,.65);
  font-family: 'Inter', sans-serif; line-height: 1.4; margin-top: 4px; display: block;
}
.about-img-block h3 { font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.about-img-block p { font-size: .9rem; color: rgba(255,255,255,.6); line-height: 1.65; }

/* Expertise pills */
.expertise-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
.expertise-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--soft); border: 1px solid rgba(37,99,196,.2);
  font-size: .82rem; font-weight: 500; color: var(--navy);
  font-family: 'Inter', sans-serif;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.expertise-pill svg { width: 14px; height: 14px; stroke: var(--blue); transition: stroke var(--t); }
.expertise-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.expertise-pill:hover svg { stroke: #fff; }

/* ═══════════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════════ */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.process-step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px 24px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37,99,196,.2); }
.process-num {
  font-size: 2.8rem; font-weight: 800; font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 18px; display: block;
}
.process-step h4 {
  font-size: .95rem; font-weight: 700; color: var(--ink);
  margin-bottom: 8px; font-family: 'Inter', sans-serif;
}
.process-step p { font-size: .87rem; color: var(--muted); line-height: 1.65; }

/* ═══════════════════════════════════════════════
   FEATURE LIST
═══════════════════════════════════════════════ */
.feature-list { display: flex; flex-direction: column; gap: 24px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.fi-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--soft); display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.fi-icon svg { width: 20px; height: 20px; stroke: var(--navy); transition: stroke var(--t); }
.feature-item:hover .fi-icon { background: var(--navy); }
.feature-item:hover .fi-icon svg { stroke: #fff; }
.feature-item h4 {
  font-size: .95rem; font-weight: 700; color: var(--ink);
  margin-bottom: 4px; font-family: 'Inter', sans-serif;
}
.feature-item p { font-size: .87rem; color: var(--muted); line-height: 1.65; }

/* ═══════════════════════════════════════════════
   CTA BANNER  — soft lavender/blue gradient
═══════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 50%, #EFF6FF 100%);
  border-top: 1px solid rgba(196,181,253,.4);
  border-bottom: 1px solid rgba(196,181,253,.4);
  padding: 100px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 80% at 10% 50%, rgba(196,181,253,.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(147,197,253,.3) 0%, transparent 60%);
}
.cta-banner h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem); color: var(--ink); margin-bottom: 16px;
}
.cta-banner p {
  font-size: 1.04rem; color: var(--body);
  margin-bottom: 44px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.75;
}
.btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════
   PAGE HERO (inner pages: about, services, contact)
   Light gradient instead of dark navy
═══════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 50%, #F0FDF4 100%);
  padding: 160px 0 100px;
  text-align: center; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(37,99,196,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 70% at 15% 50%, rgba(196,181,253,.4) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 85% 50%, rgba(147,197,253,.35) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }

/* Decorative shapes from PHP */
.shape { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(48px); }
.shape-1 {
  width: 500px; height: 500px; top: -120px; right: -80px;
  background: rgba(196,181,253,.5);
}
.shape-2 {
  width: 300px; height: 300px; bottom: -60px; left: -60px;
  background: rgba(147,197,253,.45);
}
.shape-3 {
  width: 180px; height: 180px; top: 40%; left: 20%;
  background: rgba(167,243,208,.4);
}

.page-hero-content { position: relative; z-index: 2; }
.page-hero-tag {
  display: inline-block;
  font-size: .69rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); background: rgba(37,99,196,.1);
  border: 1px solid rgba(37,99,196,.22);
  padding: 6px 16px; border-radius: var(--r-pill); margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--ink);
  margin-bottom: 20px; letter-spacing: -.02em;
}
.page-hero p {
  font-size: 1.06rem; color: var(--body);
  max-width: 580px; margin: 0 auto 28px; line-height: 1.75;
}

/* Breadcrumb — override inline white color for light hero */
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-family: 'Inter', sans-serif;
  color: var(--muted) !important;
}
.breadcrumb a { color: var(--body) !important; transition: color var(--t); }
.breadcrumb a:hover { color: var(--navy) !important; }
.breadcrumb svg { width: 14px; height: 14px; stroke: var(--muted); }
/* Override any PHP inline color on breadcrumb span */
.breadcrumb span[style] { color: var(--muted) !important; }
/* Also specifically target the "Home" and separator spans */
.page-hero .breadcrumb,
.page-hero .breadcrumb * { color: var(--muted) !important; }
.page-hero .breadcrumb a:hover { color: var(--navy) !important; }

/* ═══════════════════════════════════════════════
   ABOUT PAGE SPECIFICS
═══════════════════════════════════════════════ */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.mv-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  padding: 36px 32px; transition: all var(--t) var(--ease);
}
.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37,99,196,.2); }
.mv-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--soft); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  transition: background var(--t);
}
.mv-icon svg { width: 22px; height: 22px; stroke: var(--navy); transition: stroke var(--t); }
.mv-card:hover .mv-icon { background: var(--navy); }
.mv-card:hover .mv-icon svg { stroke: #fff; }
.mv-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; font-family: 'Inter', sans-serif; }
.mv-card p { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* Team */
.team-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  padding: 32px; text-align: center; transition: all var(--t) var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%; background: var(--soft);
  margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; color: var(--navy); font-family: 'Playfair Display', serif;
}
.team-card h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; font-family: 'Inter', sans-serif; }
.team-role { font-size: .82rem; color: var(--blue); font-weight: 600; margin-bottom: 12px; font-family: 'Inter', sans-serif; }
.team-bio { font-size: .86rem; color: var(--muted); line-height: 1.65; }

/* Values */
.value-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r);
  padding: 28px 24px; transition: all var(--t) var(--ease);
}
.value-card:hover { background: var(--white); transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(37,99,196,.18); }
.value-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--soft); display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  transition: background var(--t);
}
.value-icon svg { width: 18px; height: 18px; stroke: var(--navy); transition: stroke var(--t); }
.value-card:hover .value-icon { background: var(--navy); }
.value-card:hover .value-icon svg { stroke: #fff; }
.value-card h4 { font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; font-family: 'Inter', sans-serif; }
.value-card p { font-size: .86rem; color: var(--muted); line-height: 1.65; }

/* ═══════════════════════════════════════════════
   ACADEMIC SERVICES PAGE
═══════════════════════════════════════════════ */
.services-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start;
}
.services-sticky-sidebar {
  position: sticky; top: calc(var(--nav-h) + 20px);
  background: var(--navy); border-radius: 20px; padding: 32px; color: #fff;
}
.services-sticky-sidebar h3 { font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.services-sticky-sidebar p { font-size: .87rem; color: rgba(255,255,255,.58); margin-bottom: 24px; line-height: 1.65; }
.sidebar-feature { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sidebar-feature svg { width: 16px; height: 16px; stroke: var(--sky); flex-shrink: 0; }
.sidebar-feature span { font-size: .85rem; color: rgba(255,255,255,.72); font-family: 'Inter', sans-serif; }
.sidebar-btn {
  width: 100%; margin-top: 24px; justify-content: center;
}

/* Service detail cards */
.service-detail-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  padding: 36px 32px; transition: all var(--t) var(--ease);
}
.service-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37,99,196,.18); }
.sdc-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  transition: background var(--t);
}
.sdc-icon svg { width: 24px; height: 24px; stroke: var(--navy); transition: stroke var(--t); }
.service-detail-card:hover .sdc-icon { background: var(--navy); }
.service-detail-card:hover .sdc-icon svg { stroke: #fff; }
.service-detail-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; font-family: 'Inter', sans-serif; }
.service-detail-card p { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tag-pill {
  font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--soft); color: var(--navy); border: 1px solid rgba(37,99,196,.18);
  font-family: 'Inter', sans-serif;
}

/* Accordion */
.accordion-list { display: flex; flex-direction: column; gap: 10px; }
.accordion-item {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.accordion-item.open { border-color: rgba(27,52,120,.25); box-shadow: var(--shadow-md); }
.accordion-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer;
  transition: background var(--t); user-select: none;
}
.accordion-item.open .accordion-header { background: var(--navy); }
.acc-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--soft); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--navy); font-family: 'Inter', sans-serif;
  transition: all var(--t);
}
.accordion-item.open .acc-num { background: rgba(255,255,255,.15); color: #fff; }
.accordion-header h3 {
  font-size: .95rem; font-weight: 600; color: var(--ink); flex: 1;
  font-family: 'Inter', sans-serif; transition: color var(--t);
}
.accordion-item.open .accordion-header h3 { color: #fff; }
.acc-arrow {
  width: 18px; height: 18px; stroke: var(--muted); flex-shrink: 0;
  transition: transform .35s var(--ease), stroke var(--t);
}
.accordion-item.open .acc-arrow { transform: rotate(180deg); stroke: rgba(255,255,255,.65); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.4,0,.2,1); }
.accordion-item.open .accordion-body { max-height: 2400px; }
.accordion-body-inner { padding: 0 24px 24px; }
.accordion-body-inner p { font-size: .9rem; color: var(--muted); line-height: 1.75; }
.accordion-body-inner ul { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.accordion-body-inner ul li {
  font-size: .88rem; color: var(--muted);
  display: flex; align-items: flex-start; gap: 8px;
}
.accordion-body-inner ul li::before {
  content: '→'; color: var(--blue); flex-shrink: 0; font-size: .8rem; margin-top: 2px;
}

/* ═══════════════════════════════════════════════
   NGO PAGE
═══════════════════════════════════════════════ */
.ngo-stat-strip { background: var(--navy); padding: 56px 0; }
.ngo-stat-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.ngo-stat-item {
  text-align: center; padding: 16px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.ngo-stat-item:last-child { border-right: none; }

/* ═══════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════ */
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px;
  transition: all var(--t) var(--ease);
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.t-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.t-stars svg { width: 16px; height: 16px; fill: #f59e0b; stroke: none; }
.t-quote { font-size: .92rem; color: var(--muted); line-height: 1.78; margin-bottom: 20px; font-style: italic; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--soft);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; color: var(--navy); font-family: 'Inter', sans-serif;
}
.t-name { font-size: .88rem; font-weight: 700; color: var(--ink); font-family: 'Inter', sans-serif; }
.t-title { font-size: .78rem; color: var(--muted); }

/* ═══════════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════════ */
.contact-form-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 44px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--ink); margin-bottom: 7px; font-family: 'Inter', sans-serif;
  letter-spacing: .01em;
}
.form-group label span { color: #dc2626; }
.form-group input,
.form-group textarea,
.form-group select,
.form-group .form-control {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-family: 'Inter', sans-serif; font-size: .9rem; color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  outline: none; -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-group .form-control:focus {
  border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,99,196,.1);
}
.form-group input.error,
.form-group textarea.error,
.form-group select.error,
.form-group .form-control.error { border-color: #dc2626; background: #fff5f5; }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; margin-top: 8px; padding: 15px; font-size: .92rem; justify-content: center; }

/* Contact info */
.c-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.c-info-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--soft);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.c-info-icon svg { width: 18px; height: 18px; stroke: var(--navy); }
.c-info-item h4 { font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; font-family: 'Inter', sans-serif; }
.c-info-item p,
.c-info-item a { font-size: .87rem; color: var(--muted); transition: color var(--t); }
.c-info-item a:hover { color: var(--navy); }

/* ═══════════════════════════════════════════════
   FOOTER  — keeps dark
═══════════════════════════════════════════════ */
.footer { background: #070F27; padding: 80px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: 48px; padding-bottom: 64px;
}
.footer-logo img {
  height: 44px; filter: brightness(0) invert(1); margin-bottom: 20px;
}
.footer-about {
  font-size: .875rem; color: rgba(255,255,255,.4);
  line-height: 1.78; margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.footer-socials a svg { width: 14px; height: 14px; stroke: rgba(255,255,255,.5); }
.footer-socials a:hover { background: var(--navy); border-color: var(--navy); }
.footer-socials a:hover svg { stroke: #fff; }
.footer-heading {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-bottom: 20px; font-family: 'Inter', sans-serif;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.5); transition: color var(--t); }
.footer-links a:hover { color: rgba(255,255,255,.9); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact-item svg { width: 15px; height: 15px; stroke: var(--sky); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item a,
.footer-contact-item span { font-size: .875rem; color: rgba(255,255,255,.5); transition: color var(--t); }
.footer-contact-item a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 24px 0; display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: rgba(255,255,255,.28); font-family: 'Inter', sans-serif;
}

/* ── Back to Top ── */
#back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 990;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all var(--t) var(--ease); cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
}
#back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-top:hover { background: var(--blue); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(27,52,120,.35); }
#back-top svg { width: 18px; height: 18px; stroke: #fff; }

/* ═══════════════════════════════════════════════
   AOS (Animate On Scroll)
═══════════════════════════════════════════════ */
[data-aos]:not(.aos-animate) {
  opacity: 0;
  transition: opacity .72s cubic-bezier(.2,.8,.2,1), transform .72s cubic-bezier(.2,.8,.2,1);
}
[data-aos="fade-up"]:not(.aos-animate)    { transform: translateY(30px); }
[data-aos="fade-right"]:not(.aos-animate) { transform: translateX(-30px); }
[data-aos="fade-left"]:not(.aos-animate)  { transform: translateX(30px); }
[data-aos="fade-in"]:not(.aos-animate)    { transform: none; }
[data-aos].aos-animate  { opacity: 1; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* 6-tool grid: 3 columns on tablet */
  .tools-grid         { grid-template-columns: repeat(3,1fr) !important; }
  .four-col           { grid-template-columns: repeat(2,1fr); }
  .process-grid       { grid-template-columns: repeat(2,1fr); }
  .stats-grid         { grid-template-columns: repeat(2,1fr); }
  .stat-item          { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2n) { border-right: none; }
  .services-layout    { grid-template-columns: 1fr; }
  .services-sticky-sidebar { position: static; }
  .footer-grid        { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section    { padding: 72px 0; }
  .section-sm { padding: 52px 0; }

  /* Show hamburger */
  .hamburger { display: flex; }

  /* ── Desktop nav links: hidden on mobile ── */
  .nav-links { display: none !important; }

  /* ── Mobile nav panel ──
     Lives outside #navbar (direct child of <body>), so
     backdrop-filter stacking context cannot trap it.
     z-index: 9999 keeps it above everything.             */
  #nav-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: -110%; bottom: 0;
    width: min(300px, 88vw);
    background: #ffffff;
    z-index: 9999;
    box-shadow: -8px 0 40px rgba(15,23,42,.2);
    transition: right .4s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
  }
  #nav-panel.open { right: 0; }

  /* Panel header */
  .nav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid #E2E8F0;
    background: #ffffff;
    flex-shrink: 0;
  }
  .nav-panel-header img { height: 32px; width: auto; display: block; }
  .nav-panel-close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: #F1F5F9; border: 1.5px solid #E2E8F0;
    border-radius: 8px; cursor: pointer; color: #0F172A;
    transition: background .2s, color .2s;
    flex-shrink: 0;
  }
  .nav-panel-close:hover { background: #1B3478; color: #fff; }

  /* Nav links list */
  .nav-panel-links {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    flex: 1;
  }
  .nav-panel-links li { list-style: none; }
  .nav-panel-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    font-size: .95rem; font-weight: 500;
    color: #0F172A;
    border-radius: 10px;
    text-decoration: none;
    transition: background .18s, color .18s;
  }
  .nav-panel-links li a::before {
    content: '';
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #CBD5E1;
    flex-shrink: 0;
    transition: background .18s;
  }
  .nav-panel-links li a:hover,
  .nav-panel-links li a.active {
    background: #EEF2FF; color: #1B3478;
  }
  .nav-panel-links li a:hover::before,
  .nav-panel-links li a.active::before { background: #1B3478; }

  /* CTA inside panel */
  .nav-panel-cta-item { margin-top: 8px; }
  .nav-panel-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #1B3478 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 14px !important;
    font-weight: 700 !important;
    font-size: .95rem !important;
    box-shadow: 0 4px 16px rgba(27,52,120,.25);
  }
  .nav-panel-cta::before { display: none !important; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 60px; }
  .hero-visual { display: none; }
  .hero-photo-frame { display: none; }
  .hero-content { text-align: center; }
  .hero-tag { margin: 0 auto 18px; }
  .hero-sub { margin-left: auto; margin-right: auto; text-align: center; }
  .hero-headline { font-size: clamp(2.1rem, 8vw, 2.9rem); }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Grids */
  /* 6-tool grid: 2 columns on mobile */
  .tools-grid         { grid-template-columns: repeat(2,1fr) !important; }
  .two-col        { grid-template-columns: 1fr; gap: 40px; }
  .two-col-cards  { grid-template-columns: 1fr; }
  .four-col       { grid-template-columns: 1fr; }
  .three-col      { grid-template-columns: 1fr; }
  .process-grid   { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: 1fr 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 32px; }
  .mv-grid        { grid-template-columns: 1fr; }
  .ngo-stat-grid  { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }

  /* Contact */
  .contact-form-wrap { padding: 28px 20px; }

  /* Page hero */
  .page-hero { padding: 120px 0 72px; }

  /* Sidebar */
  [style*="position:sticky"] { position: static !important; }

  /* CTA */
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .stats-grid     { grid-template-columns: 1fr; }
  .stat-item      { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .footer-bottom  { flex-direction: column; gap: 8px; text-align: center; }
  .ngo-stat-item  { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .ngo-stat-item:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════
   LEGACY VARIABLE ALIASES
   (inline styles in PHP files reference old variable names)
═══════════════════════════════════════════════════════════ */
:root {
  --off-white:     var(--off);
  --text-dark:     var(--ink);
  --text-muted:    var(--muted);
  --dark-bg:       #070F27;
  --radius-sm:     var(--r-sm);
  --radius-md:     var(--r);
  --radius-lg:     24px;
  --radius-xl:     36px;
  --gradient:      linear-gradient(135deg, var(--navy), var(--blue));
  --grad-vivid:    linear-gradient(135deg, var(--navy), var(--sky));
  --grad-alt:      linear-gradient(135deg, var(--blue), var(--sky));
  --sky-pale:      var(--sky-p);
  --soft-border:   var(--border);
}

/* ═══════════════════════════════════════════════════════════
   CHECK LIST  (about.php, services sidebar)
═══════════════════════════════════════════════════════════ */
.check-list {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 28px;
}
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--muted);
  font-family: 'Inter', sans-serif; line-height: 1.55;
}
.check-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--soft); border-radius: 50%; margin-top: 1px;
}
.check-icon svg {
  width: 12px; height: 12px;
  stroke: var(--blue); flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   QUOTE CARD  (about.php philosophy)
═══════════════════════════════════════════════════════════ */
.quote-card {
  background: var(--soft); border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--r-sm); padding: 24px;
}
.quote-card p {
  font-size: .97rem; color: var(--muted); line-height: 1.78;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   VISUAL BLOCK  (academic-services sidebar decorative)
═══════════════════════════════════════════════════════════ */
.visual-block {
  background: linear-gradient(135deg, var(--navy), #2D5FBF);
  border-radius: 20px;
  padding: 36px 32px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.visual-circles { position: absolute; inset: 0; pointer-events: none; }
.vc {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
}
.vc-1 { width: 200px; height: 200px; top: -60px; right: -40px; }
.vc-2 { width: 140px; height: 140px; top: -20px; right: 60px; }
.vc-3 { width: 80px;  height: 80px;  top: 40px;  right: 120px; }
.visual-block h3 { font-size: 1.3rem; color: #fff; margin-bottom: 8px; position: relative; z-index: 2; }
.visual-block p  { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.65; position: relative; z-index: 2; }

/* ═══════════════════════════════════════════════════════════
   GLOBAL SVG SAFETY NET
═══════════════════════════════════════════════════════════ */
svg:not([class]):not([style*="width"]) {
  max-width: 100%;
}
li svg, span svg {
  max-width: 24px; max-height: 24px;
  flex-shrink: 0;
}
/* SVGs that should NOT be constrained */
.hero-home svg, .cta-banner svg, .about-img-block svg { max-width: none; }

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB SVG size safety
═══════════════════════════════════════════════════════════ */
.breadcrumb svg { max-width: 16px; max-height: 16px; }

/* ═══════════════════════════════════════════════════════════
   PAGE-HERO SHAPES — JS drives on desktop; CSS on touch
═══════════════════════════════════════════════════════════ */
.shape { will-change: transform; }
@media (hover: none) {
  .shape-1 { animation: blobFloat 14s ease-in-out infinite; }
  .shape-2 { animation: blobFloat 18s ease-in-out infinite reverse 3s; }
  .shape-3 { animation: blobFloat 11s ease-in-out infinite 6s; }
}

/* ═══════════════════════════════════════════════════════════
   PAGE LOAD ENTRANCE ANIMATIONS
═══════════════════════════════════════════════════════════ */
@keyframes loadFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes loadFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-load {
  opacity: 0;
  animation: loadFadeUp .75s cubic-bezier(.2,.8,.2,1) forwards;
}
.anim-load-fade {
  opacity: 0;
  animation: loadFadeIn .75s ease forwards;
}

/* ═══════════════════════════════════════════════════════════
   ENHANCED HOVER EFFECTS — Shimmer sweep on cards
═══════════════════════════════════════════════════════════ */

/* All cards need position:relative for shimmer */
.card, .process-step, .hero-vis-card, .mv-card, .team-card,
.value-card, .service-detail-card, .accordion-item,
.ngo-icon-card, .info-card { position: relative; overflow: hidden; }

/* Shimmer sweep layer */
.card::after, .process-step::after,
.mv-card::after, .service-detail-card::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.55) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left .65s ease;
  pointer-events: none;
  z-index: 10;
}
.card:hover::after, .process-step:hover::after,
.mv-card:hover::after, .service-detail-card:hover::after { left: 130%; }

/* Glowing tinted border on hover */
.card:hover, .process-step:hover {
  border-color: rgba(37,99,196,.22) !important;
  box-shadow: 0 12px 40px rgba(37,99,196,.1), 0 2px 8px rgba(0,0,0,.06) !important;
}
.service-card:nth-child(1):hover { box-shadow: 0 12px 40px rgba(16,185,129,.15) !important; border-color: rgba(16,185,129,.3) !important; }
.service-card:nth-child(2):hover { box-shadow: 0 12px 40px rgba(124,58,237,.12) !important; border-color: rgba(124,58,237,.3) !important; }
.service-card:nth-child(3):hover { box-shadow: 0 12px 40px rgba(37,99,196,.12) !important; border-color: rgba(37,99,196,.3) !important; }
.service-card:nth-child(4):hover { box-shadow: 0 12px 40px rgba(245,158,11,.12) !important; border-color: rgba(245,158,11,.3) !important; }

/* Feature items - scale icon on hover */
.feature-item { transition: transform var(--t) var(--ease); }
.feature-item:hover { transform: translateX(6px); }

/* Process step — number color shift */
.process-step:hover .process-num { filter: hue-rotate(30deg); }

/* Read-more link — underline anim */
.read-more::after {
  content: ''; display: block; height: 1px;
  background: var(--blue); transform: scaleX(0);
  transform-origin: left; transition: transform .3s ease;
}
.read-more:hover::after { transform: scaleX(1); }

/* ═══════════════════════════════════════════════════════════
   INFO CARD  (ngo-services.php + contact.php sidebar)
═══════════════════════════════════════════════════════════ */
.info-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
  text-decoration: none; color: inherit; cursor: pointer;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(37,99,196,.2); }
.info-card h4 { color: var(--ink); }
.info-card span { font-size: .92rem; color: var(--muted); }
.ic-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
}
.ic-icon svg { width: 20px; height: 20px; stroke: #fff; flex-shrink: 0; }
.info-card h4 { font-size: .9rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; font-family: 'Inter', sans-serif; }
.info-card p  { font-size: .84rem; color: var(--muted); line-height: 1.55; }
/* Extra SVG safety inside info-card */
.info-card .ic-icon svg { max-width: 22px !important; max-height: 22px !important; }

/* ═══════════════════════════════════════════════════════════
   PRICING TAGS GRID  (contact.php How Pricing Works)
═══════════════════════════════════════════════════════════ */
.pricing-tags-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.pricing-tag {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px;
  font-size: .82rem; font-weight: 500; color: var(--body);
  font-family: 'Inter', sans-serif; line-height: 1.4;
  transition: border-color var(--t), background var(--t);
}
.pricing-tag:hover { border-color: rgba(37,99,196,.25); background: var(--soft); }
/* CRITICAL: constrain SVG inside pricing-tag */
.pricing-tag svg {
  width: 18px !important; height: 18px !important;
  min-width: 18px; flex-shrink: 0;
  stroke: var(--blue);
}

/* ═══════════════════════════════════════════════════════════
   NGO ICON CARDS  (ngo-services.php service categories)
═══════════════════════════════════════════════════════════ */
.ngo-icon-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 36px 32px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.ngo-icon-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,196,.2); }
.nic-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.nic-icon svg { width: 24px !important; height: 24px !important; stroke: #fff; flex-shrink: 0; }
.ngo-icon-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; font-family: 'Inter', sans-serif; }
.ngo-icon-card > p { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

.ngo-sub-items { display: flex; flex-direction: column; gap: 14px; }
.ngo-sub-item  { display: flex; align-items: flex-start; gap: 12px; }
.nsi-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  margin-top: 6px;
}
.nsi-title { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; font-family: 'Inter', sans-serif; }
.nsi-desc  { font-size: .83rem; color: var(--muted); line-height: 1.6; }


/* ═══════════════════════════════════════════════════════════
   MOUSE PARALLAX — target layer classes set by JS
═══════════════════════════════════════════════════════════ */
.parallax-layer { will-change: transform; }

/* ═══════════════════════════════════════════════════════════
   CURSOR SPOTLIGHT (JS-driven) — subtle glow follows mouse
═══════════════════════════════════════════════════════════ */
.cursor-spotlight {
  position: fixed; pointer-events: none; z-index: 0;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,196,.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity .4s;
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════
   EXTRA SVG SAFETY — div-level SVGs without explicit sizing
═══════════════════════════════════════════════════════════ */
.pricing-tag svg, .info-card svg, .ngo-icon-card svg { max-width: 24px; max-height: 24px; }
.nic-icon svg, .ic-icon svg { max-width: 26px !important; max-height: 26px !important; }

/* ═══════════════════════════════════════════════════════════
   HIGHLIGHT CARDS  (3-pillar strip, home page)
═══════════════════════════════════════════════════════════ */
.highlight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t) var(--ease),
              background var(--t) var(--ease),
              border-color var(--t) var(--ease);
  cursor: default;
}

/* Card 1 — blue */
.highlight-card:nth-child(1):hover {
  background: rgba(219,234,254,.92);
  box-shadow: 0 20px 56px rgba(37,99,196,.18);
  border-color: rgba(37,99,196,.28);
}
.highlight-card:nth-child(1):hover .hc-icon {
  background: rgba(37,99,196,.14);
  border-color: rgba(37,99,196,.22);
}
.highlight-card:nth-child(1):hover .hc-icon svg { stroke: #2563C4; }

/* Card 2 — lavender / purple */
.highlight-card:nth-child(2):hover {
  background: rgba(196,181,253,.78);
  box-shadow: 0 20px 56px rgba(124,58,237,.18);
  border-color: rgba(124,58,237,.28);
}
.highlight-card:nth-child(2):hover .hc-icon {
  background: rgba(124,58,237,.14);
  border-color: rgba(124,58,237,.22);
}
.highlight-card:nth-child(2):hover .hc-icon svg { stroke: #7C3AED; }

/* Card 3 — mint green */
.highlight-card:nth-child(3):hover {
  background: rgba(167,243,208,.78);
  box-shadow: 0 20px 56px rgba(16,185,129,.18);
  border-color: rgba(16,185,129,.28);
}
.highlight-card:nth-child(3):hover .hc-icon {
  background: rgba(16,185,129,.14);
  border-color: rgba(16,185,129,.22);
}
.highlight-card:nth-child(3):hover .hc-icon svg { stroke: #10B981; }

.hc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid rgba(37,99,196,.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.hc-icon svg {
  width: 22px; height: 22px; stroke: var(--blue);
  transition: stroke var(--t) var(--ease);
}
.highlight-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--ink); margin-bottom: 10px;
}
.highlight-card p { font-size: .9rem; color: var(--muted); line-height: 1.7; margin: 0; }

@media (max-width: 768px) {
  .highlight-card { padding: 24px 22px; }
}

/* ═══════════════════════════════════════════════════════════
   PHOTO FRAMES — site-wide image components
═══════════════════════════════════════════════════════════ */

/* ── Hero right-side photo (home page) ── */
.hero-photo-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(27,52,120,.18), 0 4px 16px rgba(0,0,0,.08);
  aspect-ratio: 4/3;
}
.hero-photo-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.hero-photo-frame:hover img { transform: scale(1.03); }
.hero-photo-frame::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom right, rgba(27,52,120,.08), transparent 60%);
  border-radius: 24px;
  pointer-events: none;
}
/* Decorative accent ring */
.hero-photo-frame::after {
  content: '';
  position: absolute; inset: -6px; z-index: -1;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(37,99,196,.25) 0%, rgba(196,181,253,.3) 100%);
}

/* ── Section photo (2-col layout, sticky sidebar, etc.) ── */
.section-photo {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.section-photo img {
  width: 100%; height: 420px; object-fit: cover; display: block;
  border-radius: var(--r);
  transition: transform .55s var(--ease);
}
.section-photo:hover img { transform: scale(1.03); }

/* Badge overlay on section photos */
.section-photo-badge {
  position: absolute; bottom: 18px; left: 18px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  font-family: 'Inter', sans-serif;
}
.section-photo-badge strong { display: block; font-size: 1.05rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.section-photo-badge span  { font-size: .78rem; color: var(--muted); }

/* ── Trust image pair (home Why Choose Us) — vertical stack ── */
.trust-img-pair {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
}
.trust-img-pair .tip-item {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--t) var(--ease);
  flex: 1;
}
.trust-img-pair .tip-item img {
  width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block;
  transition: transform .55s var(--ease);
}
.trust-img-pair .tip-item:hover { box-shadow: var(--shadow-lg); }
.trust-img-pair .tip-item:hover img { transform: scale(1.04); }

/* ── NGO icon card with banner photo ── */
.ngo-icon-card { padding: 0; overflow: hidden; }
.nic-banner-wrap { width: 100%; height: 180px; overflow: hidden; }
.nic-banner-wrap img {
  width: 100%; height: 180px; object-fit: cover; display: block;
  transition: transform .55s var(--ease);
}
.ngo-icon-card:hover .nic-banner-wrap img { transform: scale(1.05); }
.nic-content { padding: 28px 32px 32px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .section-photo img { height: 340px; }
}
@media (max-width: 768px) {
  .hero-photo-frame { border-radius: 16px; margin-top: 32px; }
  .hero-photo-frame::after { display: none; }
  .section-photo img { height: 280px; }
  .trust-img-pair .tip-item img { min-height: 180px; }
  .nic-banner-wrap, .nic-banner-wrap img { height: 150px; }
}

