:root {
    color-scheme: dark;
    --ink: #e6f1f5;
    --ink-soft: #b7c7d1;
    --muted: #93a8b8;
    --surface: #101b2b;
    --line: rgba(51, 201, 220, 0.18);
    --deep: #0b1220;
    --deep-mid: #132a3a;
    --accent: #33c9dc;
    --accent-soft: rgba(51, 201, 220, 0.12);
    --page: #0b1220;
    --page-deep: #0e1a2b;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --radius: 8px;
    --font-display: "Outfit", "Noto Sans Tamil", "Noto Sans Devanagari", system-ui, sans-serif;
    --font-ui: "Rubik", "Noto Sans Tamil", "Noto Sans Devanagari", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--deep);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: linear-gradient(180deg, var(--page) 0%, var(--page-deep) 100%);
    font-family: var(--font-ui);
    font-size: 17px;
    line-height: 1.5;
}

a {
    color: var(--accent);
    text-underline-offset: 0.16em;
}

a:hover {
    color: #7fe3ee;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(51, 201, 220, 0.4);
    outline-offset: 2px;
}

/* ---------- Header ---------- */
header.site-header {
    color: #f2fbfd;
    background: linear-gradient(145deg, var(--deep) 0%, var(--deep-mid) 100%);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lang-switch {
    display: flex;
    flex: none;
    gap: 6px;
}

.lang-link {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.lang-link:hover {
    border-color: rgba(51, 201, 220, 0.5);
    color: var(--ink);
}

.lang-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0b1220;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f2fbfd;
    text-decoration: none;
}

.header-logo {
    width: 95px;
    height: 80px;
    flex: none;
}

header.site-header h1 {
    margin: 0;
    color: #f2fbfd;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    line-height: 1.1;
    font-weight: 700;
}

.header-kicker {
    margin: 5px 0 0;
    max-width: 46ch;
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ---------- Main / hero ---------- */
main {
    flex: 1;
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 26px 16px 46px;
}

.about-hero {
    margin-bottom: 22px;
}

.about-hero h1 {
    margin: 0 0 10px;
    color: #f2fbfd;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    line-height: 1.15;
    font-weight: 700;
}

.about-lede {
    margin: 0;
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.06em;
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}

.stat strong {
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
}

.stat span {
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.8rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-flow: dense;
    gap: 14px;
}

.about-card {
    position: relative;
    padding: clamp(18px, 3vw, 24px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.about-card-wide {
    grid-column: 1 / -1;
}

.about-card h2 {
    margin: 0 0 12px;
    color: #f2fbfd;
    font-family: var(--font-display);
    font-size: 1.2em;
    font-weight: 600;
}

.about-card p {
    margin: 0 0 12px;
    color: var(--ink-soft);
    line-height: 1.65;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-card blockquote {
    margin: 0 0 10px;
    padding: 4px 0 4px 16px;
    border-left: 3px solid var(--accent);
    color: var(--ink);
    font-style: italic;
    line-height: 1.7;
}

.about-card blockquote:last-child {
    margin-bottom: 0;
}

.about-card h3 {
    margin: 22px 0 12px;
    color: #f2fbfd;
    font-family: var(--font-display);
    font-size: 1.02em;
    font-weight: 600;
}

.about-card > h4 {
    margin: 16px 0 10px;
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.verse-ref {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 0.82rem;
}

.vision-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(51, 201, 220, 0.06);
    border: 1px solid var(--line);
}

.vision-step {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(51, 201, 220, 0.4);
    background: rgba(51, 201, 220, 0.1);
    color: #f2fbfd;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.vision-arrow {
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
}

.vision-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vision-list li {
    position: relative;
    padding-left: 20px;
    color: var(--ink-soft);
    line-height: 1.6;
    font-size: 0.94rem;
}

.vision-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.team-photo {
    width: 128px;
    height: 128px;
    margin-bottom: 10px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.team-name {
    color: #f2fbfd;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
}

.team-role {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

@media (min-width: 700px) {
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.team-links {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.team-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    text-decoration: none;
}

.team-links a svg {
    width: 14px;
    height: 14px;
}

.team-links a:hover {
    border-color: rgba(51, 201, 220, 0.5);
    background: var(--accent-soft);
    color: #7fe3ee;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.contact-label {
    min-width: 82px;
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chip-list a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--font-ui);
    font-size: 0.86rem;
    text-decoration: none;
}

.chip-list a:hover {
    border-color: rgba(51, 201, 220, 0.5);
    background: var(--accent-soft);
    color: var(--accent);
}

.chip-list span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--font-ui);
    font-size: 0.82rem;
}

/* ---------- Ministries tabs ---------- */
.ministries-intro {
    margin: 0 0 16px;
}

.tab-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tab-label {
    cursor: pointer;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.86rem;
    user-select: none;
}

.tab-label:hover {
    border-color: rgba(51, 201, 220, 0.5);
    color: var(--ink);
}

.tab-panel {
    display: none;
}

#tab-pdf:checked ~ .tab-list label[for="tab-pdf"],
#tab-ngo:checked ~ .tab-list label[for="tab-ngo"],
#tab-digital:checked ~ .tab-list label[for="tab-digital"],
#tab-pub:checked ~ .tab-list label[for="tab-pub"],
#tab-gospel:checked ~ .tab-list label[for="tab-gospel"],
#tab-legacy:checked ~ .tab-list label[for="tab-legacy"] {
    background: var(--accent);
    color: #0b1220;
    border-color: var(--accent);
    font-weight: 600;
}

#tab-pdf:focus-visible ~ .tab-list label[for="tab-pdf"],
#tab-ngo:focus-visible ~ .tab-list label[for="tab-ngo"],
#tab-digital:focus-visible ~ .tab-list label[for="tab-digital"],
#tab-pub:focus-visible ~ .tab-list label[for="tab-pub"],
#tab-gospel:focus-visible ~ .tab-list label[for="tab-gospel"],
#tab-legacy:focus-visible ~ .tab-list label[for="tab-legacy"] {
    outline: 3px solid rgba(51, 201, 220, 0.4);
    outline-offset: 2px;
}

#tab-pdf:checked ~ .tab-panels #panel-pdf,
#tab-ngo:checked ~ .tab-panels #panel-ngo,
#tab-digital:checked ~ .tab-panels #panel-digital,
#tab-pub:checked ~ .tab-panels #panel-pub,
#tab-gospel:checked ~ .tab-panels #panel-gospel,
#tab-legacy:checked ~ .tab-panels #panel-legacy {
    display: block;
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
}

.ministry-group {
    margin-top: 14px;
}

.ministry-group:first-child {
    margin-top: 0;
}

.ministry-group h4 {
    margin: 0 0 8px;
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- Zoomable image + lightbox ---------- */
.zoomable-image {
    position: relative;
    line-height: 0;
}

.zoomable-thumb {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.zoom-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(11, 18, 32, 0.72);
    color: #f2fbfd;
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.zoom-toggle svg {
    width: 18px;
    height: 18px;
}

.zoom-toggle:hover {
    border-color: rgba(51, 201, 220, 0.6);
    background: rgba(11, 18, 32, 0.9);
    color: var(--accent);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: rgba(6, 10, 18, 0.94);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-toolbar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
}

.lightbox-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: #f2fbfd;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-btn:hover {
    border-color: rgba(51, 201, 220, 0.6);
    color: var(--accent);
}

.lightbox-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.lightbox-close {
    margin-left: 12px;
    font-size: 1.4rem;
}

.lightbox-zoom-level {
    min-width: 52px;
    text-align: center;
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.86rem;
}

.lightbox-viewport {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
}

.lightbox-viewport img {
    max-width: 100%;
    height: auto;
    transform-origin: top center;
    transition: transform 0.15s ease;
}

/* ---------- Footer ---------- */
footer.site-footer {
    padding: 28px 16px 30px;
    color: var(--muted);
    background: #060a12;
    border-top: 1px solid var(--line);
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.86rem;
}

footer.site-footer p {
    margin: 0 auto 10px;
}

footer.site-footer a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 5px;
}

footer.site-footer a:hover {
    color: #7fe3ee;
    text-decoration: underline;
}

footer.site-footer .verse {
    color: var(--accent);
    font-family: var(--font-display);
    font-style: italic;
}

footer.site-footer .footer-links {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    line-height: 2;
}

footer.site-footer .visitors {
    margin-bottom: 0;
    color: #6c7f8d;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 14px;
    }

    .lang-switch {
        margin-top: 4px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }
}
