/* =========================================================
   Deepstambh Rural Library — Editorial Design System
   Quiet, document-driven, photography-first.
   ========================================================= */

:root {
    --ink:        #1a1a1a;
    --ink-soft:   #3a3a3a;
    --muted:      #6b6b6b;
    --rule:       #e6e1d6;
    --paper:      #faf7f2;
    --paper-alt:  #f2ede2;
    --cream:      #fffdf8;
    --flame:      #c8441a;
    --flame-dark: #9e3313;
    --earth:      #3d5a3d;
    --white:      #ffffff;

    --serif:    'Fraunces', Georgia, 'Times New Roman', serif;
    --serif-mr: 'Tiro Devanagari Marathi', 'Noto Sans Devanagari', serif;
    --sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container: 1180px;
    --radius-sm: 4px;
    --radius:    8px;
    --shadow-sm: 0 1px 2px rgba(26,26,26,0.06);
    --shadow:    0 12px 40px -16px rgba(26,26,26,0.18);
    --shadow-lg: 0 30px 80px -30px rgba(26,26,26,0.25);
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    transition: opacity 0.5s ease;
}
body.loaded { opacity: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 500; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--ink-soft); }

::selection { background: var(--flame); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
    transition: all 0.25s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--ink);
    color: var(--paper);
}
.btn-primary:hover {
    background: var(--flame);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--rule);
}
.btn-light:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-text {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--paper);
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    transition: border-color 0.2s ease;
}
.btn-text:hover { border-bottom-color: var(--paper); }

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--rule);
    transition: all 0.3s ease;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 42px; height: 42px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-marathi {
    font-family: var(--serif-mr);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
}
.logo-sub {
    font-family: var(--serif-mr);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-soft);
    position: relative;
    padding: 4px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--flame);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border: 1px solid var(--rule);
    border-radius: 999px;
}
.lang-option { cursor: pointer; padding: 2px 4px; }
.lang-option.active { color: var(--ink); }
.lang-divider { opacity: 0.5; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--paper);
    padding: 120px 0 80px;
    border-bottom: 1px solid var(--rule);
}
.hero-content {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 60px;
    align-items: center;
}
.hero-text { max-width: 520px; }
.hero-logo {
    width: clamp(52px, 7vw, 80px);
    height: clamp(52px, 7vw, 80px);
    object-fit: contain;
    vertical-align: middle;
    margin-right: 12px;
    display: inline-block;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--flame);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 32px;
}
.hero-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}
.hero-marathi {
    font-family: var(--serif-mr);
    font-size: clamp(3.2rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1.05;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.hero-sub {
    font-family: var(--serif-mr);
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    color: var(--muted);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 8px;
}
.hero-english {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    color: var(--flame);
    letter-spacing: 0.005em;
}
.hero-tagline {
    font-family: var(--serif-mr);
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: 12px;
    line-height: 1.4;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule);
}
.hero-tagline-en {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 480px;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero photo */
.hero-visual {
    position: relative;
    padding: 8px;
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow-lg);
}
.hero-visual::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid var(--rule);
    border-radius: calc(var(--radius) + 10px);
    opacity: 0.5;
    pointer-events: none;
}
.hero-img-main {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

/* ---------- Stats Strip ---------- */
.stats-section {
    background: var(--ink);
    color: var(--paper);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 44px 28px;
    gap: 0;
}
.stat-card {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat-card:last-child { border-right: 0; }
.stat-icon { display: none; }
.stat-number {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 500;
    color: var(--paper);
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

/* ---------- Section scaffolding ---------- */
.section {
    padding: 110px 0;
    position: relative;
}
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.section-header.light .section-tag,
.section-header.light .section-title,
.section-header.light .section-subtitle { color: var(--paper); }
.section-header.light .section-tag { color: rgba(255,255,255,0.85); }
.section-header.light .section-subtitle { color: rgba(255,255,255,0.75); }

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--flame);
    margin-bottom: 18px;
    position: relative;
    padding: 0 28px;
}
.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--flame);
    opacity: 0.4;
}
.section-tag::before { left: 0; }
.section-tag::after  { right: 0; }
.section-title {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    line-height: 1.12;
    margin-bottom: 18px;
}
.section-subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- About ---------- */
.about-section { background: var(--paper); }
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.about-card {
    padding: 48px 36px;
    border-right: 1px solid var(--rule);
    position: relative;
    transition: background 0.3s ease;
}
.about-card:last-child { border-right: 0; }
.about-card:hover { background: var(--cream); }
.about-icon { display: none; }
.about-card h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    margin-bottom: 18px;
    position: relative;
    padding-top: 24px;
}
.about-card h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--flame);
}
.about-card p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--ink-soft);
}

/* ---------- Mission ---------- */
.mission-section {
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
}
.mission-bg { display: none; }
.mission-section .section-title,
.mission-section .section-tag { color: var(--paper); }
.mission-section .section-tag { color: #f5a97f; }
.mission-section .section-tag::before,
.mission-section .section-tag::after { background: #f5a97f; }
.mission-section .section-subtitle { color: rgba(255,255,255,0.72); }
.mission-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.mission-card {
    padding: 52px 32px 48px;
    border-right: 1px solid rgba(255,255,255,0.12);
    transition: background 0.3s ease;
}
.mission-card:last-child { border-right: 0; }
.mission-card:hover { background: rgba(255,255,255,0.03); }
.mission-number {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--flame);
    margin-bottom: 28px;
    letter-spacing: 0.05em;
}
.mission-card h3 {
    font-family: var(--serif);
    color: var(--paper);
    font-size: 1.35rem;
    margin-bottom: 14px;
}
.mission-card p {
    color: rgba(255,255,255,0.72);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Inspiration ---------- */
.inspiration-section {
    background: var(--paper-alt);
    padding: 80px 0;
}
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.inspiration-card {
    text-align: center;
    transition: transform 0.3s var(--ease);
}
.inspiration-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    background: var(--paper);
    border-radius: 50%;
    border: 3px solid var(--rule);
    filter: grayscale(80%);
    transition: all 0.4s ease;
    margin-bottom: 18px;
}
.inspiration-card:hover img {
    filter: grayscale(0%);
    border-color: var(--flame);
    transform: scale(1.04);
}
.inspiration-card h4 {
    font-family: var(--serif-mr);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.inspiration-card p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ---------- Founder ---------- */
.founder-section { background: var(--paper); }
.founder-section .founder-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}
.founder-section .founder-image {
    position: sticky;
    top: 100px;
   
}
.founder-section .founder-image img {
    width: 80%;
     height:80%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.founder-info h3 {
    font-family: var(--serif);
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}
.founder-designation {
    font-size: 1.05rem;
    color: var(--ink-soft);
    font-weight: 500;
    margin-bottom: 4px;
}
.founder-designation-sub {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 22px;
}
.founder-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}
.founder-tag {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-soft);
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--cream);
}
.founder-detail-block {
    padding: 24px 0;
    border-top: 1px solid var(--rule);
}
.founder-detail-block h4 {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--flame);
    margin-bottom: 14px;
}
.founder-detail-block p,
.founder-detail-block li {
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--ink-soft);
}
.founder-detail-block ul { padding-left: 1.1rem; list-style: disc; }
.founder-detail-block li { margin-bottom: 6px; }
.founder-detail-block li::marker { color: var(--flame); }

.awards-grid { display: flex; flex-direction: column; gap: 16px; }
.award-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 18px;
    background: var(--cream);
    border-left: 2px solid var(--flame);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.award-icon { display: none; }
.award-item strong {
    display: block;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 2px;
}
.award-item p { font-size: 0.87rem; color: var(--muted); }

.founder-quote {
    margin: 40px 0;
    padding: 32px 36px;
    background: var(--paper-alt);
    border-left: 3px solid var(--flame);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.founder-quote blockquote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--ink);
}
.founder-contact,
.founder-web-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    margin-top: 8px;
}
.founder-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: all 0.2s ease;
}
.founder-link:hover { color: var(--flame); border-bottom-color: var(--flame); }
.link-icon { opacity: 0.6; }

/* ---------- Registration ---------- */
.registration-section { background: var(--paper-alt); padding: 70px 0; }
.registration-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 42px 48px;
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.reg-icon { display: none; }
.registration-card h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.registration-card > p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}
.reg-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}
.reg-item { display: flex; flex-direction: column; gap: 6px; }
.reg-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.reg-value {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--ink);
}

/* ---------- Team ---------- */
.team-section { background: var(--paper); }
.team-group { margin-bottom: 72px; }
.team-group:last-child { margin-bottom: 0; }
.team-group-title {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 48px;
    color: var(--ink);
    position: relative;
    padding-bottom: 16px;
}
.team-group-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--flame);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 44px 32px;
}
.team-card {
    text-align: center;
    transition: transform 0.3s var(--ease);
}
.team-card:hover { transform: translateY(-4px); }
.team-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper-alt);
    box-shadow: var(--shadow-sm);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card-highlight .team-avatar {
    box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--flame), var(--shadow);
}
.team-role {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--flame);
    margin-bottom: 6px;
}
.team-card h4 {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.team-card p { font-size: 0.85rem; color: var(--ink-soft); }
.team-location {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 4px;
    font-style: italic;
}

.advisors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}
.advisor-card {
    padding: 26px 28px;
    background: var(--cream);
    transition: background 0.2s ease;
}
.advisor-card:hover { background: var(--paper-alt); }
.advisor-card h4 {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.advisor-card p {
    font-size: 0.86rem;
    color: var(--ink-soft);
    margin-bottom: 4px;
}

/* ---------- Media ---------- */
.media-section { background: var(--paper-alt); }
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.media-card {
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--ease);
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.media-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.media-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s var(--ease);
}
.media-card:hover .media-image img { transform: scale(1.04); }
.media-info { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.media-source {
    font-family: var(--serif-mr);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--flame);
}
.media-date {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.media-card h3 {
    font-family: var(--serif-mr);
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 4px 0 6px;
    color: var(--ink);
}
.media-info p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

/* ---------- Gallery ---------- */
/* .gallery-section { background: var(--paper); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 16px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--paper-alt);
    cursor: zoom-in;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-large { grid-column: span 2; grid-row: span 1; }
.gallery-item:nth-child(4) { grid-column: span 1; }
.gallery-item:nth-child(5) { grid-column: span 1; }
.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px 16px;
    background: linear-gradient(to top, rgba(26,26,26,0.85), transparent);
    color: var(--paper);
    transform: translateY(100%);
    transition: transform 0.35s var(--ease);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption h4 {
    font-family: var(--serif);
    color: var(--paper);
    font-size: 1rem;
    margin-bottom: 2px;
}
.gallery-caption p {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
} */
 
    
 
/* ---------- Donate ---------- */
.donate-section {
    background: var(--ink);
    color: var(--paper);
    position: relative;
}
.donate-section .section-header.light .section-tag { color: #f5a97f; }
.donate-section .section-tag::before,
.donate-section .section-tag::after { background: #f5a97f; }
.donate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 70px;
}
.donate-card {
    padding: 38px 32px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}
.donate-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--flame);
    transform: translateY(-3px);
}
.donate-icon { display: none; }
.donate-card h3 {
    font-family: var(--serif);
    color: var(--paper);
    font-size: 1.3rem;
    margin-bottom: 14px;
    position: relative;
    padding-top: 22px;
}
.donate-card h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--flame);
}
.donate-card p {
    color: rgba(255,255,255,0.72);
    font-size: 0.95rem;
    line-height: 1.7;
}

.donate-bank,
.donate-upi {
    background: var(--cream);
    color: var(--ink);
    padding: 42px 48px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}
.donate-bank h3,
.donate-upi h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--ink);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule);
}
.bank-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 36px;
}
.bank-item { display: flex; flex-direction: column; gap: 4px; }
.bank-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.bank-value {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--ink);
}
.bank-note {
    margin-top: 18px;
    font-size: 0.82rem;
    font-style: italic;
    color: var(--muted);
}

.upi-card {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.upi-qr {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background: var(--white);
    padding: 12px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
}
.upi-info { flex: 1; min-width: 220px; }
.upi-name {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}
.upi-id {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 0.95rem;
    color: var(--flame);
    margin-bottom: 10px;
    background: var(--paper-alt);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: inline-block;
}
.upi-hint { font-size: 0.85rem; color: var(--muted); }

.donate-cta {
    margin-top: 40px;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.donate-cta > p {
    color: rgba(255,255,255,0.78);
    margin-bottom: 22px;
    font-size: 0.98rem;
}
.donate-contacts {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact-section { background: var(--paper); }
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 980px;
    margin: 0 auto;
}
.contact-card {
    padding: 42px 36px;
    background: var(--cream);
    text-align: center;
    transition: background 0.2s ease;
}
.contact-card:hover { background: var(--paper-alt); }
.contact-icon { display: none; }
.contact-card h4 {
    font-family: var(--serif);
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--ink);
    position: relative;
    padding-top: 20px;
    display: inline-block;
}
.contact-card h4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--flame);
}
.contact-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--ink-soft);
}
.contact-card a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.contact-card a:hover { color: var(--flame); border-bottom-color: var(--flame); }

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
    font-size: 0.9rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 {
    font-family: var(--serif-mr);
    color: var(--paper);
    font-size: 1.5rem;
    margin-bottom: 6px;
    font-weight: 500;
}
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-tagline {
    font-family: var(--serif-mr);
    font-style: italic;
    margin-top: 12px;
    color: rgba(255,255,255,0.7) !important;
}
.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links h4, .footer-contact h4 {
    font-family: var(--sans);
    color: var(--paper);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--flame); }
.footer-contact p { color: rgba(255,255,255,0.65); line-height: 1.7; }

.footer-contributor {
    padding: 36px 0;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contributor-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    text-align: center;
}
.contributor-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--flame);
}
.contributor-label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.contributor-logo { width: 90px; height: auto; }
.contributor-name {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--paper);
    font-weight: 600;
}
.contributor-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
}
.contributor-visit {
    font-size: 0.78rem;
    color: var(--flame);
    letter-spacing: 0.04em;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom p { margin-bottom: 4px; }
.footer-credit a { color: rgba(255,255,255,0.75); }
.footer-credit a:hover { color: var(--flame); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--ink);
    color: var(--paper);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease);
    z-index: 900;
    box-shadow: var(--shadow);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { background: var(--flame); }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    padding: 40px;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ---------- Fade-in observer ---------- */
.stat-card, .about-card, .mission-card, .donate-card,
.contact-card, .gallery-item, .media-card, .team-card,
.advisor-card, .inspiration-card {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in { opacity: 1 !important; transform: translateY(0) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .section { padding: 88px 0; }
    .about-grid { grid-template-columns: 1fr; }
    .about-card { border-right: 0; border-bottom: 1px solid var(--rule); }
    .about-card:last-child { border-bottom: 0; }
    .mission-grid { grid-template-columns: repeat(2, 1fr); }
    .mission-card:nth-child(2) { border-right: 0; }
    .mission-card { border-bottom: 1px solid rgba(255,255,255,0.12); }
    .inspiration-grid { grid-template-columns: repeat(2, 1fr); }
    .founder-section .founder-card { grid-template-columns: 1fr; gap: 40px; }
    .founder-section .founder-image { position: static; max-width: 420px; margin: 0 auto; }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .advisors-grid { grid-template-columns: repeat(2, 1fr); }
    .media-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .gallery-large { grid-column: span 2; }
    .gallery-item:nth-child(4), .gallery-item:nth-child(5) { grid-column: span 1; }
    .donate-grid { grid-template-columns: 1fr; }
    .reg-details { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 0; padding: 56px 28px; }
    .stat-card:nth-child(2) { border-right: 0; }
    .stat-card:nth-child(1), .stat-card:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 36px; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .container { padding: 0 22px; }
    .section { padding: 72px 0; }
    .section-header { margin-bottom: 48px; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 0;
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.35s var(--ease);
        box-shadow: var(--shadow);
    }
    .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 14px 28px;
        border-bottom: 1px solid var(--rule);
        width: 100%;
    }
    .hero { min-height: auto; padding: 88px 0 50px; }
    .hero-content { grid-template-columns: 1fr; gap: 28px; }
    .hero-text { max-width: 100%; }
    .hero-eyebrow { font-size: 0.68rem; margin-bottom: 20px; letter-spacing: 0.14em; }
    .hero-tagline-en { font-size: 0.92rem; margin-bottom: 28px; }
    .hero-actions { flex-direction: row; align-items: center; gap: 12px; }
    .hero-actions .btn { padding: 12px 20px; font-size: 0.88rem; flex: 1; }
    .hero-visual { order: -1; padding: 5px; }
    .hero-visual::before { top: -4px; left: -4px; right: -4px; bottom: -4px; }
    .mission-grid, .inspiration-grid, .media-grid, .team-grid { grid-template-columns: 1fr; }
    .mission-card { border-right: 0; }
    .advisors-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .gallery-large, .gallery-item:nth-child(4), .gallery-item:nth-child(5) { grid-column: span 1; }
    .donate-bank, .donate-upi { padding: 32px 26px; }
    .bank-details { grid-template-columns: 1fr; }
    .upi-card { flex-direction: column; text-align: center; }
    .stats-grid { grid-template-columns: 1fr; gap: 28px 0; }
    .stat-card { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 28px; }
    .stat-card:last-child { border-bottom: 0; padding-bottom: 0; }
    .founder-section .founder-card { gap: 32px; }
    .founder-contact, .founder-web-links { gap: 14px 20px; }
    .registration-card { padding: 32px 26px; }
    .lang-toggle { padding: 4px 8px; font-size: 0.68rem; gap: 4px; }
    .logo-sub { display: none; }
    .logo-img { width: 32px; height: 32px; }
    .logo-marathi { font-size: 1rem; }
    .nav-container { padding-top: 14px; padding-bottom: 14px; gap: 12px; }
}

@media (max-width: 480px) {
    .hero-marathi { font-size: 3rem; }
    .section-title { font-size: 1.75rem; }
    .back-to-top { right: 20px; bottom: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero-bg-image { animation: none; }
}
