/*
  Goshala Website Styles
  - Lightweight, responsive, accessible
  - Uses CSS variables and a small utility set
*/

/* Modern CSS reset */
*,*::before,*::after{box-sizing:border-box}
*{margin:0}
html:focus-within{scroll-behavior:smooth}
html{scrollbar-gutter:stable both-edges;overflow-y:scroll; font-size: 20px;}
html,body{height:100%}
body{line-height:1.5;-webkit-font-smoothing:antialiased;color:#111827;background:#ffffff}
img,picture,video,canvas,svg{display:block;max-width:100%}
input,button,textarea,select{font:inherit}
p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}

:root{
  --color-bg:#ffffff;
  --color-surface:#f9fafb;
  --color-border:#e5e7eb;
  --color-text:#111827;
  --color-muted:#6b7280;
  --color-primary:#2e7d32; /* green */
  --color-primary-contrast:#ffffff;
  --color-accent:#f59e0b; /* amber */
  --family-line:rgba(34,60,36,0.24);
  --radius:12px;
  --shadow:0 6px 20px rgba(0,0,0,0.08);
  --shadow-sm:0 2px 8px rgba(0,0,0,0.06);
  --container:1100px;
  --header-h: 60px;

  /* Fluid type scale */
  --step-3: clamp(1.9rem, 1.2rem + 2.6vw, 2.6rem);
  --step-2: clamp(1.5rem, 1.05rem + 1.8vw, 2.1rem);
  --step-1: clamp(1.2rem, 0.95rem + 0.9vw, 1.6rem);
  --step-0: 1rem;
  --step--1: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
}

body{font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; background:var(--color-bg);}

.landing{min-height:100%;display:flex;flex-direction:column;}
.landing main{flex:1;display:flex;flex-direction:column;}

.page{min-height:100%;display:flex;flex-direction:column;background:var(--color-bg);}
.page main{flex:1;margin-top:var(--header-h);display:flex;flex-direction:column;gap:clamp(32px,6vw,56px);padding-bottom:clamp(48px,8vw,80px);}
.page main>section{position:relative;}
.page ::selection{background:rgba(46,125,50,0.16);}

.hero{position:relative;padding:0;}
.hero-full{isolation:isolate;min-height:100vh;display:flex;align-items:stretch;justify-content:center;}
.hero-visual{position:absolute;inset:0;z-index:0;overflow:hidden;background:linear-gradient(180deg,#dcefe2 0%,#f6fbf8 40%,#ffffff 100%);}
.hero-visual canvas{width:100%;height:100%;display:block;}
.hero-visual-filter{position:absolute;inset:0;background:radial-gradient(circle at 40% 20%,rgba(255,255,255,0.35),rgba(255,255,255,0.7));mix-blend-mode:multiply;transition:opacity .6s ease;pointer-events:none;}
.hero-content{position:relative;z-index:1;width:100%;height:100%;padding:calc(var(--header-h) + clamp(12px,5vw,32px)) clamp(18px,4vw,54px) clamp(20px,9vh,60px);display:flex;justify-content:center;align-items:flex-end;pointer-events:none;transition:opacity .45s ease,transform .45s ease;}
.hero-strip{position:relative;width:100%;max-width:clamp(340px,84vw,960px);display:flex;justify-content:space-between;align-items:center;gap:clamp(18px,4vw,32px);padding:clamp(14px,3vw,22px) clamp(18px,4vw,36px);border-radius:22px;background:linear-gradient(180deg,rgba(7,29,12,0.82) 0%,rgba(7,19,11,0.94) 100%);backdrop-filter:saturate(160%) blur(16px);border:1px solid rgba(255,255,255,0.14);box-shadow:0 30px 80px rgba(6,19,12,0.55);pointer-events:auto;}
.hero-strip-text{display:flex;flex-direction:column;gap:10px;color:#ecf6ec;max-width:clamp(300px,46vw,520px);}
.hero-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,0.18);border:1px solid rgba(214,249,217,0.24);color:#d6f9d9;font-weight:600;font-size:0.8rem;letter-spacing:0.28em;text-transform:uppercase;}
.hero-strip-text h1{font-size:clamp(1.5rem,1.05rem + 1.6vw,2.3rem);line-height:1.15;margin:0;color:#f2fbed;}
.hero-strip-copy{margin:0;color:rgba(230,246,232,0.82);font-size:clamp(0.92rem,0.88rem + 0.35vw,1.1rem);max-width:42ch;}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center;}
.hero-actions .btn{box-shadow:none;border-color:rgba(255,255,255,0.12);}
.hero-actions .btn.btn-primary{background:#f5ba27;color:#1a1f11;border:none;box-shadow:0 16px 26px rgba(245,186,39,0.4);}
.hero-link{display:inline-flex;align-items:center;gap:8px;padding:8px 0;color:#c3ead0;text-decoration:none;font-weight:600;letter-spacing:0.01em;position:relative;}
.hero-link::after{content:'';position:absolute;left:0;bottom:0;width:100%;height:2px;background:rgba(195,234,208,0.25);transform-origin:left;transform:scaleX(0);transition:transform .25s ease;}
.hero-link:hover::after{transform:scaleX(1);background:rgba(195,234,208,0.8);}
.hero-hint{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);padding:10px 18px;border-radius:999px;background:rgba(15,23,42,0.7);color:#f9fafb;font-size:0.9rem;letter-spacing:0.02em;display:flex;align-items:center;gap:10px;text-transform:uppercase;z-index:1;pointer-events:none;}
.hero-hint::before{content:'';width:10px;height:18px;border:2px solid #f9fafb;border-radius:12px;position:relative;display:inline-flex;}
.hero-hint::after{content:'';width:4px;height:6px;border-radius:999px;background:#f9fafb;position:relative;margin-left:-4px;animation:scroll-cue 1.8s ease-in-out infinite;}

.hero-mobile-poster{display:none;}

.page-hero{position:relative;padding:clamp(36px,9vw,72px) 0 clamp(42px,8vw,74px);background:linear-gradient(180deg,#e7f4eb 0%,rgba(255,255,255,0.96) 70%,#ffffff 100%);border-bottom:1px solid rgba(46,125,50,0.12);overflow:hidden;}
.page-hero::before{content:'';position:absolute;inset:auto -120px -120px;top:-160px;height:400px;background:radial-gradient(circle at top,rgba(46,125,50,0.18),rgba(46,125,50,0));opacity:0.55;transform:rotate(-8deg);}
.page-hero .container{position:relative;z-index:1;display:grid;gap:clamp(18px,4vw,32px);}
.page-hero h1{font-size:clamp(1.9rem,1.4rem + 1.8vw,2.7rem);line-height:1.15;color:#0f2d18;}
.page-hero p{max-width:100%;font-size:clamp(1rem,0.96rem + 0.3vw,1.2rem);color:rgba(15,45,24,0.74);line-height:1.6;text-align:justify;}
.page-hero .page-meta{display:flex;flex-wrap:wrap;gap:12px;}
.page-chip{display:inline-flex;align-items:center;gap:10px;padding:10px 18px;border-radius:18px;background:rgba(15,45,24,0.08);color:#0f2d18;font-weight:600;font-size:0.92rem;}
.page-chip svg{width:18px;height:18px;stroke:#20592f;fill:none;}
.page-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:rgba(46,125,50,0.12);color:#1b4b26;font-weight:600;letter-spacing:0.12em;text-transform:uppercase;font-size:0.75rem;}
.page-hero-stats{display:flex;flex-wrap:wrap;gap:clamp(16px,4vw,28px);}
.stat-card{min-width:160px;padding:16px 18px;border-radius:18px;background:#ffffff;border:1px solid rgba(34,60,36,0.12);box-shadow:0 12px 24px rgba(16,45,24,0.08);display:grid;gap:4px;}
.stat-card strong{font-size:clamp(1.6rem,1.2rem + 1.4vw,2.2rem);color:#164423;line-height:1;}
.stat-card span{color:#4b5b52;font-size:0.92rem;}

.page-section{padding:0;}
.panel-grid{display:grid;gap:clamp(18px,4vw,32px);}
.panel-grid.two{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.panel-grid.three{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.card-panel{background:#ffffff;border:1px solid rgba(34,60,36,0.12);border-radius:24px;padding:clamp(22px,5vw,34px);box-shadow:0 16px 28px rgba(16,45,24,0.08);display:grid;gap:clamp(10px,2vw,18px);}
.card-panel header{display:grid;gap:10px;}
.card-panel h2,.card-panel h3{color:#0f2d18;}
.lead{color:#4b5b52;font-size:1.05rem;line-height:1.6;}
.feature-list{display:grid;gap:8px;padding-left:1.1rem;}
.feature-list li{color:#2a3c30;line-height:1.55;}
.feature-list li strong{color:#0f2d18;}
.mini-card-grid{display:grid;gap:clamp(16px,4vw,24px);grid-template-columns:repeat(auto-fit,minmax(180px,1fr));}
.mini-card{background:#ffffff;border:1px solid rgba(34,60,36,0.14);border-radius:18px;padding:18px;box-shadow:0 10px 22px rgba(16,45,24,0.08);display:grid;gap:6px;}
.mini-card h4{margin:0;color:#123720;}
.mini-card p{margin:0;color:#4f5f57;font-size:0.95rem;}
.ribbon{display:flex;align-items:center;gap:10px;font-weight:600;color:#1f4d2a;}
.ribbon::before{content:'';width:10px;height:10px;border-radius:999px;background:#2e7d32;box-shadow:0 0 0 4px rgba(46,125,50,0.18);}

.cta-band{margin-top:clamp(20px,4vw,32px);border-radius:26px;background:linear-gradient(120deg,rgba(46,125,50,0.12) 0%,rgba(46,125,50,0.02) 100%);border:1px solid rgba(46,125,50,0.12);padding:clamp(24px,5vw,36px);display:flex;flex-direction:column;gap:clamp(16px,2.5vw,24px);}
.cta-band strong{font-size:1.2rem;color:#123720;}
.cta-band-actions{display:flex;flex-wrap:wrap;gap:14px;}
.cta-band .btn{min-width:160px;}

.donation-tier{display:grid;gap:12px;}
.donation-tier .btn.btn-primary{justify-self:flex-start;}

.contact-layout{display:grid;grid-template-columns:1.05fr 0.95fr;gap:clamp(24px,5vw,36px);align-items:start;}
.contact-map{border-radius:28px;overflow:hidden;box-shadow:0 24px 48px rgba(16,45,24,0.12);border:1px solid rgba(34,60,36,0.12);background:#e6f4eb;min-height:360px;}
.contact-map iframe{width:100%;height:100%;border:0;}
.contact-card{display:grid;gap:clamp(14px,3vw,20px);}
.contact-card dl{display:grid;gap:14px;margin:0;}
.contact-card dl>div{display:grid;gap:4px;}
.contact-card dt{font-weight:700;color:#10361e;}
.contact-card dd{margin:0;color:#4b5b52;}
.contact-card a{color:#20592f;text-decoration:none;}
.contact-card a:hover{text-decoration:underline;}

@keyframes scroll-cue{
  0%{transform:translateY(-1px);opacity:0.4;}
  40%{transform:translateY(4px);opacity:1;}
  100%{transform:translateY(8px);opacity:0;}
}

.container{max-width:var(--container);margin-inline:auto;padding-inline:clamp(24px, 5vw, 36px);width:100%;}

/* Header */
.header{position:fixed;top:0;left:0;right:0;z-index:60;transition:background .35s ease,box-shadow .35s ease,border-color .35s ease,opacity .4s ease,transform .4s ease;backdrop-filter:saturate(180%) blur(18px);background:linear-gradient(180deg,rgba(255,255,255,0.78) 0%,rgba(255,255,255,0.35) 100%);border-bottom:1px solid rgba(255,255,255,0.4);}
.header.is-solid{background:rgba(255,255,255,0.94);border-bottom:1px solid var(--color-border);box-shadow:0 10px 30px rgba(15,23,42,0.08);}
.nav{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:var(--header-h);padding:8px 0}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--color-text)}
.brand img{width:100px;height: 100px;}
.brand span{font-weight:700;font-size:clamp(1rem,0.9rem + 0.4vw,1.2rem)}
.nav-links{display:flex;align-items:center;gap:24px;margin-left:auto;}
.nav-links-list{display:flex;align-items:center;gap:18px}
.nav-links-list a{color:var(--color-text);text-decoration:none;padding:8px 10px;border-radius:10px;font-weight:600;}
.nav-links-list a:hover,.nav-links-list a[aria-current="page"]{background:var(--color-surface)}
.nav-links-actions{display:flex;align-items:center;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;min-height:44px;border-radius:10px;border:1px solid var(--color-border);background:#fff;color:var(--color-text);text-decoration:none;box-shadow:var(--shadow-sm);-webkit-tap-highlight-color: transparent}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--color-primary);color:var(--color-primary-contrast);border-color:transparent}
.btn-accent{background:var(--color-accent);color:#111827;border-color:transparent}
.btn-outline{background:transparent;color:var(--color-text);border-color:rgba(17,24,39,0.2);}
.btn-ghost{background:rgba(255,255,255,0.72);color:#123720;border-color:rgba(17,24,39,0.12);}
.btn-ghost:hover{background:#ffffff;}
.menu-toggle{display:none;border:none;border-radius:999px;background:rgba(255,255,255,0.85);color:#123720;align-items:center;gap:8px;padding:10px 14px;font-weight:600;box-shadow:0 6px 18px rgba(18,46,28,0.18);}
.menu-toggle-icon{display:inline-block;position:relative;width:16px;height:2px;background:currentColor;border-radius:999px;}
.menu-toggle-icon::before,.menu-toggle-icon::after{content:'';position:absolute;left:0;width:100%;height:2px;background:currentColor;border-radius:999px;transition:transform .3s ease,opacity .3s ease;}
.menu-toggle-icon::before{top:-5px;}
.menu-toggle-icon::after{top:5px;}
.menu-toggle-label{font-size:0.9rem;}

@media (max-width: 760px){
  .nav{gap:12px;padding:6px 0;}
  .nav-links{display:none;position:fixed;top:calc(var(--header-h) + 14px);left:clamp(12px,6vw,24px);right:clamp(12px,6vw,24px);flex-direction:column;align-items:stretch;gap:16px;padding:20px 22px;border-radius:26px;background:rgba(9,24,16,0.94);border:1px solid rgba(255,255,255,0.08);box-shadow:0 22px 60px rgba(4,12,8,0.55);backdrop-filter:blur(30px);z-index:120;max-height:calc(100vh - var(--header-h) - 48px);overflow:auto;}
  .nav-links.open{display:flex;}
  .nav-links-list{flex-direction:column;align-items:stretch;gap:10px;}
  .nav-links-list a{padding:14px 18px;border-radius:16px;font-size:1.05rem;font-weight:600;color:#e9f5eb;background:rgba(255,255,255,0.06);}
  .nav-links-list a:hover,.nav-links-list a[aria-current="page"]{background:rgba(255,255,255,0.16);}
  .nav-links-actions{flex-direction:column;gap:10px;margin-top:4px;}
  .nav-links-actions .btn{width:100%;min-height:46px;padding:12px 16px;}
  .nav-links-actions .btn-ghost{background:rgba(255,255,255,0.14);color:#f2faf4;border-color:rgba(255,255,255,0.24);}
  .menu-toggle{display:inline-flex;}
  .nav-links.open ~ .menu-toggle .menu-toggle-icon{background:transparent;}
  .nav-links.open ~ .menu-toggle .menu-toggle-icon::before{top:0;transform:rotate(45deg);}
  .nav-links.open ~ .menu-toggle .menu-toggle-icon::after{top:0;transform:rotate(-45deg);opacity:1;}
  .nav-links.open ~ .menu-toggle .menu-toggle-label{opacity:0.85;}
}

#goshala-3d{width:100%;height:100%;display:block;background:transparent}

/* Sections */
section{padding:clamp(28px,4.5vw,48px) 0}
.section{padding:clamp(64px,8vw,96px) 0}
.section-title{font-size:var(--step-2);margin-bottom:12px}
.section-desc{color:var(--color-muted);margin-bottom:24px}
.grid{display:grid;gap:16px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
@media (max-width: 1100px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 900px){

  html {
    font-size: 16px; /* Makes all text smaller on phones */
  }

  /* Stacks all general 2 and 3-column grids */
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* FIX: Stacks all panel-style grids
    (This fixes the Home page address and all Donate page cards) 
  */
  .panel-grid,
  .panel-grid.two,
  .panel-grid.three {
    grid-template-columns: 1fr;
  }

  /* FIX: Fixes "cut off" text on Donate page
  */
  .donation-tier .page-eyebrow,
  .donation-tier .lead {
     overflow-wrap: break-word; /* Forces long words to wrap */
  }

  /* --- This block was moved from line 339 --- */
  .hero-content {
    padding: calc(var(--header-h) + 14px) clamp(18px,4vw,32px) clamp(48px,16vh,120px);
  }
  .hero-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .programs-layout {
    grid-template-columns: 1fr;
  }
  .programs-intro .btn-outline {
    width: 100%;
  }
  .immersive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mission-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-map {
    min-height: 300px;
  }
  .cta-band {
    align-items: flex-start;
  }
}
@media (max-width: 720px){
  .grid-4{grid-template-columns:1fr}
}

.card{background:#fff;border:1px solid var(--color-border);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow-sm); height: 100%;}
.card h3{margin-bottom:8px}
.card p{color:var(--color-muted)}

.section-support{background:linear-gradient(180deg,rgba(222,247,229,0.45) 0%,rgba(255,255,255,0.9) 100%);}
.support-grid{gap:18px;}
.section-programs{background:#fff;}
.programs-layout{
  display:grid;
  grid-template-columns: 1fr; /* <-- THIS IS THE CHANGE */
  gap:clamp(24px,5vw,48px);
  align-items:start;
}
.programs-intro{display:flex;flex-direction:column;gap:18px;}
.programs-intro .btn-outline{align-self:flex-start;}
.programs-grid{gap:18px;}
.section-involvement{background:var(--color-surface);border-top:1px solid var(--color-border);}
@media (max-width: 900px){
  .hero-content{padding:calc(var(--header-h) + 14px) clamp(18px,4vw,32px) clamp(48px,16vh,120px);}
  .hero-strip{flex-direction:column;align-items:flex-start;gap:18px;}
  .programs-layout{grid-template-columns:1fr;}
  .programs-intro .btn-outline{width:100%;}
}
@media (max-width: 760px){
  .hero-visual{display:none;}
  .hero-mobile-poster{display:block;position:absolute;inset:0;background:url('../images/hero/mobile-hero.jpg') center/cover no-repeat;z-index:0;}
  .hero-content{pointer-events:none;padding:calc(var(--header-h) + clamp(12px,8vw,36px)) clamp(16px,6vw,28px) clamp(52px,20vh,120px);}
  .hero-content:not(.mobile-hero-hidden){pointer-events:auto;}
  .hero-content .hero-strip{background:rgba(17,34,22,0.9);box-shadow:0 22px 48px rgba(10,28,16,0.5);}
  .hero-content.mobile-hero-hidden{opacity:0;transform:translateY(48px);}
  .hero-content.mobile-hero-hidden .hero-strip{pointer-events:none;}
  .header.mobile-hero-hidden{opacity:0;transform:translateY(-18px);pointer-events:none;}
  .hero-hint{display:none;}
}
@media (max-width: 640px){
  .hero-content{align-items:flex-end;padding:calc(var(--header-h) + 12px) 16px clamp(52px,18vh,120px);}
  .hero-strip{padding:20px 18px;}
  .hero-strip-text{max-width:100%;}
  .hero-actions{width:100%;flex-direction:column;align-items:stretch;}
  .hero-actions .btn{width:100%;}
  .hero-hint{bottom:18px;font-size:0.8rem;}
}

.section-immersive{background:linear-gradient(180deg,rgba(46,125,50,0.08) 0%,rgba(255,255,255,0.98) 100%);border-top:1px solid rgba(46,125,50,0.12);border-bottom:1px solid var(--color-border);}
.immersive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,5vw,32px);}
.immersive-card{background:#ffffff;border:1px solid var(--color-border);border-radius:20px;padding:clamp(18px,4vw,26px);box-shadow:0 18px 32px rgba(18,55,25,0.12);display:grid;gap:12px;position:relative;overflow:hidden;}
.immersive-card::after{content:'';position:absolute;right:18px;bottom:18px;width:62px;height:62px;border-radius:20px;background:radial-gradient(circle at top left,rgba(46,125,50,0.22),rgba(46,125,50,0));opacity:.5;pointer-events:none;}
.immersive-label{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:rgba(39,100,47,0.12);color:#1f4d2a;font-weight:600;font-size:0.8rem;letter-spacing:0.06em;text-transform:uppercase;}
.immersive-card h3{font-size:1.2rem;color:var(--color-text);}
.section-mission{background:var(--color-surface);border-top:1px solid var(--color-border);border-bottom:1px solid var(--color-border);}
.mission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,4vw,36px);}
.mission-card{background:#ffffff;border:1px solid var(--color-border);border-radius:24px;padding:clamp(20px,5vw,32px);box-shadow:var(--shadow-sm);display:grid;gap:14px;position:relative;overflow:hidden;}
.mission-card::after{content:'';position:absolute;inset:0;border-radius:24px;background:linear-gradient(180deg,rgba(33,82,44,0.08) 0%,rgba(255,255,255,0) 45%);pointer-events:none;}
.pill-soft{background:rgba(46,125,50,0.12);border-color:rgba(46,125,50,0.28);color:#1f4d2a;}
.mission-card h2{font-size:clamp(1.4rem,1.05rem + 1vw,1.9rem);}
.mission-card p{color:var(--color-muted);}
.mission-list{list-style:disc;padding-left:1.2rem;display:grid;gap:8px;color:var(--color-text);font-size:0.98rem;}
.mission-list li{line-height:1.5;}
.vision-card{background:linear-gradient(160deg,rgba(46,125,50,0.08) 0%,rgba(255,255,255,0.95) 70%);}

.mission-triangles .mission-card{max-width:880px;margin-inline:auto;align-items:center;text-align:center;gap:clamp(18px,3vw,26px);}
.mission-triangles .mission-header{display:grid;gap:12px;}
.mission-eyebrow{font-size:0.8rem;letter-spacing:0.24em;text-transform:uppercase;color:#1f4d2a;font-weight:700;}
.mission-title{font-size:clamp(1.8rem,1.4rem + 1.6vw,2.6rem);color:#0f2d18;margin:0;}
.mission-subtext{color:#475a4e;font-size:clamp(1rem,0.95rem + 0.35vw,1.15rem);margin:0;}
.triangle-board{position:relative;margin:clamp(20px,4vw,36px) auto;width:min(320px,65vw);aspect-ratio:1;background:radial-gradient(circle at 50% 82%,rgba(46,125,50,0.08),rgba(46,125,50,0));border-radius:32px;display:grid;place-items:center;padding:clamp(20px,4vw,28px);}
.triangle-board .tri{width:100%;height:auto;}
.tri-outline{fill:none;stroke:rgba(31,77,42,0.18);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 8px 16px rgba(16,45,24,0.18));}
.triangle-board .vertex{position:absolute;width:110px;height:110px;border-radius:50%;border:3px solid rgba(31,77,42,0.24);background:radial-gradient(circle at 30% 30%,rgba(243,252,244,0.9),rgba(224,241,228,0.65));display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .25s ease,box-shadow .25s ease;padding:12px;}
.triangle-board .vertex-label{font-size:0.7rem;font-weight:700;color:#1f4d2a;text-align:center;line-height:1.0;letter-spacing:0.01em;text-transform:uppercase;word-wrap:break-word;hyphens:auto;}
.triangle-board .vertex:hover{transform:translate(-50%,-50%) scale(1.04);box-shadow:0 14px 32px rgba(16,45,24,0.18);}
.triangle-board .vertex:focus-visible{outline:3px solid rgba(46,125,50,0.5);outline-offset:6px;}
.triangle-board .vertex{left:calc((var(--vx)/200) * 100%);top:calc((var(--vy)/180) * 100%);transform:translate(-50%,-50%);}
/* This is the fixed rule */
.triangle-board .popup {
  position: fixed;
  max-width: 500px;
  width: 400px; /* <--- SET A 'width' INSTEAD OF 'min-width' */
  max-width: calc(100vw - 32px); /* <--- ADD THIS LINE */
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(34, 60, 36, 0.16);
  box-shadow: 0 20px 40px rgba(16, 45, 24, 0.15);
  display: grid;
  gap: 16px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 1000;
}.triangle-board .popup[data-open="true"]{opacity:1;pointer-events:auto;transform:translateY(0);}
.triangle-board .popup h3{margin:0;color:#0f2d18;font-size:1.2rem;font-weight:700;line-height:1.3;}
.triangle-board .popup p{margin:0;color:#475a4e;font-size:0.95rem;line-height:1.5;}
.triangle-board .popup p strong{color:#1f4d2a;font-weight:600;}
.triangle-board .popup p.muted{margin-top:12px;font-style:italic;color:#6b7280;font-size:0.85rem;}
.mission-triangles .interaction-hint{color:#4b5b52;font-size:0.9rem;margin:0 auto;text-align:center;}

/* Mission Objectives Styling */
.mission-objectives{margin-top:clamp(20px,4vw,32px);}
.mission-objectives h3{color:#0f2d18;font-size:1.3rem;margin-bottom:clamp(16px,3vw,24px);text-align:center;}
.objective-list{display:grid;gap:clamp(16px,3vw,24px);}
.objective-item{background:rgba(46,125,50,0.05);border:1px solid rgba(46,125,50,0.12);border-radius:16px;padding:clamp(16px,3vw,24px);}
.objective-item h4{color:#1f4d2a;font-size:1.1rem;margin:0 0 8px 0;font-weight:600;}
.objective-item p{margin:0;color:#475a4e;font-size:0.95rem;line-height:1.5;}

/* Timeline Styling */
.timeline{display:grid;gap:clamp(20px,4vw,32px);margin:clamp(20px,4vw,32px) 0;}
.timeline-item{display:grid;grid-template-columns:120px 1fr;gap:clamp(16px,3vw,24px);align-items:start;}
.timeline-date{background:rgba(46,125,50,0.12);color:#1f4d2a;font-weight:600;font-size:0.9rem;padding:8px 12px;border-radius:12px;text-align:center;white-space:nowrap;}
.timeline-content h3{color:#0f2d18;font-size:1.1rem;margin:0 0 8px 0;font-weight:600;}
.timeline-content p{margin:0;color:#475a4e;font-size:0.95rem;line-height:1.5;}
.daily-routine{margin-top:clamp(20px,4vw,32px);padding-top:clamp(20px,4vw,32px);border-top:1px solid rgba(46,125,50,0.12);}
.daily-routine h3{color:#0f2d18;font-size:1.2rem;margin:0 0 12px 0;font-weight:600;}

/* Experience Content Styling */
.experience-content{display:grid;gap:clamp(20px,4vw,32px);}
.benefits-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:clamp(16px,3vw,24px);margin:clamp(20px,4vw,32px) 0;}
.benefit-item{background:rgba(46,125,50,0.05);border:1px solid rgba(46,125,50,0.12);border-radius:16px;padding:clamp(16px,3vw,24px);text-align:center;}
.benefit-item h3{color:#1f4d2a;font-size:1.1rem;margin:0 0 8px 0;font-weight:600;}
.benefit-item p{margin:0;color:#475a4e;font-size:0.95rem;line-height:1.5;}
.invitation{background:rgba(46,125,50,0.08);border:1px solid rgba(46,125,50,0.16);border-radius:20px;padding:clamp(20px,4vw,32px);text-align:center;}
.invitation h3{color:#0f2d18;font-size:1.2rem;margin:0 0 12px 0;font-weight:600;}
.invitation p{margin:0;color:#475a4e;font-size:1rem;line-height:1.6;}

/* Vision Content Styling */
.vision-content{display:grid;gap:clamp(20px,4vw,32px);}
.vision-projects{display:grid;gap:clamp(16px,3vw,24px);margin:clamp(20px,4vw,32px) 0;}
.project-item{background:rgba(46,125,50,0.05);border:1px solid rgba(46,125,50,0.12);border-radius:16px;padding:clamp(16px,3vw,24px);}
.project-item h3{color:#1f4d2a;font-size:1.1rem;margin:0 0 8px 0;font-weight:600;}
.project-item p{margin:0;color:#475a4e;font-size:0.95rem;line-height:1.5;}

@media (max-width: 680px){
  .timeline-item{grid-template-columns:1fr;gap:12px;}
  .timeline-date{text-align:left;width:fit-content;}
  .benefits-grid{grid-template-columns:1fr;}
}

@media (max-width: 680px){
  .triangle-board{width:min(280px,75vw);padding:20px;}
  .triangle-board .vertex{width:70px;height:70px;border-width:2.5px;padding:8px;}
  .triangle-board .vertex-label{font-size:0.6rem;}
  .triangle-board .popup{max-width:320px;width:max-content;min-width:280px;padding:20px;font-size:0.9rem;}
}

.section-family{background:#fff;border-top:1px solid var(--color-border);}

/* Dual Family Trees Desktop */
.dual-family-trees{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:clamp(36px,6vw,64px);margin:clamp(24px,4vw,40px) 0;align-items:flex-start;}
.family-tree-container{display:flex;flex-direction:column;align-items:center;gap:clamp(16px,3vw,24px);padding:clamp(24px,4vw,36px) clamp(20px,3vw,28px);border:1px solid rgba(34,60,36,0.08);border-radius:28px;background:linear-gradient(180deg,rgba(245,251,245,0.92) 0%,rgba(238,248,240,0.72) 100%);box-shadow:0 24px 50px rgba(16,45,24,0.08);}
.tree-title{color:#0f2d18;font-size:1.2rem;text-align:center;font-weight:600;margin-bottom:clamp(12px,2vw,18px);}
.family-tree{width:100%;--connector:clamp(20px,3vw,32px);--line-color:rgba(46,125,50,0.35);display:flex;flex-direction:column;align-items:center;}
.tree-node{position:relative;display:flex;flex-direction:column;align-items:center;gap:clamp(12px,2.5vw,18px);min-width:0;}
.tree-node:not(.root){padding-top:var(--connector);}
.tree-node:not(.root)::before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:2px;height:var(--connector);background:linear-gradient(to bottom,rgba(46,125,50,0.55),rgba(46,125,50,0));z-index:0;}
.tree-node.has-children>.family-card::after{content:'';position:absolute;bottom:calc(-1 * var(--connector));left:50%;transform:translateX(-50%);width:2px;height:var(--connector);background:linear-gradient(to bottom,rgba(46,125,50,0),rgba(46,125,50,0.55));z-index:0;}
.tree-children{display:flex;flex-wrap:nowrap;justify-content:center;gap:clamp(16px,3vw,28px);padding-top:var(--connector);position:relative;margin:0 auto;width:max-content;max-width:100%;overflow-x:auto;}
.tree-children::before{content:'';position:absolute;top:0;left:0;width:100%;height:2px;background:linear-gradient(to right,rgba(46,125,50,0.05),var(--line-color),rgba(46,125,50,0.05));}
.tree-children.single-child{justify-content:center;}
.tree-children.single-child::before{display:none;}
.tree-children>.tree-node{flex:0 0 auto;}
.family-card{background:#ffffff;border:1px solid rgba(34,60,36,0.16);border-radius:16px;padding:clamp(12px,2vw,18px);box-shadow:0 8px 20px rgba(16,45,24,0.1);display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;min-width:110px;position:relative;z-index:1;}
.family-card.root-card{background:linear-gradient(145deg,rgba(46,125,50,0.15) 0%,rgba(46,125,50,0.05) 100%);border-color:rgba(46,125,50,0.28);transform:scale(1.05);}
.family-card.parent-card{background:linear-gradient(145deg,rgba(46,125,50,0.08) 0%,rgba(46,125,50,0.02) 100%);}
.family-card.child-card{background:#fbfdfa;}
.family-card h3,.family-card h4,.family-card h5{margin:0;color:#10361e;font-weight:600;}
.family-card h3{font-size:1rem;}
.family-card h4{font-size:0.9rem;}
.family-card h5{font-size:0.8rem;}
.family-card p{margin:0;color:#4b5b52;font-size:0.8rem;line-height:1.3;}

/* Connection Lines */

/* Mobile Family Trees */
.family-tree-mobile{display:none;grid-template-columns:1fr 1fr;gap:clamp(20px,3vw,28px);margin:clamp(20px,3vw,28px) 0;}
.mobile-tree-section{display:flex;flex-direction:column;gap:clamp(12px,2vw,18px);}
.mobile-tree-section h3{color:#0f2d18;font-size:1.1rem;text-align:center;font-weight:600;margin-bottom:clamp(8px,1.5vw,12px);}
.mobile-node,.mobile-branch{position:relative;background:#ffffff;border:1px solid rgba(34,60,36,0.14);border-radius:16px;padding:clamp(12px,2vw,18px);box-shadow:0 8px 18px rgba(16,45,24,0.1);display:flex;align-items:center;gap:clamp(8px,1.5vw,12px);overflow:visible;}
.mobile-root{background:linear-gradient(145deg,rgba(46,125,50,0.15) 0%,rgba(46,125,50,0.05) 100%);border-color:rgba(46,125,50,0.28);}
.mobile-branch header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;width:100%;}
.mobile-branch header > div{display:flex;align-items:center;gap:clamp(8px,1.5vw,12px);}
.mobile-branch header .badge{padding:4px 8px;border-radius:999px;background:rgba(46,125,50,0.12);color:#1f4d2a;font-weight:600;font-size:0.65rem;letter-spacing:0.1em;text-transform:uppercase;white-space:nowrap;}
.mobile-children{display:grid;gap:6px;padding-left:0;margin:6px 0 0 0;list-style:none;}
.mobile-children li{padding:8px 10px;border:1px solid rgba(34,60,36,0.12);border-radius:12px;background:linear-gradient(135deg,rgba(238,248,240,0.75) 0%,rgba(238,248,240,0.4) 100%);box-shadow:0 4px 12px rgba(16,45,24,0.08);display:flex;align-items:center;gap:8px;}
.mobile-children h5{margin:0;color:#144326;font-size:0.85rem;font-weight:600;}
.mobile-children p{margin:0;color:#4b5b52;font-size:0.75rem;}
.mobile-node h3,.mobile-branch h4{margin:0;color:#10361e;font-weight:600;}
.mobile-node h3{font-size:0.95rem;}
.mobile-branch h4{font-size:0.9rem;}
.mobile-node p,.mobile-branch p{margin:0;color:#4b5b52;font-size:0.8rem;line-height:1.3;}

.family-tree-desktop{display:none;position:relative;margin-top:32px;padding:24px clamp(16px,4vw,32px);}
.family-tree-desktop svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.family-tree-desktop-grid{display:grid;row-gap:clamp(26px,4vw,40px);}
.family-tree-row{display:grid;justify-content:center;justify-items:center;gap:clamp(24px,4vw,36px);}
.family-tree-row.root{grid-template-columns:repeat(5,minmax(0,1fr));}
.family-tree-row.root .family-card{grid-column:3;}
.family-tree-row.parents{grid-template-columns:repeat(3,minmax(220px,260px));}
.family-tree-row.children{grid-template-columns:repeat(6,minmax(150px,1fr));gap:clamp(18px,2.8vw,28px);}
.family-tree-desktop .family-card{position:relative;background:#ffffff;border:1px solid rgba(34,60,36,0.16);border-radius:24px;padding:22px 24px;text-align:center;box-shadow:0 18px 40px rgba(16,45,24,0.12);display:grid;gap:6px;min-width:0;justify-self:center;}
.family-tree-desktop .family-card h3,
.family-tree-desktop .family-card h4,
.family-tree-desktop .family-card h5{margin:0;color:#10361e;}
.family-tree-desktop .family-card p{margin:0;color:#4b5b52;font-size:0.96rem;}
.family-tree-desktop .family-card.root{background:linear-gradient(150deg,rgba(46,125,50,0.2) 0%,rgba(46,125,50,0.08) 100%);border-color:rgba(46,125,50,0.26);}
.family-tree-desktop .family-card.parent{background:linear-gradient(140deg,rgba(46,125,50,0.08) 0%,rgba(46,125,50,0.02) 100%);}
.family-tree-desktop .family-card.child{background:#fbfdfa;}
.family-tree-desktop .family-card.child::before{content:'';position:absolute;inset:-12px;border-radius:28px;background:radial-gradient(circle at top,rgba(46,125,50,0.12),rgba(46,125,50,0));z-index:-1;}

@media (min-width: 861px){
  .family-tree-mobile{display:none;}
  .dual-family-trees{display:grid;}
}

@media (max-width: 860px){
  .dual-family-trees{display:none;}
  .family-tree-mobile{display:grid;}
}

@media (max-width: 680px){
  .family-tree-mobile{grid-template-columns:1fr;gap:clamp(20px,4vw,28px);}
  .mobile-tree-section{margin-bottom:clamp(20px,4vw,28px);}
}

.section-gallery{background:var(--color-surface);border-top:1px solid var(--color-border);border-bottom:1px solid var(--color-border);}
.section-gallery .carousel{margin-top:24px;}

.section-gallery .carousel-btn{background:rgba(255,255,255,0.92);}

@media (max-width: 900px){
  .immersive-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .mission-grid{grid-template-columns:1fr;}
  .contact-layout{grid-template-columns:1fr;}
  .contact-map{min-height:300px;}
  .cta-band{align-items:flex-start;}
}
@media (max-width: 720px){
  .immersive-grid{grid-template-columns:1fr;}
  .mission-list{padding-left:1rem;}
}
@media (max-width: 640px){
  .carousel-slide{padding:clamp(12px,6vw,20px);}
  .carousel-caption{left:16px;bottom:16px;}
}

/* Gallery */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:8px}
.gallery img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:10px}

/* Carousel */
.carousel{position:relative}
.carousel-viewport{overflow:hidden;border-radius:var(--radius);background:rgba(255,255,255,0.86);box-shadow:var(--shadow-sm);}
.carousel-track{display:flex;will-change:transform;transition:transform .4s ease}
.carousel-slide{flex:0 0 100%;position:relative;display:flex;align-items:center;justify-content:center;padding:clamp(16px,4vw,32px);overflow:visible;border-radius:inherit;aspect-ratio:16/9;}
.carousel-slide::before,
.carousel-slide::after{content:'';position:absolute;inset:-12%;pointer-events:none;}
.carousel-slide::before{background-image:var(--photo);background-size:cover;background-position:center;filter:blur(28px) saturate(112%);transform:scale(1.08);opacity:.88;}
.carousel-slide::after{inset:0;background:linear-gradient(180deg,rgba(255,255,255,0.55) 0%,rgba(255,255,255,0.22) 55%,rgba(255,255,255,0.08) 100%);}
.carousel-slide img{position:relative;z-index:1;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border-radius:calc(var(--radius) - 4px);border:1px solid rgba(17,24,39,0.12);box-shadow:0 18px 36px rgba(17,24,39,0.18);background:rgba(255,255,255,0.9);}
.carousel-caption{position:absolute;left:24px;bottom:24px;background:rgba(0,0,0,.6);color:#fff;padding:8px 12px;border-radius:10px;font-size:var(--step--1);z-index:2;}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);background:#fff;border:1px solid var(--color-border);border-radius:999px;box-shadow:var(--shadow-sm);width:40px;height:40px;display:grid;place-items:center;cursor:pointer}
.carousel-btn[disabled]{opacity:.5;cursor:default}
.carousel-prev{left:8px}
.carousel-next{right:8px}
.carousel-dots{display:flex;justify-content:center;gap:8px;margin-top:10px}
.carousel-dot{width:8px;height:8px;border-radius:999px;background:#d1d5db;border:none}
.carousel-dot[aria-current="true"],.carousel-dot.active{background:#2e7d32}

/* Forms */
.form{display:grid;gap:12px}
.field{display:grid;gap:6px}
label{font-weight:600}
input[type="text"],input[type="email"],textarea,select{border:1px solid var(--color-border);border-radius:10px;padding:10px}
textarea{min-height:120px;resize:vertical}

/* Footer */
.footer{border-top:1px solid var(--color-border);background:#fff;padding:24px 0;margin-top:20px}
.footer .cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px}
@media (max-width: 900px){.footer .cols{grid-template-columns:1fr}}
.footer a{color:inherit;text-decoration:none}
.footer a:hover{opacity:.8}
.copyright{color:var(--color-muted);margin-top:10px;font-size:.95rem}

/* Utilities */
.muted{color:var(--color-muted)}
.surface{background:var(--color-surface);border:1px solid var(--color-border)}
.surface.overlay-panel{background:rgba(249,250,251,0.85);border-color:rgba(255,255,255,0.5);}
.stack-6>*+*{margin-top:6px}
.stack-10>*+*{margin-top:10px}
.stack-16>*+*{margin-top:16px}
.stack-20>*+*{margin-top:20px}
.pill{display:inline-block;background:#ecfdf5;color:#03543f;border:1px solid #a7f3d0;padding:4px 10px;border-radius:999px;font-size:.85rem}

/* Motion preferences */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}
  .btn:hover{transform:none}
}

/*
========================================
NEW Family Tree Image Section (Corrected)
========================================
*/

.family-tree-image-container {
  display: flex;
  justify-content: center; 
  
  /* CHANGED: This is the key. 
    'stretch' will make both image wrappers 
    the same height (as tall as the tallest one).
  */
  align-items: stretch; 

  flex-wrap: nowrap;
  gap: 1.5rem;           
  max-width: 1000px; 
  margin: 0 auto;
}

.family-tree-image-wrapper {
  flex: 1; /* This makes both wrappers have the same width */
  min-width: 0;

  /* ADDED: This will vertically center the shorter 
    image ('Kumkum') inside its wrapper, which now
    has the same height as the 'Saraswathi' wrapper.
  */
  display: flex;
  align-items: center;
}

.family-tree-image-wrapper img {
  /* This code is the same as before and is correct */
  /* It keeps the image from being distorted */
  width: 100%; 
  height: auto;
  
  /* Your existing styles */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

/* Centers the text inside the full-width info box */
.immersive-card .container {
    text-align: center;
}

/* Utility class to reduce space between bullet points */
.compact-list li {
  margin-bottom: 0.25rem; /* Reduces space below each item. Adjust '0.25rem' as you like */
  padding-bottom: 0;
}

/* --- Hero List & Spacing Adjustments --- */

/* 1. Reduces the space *after* the h1 tags in this specific section */
.page-hero h1 {
  margin-bottom: 1rem; /* Adjust '1rem' as needed */
}

/* 2. Increases the font size of your list items in this section */
.page-hero .compact-list li {
  font-size: var(--normal-font-size); /* Uses your site's standard 'normal' font size */
  line-height: 1.6; /* Adds a little space between lines for readability */
}

/* 3. Ensures the list doesn't have extra space *before* it */
.page-hero .compact-list {
  margin-top: 0;
}

/* --- CTA Button Alignment (Fix) --- */

/* 1. Removes background, padding, border, and shadow */
.cta-band {
  background: none;
  padding: 0;
  margin-bottom: 2rem; /* Adds some space below the button */
  border: none;
  box-shadow: none;
}

/* 2. Aligns the button container to the left */
.cta-band-actions {
  text-align: left;
}

/* --- Mission Objectives Redesign --- */

/* 1. Reset the parent container and set up the CSS counter */
.mission-objectives {
  /* This removes any old background you might have had */
  background: none; 
  border: none;
  box-shadow: none;
  
  /* This 'counter' is used to number the items automatically */
  counter-reset: objective-counter; 
}

/* 2. Style the heading (optional, but good for consistency) */
.mission-objectives h3 {
  text-align: center;
  margin-bottom: var(--mb-2-5);
}

/* 3. Create the 3-column grid for the list */
.objective-list {
  display: grid;
  grid-template-columns: 1fr; /* 1 column on mobile */
  gap: 2rem;
}

/* 4. Style the individual items (THIS IS THE MAIN FIX) */
.objective-item {
  /* REMOVE THE OLD BOX-BOX LOOK */
  background: none; 
  border: none;
  padding: 0;
  
  /* Set up for the styled number */
  position: relative;
  padding-left: 5.5rem; /* Makes space for the big number */
  min-height: 80px; /* Ensures items align even if text is short */
}

/* 5. Create the new, styled numbers */
.objective-item::before {
  /* Get the number from our counter */
  counter-increment: objective-counter;
  content: "0" counter(objective-counter) ; 

  /* Styling the number */
  position: absolute;
  left: 0;
  top: -10px; /* Adjust as needed */
  font-size: 3rem; /* Big number! */
  font-weight: var(--font-semi-bold);
  color: var(--first-color-lighter); /* Use your site's accent color */
  line-height: 1;
}

/* 6. Style the item's text */
.objective-item h4 {
  color: var(--title-color);
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.objective-item p {
  color: var(--text-color);
}


/* 7. On larger screens, switch to 3 columns */
@media screen and (min-width: 768px) {
  .objective-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .objective-item {
    /* On desktop, put the number on top */
    padding-left: 0;
    padding-top: 4rem; /* Makes space for the number above */
    text-align: center;
  }
  
  .objective-item::before {
    top: 0;
    left: 50%; /* Center the number */
    transform: translateX(-50%);
  }
}

/* --- Vision Projects Redesign (Single Column) --- */

.vision-content {
    /* This will be our counter parent */
    counter-reset: project-counter;
}

.vision-projects {
    margin-top: 2rem; /* Space above the list */
}

/* 1. Style the individual project items */
.project-item {
    /* Remove any old boxy styles */
    background: none;
    border: none;
    padding: 0;
    
    /* Set up for the styled number */
    position: relative;
    padding-left: 5.5rem; /* Makes space for the big number */
    min-height: 80px; /* Ensures items align */
    margin-bottom: 1.5rem; /* Space between each item */
}

/* 2. Remove space from the last item */
.project-item:last-child {
    margin-bottom: 0;
}

/* 3. Create the new, styled numbers */
.project-item::before {
    /* Get the number from our counter */
    counter-increment: project-counter;
    content: "0" counter(project-counter) ; 

    /* Styling the number */
    position: absolute;
    left: 0;
    top: -10px; /* Adjust as needed */
    font-size: 4rem; /* Big number! */
    font-weight: 600; /* Use a real value */
    color: rgba(0, 0, 0, 0.35); /* Use a light green from your file */
    line-height: 1;
}

/* 4. Style the item's text (THIS IS THE KEY FIX) */
.project-item h2 { /* <-- Correctly targets H2 now */
    color: #1f4d2a;                 /* Value from your original file */
    font-size: 1.1rem;             /* Value from your original file */
    font-weight: 600;              /* Value from your original file */
    margin: 0 0 8px 0;             /* The small margin we wanted */
}

.project-item p {
    color: #475a4e;                 /* Value from your original file */
    font-size: 0.95rem;            /* Value from your original file */
    line-height: 1.5;
    margin-top: 0;                 /* Ensures no extra top margin */
}

/* --- Fix for CTA Band inside a Panel --- */
/* This cleans up the button bar inside the white panel */
.card-panel .cta-band {
    background: none;
    border: none;
    box-shadow: none;
    padding: 1.5rem 0 0 0; /* Add space above it */
    margin-top: 2rem;
    border-top: 1px solid rgba(46, 125, 50, 0.12); /* Light separator line */
}

.card-panel .cta-band-actions {
    text-align: left; /* Keep buttons to the left */
}

/* Makes the text stack above the buttons */
.card-panel .cta-band strong {
    text-align: left;
    display: block; 
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Makes the contact links in the .lead paragraph black */
.lead a {
  color: #111827; /* This is your site's main "black" text color */
  text-decoration: none; /* Removes the underline */
}

/* Optional: Add an underline on hover */
.lead a:hover {
  text-decoration: underline;
  color: var(--color-primary); /* Uses your site's main green color on hover */
}

/* --- New Program List Design --- */

/* This replaces the old 3-column grid */
.program-list {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 8px 16px rgba(16, 45, 24, 0.05);

  /* --- ADD THESE 3 LINES --- */
  max-width: 600px; /* Or any width you like */
  margin-left: auto;
  margin-right: auto;
}
.program-item {
  display: flex;
  align-items: flex-start; /* Aligns icon and text nicely */
  gap: 1rem;
  
  /* Add a separator line for all but the last item */
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.program-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.program-icon {
  flex-shrink: 0; /* Prevents icon from shrinking */
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(46, 125, 50, 0.1); /* Light green bg */
  border: 1px solid rgba(46, 125, 50, 0.15);
}

/* Style the SVG icon */
.program-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary); /* Use your site's main green */
}

.program-text h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f4d2a; /* Color from your CSS file */
}

.program-text p {
  margin: 0;
  color: #475a4e; /* Color from your CSS file */
  font-size: 0.95rem;
  line-height: 1.5;
}

/* This overrides the old card styling in this section on mobile */
@media (max-width: 900px) {
  .programs-grid .card {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }
}
/* --- New "Our Programs" Section Styling --- */

/* 1. Centers the Intro Text and Button */
.programs-intro {
  text-align: center;
}
.programs-intro .btn-outline {
  margin-left: auto;
  margin-right: auto;
}

/* 2. Styles the New Program List */
.program-list {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 8px 16px rgba(16, 45, 24, 0.05);

  /* This centers the list and stops it from being full-width */
  max-width: 600px; 
  width: 100%; /* Ensures it's responsive on mobile */
  margin-left: auto;
  margin-right: auto;
}

.program-item {
  display: flex;
  align-items: flex-start; 
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.program-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.program-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(46, 125, 50, 0.1); 
  border: 1px solid rgba(46, 125, 50, 0.15);
}

.program-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary); 
}

.program-text h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f4d2a;
}

.program-text p {
  margin: 0;
  color: #475a4e;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- Aligned Team List --- */

.team-list-aligned {
  display: grid;
  
  /* This creates two columns: 
     1. 'auto' makes the name column just wide enough for the names.
     2. '1fr' makes the designation column take the rest of the space.
  */
  grid-template-columns: auto 1fr;
  
  /* This adds space between rows and columns */
  gap: 0.5rem 1.5rem; 
  
  align-items: baseline; /* Aligns the text on the same line */
}

.team-list-aligned strong {
  /* This styles the Name column */
  font-weight: 600; /* Keeps it bold */
  text-align: left;
}

.team-list-aligned span {
  /* This styles the Designation column */
  text-align: left;
}
/* Make the container div responsive and give it a height.
  The green background is coming from this element.
*/
.contact-map {
  width: 100%;     /* Make it fill the page width, for example */
  height: 450px;    /* Give it a specific height. Adjust this value as you like! */
  
  /* If you want to keep the green background for loading: */
  /* background-color: #e6f0e6; */ 
}

/* This is the key:
  Tell the iframe to fill its parent container (.contact-map)
*/
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0; /* Good to keep this here */
}
/* ========================================
FIX: Mobile Responsive Stacking
========================================
*/

/* This media query targets smaller screens */
/* This media query targets smaller screens */
@media (max-width: 640px) {

  /* --- ADD THIS NEW RULE FOR THE CONTACT PAGE --- */
  .page-hero-stats {
    flex-direction: column; /* Stacks the cards */
    align-items: stretch;   /* Makes them full-width */
  }
  /* --- END OF NEW RULE --- */

  /* Stacks the team list on contact.html */
  .team-list-aligned {
    grid-template-columns: 1fr; /* Go from 2 columns to 1 column */
    gap: 0.25rem 0; /* Reduce row gap, remove column gap */
  }

  /* Adds a little space after each person's title */
  .team-list-aligned span {
     margin-bottom: 1rem;
  }

  /* Stacks the footer columns on very small screens */
  .footer .cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* --- Other rules this block had --- */
  .hero-content {
    align-items: flex-end;
    padding: calc(var(--header-h) + 12px) 16px clamp(52px, 18vh, 120px);
  }
  .hero-strip {
    padding: 20px 18px;
  }
  .hero-strip-text {
    max-width: 100%;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-hint {
    bottom: 18px;
    font-size: 0.8rem;
  }
  .carousel-slide {
    padding: clamp(12px, 6vw, 20px);
  }
  .carousel-caption {
    left: 16px;
    bottom: 16px;
  }

}