/* Brand & theme variables */
:root {
  --kumkum: #7B1436;
  --chandan: #C59048;
  --neel: #122147;
  --text: #0f1529;
  --muted: #5c637e;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --radius: 16px;
  --shadow-sm: 0 4px 10px rgba(18, 33, 71, 0.08);
  --shadow-md: 0 10px 24px rgba(18, 33, 71, 0.15);
  --shadow-lg: 0 18px 40px rgba(18, 33, 71, 0.22);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(197, 144, 72, 0.28), transparent 62%),
    radial-gradient(1000px 540px at 108% 8%, rgba(123, 20, 54, 0.16), transparent 58%),
    radial-gradient(900px 520px at 50% 110%, rgba(197, 144, 72, 0.30), transparent 62%),
    linear-gradient(180deg, #f8f2ea 0%, #f4eadf 38%, #f7ead8 100%);
  background-attachment: fixed, fixed, fixed, fixed;
}
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* Header / Nav */
.brand-logo { width: clamp(140px, 14vw, 180px); height: auto; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(18,33,71,.15)); }
.brand-title { font-size: clamp(18px, 2vw, 30px); color: #fff; font-weight: 800; letter-spacing: .3px; line-height: 1.1; text-align: center; }
.header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(123,20,54,0.96), rgba(123,20,54,0.90));
  border-bottom: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: saturate(1.1) blur(6px);
  box-shadow: 0 6px 16px rgba(18,33,71,0.15);
}
.header.scrolled { background: rgba(123,20,54,0.98); }
.nav {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px,1fr) auto minmax(140px,1fr);
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}
.nav-left { justify-self: start; display: inline-flex; align-items: center; }
.nav-center { justify-self: center; text-align: center; }
.nav-brand { display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; color: #fff; font-weight: 800; letter-spacing: .3px; margin: 0 auto; text-align: center; }
.nav-brand .brand-logo { margin: 0 auto; }
.nav-links { display: none !important; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; border-radius: 10px; }
@media (max-width: 800px) { .nav-toggle { display: none; } }

/* Header logos sizing (left and right) */
.nav-left .nav-brand { margin: 0; }
.nav-left .brand-logo,
.nav-right .brand-logo { width: clamp(140px, 14vw, 180px); height: auto; filter: drop-shadow(0 4px 12px rgba(18,33,71,.15)); }
.nav-right{ justify-self: end; display: inline-flex; align-items: center; }
@media (max-width: 560px){
  .nav-left .brand-logo, .nav-right .brand-logo{ width: clamp(110px, 24vw, 140px); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-primary { color: #fff; background: linear-gradient(90deg, var(--chandan), var(--kumkum)); box-shadow: 0 8px 18px rgba(123,20,54,0.25); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { color: var(--neel); background: #fff; border: 1px solid rgba(18,33,71,0.1); }

/* Hero (spacing tuned so marquee is visible) */
.hero { padding: 36px 0 24px; }
.hero-aurora { position: relative;padding: clamp(40px, 6vh, 80px) 0 clamp(20px, 4vh, 40px);overflow: hidden;z-index: 0;}

.hero-inner.modern-hero-text {
  text-align: center;
  padding: clamp(60px, 12vh, 120px) 0 clamp(10px, 4vh, 40px);
  margin: 0 auto;
  max-width: 960px;
  position: relative;
  z-index: 1;
}
.hero-inner.modern-hero-text h1 {
  font-size: clamp(24px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--neel);
  margin-bottom: 12px;
  text-shadow: 0 1px 6px rgba(18,33,71,0.05);
}
.hero-inner .lead {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 30px);
  max-width: 960px;
  margin: 10px auto 0;
}

/* Aurora visuals */
.aurora { position: absolute; inset: -20% -10% -10% -10%; z-index: 0; background: radial-gradient(40% 30% at 0% 0%, rgba(123,20,54,.35), transparent 60%), radial-gradient(45% 35% at 100% 0%, rgba(18,33,71,.4), transparent 65%), radial-gradient(60% 50% at 50% 100%, rgba(197,144,72,.35), transparent 60%); filter: blur(10px) saturate(1.1); animation: auroraShift 18s ease-in-out infinite alternate; }
@keyframes auroraShift { 0% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2%) scale(1.03); } 100% { transform: translateY(1%) scale(1.01); } }
.orb { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(40px); opacity: .35; mix-blend-mode: screen; }
.orb-1 { background: #7B1436; top: 10%; left: -6%; }
.orb-2 { background: #C59048; top: -4%; right: -8%; }
.orb-3 { background: #122147; bottom: -10%; left: 30%; }
.hero-logo-backdrop { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; pointer-events: none; }
.hero-logo-backdrop::before { content: ""; width: min(70vw, 700px); aspect-ratio: 1; background: center / contain no-repeat var(--hero-logo); opacity: .08; filter: drop-shadow(0 12px 30px rgba(18,33,71,.18)); mask-image: radial-gradient(circle, rgba(0,0,0,.9) 60%, transparent 92%); transform: translateY(-4vh); }

/* Marquee pinned at bottom of hero */
.marquee { position: absolute; z-index: 2; bottom: 0; left: 0; right: 0; border-top: 1px solid rgba(18,33,71,.08); border-bottom: 1px solid rgba(18,33,71,.08); background: rgba(255,255,255,.6); backdrop-filter: blur(6px); overflow: hidden; }
.marquee__wrap { display: flex; width: 200%; animation: ticker 26s linear infinite; will-change: transform; }
.marquee__track { flex: 0 0 50%; display: inline-flex; gap: 48px; padding: 10px 24px; white-space: nowrap; font-weight: 800; letter-spacing: .6px; color: var(--muted); text-transform: uppercase; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 36px 0; }
.section .section-title { text-align: center; color: var(--neel); font-size: clamp(20px, 3.2vw, 32px); margin: 6px 0 8px; }
.section .section-sub { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto 18px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 10px; }
.feature-card { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid rgba(18,33,71,0.06); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.feature-card h3 { margin: 8px 0 6px; color: var(--neel); font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Institutions grid */
.inst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 12px; perspective: 900px; }
.inst-card { position: relative; display: block; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff; min-height: 260px; isolation: isolate; transform-style: preserve-3d; transition: transform .2s ease; }
.inst-card::before { content: ""; position: absolute; inset: 0; background-image: var(--card-bg, linear-gradient(135deg, #eaeef7, #f6f7fb)); background-size: cover; background-position: center; transform: translateZ(0) scale(1.02); transition: transform .35s ease; filter: saturate(1.05); }
.inst-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 80% 10%, rgba(197,144,72,.35), transparent 55%), linear-gradient(180deg, rgba(18,33,71,.15), rgba(18,33,71,.55)); }
.inst-card .content { position: relative; z-index: 1; display: flex; height: 100%; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px; transform: translateZ(30px); }
.inst-card .chip { align-self: flex-start; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 11px; letter-spacing: .4px; }
.inst-card h4 { margin: 2px 0 4px; font-size: 18px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.inst-card p { margin: 0; font-size: 14px; opacity: .92; }
.inst-card .cta { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(90deg, var(--chandan), var(--kumkum)); box-shadow: 0 10px 22px rgba(123,20,54,.35); color: #fff; }
.inst-card .shine { position: absolute; inset: -40%; transform: rotate(18deg) translateX(-60%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); mix-blend-mode: screen; opacity: 0; transition: opacity .25s ease, transform .6s ease; }
.inst-card:hover .shine { opacity: .9; transform: rotate(18deg) translateX(30%); }
.inst-card:hover::before { transform: translateZ(0) scale(1.06); }
.inst-card:hover { box-shadow: 0 18px 40px rgba(18,33,71,.28); }
.inst-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(197,144,72,.45), 0 0 0 6px rgba(18,33,71,.3); }

/* Neon border variant */
.inst-card.neon { box-shadow: 0 0 0 2px rgba(197,144,72,.45), 0 14px 34px rgba(18,33,71,.28); }
.inst-card.neon:hover { box-shadow: 0 0 0 3px rgba(197,144,72,.7), 0 20px 54px rgba(18,33,71,.35); }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid rgba(18,33,71,0.08); border-radius: 12px; padding: 10px 14px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--neel); }
.faq p { margin: 8px 0 0; color: var(--muted); }

/* Contact */
.contact { max-width: 880px; margin: 0 auto; background: #fff; border: 1px solid rgba(18,33,71,0.08); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }
.label { font-weight: 700; color: var(--neel); font-size: 14px; margin-bottom: 6px; display: inline-block; }
.input, .textarea { width: 100%; padding: 12px 12px; border: 1px solid rgba(18,33,71,0.12); border-radius: 10px; font: inherit; }
.textarea { min-height: 120px; resize: vertical; }
.form-actions { margin-top: 12px; display: flex; gap: 10px; }

/* Footer */
.footer { margin-top: 24px; padding: 20px 0 40px; color: var(--muted); border-top: 1px solid rgba(18,33,71,0.08); }
.footer .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .links { display: flex; gap: 14px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--neel); }

/* --- Text Animations (ReactBits-inspired) --- */
.animated-heading {
  display: inline-block;
  white-space: normal;  /* allow wrapping */
  overflow: visible;    /* prevent clipping */
  border-right: 2px solid var(--kumkum);
  animation: typing 4s steps(60, end), cursorFade 0.3s 4s forwards;
  line-height: 1.2;
  padding-right: 4px;
}
@keyframes cursorFade {
  to { border-color: transparent; }  /* removes blinking cursor at end */
}

@keyframes typing {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes cursorFade { to { border-color: transparent; } }

.animated-tagline {display: inline-block;font-family: 'Caveat', cursive;font-size: clamp(22px, 2vw, 24px);color: var(--kumkum);
  letter-spacing: 0.6px;white-space: normal;text-align: center;line-height: 1.4;}

.animated-tagline span {opacity: 0;transform: translateY(20px);display: inline;animation: fadeUp 0.6s ease forwards;margin-right: 0.35em;}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
/* --- Staggered Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Add staggered delay for paragraphs */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }
.reveal:nth-child(6) { transition-delay: 0.6s; }
.reveal:nth-child(7) { transition-delay: 0.7s; }
.reveal:nth-child(8) { transition-delay: 0.8s; }


/* Legacy visibility guards */
#legacy { position: relative; z-index: 2; color: #222; }
.hero-logo-backdrop { z-index: 0; }
section { position: relative; z-index: 1; }

/* --- Fix overlapping aurora with lower sections --- */
.hero-aurora { z-index: 0; position: relative; }
#legacy { position: relative; z-index: 2; background: #fff; }


/* Animated header title (brand-safe) */
.animated-logo{
  display:inline-block;
  font-weight:800;
  letter-spacing:.8px;
  background:linear-gradient(90deg,var(--chandan),#fff);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; /* makes gradient text visible on header bg */
}

/* Each letter animates in */
.animated-logo .char{
  display:inline-block;
  opacity:0;
  transform:translateY(12px);
  animation:logoCharIn .5s ease forwards;
}

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

/* Accessibility fallback */
@media (prefers-reduced-motion: reduce){
  .animated-logo .char{ animation:none; opacity:1; transform:none; }
}

/* Subtle glow for the header brand title */
.brand-glow{
  text-shadow:
    0 0 1px rgba(255,210,120,.18),
    0 0 2px rgba(123,20,54,.14);
  animation: logoGlow 3s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce){ .brand-glow{ animation:none; } }

/* Moving shine across full header title */
.brand-shine{
  background:
    linear-gradient(90deg, var(--chandan) 0%, var(--kumkum) 100%),
    linear-gradient(100deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
  background-size: 100% 100%, 14% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 0% 0%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.3px rgba(18,33,71,0.2);
  animation: shinePos 4.5s ease-in-out infinite, logoGlow 3s ease-in-out infinite alternate;
}
/* If header uses per-letter spans */
.animated-logo.brand-shine .char{
  background:
    linear-gradient(90deg, var(--chandan) 0%, var(--kumkum) 100%),
    linear-gradient(100deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
  background-size: 100% 100%, 14% 100%;
  background-repeat:no-repeat,no-repeat;
  background-position: 0 0, 0% 0%;
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
  -webkit-text-stroke: 0.25px rgba(18,33,71,0.2);
  animation: shinePos 4.5s ease-in-out infinite, logoGlow 3s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce){
  .brand-shine, .animated-logo.brand-shine .char{ animation:none; }
}

/* --- Glowing + Shining main header text --- */
/* Crisp, on-brand, clipped shine — no blur mush */
.glowing-logo-text {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.8px;
  font-size: clamp(25px, 2.2vw, 45px);
  text-transform: uppercase;

  /* Gold → Kumkum gradient */
  background: linear-gradient(90deg, #ffdda6, #ffb85c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* Soft glow (header-friendly) */
  text-shadow:
    0 0 3px rgba(255, 165, 0, 0.55),
    0 0 6px rgba(255, 140, 0, 0.35),
    0 0 8px rgba(255, 80, 0, 0.25);

  /* Smooth shine animation */
  animation: headerShine 4s ease-in-out infinite;

  /* prevent wrapping */
  white-space: nowrap;
}

/* Shine animation */
@keyframes headerShine {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.25);
  }
  100% {
    filter: brightness(1);
  }
}

/* Mobile (don’t overcrowd) */
@media (max-width: 480px) {
  .glowing-logo-text {
    font-size: clamp(14px, 4.5vw, 20px);
    letter-spacing: 0.5px;
    text-shadow:
      0 0 2px rgba(255, 165, 0, 0.45),
      0 0 4px rgba(255, 140, 0, 0.25);
  }
}

/* minimal breathing glow (keeps letters sharp) */
@keyframes logoGlow{
  0%   { text-shadow: 0 0 1px rgba(255,210,120,.18), 0 0 2px rgba(123,20,54,.14); }
  50%  { text-shadow: 0 0 2.5px rgba(255,210,120,.28), 0 0 5px rgba(123,20,54,.22); }
  100% { text-shadow: 0 0 1.5px rgba(255,210,120,.22), 0 0 3px rgba(123,20,54,.18); }
}

/* move SHINE (2nd bg layer) from first S to last S only */
@keyframes shinePos{
  0%   { background-position: 0 0,   0% 0%; }   /* start at S of SODE */
  100% { background-position: 0 0, 100% 0%; }   /* end at S of INSTITUTIONS */
}

/* Apply glow to full hero title when class present */
.hero-inner.modern-hero-text h1.glowing-logo-text {
  font-size: clamp(24px, 3.6vw, 52px);
  text-transform: none;
  letter-spacing: 0.2px;
  line-height: 1.2;
}
@media (prefers-reduced-motion: reduce) {
  .hero-inner.modern-hero-text h1.glowing-logo-text { animation: none; }
}
#our-pillars div[style*="background:url"] {
  transition: transform .4s ease, box-shadow .4s ease;
}
#our-pillars div[style*="background:url"]:hover {
  transform: scale(1.04);
  box-shadow: 0 15px 30px rgba(0,0,0,0.45);
}

/* Contact card tweaks (small, self-contained) */
  .contact-details {
    background: #fff;
    border: 1px solid rgba(18,33,71,0.08);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 10px rgba(18,33,71,0.08);
    margin: 0 auto 18px;
    max-width: 880px;
    transition: transform .18s ease, box-shadow .18s ease;
    will-change: transform;
  }
  .contact-details:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(18,33,71,0.12);
  }
  .contact-details h3 { margin: 0 0 6px; color: var(--neel); font-size: 18px; font-weight: 700; }
  .contact-details p { margin: 6px 0; color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
  .contact-link {
    color: var(--kumkum);
    text-decoration: none;
    position: relative;
    transition: color .18s ease;
  }
  /* soft underline on hover */
  .contact-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--kumkum);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform .18s ease;
    border-radius: 2px;
    opacity: 0.95;
  }
  .contact-link:hover {
    color: color-mix(in srgb, var(--kumkum) 85%, var(--neel) 15%);
  }
  .contact-link:hover::after { transform: scaleX(1); }

  /* CTA buttons */
  .contact-ctas { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
  .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
    box-shadow: 0 8px 18px rgba(123,20,54,0.08);
  }
  .cta-btn:active { transform: translateY(1px); }
  .btn-visit {
    background: linear-gradient(90deg, var(--chandan), var(--kumkum));
    color: #fff;
  }
  .btn-wa {
    background: #25D366; /* whatsapp green */
    color: #fff;
    box-shadow: 0 8px 18px rgba(37,211,102,0.12);
  }
  .btn-visit:hover, .btn-wa:hover { transform: translateY(-4px); filter: brightness(1.03); }
  .btn-ghost-small {
    background: #fff;
    color: var(--neel);
    border: 1px solid rgba(18,33,71,0.08);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight:700;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:8px;
  }

  /* Responsive adjustments */
  @media (max-width:720px){
    .contact-ctas { width: 100%; gap: 8px; }
    .cta-btn, .btn-ghost-small { width: 100%; justify-content:center; }
  }
@import url('https://fonts.googleapis.com/css2?family=Lemonada:wght@600&display=swap');

.signature-title {
  font-family: 'Lemonada', cursive;
  font-size: clamp(48px, 5vw, 78px);
  text-align: center;
  margin-bottom: 16px;

  background: linear-gradient(90deg, #f9e7b1, #e6bb6c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;

  text-shadow:
    0 2px 8px rgba(255, 228, 170, 0.28),
    0 4px 14px rgba(255, 220, 150, 0.25);

  animation: goldGlow 3s ease-in-out infinite alternate;
}
#foundational-leadership-title {
  margin-top: -28px; /* move upward */
  display: block;
}
/* === Member grid + photo-ring styles === */
.trust-card {
  background: #fff;
  padding: 22px;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(18,33,71,0.08);
  margin-bottom: 28px;
}

.trust-title {
  color: var(--neel);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

/* card */
.member-card {
  text-align: center;
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid rgba(18,33,71,0.06);
  box-shadow: var(--shadow-sm);
}

/* PERFECT RING + centered image */
.photo-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 4px; /* ring thickness */
  background: linear-gradient(90deg, var(--chandan), var(--kumkum)); /* golden-red ring */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 6px 18px rgba(18,33,71,0.06);
}

.photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* name & role */
.member-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.member-role {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* responsive tweaks */
@media (max-width: 720px) {
  .member-grid { gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .photo-ring { width: 84px; height: 84px; padding: 3px; }
  .member-card { padding: 10px; }
  .trust-card { padding: 18px; }
}

.no-select {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* Old Edge/IE */
}

/* =========================================
   MOBILE RESPONSIVENESS & FIXES
   Add this to the very bottom of style.css
   ========================================= */

/* 1. Fix Background Jitter on Mobile */
@media (hover: none) and (pointer: coarse) {
  body { background-attachment: scroll; }
}

/* 2. Pillar Cards (Replacing Inline Styles) */
.pillar-card {
  display: flex;
  align-items: center;
  gap: 28px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
  max-width: 950px;
  margin: 0 auto 50px;
  /* Ensure text is readable */
  color: #fff; 
}

.pillar-card.reverse {
  flex-direction: row-reverse;
}

.pillar-img {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  background-size: cover;
  background-repeat: no-repeat;
}

.pillar-content {
  flex: 1;
  min-width: 0; /* Prevents flex item overflowing */
}

/* 3. Specific Mobile Breakpoints */
@media (max-width: 768px) {
  
  /* Header Adjustments */
  .brand-title { font-size: 18px; }
  .brand-logo { width: 100px; }
  .nav { gap: 8px; grid-template-columns: auto 1fr auto; }

  /* Hero Section */
  .hero-inner.modern-hero-text { padding-top: 60px; }
  
  /* Make Pillars Stack Vertically */
  .pillar-card, 
  .pillar-card.reverse {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }

  /* Center the read more button on mobile */
  .pillar-content button {
    margin: 10px auto 0; 
  }

  /* Trusts Grid - Allow smaller cards */
  .member-grid {
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns on mobile */
    gap: 10px;
  }
  
  /* Smaller avatars for members on mobile to fit 2 cols */
  .photo-ring {
    width: 70px;
    height: 70px;
  }
  
  .member-name { font-size: 13px; }
  .member-role { font-size: 11px; }
}

@media (max-width: 480px) {
  /* Very small screens (Old iPhones/SE) */
  .member-grid {
    grid-template-columns: 1fr; /* 1 column for very small screens */
  }
  
  .inst-grid {
    grid-template-columns: 1fr; /* Force 1 column for institutions */
  }
  
  .contact-details, .form-row {
    padding: 15px;
  }
}