:root {
      --cream:   #fdf6ee;
      --sand:    #f0e0c8;
      --warm:    #d4a96a;
      --earth:   #a0714a;
      --bark:    #6e4a2e;
      --bark-dk: #4a3020;
      --sage:    #8a9e7c;
      --sage-lt: #c8d8bc;
      --text:    #3a2a1a;
      --muted:   #8a7060;
      --white:   #fffdf9;
      --shadow:  rgba(110, 74, 46, 0.15);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    body {
      font-family: 'Lato', sans-serif;
      background: var(--cream);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* grain */
    body::before {
      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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
      pointer-events: none; z-index: 9999; opacity: 0.5;
    }

    /* ── HEADER ── */
    header {
      background: var(--bark);
      padding: 0 clamp(16px, 4vw, 48px);
      position: sticky; top: 0; z-index: 100;
      box-shadow: 0 2px 24px var(--shadow);
    }

    .header-inner {
      display: flex; align-items: center;
      justify-content: space-between;
      flex-wrap: wrap; gap: 12px; padding: 14px 0;
    }

    .brand {
      display: flex; flex-direction: column; gap: 2px;
      animation: slideDown 0.7s cubic-bezier(0.22,1,0.36,1) both;
    }
    .brand-tagline {
      font-size: 10px; letter-spacing: 3px;
      text-transform: uppercase; color: var(--warm); font-weight: 700;
    }
    .brand-name {
      font-family: 'Playfair Display', serif;
      font-size: 26px; color: var(--white); line-height: 1.1; font-weight: 700;
    }
    .brand-name span { color: var(--warm); }

    /* ══════════════════════════════════
       NAV — BASE
    ══════════════════════════════════ */
    nav { animation: slideDown 0.7s 0.15s cubic-bezier(0.22,1,0.36,1) both; }

    /* prevent ANY horizontal scroll caused by the nav */
    html, body { overflow-x: hidden; }

    /* ── hamburger button (always visible, always on top) ── */
    .menu-btn {
      position: relative;
      z-index: 9999;           /* always above everything */
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 5px;
      width: 44px; height: 44px;
      background: rgba(255,255,255,0.10);
      border: 1.5px solid rgba(255,255,255,0.22);
      border-radius: 10px;
      cursor: pointer;
      padding: 0;
      flex-shrink: 0;
      transition: background 0.2s, border-color 0.2s;
    }
    .menu-btn:hover { background: rgba(255,255,255,0.18); border-color: var(--warm); }

    /* three bars */
    .menu-bar {
      display: block;
      width: 20px; height: 2px;
      background: var(--white);
      border-radius: 2px;
      transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.2s, width 0.2s;
      transform-origin: center;
    }
    /* bars → X when open */
    .menu-btn.open .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--warm); }
    .menu-btn.open .menu-bar:nth-child(2) { opacity: 0; width: 0; }
    .menu-btn.open .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--warm); }

    /* ── semi-transparent backdrop ── */
    .nav-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(20, 8, 2, 0.6);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 8000;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .nav-overlay.open {
      display: block;
      opacity: 1;
    }

    /* ── nav panel ── */
    .nav-dropdown {
      display: none;           /* completely hidden — takes no space, no clicks */
      position: fixed;
      top: 0;
      right: 0;
      height: 100%;
      width: 280px;            /* desktop default */
      background: var(--bark-dk);
      z-index: 9000;
      flex-direction: column;
      overflow-y: auto;
      overflow-x: hidden;
      border-left: 1px solid rgba(255,255,255,0.08);
      box-shadow: -12px 0 48px rgba(0,0,0,0.5);
      opacity: 0;
      transform: translateX(20px);
      transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22,1,0.36,1);
    }
    .nav-dropdown.open {
      display: flex;           /* show as flex column */
      opacity: 1;
      transform: translateX(0);
    }

    /* mobile: full screen */
    @media (max-width: 768px) {
      .nav-dropdown {
        left: 0;
        width: 100%;
        border: none;
        box-shadow: none;
      }
    }

    /* ── panel contents ── */
    .nav-close-btn {
      display: flex; align-items: center; justify-content: flex-end;
      padding: 14px 14px 6px; flex-shrink: 0;
    }
    .nav-close-x {
      width: 38px; height: 38px; border-radius: 8px;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.14);
      color: var(--sand); font-size: 18px; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s, color 0.2s;
    }
    .nav-close-x:hover { background: var(--warm); color: var(--bark-dk); }

    .nav-brand-mini {
      padding: 2px 20px 16px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      margin-bottom: 8px; flex-shrink: 0;
    }
    .nav-brand-mini small {
      display: block; font-size: 9px; letter-spacing: 2px;
      text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
    }
    .nav-brand-mini strong {
      font-family: 'Playfair Display', serif;
      font-size: 20px; color: var(--white); font-weight: 700;
    }
    .nav-brand-mini strong em { color: var(--warm); font-style: normal; }

    /* nav items */
    .tab-btn {
      display: flex; align-items: center; gap: 14px;
      width: 100%; background: transparent; border: none;
      color: var(--sand); font-family: 'Lato', sans-serif;
      font-size: 14px; font-weight: 700; letter-spacing: 0.5px;
      padding: 14px 20px; cursor: pointer; text-align: left;
      position: relative;
      transition: background 0.2s, color 0.2s, padding-left 0.2s;
    }
    .tab-btn::before {
      content: ''; position: absolute; left: 0; top: 50%;
      transform: translateY(-50%);
      width: 3px; height: 0; background: var(--warm);
      border-radius: 0 3px 3px 0;
      transition: height 0.25s cubic-bezier(0.22,1,0.36,1);
    }
    .tab-btn:hover        { background: rgba(255,255,255,0.06); color: var(--white); padding-left: 26px; }
    .tab-btn:hover::before   { height: 60%; }
    .tab-btn.active       { background: rgba(212,169,106,0.15); color: var(--warm); padding-left: 26px; }
    .tab-btn.active::before  { height: 70%; }

    .tab-icon {
      width: 32px; height: 32px; border-radius: 8px;
      background: rgba(255,255,255,0.07);
      display: flex; align-items: center; justify-content: center;
      font-size: 15px; flex-shrink: 0;
      transition: background 0.2s;
    }
    .tab-btn:hover  .tab-icon { background: rgba(255,255,255,0.12); }
    .tab-btn.active .tab-icon { background: rgba(212,169,106,0.25); }

    .nav-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 6px 0; }

    .nav-footer {
      margin-top: auto; padding: 16px 20px;
      border-top: 1px solid rgba(255,255,255,0.08);
      font-size: 11px; color: var(--muted); letter-spacing: 1px;
      flex-shrink: 0;
    }

    .menu-active-label { display: none; }

    /* ── PAGES ── */
    .page { display: none; animation: fadeIn 0.4s ease; }
    .page.active { display: block; }

    /* ── REVEAL ── */
    .reveal {
      opacity: 0; transform: translateY(30px);
      transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
    }
    .reveal.visible { opacity: 1; transform: none; }

    /* ── SHARED SECTION STYLES ── */
    .section { padding: 72px 56px; }
    .section-sm { padding: 48px 56px; }
    .section-title { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--bark); margin-bottom: 10px; }
    .section-sub { font-size: 15px; color: var(--muted); margin-bottom: 40px; max-width: 560px; line-height: 1.7; }
    .divider { width: 56px; height: 4px; background: var(--warm); border-radius: 2px; margin-bottom: 18px; }

    /* ══════════════════════════════════
       HOME PAGE
    ══════════════════════════════════ */

    /* — Full-bleed hero with layered depth — */
    .home-hero {
      position: relative; min-height: 2vh; /* min-height = 92 earlier*/
      display: flex; align-items: center;
      overflow: hidden;
      background: linear-gradient(150deg, var(--bark-dk) 0%, var(--bark) 45%, var(--earth) 100%);
    }

    /* animated rings */
    .hero-rings {
      position: absolute; right: -80px; top: 50%;
      transform: translateY(-50%);
      width: 580px; height: 580px;
      opacity: 0.07;
    }
    .hero-rings circle { fill: none; stroke: var(--warm); stroke-width: 1.5; }

    /* decorative leaf blobs */
    .blob {
      position: absolute; border-radius: 50%;
      filter: blur(80px); pointer-events: none;
    }
    .blob-1 { width: 400px; height: 400px; background: var(--warm); opacity: 0.06; top: -100px; right: 200px; animation: drift 8s ease-in-out infinite; }
    .blob-2 { width: 260px; height: 260px; background: var(--sage); opacity: 0.08; bottom: 40px; right: 80px; animation: drift 11s ease-in-out infinite reverse; }

    .home-hero-content {
      position: relative; z-index: 2;
      padding: 80px 56px; max-width: 760px;
      animation: heroIn 1s 0.2s cubic-bezier(0.22,1,0.36,1) both;
    }

    .hero-eyebrow {
      display: inline-flex; align-items: center; gap: 10px;
      font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
      color: var(--warm); font-weight: 700; margin-bottom: 20px;
    }
    .hero-eyebrow::before {
      content: ''; display: block; width: 28px; height: 2px; background: var(--warm);
    }

    .home-hero-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(42px, 3vw, 72px);
      color: var(--white); line-height: 1.1; margin-bottom: 24px;
    }
    .home-hero-title em { color: var(--warm); font-style: italic; }

    .home-hero-sub {
      font-size: 17px; color: var(--sand); line-height: 1.8;
      font-weight: 300; max-width: 560px; margin-bottom: 40px;
    }

    .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

    .btn-primary {
      display: inline-flex; align-items: center; gap: 10px;
      background: var(--warm); color: var(--bark-dk);
      padding: 15px 36px; border-radius: 50px; font-weight: 700;
      font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
      cursor: pointer; border: none;
      transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
      box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    }
    .btn-primary:hover { transform: translateY(-2px); background: var(--sand); box-shadow: 0 10px 28px rgba(0,0,0,0.3); }

    .btn-outline {
      display: inline-flex; align-items: center; gap: 10px;
      background: transparent; color: var(--sand);
      padding: 14px 32px; border-radius: 50px; font-weight: 700;
      font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
      cursor: pointer; border: 2px solid rgba(255,255,255,0.25);
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }
    .btn-outline:hover { border-color: var(--warm); color: var(--warm); background: rgba(255,255,255,0.04); }

    .btn-outline-kamalini {
      display: inline-flex; align-items: center; gap: 10px;
      background: transparent; color: var(--earth);
      padding: 14px 32px; border-radius: 50px; font-weight: 700;
      font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
      cursor: pointer; border: 2px solid rgba(255,255,255,0.25);
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }
    .btn-outline-kamalini:hover { border-color: var(--warm); color: var(--warm); background: rgba(255,255,255,0.04); }

    .hero-scroll-hint {
      position: absolute; bottom: 36px; left: 56px;
      display: flex; align-items: center; gap: 10px;
      font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
      color: rgba(255,255,255,0.35); z-index: 2;
      animation: bounce 2.2s ease-in-out infinite;
    }

    .hero-curve {
      position: absolute; bottom: -2px; left: 0;
      width: 100%; height: 80px;
    }

    /* — What We Stand For — */
    .values-strip {
      background: var(--sand); padding: 30px 20px;
      display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 10px;
    }
    .value-item { text-align: center; }
    .value-icon {
      width: 64px; height: 64px; margin: 0 auto 16px;
      border-radius: 50%; background: var(--cream);
      display: flex; align-items: center; justify-content: center;
      font-size: 28px; box-shadow: 0 4px 16px var(--shadow);
      transition: transform 0.3s;
    }
    .value-item:hover .value-icon { transform: scale(1.1) rotate(-5deg); }
    .value-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--bark); margin-bottom: 8px; }
    .value-text { font-size: 14px; color: var(--muted); line-height: 1.7; }

    /* — About / Mission — */
    .about-split {
      display: grid; grid-template-columns: 1fr 1fr;
      min-height: 420px;
    }
    @media (max-width: 780px) { .about-split { grid-template-columns: 1fr; } }

    .about-img {
      background: linear-gradient(135deg, var(--earth) 0%, var(--bark-dk) 100%);
      min-height: 360px;
      display: flex; align-items: center; justify-content: center;
      flex-direction: column; gap: 10px;
      color: var(--sand); font-style: italic; font-size: 14px;
      position: relative; overflow: hidden;
    }
    .about-img::before {
      content: ''; position: absolute; inset: 0;
      background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 80px);
    }
    .about-img-label {
      position: relative; z-index: 1;
      background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
      border-radius: 10px; padding: 16px 24px; text-align: center;
    }

    .about-img-gv {
      background: var(--cream);
      min-height: 360px;
      display: flex; align-items: center; justify-content: center;
      flex-direction: column; gap: 10px;
      color: var(--sand); font-style: italic; font-size: 14px;
      position: relative; overflow: hidden;
    }
    .about-img-gv::before {
      content: ''; position: absolute; inset: 0;
      background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 80px);
    }

    .about-text { padding: 64px 56px; background: var(--cream); }
    .about-text blockquote {
      font-family: 'Playfair Display', serif; font-size: 22px;
      color: var(--bark); font-style: italic; line-height: 1.5;
      border-left: 4px solid var(--warm); padding-left: 20px;
      margin-bottom: 24px;
    }
    .about-text p {
      font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 16px;
    }

    /* — Stats — */
    .stats-strip {
      background: var(--bark); padding: 56px;
      display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 32px;
    }
    .stat-item { text-align: center; }
    .stat-number { font-family: 'Playfair Display', serif; font-size: 52px; color: var(--warm); line-height: 1; }
    .stat-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--sand); margin-top: 8px; }

    /* — Programs Cards — */
    .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }

    .card {
      background: var(--white); border-radius: 16px; overflow: hidden;
      box-shadow: 0 4px 20px var(--shadow);
      transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
      opacity: 0; transform: translateY(24px);
    }
    .card.visible { animation: cardIn 0.6s cubic-bezier(0.22,1,0.36,1) forwards; }
    .card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px var(--shadow); }

    .card-img {
      width: 100%; height: 180px;
      background: linear-gradient(135deg, var(--sand) 0%, var(--sage-lt) 100%);
      display: flex; align-items: center; justify-content: center;
      color: var(--earth); font-style: italic; font-size: 13px;
      border-bottom: 2px solid var(--sand);
    }
    .card-body { padding: 24px; }
    .card-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--warm); font-weight: 700; margin-bottom: 8px; }
    .card-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--bark); margin-bottom: 10px; }
    .card-text { font-size: 14px; color: var(--muted); line-height: 1.7; }

    /* — Gallery strip — */
    .gallery-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 300px)); gap: 16px;
    }
    .gallery-item {
      height: 180px; border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      color: var(--white); font-style: italic; font-size: 13px;
      flex-direction: column; gap: 6px;
      transition: transform 0.3s, box-shadow 0.3s;
      cursor: default;
    }
    .gallery-item:hover { transform: scale(1.03); box-shadow: 0 10px 28px var(--shadow); }

    /* ══════════════════════════════════
       GRUHINI VIDYALAYA – TESTIMONY
    ══════════════════════════════════ */

    .gv-testimony {
      padding: 72px 56px;
      background: var(--bark-dk);
    }
    .gv-testimony .section-title { color: var(--white); }
    .gv-testimony .section-sub   { color: var(--sand); }
    .gv-testimony .divider        { background: var(--warm); }

    /* grid: portrait cards are narrower, landscape cards are wider —
       auto-fit handles mixing them naturally */
    .gv-testimony-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 350px));
      gap: 28px;
      align-items: start; /* cards don't stretch to equal height */
    }

    .gv-testimony-card {
      max-width: 100%;
      max-height: 100%;
      background: var(--white);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 6px 24px rgba(0,0,0,0.3);
      transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
    }
    .gv-testimony-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 14px 36px rgba(0,0,0,0.35);
    }

    /* ── VIDEO WRAPPER — enforces aspect ratio via padding-top trick ── */
    .gv-vid-wrap {
      position: relative;
      width: 100%;
      overflow: hidden;
      background: var(--bark-dk);
    }

    /* Portrait / Vertical — 9:16 phone video
       padding-top = (16/9) * 100% = 177.78% */
    .gv-vid-wrap.portrait-vid  { padding-top: 177.78%; }

    /* Landscape / Horizontal — 16:9 camera video
       padding-top = (9/16) * 100% = 56.25% */
    .gv-vid-wrap.landscape-vid { padding-top: 56.25%; }

    /* <video> fills the padded box absolutely */
    .gv-vid-wrap video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover; /* change to 'contain' for letterbox/pillarbox */
      background: #000;
    }

    /* placeholder overlay — sits on top until a real video is added;
       pointer-events: none so controls are never blocked */
    .gv-vid-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(160deg, rgba(74,48,32,0.92), rgba(110,74,46,0.85));
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      pointer-events: none;
    }
    /* once a real <video> is inside, hide the overlay */
    .gv-vid-wrap:has(video) .gv-vid-overlay { display: none; }

    .gv-play-btn {
      width: 56px; height: 56px;
      border-radius: 50%;
      background: var(--warm);
      color: var(--bark-dk);
      display: flex; align-items: center; justify-content: center;
      font-size: 22px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }
    .gv-vid-label {
      font-size: 13px; color: var(--sand);
      font-style: italic; letter-spacing: 0.5px;
    }
    .gv-vid-hint {
      font-size: 10px; color: var(--warm);
      letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
    }

    /* text body below each video */
    .gv-testimony-body { padding: 20px 22px 24px; }
    .gv-testimony-name {
      font-family: 'Playfair Display', serif;
      font-size: 17px; color: var(--bark); margin-bottom: 4px;
    }
    .gv-testimony-role {
      font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
      color: var(--warm); font-weight: 700; margin-bottom: 10px;
    }
    .gv-testimony-quote {
      font-size: 14px; color: var(--muted);
      line-height: 1.7; font-style: italic;
    }
    .gv-hero {
      position: relative; min-height: 10px;
      display: flex; align-items: flex-end; overflow: hidden;
      background: linear-gradient(160deg, var(--bark-dk) 0%, var(--bark) 50%, var(--earth) 100%);
    }
    .gv-hero-content {
      position: relative; z-index: 2; padding: 64px 56px; max-width: 680px;
      animation: heroIn 1s 0.3s cubic-bezier(0.22,1,0.36,1) both;
    }
    .gv-hero-eyebrow {
      font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
      color: var(--warm); margin-bottom: 14px; font-weight: 700;
    }
    .gv-hero-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(34px, 5vw, 56px); color: var(--white); line-height: 1.15; margin-bottom: 18px;
    }
    .gv-hero-title em { color: var(--warm); font-style: italic; }
    .gv-hero-sub {
      font-size: 16px; color: var(--sand); line-height: 1.7;
      font-weight: 300; max-width: 520px;
    }
    .ph { font-style: italic; color: var(--warm); }

    /* ══════════════════════════════════
       CONTACT PAGE
    ══════════════════════════════════ */
    .contact-hero {
      background: var(--bark); padding: 64px 56px; color: var(--white);
    }
    .contact-hero h2 { font-family: 'Playfair Display', serif; font-size: 40px; margin-bottom: 12px; }
    .contact-hero p { font-size: 16px; color: var(--sand); max-width: 500px; line-height: 1.7; }

    .contact-details {
      padding: 64px 56px; display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
    }
    .contact-card {
      background: var(--white); border-radius: 16px; padding: 32px 28px;
      box-shadow: 0 4px 16px var(--shadow); text-align: center;
      transition: transform 0.3s;
    }
    .contact-card:hover { transform: translateY(-4px); }
    .contact-card-icon {
      width: 56px; height: 56px; margin: 0 auto 16px;
      border-radius: 50%; background: var(--sand);
      display: flex; align-items: center; justify-content: center; font-size: 24px;
    }
    .contact-card h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--warm); font-weight: 700; margin-bottom: 8px; }
    .contact-card p { font-size: 15px; color: var(--muted); line-height: 1.6; }
    .contact-card a { color: var(--bark); text-decoration: none; }
    .contact-card a:hover { color: var(--warm); }

    /* ══════════════════════════════════
       DONATIONS PAGE
    ══════════════════════════════════ */
    .donate-hero {
      background: linear-gradient(135deg, var(--sage) 0%, var(--earth) 100%);
      padding: 72px 56px; color: var(--white);
    }
    .donate-hero h2 { font-family: 'Playfair Display', serif; font-size: 44px; margin-bottom: 16px; }
    .donate-hero p { font-size: 16px; opacity: 0.85; max-width: 500px; line-height: 1.7; }

    .donate-placeholder {
      padding: 80px 56px; text-align: center;
      display: flex; flex-direction: column; align-items: center; gap: 16px;
    }
    .donate-placeholder-icon {
      width: 80px; height: 80px; border-radius: 50%; background: var(--sand);
      display: flex; align-items: center; justify-content: center; font-size: 36px;
      animation: pulse 2.5s ease-in-out infinite;
    }
    .donate-placeholder h3 { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--bark); }
    .donate-placeholder p { font-size: 15px; color: var(--muted); max-width: 400px; line-height: 1.7; }

    /* ══════════════════════════════════
       COMING SOON PAGE
    ══════════════════════════════════ */
    .coming-wrap {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      min-height: 480px; text-align: center; padding: 64px;
    }
    .coming-icon {
      width: 80px; height: 80px; border-radius: 50%; background: var(--sand);
      display: flex; align-items: center; justify-content: center;
      font-size: 36px; margin-bottom: 24px; animation: pulse 2.5s ease-in-out infinite;
    }
    .coming-wrap h2 { font-family: 'Playfair Display', serif; font-size: 36px; color: var(--bark); margin-bottom: 12px; }
    .coming-wrap p { font-size: 16px; color: var(--muted); max-width: 400px; line-height: 1.7; }

    /* ══════════════════════════════════
       FOOTER
    ══════════════════════════════════ */
    footer { background: var(--bark-dk); padding: 48px 56px 28px; color: var(--sand); }
    .footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
    .footer-brand p { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 240px; line-height: 1.7; }
    .footer-links h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--warm); margin-bottom: 14px; }
    .footer-links a { display: block; font-size: 14px; color: var(--sand); text-decoration: none; margin-bottom: 8px; transition: color 0.2s; }
    .footer-links a:hover { color: var(--warm); }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; font-size: 13px; color: var(--white); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

    /* ── KEYFRAMES ── */
    @keyframes slideDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
    @keyframes heroIn   { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
    @keyframes cardIn   { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
    @keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
    @keyframes pulse    { 0%,100% { transform:scale(1); } 50% { transform:scale(1.08); } }
    @keyframes drift    { 0%,100% { transform:translateY(0) scale(1); } 50% { transform:translateY(-24px) scale(1.05); } }
    @keyframes bounce   { 0%,100% { transform:translateY(0); } 50% { transform:translateY(6px); } }

    /* ══════════════════════════════════
       KAMALINI
    ══════════════════════════════════ */

    /* ── program page hero banner ── */
    .prog-hero {
      position: relative;
      background: linear-gradient(150deg, var(--bark-dk) 0%, var(--earth) 58%, var(--sage) 100%);
      overflow: hidden;
      min-height: 380px;
    }

    .blink {
      animation: blink 2s infinite;
    }

    @keyframes blink {
      50% {
        opacity: 40%;
      }
    }

    /* old top strip — hidden, replaced by absolute-positioned logos */
    .prog-hero-top {
      display: none;
    }

    /* ── logo shared base ── */
    .prog-logo-sq,
    .prog-logo-rect {
      background: var(--white);
      border: 3px solid var(--warm);
      box-shadow: 0 6px 24px rgba(0,0,0,0.35);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      overflow: hidden; flex-shrink: 0;
      transition: transform 0.3s, box-shadow 0.3s;
      /* placeholder label styles */
      font-size: 10px; font-style: italic;
      color: var(--muted); text-align: center;
      line-height: 1.4; padding: 8px;
    }
    .prog-logo-sq:hover,
    .prog-logo-rect:hover { transform: scale(1.05); box-shadow: 0 10px 32px rgba(0,0,0,0.4); }

    /* Square: equal width & height, rounded like a seal */
    .prog-logo-sq {
      width: 110px;
      height: 110px;
      border-radius: 16px;
    }

    /* Rectangular: portrait/vertical — taller than wide */
    .prog-logo-rect {
      width: 90px;    /* narrower */
      height: 140px;  /* taller   */
      border-radius: 12px;
    }

    /* when a real <img> is placed inside either logo box */
    .prog-logo-sq img,
    .prog-logo-rect img {
      width: 100%; height: 100%;
      object-fit: contain;
      display: block;
    }

    /* left-corner logo wrapper (square) */
    .prog-logo-left {
      position: absolute;
      top: 28px; left: 40px; z-index: 4;
      animation: slideDown 0.8s 0.15s cubic-bezier(0.22,1,0.36,1) both;
    }

    /* right-corner logo wrapper (rectangular) */
    .prog-logo-right {
      position: absolute;
      top: 28px; right: 40px; z-index: 4;
      animation: slideDown 0.8s 0.25s cubic-bezier(0.22,1,0.36,1) both;
    }

    /* title area — top padding clears the corner logos */
    .prog-hero-body {
      padding: 168px 56px 68px;
      max-width: 780px;
      animation: heroIn 1s 0.3s cubic-bezier(0.22,1,0.36,1) both;
    }
    .prog-hero-eyebrow {
      font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
      color: var(--warm); font-weight: 700; margin-bottom: 12px;
      display: flex; align-items: center; gap: 10px;
    }
    .prog-hero-eyebrow::before { content:''; display:block; width:24px; height:2px; background:var(--warm); }
    .prog-hero-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(34px, 5vw, 56px);
      color: var(--white); line-height: 1.1; margin-bottom: 16px;
    }
    .prog-hero-title em { color: var(--warm); font-style: italic; }
    .prog-hero-sub {
      font-size: 16px; color: var(--sand); line-height: 1.8;
      font-weight: 300; max-width: 540px; margin-bottom: 20px;
    }

    /* registration number pills — sit directly below the tagline */
    .prog-hero-regs {
      display: flex; flex-wrap: wrap; gap: 10px;
    }
    .prog-reg-pill {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(255,255,255,0.11);
      border: 1px solid rgba(255,255,255,0.22);
      border-radius: 8px; padding: 6px 14px;
      backdrop-filter: blur(4px);
    }
    .prog-reg-label {
      font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
      color: var(--warm); font-weight: 700; white-space: nowrap;
    }
    .prog-reg-value {
      font-size: 13px; color: var(--white);
      font-weight: 700; letter-spacing: 0.5px; white-space: nowrap;
    }

    .prog-hero-curve {
      position: absolute; bottom: -2px; left: 0;
      width: 100%; height: 64px;
    }

    /* ── written content section ── */
    .prog-content {
      padding: 72px 56px;
      background: var(--cream);
    }

    /* decorative pull-quote bar */
    .prog-pull-quote {
      border-left: 5px solid var(--warm);
      background: var(--sand);
      border-radius: 0 12px 12px 0;
      padding: 20px 28px;
      margin: 32px 0;
      font-family: 'Playfair Display', serif;
      font-size: 20px; font-style: italic;
      color: var(--bark); line-height: 1.55;
    }

    .prog-body-text {
      font-size: 15px; color: var(--muted); line-height: 1.9;
      margin-bottom: 20px; max-width: 820px;
    }

    /* inline highlight chip */
    .prog-chip {
      display: inline-block;
      background: var(--sand); color: var(--bark);
      font-size: 12px; font-weight: 700; letter-spacing: 1px;
      border-radius: 20px; padding: 4px 14px;
      margin: 4px 4px 4px 0;
    }

    /* decorative divider with icon */
    .prog-divider {
      display: flex; align-items: center; gap: 14px;
      margin: 40px 0 32px;
    }
    .prog-divider::before, .prog-divider::after {
      content: ''; flex: 1; height: 1px; background: var(--sand);
    }
    .prog-divider span {
      font-size: 20px;
    }

    /* key facts row */
    .prog-facts {
      display: flex; flex-wrap: wrap; gap: 16px;
      margin-top: 36px;
    }
    .prog-fact {
      background: var(--white); border-radius: 14px;
      padding: 20px 24px; flex: 1; min-width: 160px;
      box-shadow: 0 3px 14px var(--shadow);
      border-top: 3px solid var(--warm);
      transition: transform 0.25s;
    }
    .prog-fact:hover { transform: translateY(-3px); }
    .prog-fact-num {
      font-family: 'Playfair Display', serif;
      font-size: 32px; color: var(--warm); line-height: 1;
    }
    .prog-fact-label {
      font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
      color: var(--muted); margin-top: 6px; font-weight: 700;
    }

    /* ── video section ── */
    .prog-videos-section {
      background: var(--bark-dk);
      padding: 72px 56px;
    }
    .prog-videos-section .section-title { color: var(--white); }
    .prog-videos-section .section-sub   { color: var(--sand); }
    .prog-videos-section .divider       { background: var(--warm); }

    .videos-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 18px;
    }

    /* first video is big, spans 8 cols */
    .vid-cell { border-radius: 14px; overflow: hidden; position: relative; background: var(--bark); }
    .vid-cell.big   { grid-column: span 8; }
    .vid-cell.small { grid-column: span 4; }
    @media (max-width: 900px) {
      .vid-cell.big, .vid-cell.small { grid-column: span 12; }
    }

    .vid-ph {
      width: 100%;
      position: relative; overflow: hidden;
    }
    .vid-ph.tall   { min-height: 320px; }
    .vid-ph.medium { min-height: 220px; }

    /* shimmer background lines */
    .vid-ph::before {
      content: '';
      position: absolute; inset: 0;
      background: repeating-linear-gradient(
        -45deg, transparent, transparent 20px,
        rgba(212,169,106,0.04) 20px, rgba(212,169,106,0.04) 40px
      );
      pointer-events: none;
    }

    /* native <video> — fills container, controls fully clickable */
    .vid-ph video {
      width: 100%;
      height: 100%;
      min-height: 320px;
      display: block;
      object-fit: cover;
      background: #000;
    }
    .vid-ph.medium video { min-height: 220px; }

    /* real iframe embed */
    .vid-ph iframe {
      width: 100%; height: 100%;
      min-height: 320px; border: none; display: block;
    }
    .vid-ph.medium iframe { min-height: 220px; }

    /* placeholder overlay — only shown when there's NO video/iframe child */
    .vid-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(160deg, rgba(74,48,32,0.95), rgba(110,74,46,0.9));
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 14px; pointer-events: none;
    }

    /* also cover the case where <video> sits directly inside .vid-cell */
    .vid-cell > video {
      width: 100%; height: 100%;
      display: block; object-fit: cover;
    }

    .vid-play {
      position: relative; z-index: 1;
      width: 64px; height: 64px; border-radius: 50%;
      background: var(--warm); color: var(--bark-dk);
      display: flex; align-items: center; justify-content: center;
      font-size: 24px; cursor: pointer;
      box-shadow: 0 6px 24px rgba(0,0,0,0.45);
      transition: transform 0.25s, background 0.25s;
    }
    .vid-cell.small .vid-play { width: 48px; height: 48px; font-size: 18px; }
    .vid-play:hover { transform: scale(1.12); background: var(--sand); }

    .vid-label {
      position: relative; z-index: 1;
      font-size: 12px; color: var(--sand); font-style: italic; letter-spacing: 0.5px;
    }
    .vid-caption {
      position: absolute; bottom: 0; left: 0; right: 0;
      background: linear-gradient(transparent, rgba(30,16,8,0.8));
      color: var(--sand); font-size: 12px;
      padding: 28px 16px 12px; font-style: italic;
    }

    /* ── mixed aspect-ratio image gallery ── */
    .prog-images-section {
      background: var(--cream);
      padding: 72px 56px;
    }

    /* CSS masonry via columns for natural varied heights */
    .prog-img-masonry {
      columns: 4; column-gap: 14px;
    }
    @media (max-width: 1100px) { .prog-img-masonry { columns: 3; } }
    @media (max-width: 700px)  { .prog-img-masonry { columns: 2; } }

    /* ── image item wrapper ── */
    .prog-img-item {
      break-inside: avoid;
      margin-bottom: 14px;
      border-radius: 12px; overflow: hidden;
      box-shadow: 0 3px 14px var(--shadow);
      transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
      cursor: pointer;
      background: var(--sand); /* shows while image loads */
    }
    .prog-img-item:hover { transform: scale(1.025); box-shadow: 0 10px 28px var(--shadow); }

    /* ── the image box: use padding-top trick so aspect-ratio is enforced reliably ── */
    .prog-img-ph {
      position: relative;
      width: 100%;
      overflow: hidden;
    }

    /* portrait ~3:4  → padding-top = (4/3)*100% = 133% */
    .prog-img-ph.portrait  { padding-top: 133%; }

    /* landscape ~4:3 → padding-top = (3/4)*100% = 75% */
    .prog-img-ph.landscape { padding-top: 75%; }

    /* wide ~16:9     → padding-top = (9/16)*100% = 56% */
    .prog-img-ph.wide      { padding-top: 56%; }

    /* the <img> or placeholder content fills the padded box absolutely */
    .prog-img-ph img,
    .prog-img-ph .img-inner {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
    }
    .prog-img-item:hover .prog-img-ph img,
    .prog-img-item:hover .prog-img-ph .img-inner { transform: scale(1.04); }

    /* placeholder inner div (shown when no real img is present) */
    .prog-img-ph .img-inner {
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 6px; font-style: italic; font-size: 12px;
    }

    /* colour variety */
    .prog-img-ph.c1 { background: linear-gradient(135deg, var(--sand),      var(--sage-lt));           color: var(--earth);  }
    .prog-img-ph.c2 { background: linear-gradient(135deg, var(--sage-lt),   var(--warm));               color: var(--bark);   }
    .prog-img-ph.c3 { background: linear-gradient(135deg, var(--warm),      var(--earth));              color: var(--white);  }
    .prog-img-ph.c4 { background: linear-gradient(135deg, var(--earth),     var(--bark));               color: var(--sand);   }
    .prog-img-ph.c5 { background: linear-gradient(135deg, var(--bark),      var(--bark-dk));            color: var(--warm);   }
    .prog-img-ph.c6 { background: linear-gradient(135deg, var(--sage),      var(--earth));              color: var(--white);  }

    .prog-img-cap {
      font-size: 11px; color: var(--muted); font-style: italic;
      padding: 8px 12px 10px; background: var(--white); line-height: 1.4;
    }

    /* play-button (shared, keep from before) */
    .play-btn {
      width: 56px; height: 56px; border-radius: 50%;
      background: var(--warm); display: flex;
      align-items: center; justify-content: center;
      font-size: 22px; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
      cursor: pointer; transition: transform 0.2s, background 0.2s;
    }
    .play-btn:hover { transform: scale(1.12); background: var(--sand); }

    .media-caption {
      position: absolute; bottom: 0; left: 0; right: 0;
      background: linear-gradient(transparent, rgba(74,48,32,0.75));
      color: var(--sand); font-size: 12px;
      padding: 24px 14px 12px; font-style: italic;
    }

    /* ══════════════════════════════════
       TAB 2 – STORIES / GALLERY
    ══════════════════════════════════ */
    .stories-hero {
      background: linear-gradient(150deg, var(--bark-dk) 0%, var(--bark) 55%, var(--warm) 100%);
      padding: 72px 56px;
      position: relative; overflow: hidden;
    }
    .stories-hero::after {
      content: ''; position: absolute;
      bottom: -2px; left: 0; right: 0; height: 60px;
      background: var(--cream);
      clip-path: ellipse(55% 100% at 50% 100%);
    }
    .stories-hero h2 {
      font-family: 'Playfair Display', serif; font-size: 44px;
      color: var(--white); margin-bottom: 16px;
    }
    .stories-hero h2 em { color: var(--warm); font-style: italic; }
    .stories-hero p {
      font-size: 16px; color: var(--sand); max-width: 560px;
      line-height: 1.8; font-weight: 300;
    }

    /* intro text */
    .stories-intro {
      padding: 56px 56px 32px;
      max-width: 860px;
    }
    .stories-intro p {
      font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 14px;
    }

    /* masonry-style photo gallery */
    .masonry {
      padding: 0 56px 56px;
      columns: 3; column-gap: 16px;
    }
    @media (max-width: 900px) { .masonry { columns: 2; } }
    @media (max-width: 540px) { .masonry { columns: 1; } }

    .mason-item {
      break-inside: avoid; margin-bottom: 16px;
      border-radius: 14px; overflow: hidden;
      background: var(--white);
      box-shadow: 0 4px 16px var(--shadow);
      transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
    }
    .mason-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 32px var(--shadow);
    }
    .mason-img {
      width: 100%; display: block;
      min-height: 160px;
      background: linear-gradient(135deg, var(--sand), var(--sage-lt));
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      color: var(--earth); font-style: italic; font-size: 13px; gap: 6px;
    }

    .mason-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    }

    /* vary heights visually */
    .mason-item:nth-child(3n)   .mason-img { min-height: 220px; }
    .mason-item:nth-child(3n+2) .mason-img { min-height: 180px; }
    .mason-item:nth-child(5n)   .mason-img { background: linear-gradient(135deg, var(--earth), var(--bark)); color: var(--sand); }
    .mason-item:nth-child(4n)   .mason-img { background: linear-gradient(135deg, var(--sage), var(--earth)); color: var(--white); }

    .mason-caption {
      padding: 12px 16px 14px;
      font-size: 13px; color: var(--muted); line-height: 1.5; font-style: italic;
    }

    /* testimony videos section */
    .testimony-section { background: var(--sand); padding: 64px 56px; }
    .testimony-section h3 {
      font-family: 'Playfair Display', serif; font-size: 30px;
      color: var(--bark); margin-bottom: 10px;
    }
    .testimony-section .section-sub { margin-bottom: 36px; }

    .testimony-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }
    .testimony-card {
      background: var(--white); border-radius: 16px;
      overflow: hidden; box-shadow: 0 4px 16px var(--shadow);
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .testimony-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px var(--shadow); }

    .testimony-vid {
      width: 100%; height: 200px;
      background: var(--bark-dk);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 12px;
      color: var(--sand); font-size: 13px; font-style: italic;
      position: relative; overflow: hidden;
    }
    .testimony-vid iframe { width: 100%; height: 200px; border: none; display: block; }
    .testimony-vid-overlay {
      position: absolute; inset: 0;
      background: rgba(74,48,32,0.55);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 10px;
    }

    .testimony-body { padding: 20px 22px 24px; }
    .testimony-name {
      font-family: 'Playfair Display', serif; font-size: 17px;
      color: var(--bark); margin-bottom: 4px;
    }
    .testimony-role {
      font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
      color: var(--warm); font-weight: 700; margin-bottom: 10px;
    }
    .testimony-quote {
      font-size: 14px; color: var(--muted); line-height: 1.7; font-style: italic;
    }