/* ==========================================================
   BUDDHA GLOBAL DEVELOPMENT FOUNDATION
   Shared stylesheet

   RULES FOLLOWED SITE-WIDE
   - Font: "Plus Jakarta Sans", Arial, sans-serif
   - Text colour: black
   - Font weight: 500 for text, 600 for headings (never more)
   - Backgrounds: white + white smoke only
   - Footer: dark royal blue with white text
   - Padding: never more than 20px
   ========================================================== */

:root {
    --royal: #1f3fae;
    --royal-dark: #0b2270;
    --royal-darker: #081a58;
    --white: #ffffff;
    --smoke: #f5f5f5;
    --black: #000000;
    --line: #dcdcdc;
    --radius: 8px;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
    --font: "Plus Jakarta Sans", Arial, sans-serif;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote {
    margin: 0;
    padding: 0;
}

[id] {
    scroll-margin-top: 90px;
}

body {
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--black);
}

h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

p { color: var(--black); }

a {
    color: inherit;
    text-decoration: none;
}

ul, ol { list-style: none; }

img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

button,
input,
textarea,
select,
option {
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--black);
}

button { cursor: pointer; }

b, strong { font-weight: 600; }

:focus-visible {
    outline: 2px solid var(--royal);
    outline-offset: 2px;
}

.container {
    width: min(1180px, 92%);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 2px solid var(--royal);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease,
                transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
    background: var(--royal);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--royal-dark);
    border-color: var(--royal-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: var(--white);
    color: var(--black);
}

.btn-outline:hover {
    background: var(--royal);
    color: var(--white);
    transform: translateY(-2px);
}

/* ---------- Section helpers ---------- */

.section {
    padding: 20px 0;
    background: var(--white);
}

.section.alt { background: var(--smoke); }

.section-head {
    max-width: 780px;
    margin: 0 auto 20px;
    text-align: center;
}

.section-head p { margin-top: 10px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 5px 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--royal);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: 1.4;
}

.eyebrow i { color: var(--royal); }

.section.alt .eyebrow { background: var(--white); }

/* marker highlight on heading spans (text stays black) */
h1 span,
h2 span {
    background: linear-gradient(transparent 62%, rgba(31, 63, 174, 0.16) 62%);
}

.icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--royal);
    color: var(--white);
    font-size: 18px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--royal);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.center-row {
    margin-top: 20px;
    text-align: center;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid var(--royal);
    transition: gap 0.25s ease;
}

.link-arrow:hover { gap: 12px; }
.link-arrow i { color: var(--royal); font-size: 13px; }

/* ==========================================================
   TOP BAR
   ========================================================== */

.topbar {
    background: var(--royal-dark);
    color: var(--white);
    font-size: 14px;
}

.topbar-inner {
    width: min(1220px, 94%);
    margin-inline: auto;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.topbar-inner > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.topbar a,
.topbar span { color: var(--white); }

.topbar i { margin-right: 6px; }

.topbar a:hover { text-decoration: underline; }

/* ==========================================================
   HEADER AND NAVIGATION
   ========================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
}

.nav {
    width: min(1220px, 94%);
    min-height: 76px;
    margin-inline: auto;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--royal);
    color: var(--white);
    font-size: 20px;
}

.logo-text strong {
    display: block;
    max-width: 350px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
}

.logo-text small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.menu > li { position: relative; }

.menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 11px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.menu > li > a > i:first-child { color: var(--royal); }

.menu > li > a::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 3px;
    height: 3px;
    border-radius: 3px;
    background: var(--royal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.menu > li > a:hover::after,
.menu > li > a.on::after { transform: scaleX(1); }

.menu .arrow {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.menu > li:hover > .menu-link .arrow { transform: rotate(180deg); }

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 6px 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease,
                visibility 0.25s ease;
}

.menu > li:hover > .dropdown,
.menu > li:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.dropdown a i { width: 18px; color: var(--royal); text-align: center; }

.dropdown a:hover,
.dropdown a.on { background: var(--smoke); }

.burger {
    display: none;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--smoke);
    color: var(--black);
    font-size: 20px;
}

/* ==========================================================
   PAGE BANNER (every inner page)
   ========================================================== */

.page-banner {
    position: relative;
    min-height: 260px;
    padding: 20px 0;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.93) 48%,
            rgba(245, 245, 245, 0.55) 100%),
        var(--banner-img, none) center / cover no-repeat,
        var(--smoke);
    border-bottom: 4px solid var(--royal);
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 8px;
    background: var(--royal);
}

.page-banner .container { position: relative; }

/* one banner image per page */
.banner-about { --banner-img: url("../image/gallery-26.jpg"); }
.banner-mission { --banner-img: url("../image/gallery-19.jpg"); }
.banner-program { --banner-img: url("../image/gallery-44.jpg"); }
.banner-service { --banner-img: url("../image/gallery-47.jpg"); }
.banner-gallery { --banner-img: url("../image/gallery-14.jpg"); }
.banner-contact { --banner-img: url("../image/gallery-52.jpg"); }
.banner-team { --banner-img: url("../image/gallery-42.jpg"); }
.banner-director { --banner-img: url("../image/gallery-17.jpg"); }
.banner-documents { --banner-img: url("../image/gallery-28.jpg"); }

.banner-inner { max-width: 720px; }

.breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 5px 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 10px; color: var(--royal); }

.page-banner h1 { margin-bottom: 10px; }
.page-banner p { max-width: 640px; }

/* ==========================================================
   HOME HERO SLIDER
   ========================================================== */

.hero {
    position: relative;
    background: var(--smoke);
    overflow: hidden;
    border-bottom: 4px solid var(--royal);
}

/* hero height is fixed at 400px on every screen */
.hero-track {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6s ease;
}

.hero-slide.active > img { transform: scale(1.05); }

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.93) 46%,
        rgba(255, 255, 255, 0.5) 74%,
        rgba(255, 255, 255, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    margin-bottom: 56px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-layer {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content h1 {
    margin-bottom: 10px;
    font-size: clamp(22px, 3vw, 36px);
}

.hero-content p {
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
}

.hero-ui {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 6;
}

.hero-ui-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-arrow {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--royal);
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    font-size: 14px;
    transition: background 0.25s ease, color 0.25s ease;
}

.hero-arrow:hover {
    background: var(--royal);
    color: var(--white);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #bdbdbd;
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.active {
    width: 30px;
    background: var(--royal);
}

.hero-counter {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================================
   HOME ABOUT
   ========================================================== */

#about { overflow: hidden; }

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
}

.about-content h2 { margin-bottom: 10px; }
.about-intro { font-weight: 600; margin-bottom: 8px; }
.about-text { margin-bottom: 16px; }

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

.about-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--smoke);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.about-point h4 { margin-bottom: 2px; font-size: 16px; }
.about-point p { font-size: 14px; line-height: 1.55; }

.about-visual { position: relative; }

.about-visual::before {
    content: "";
    position: absolute;
    inset: 10px -8px -10px 10px;
    border: 3px solid var(--royal);
    border-radius: 12px;
}

.about-visual img {
    position: relative;
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ==========================================================
   SERVICES
   ========================================================== */

/* flex-wrap so an incomplete last row is centred automatically */
.svc-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.svc-card {
    flex: 0 1 calc((100% - 60px) / 4);
    box-shadow: var(--shadow);
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--royal);
}

.svc-image {
    position: relative;
    height: 180px;
    background: var(--smoke);
}

.svc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.svc-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(to top, rgba(8, 26, 88, 0.55), rgba(8, 26, 88, 0) 60%);
    pointer-events: none;
}

.svc-image .icon {
    position: absolute;
    left: 20px;
    bottom: -24px;
    z-index: 2;
    width: 52px;
    height: 52px;
    font-size: 20px;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
}

.svc-number {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 2px 10px;
    background: var(--white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.svc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 20px 20px;
}

.svc-body h3 { margin-bottom: 4px; font-size: 18px; }
.svc-hindi { margin-bottom: 8px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.svc-text { flex: 1; margin-bottom: 14px; font-size: 15px; }
.svc-body .link-arrow { align-self: flex-start; }

/* ==========================================================
   PROGRAMS (home filter grid)
   ========================================================== */

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--royal);
    border-radius: 30px;
    background: var(--white);
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
}

.filter-btn:hover { background: var(--smoke); }

.filter-btn.active {
    background: var(--royal);
    color: var(--white);
}

.prog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.prog-card.hidden { display: none; }

.prog-image {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.prog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prog-card:hover .prog-image img { transform: scale(1.07); }

.prog-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--white);
    border-left: 3px solid var(--royal);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.prog-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 20px;
}

.prog-cat {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.prog-body h3 { margin-bottom: 8px; font-size: 18px; }
.prog-body p { flex: 1; margin-bottom: 12px; font-size: 15px; }

.prog-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
}

.prog-info i { margin-right: 6px; color: var(--royal); }

.prog-empty {
    display: none;
    grid-column: 1 / -1;
    padding: 20px;
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

/* ==========================================================
   FAQ
   ========================================================== */

.faq-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.faq-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.active {
    border-color: var(--royal);
    box-shadow: var(--shadow);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.faq-q-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-num {
    flex-shrink: 0;
    min-width: 34px;
    padding: 3px 0;
    text-align: center;
    background: var(--smoke);
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--royal);
    color: var(--white);
    font-size: 11px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon { transform: rotate(180deg); }

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-item.active .faq-a { grid-template-rows: 1fr; }

.faq-a > div {
    min-height: 0;
    overflow: hidden;
}

.faq-a p {
    padding: 0 16px 14px;
    font-size: 15px;
}

.faq-promo {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--royal);
    border-radius: var(--radius);
}

.faq-promo img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.faq-promo-body { padding: 20px 20px 20px 0; }
.faq-promo-body h3 { margin-bottom: 8px; font-size: 22px; }
.faq-promo-body p { margin-bottom: 14px; }

/* ==========================================================
   GALLERY
   ========================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.g-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--smoke);
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.g-item:hover img { transform: scale(1.07); }

.g-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.94);
    border-top: 3px solid var(--royal);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    transform: translateY(101%);
    transition: transform 0.3s ease;
}

.g-item:hover .g-caption,
.g-item:focus-visible .g-caption { transform: translateY(0); }

.g-zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.g-item:hover .g-zoom,
.g-item:focus-visible .g-zoom { opacity: 1; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox.open { display: flex; }

.lightbox figure {
    max-width: min(980px, 100%);
    text-align: center;
}

.lightbox img {
    width: min(980px, 100%);
    height: 72vh;
    object-fit: contain;
    margin-inline: auto;
    border-radius: 6px;
}

.lightbox figcaption,
.lightbox .lb-count {
    margin-top: 8px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

.lb-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    font-size: 16px;
    transition: background 0.25s ease;
}

.lb-btn:hover { background: var(--smoke); }

.lb-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */

.t-viewport { overflow: hidden; }

.t-track {
    display: flex;
    transition: transform 0.5s ease;
}

.t-slide {
    flex: 0 0 calc(100% / var(--per, 3));
    padding: 4px 10px;
}

.t-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.t-quote {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    color: var(--royal);
    opacity: 0.25;
}

.t-stars {
    margin-bottom: 10px;
    color: #e0a800;
    font-size: 14px;
    letter-spacing: 2px;
}

.t-text { flex: 1; margin-bottom: 16px; }

.t-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.t-avatar {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid var(--royal);
    border-radius: 50%;
}

.t-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t-person h3 { font-size: 16px; }
.t-person span { font-size: 13px; }

.t-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.t-arrow {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--royal);
    border-radius: 50%;
    background: var(--white);
    font-size: 14px;
    transition: background 0.25s ease, color 0.25s ease;
}

.t-arrow:hover {
    background: var(--royal);
    color: var(--white);
}

.t-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.t-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #bdbdbd;
    transition: width 0.3s ease, background 0.3s ease;
}

.t-dot.active {
    width: 28px;
    background: var(--royal);
}

/* ==========================================================
   CALL TO ACTION
   ========================================================== */

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 5px solid var(--royal);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cta h2 { margin-bottom: 6px; font-size: clamp(22px, 2.6vw, 28px); }

/* ==========================================================
   INNER PAGES: MISSION, PROGRAMS, CONTACT, TEAM
   ========================================================== */

.feature { display: flex; align-items: flex-start; gap: 14px; }
.feature h3 { margin-bottom: 4px; font-size: 18px; }
.feature p { font-size: 15px; }

.mv-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.mv-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.mv-card > p { margin-bottom: 12px; }

.check-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
}

.check-list i {
    margin-top: 5px;
    color: var(--royal);
}

.value-card { text-align: center; }
.value-card .icon { margin: 0 auto 10px; }
.value-card h3 { margin-bottom: 6px; font-size: 18px; }
.value-card p { font-size: 15px; }

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
}

.split h2 { margin-bottom: 10px; }
.split p + p { margin-top: 10px; }

.split-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.prog-page-card .icon { margin-bottom: 12px; }
.prog-page-card h3 { margin-bottom: 8px; font-size: 18px; }
.prog-page-card p { margin-bottom: 12px; font-size: 15px; }

.step-card { position: relative; text-align: left; }

.step-no {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border: 2px solid var(--royal);
    border-radius: 50%;
    background: var(--white);
    font-size: 16px;
    font-weight: 600;
}

.step-card h3 { margin-bottom: 6px; font-size: 18px; }
.step-card p { font-size: 15px; }

.info-card { display: flex; align-items: flex-start; gap: 12px; }
.info-card h4 { margin-bottom: 2px; }
.info-card p,
.info-card a {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.info-card a:hover { text-decoration: underline; }

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
    align-items: stretch;
    margin-top: 20px;
}

.map-card {
    min-height: 360px;
    overflow: hidden;
    background: var(--smoke);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.map-card iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.form-card {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--royal);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-card > h3 { margin-bottom: 4px; font-size: 22px; }
.form-card > p { margin-bottom: 14px; font-size: 15px; }

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

.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }

.field label { font-size: 14px; font-weight: 600; }

.field input,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--white);
    border: 1px solid #c4c4c4;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field textarea { min-height: 110px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #555555; }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(31, 63, 174, 0.15);
}

.captcha-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.captcha-box {
    min-width: 96px;
    padding: 10px 16px;
    text-align: center;
    background: var(--smoke);
    border: 1px dashed var(--royal);
    border-radius: 6px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 6px;
    user-select: none;
}

.captcha-row input {
    flex: 1;
    min-width: 140px;
    padding: 11px 14px;
    border: 1px solid #c4c4c4;
    border-radius: 6px;
}

.captcha-row input:focus {
    outline: none;
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(31, 63, 174, 0.15);
}

.team-photo {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    margin: -20px -20px 14px;
    background: var(--smoke);
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
}

.team-initials {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--royal);
    color: var(--white);
    font-size: 28px;
    font-weight: 600;
}

.team-img {
    width: 170px;
    height: 170px;
    border: 4px solid var(--white);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.team-card { text-align: center; }
.team-card h3 { margin-bottom: 2px; }
.team-role { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.team-card p { font-size: 15px; }

.team-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.team-social a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--royal);
    border-radius: 50%;
    font-size: 13px;
    transition: background 0.25s ease, color 0.25s ease;
}

.team-social a:hover {
    background: var(--royal);
    color: var(--white);
}

/* ==========================================================
   FOOTER (dark royal blue, white text)
   ========================================================== */

.site-footer {
    background: var(--royal-dark);
    color: var(--white);
}

.site-footer p,
.site-footer h3,
.site-footer strong,
.site-footer span,
.site-footer a,
.site-footer li { color: var(--white); }

.footer-main {
    width: min(1220px, 94%);
    margin-inline: auto;
    padding: 20px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 20px 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo .logo-icon {
    background: var(--white);
    color: var(--royal-dark);
}

.footer-logo strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.footer-logo span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-desc { margin-bottom: 14px; font-size: 13px; line-height: 1.8; }

.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }

.footer-socials a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.25s ease, color 0.25s ease;
}

.footer-socials a:hover {
    background: var(--white);
    color: var(--royal-dark);
}

.footer-col h3 {
    position: relative;
    margin-bottom: 16px;
    padding-bottom: 10px;
    font-size: 17px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--white);
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }

.footer-links a {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    transition: transform 0.25s ease;
}

.footer-links a i { margin-top: 6px; font-size: 10px; }
.footer-links a:hover { transform: translateX(4px); text-decoration: underline; }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.footer-contact-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 14px;
}

.footer-contact-item strong { display: block; font-weight: 600; }
.footer-contact-item a:hover { text-decoration: underline; }

.footer-bottom {
    background: var(--royal-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom-inner {
    width: min(1220px, 94%);
    margin-inline: auto;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 13px;
}

.footer-bottom a { font-weight: 600; }
.footer-bottom a:hover { text-decoration: underline; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1200px) {
    .nav { flex-wrap: wrap; }
    .burger { display: block; order: 3; margin-left: 0; }
    .nav > .btn { order: 2; margin-left: auto; }

    .menu {
        position: absolute;
        top: 100%;
        left: -3%;
        right: -3%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 75vh;
        overflow-y: auto;
        padding: 6px 3% 12px;
        background: var(--white);
        border-top: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
    }

    .menu.open { display: flex; }

    .menu > li > a {
        padding: 12px 8px;
        border-bottom: 1px solid var(--line);
    }

    .menu > li > a::after { display: none; }
    .menu > li > a.on { background: var(--smoke); }
    .menu .arrow { margin-left: auto; }

    .dropdown {
        position: static;
        display: none;
        min-width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: var(--smoke);
        padding: 0;
        transition: none;
    }

    .menu > li.sub > .dropdown { display: block; }
    .dropdown a { padding: 11px 20px; border-bottom: 1px solid var(--line); }
}

@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc-card { flex-basis: calc((100% - 20px) / 2); }
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .logo-text strong { max-width: 190px; }
}

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .about-grid,
    .split,
    .contact-grid { grid-template-columns: 1fr; }

    .about-visual { order: -1; max-width: 560px; }
    .about-visual img { height: 300px; }
    .map-card, .map-card iframe { min-height: 300px; }
    .split-image img { height: 260px; }
}

@media (max-width: 768px) {
    .faq-cols { grid-template-columns: 1fr; }
    .faq-promo { grid-template-columns: 1fr; }
    .faq-promo img { height: 220px; }
    .faq-promo-body { padding: 0 20px 20px; }
    .cta { flex-direction: column; align-items: flex-start; }
    .hero-slide::after {
        background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
    }
}

@media (max-width: 600px) {
    body { font-size: 15px; }

    .grid-2,
    .grid-3,
    .grid-4,
    .gallery-grid,
    .about-points,
    .form-grid { grid-template-columns: 1fr; }

    .svc-card { flex-basis: 100%; }
    .topbar-tag { display: none; }
    .nav { min-height: 66px; }
    .logo-icon { width: 42px; height: 42px; font-size: 18px; }
    .logo-text strong { max-width: 130px; font-size: 11px; }
    .logo-img { height: 46px; width: 46px; }
    .nav > .btn { padding: 8px 12px; font-size: 13px; }
    .logo-text small { display: none; }

    .page-banner { min-height: 220px; }
    .hero-content { margin-bottom: 52px; }
    .hero-content p { -webkit-line-clamp: 2; font-size: 14px; line-height: 1.55; }
    .hero-content .eyebrow { margin-bottom: 8px; font-size: 11px; }
    .hero-buttons .btn { padding: 9px 14px; font-size: 14px; }

    .t-slide { padding: 4px 4px; }
    .faq-q { padding: 12px; }
    .faq-q-text { gap: 8px; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .lightbox { padding: 12px 6px; gap: 6px; }
    .lb-btn { width: 36px; height: 36px; }
    .captcha-row .btn { width: 100%; }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ==========================================================
   STATE CLASSES (set by main.js, so no inline styles are needed)
   ========================================================== */

.no-scroll { overflow: hidden; }
.prog-empty.show { display: block; }

.t-view-1 { --per: 1; }
.t-view-2 { --per: 2; }
.t-view-3 { --per: 3; }

.t-track.pos-0 { transform: translateX(0); }
.t-track.pos-1 { transform: translateX(calc(-100% * 1 / var(--per, 3))); }
.t-track.pos-2 { transform: translateX(calc(-100% * 2 / var(--per, 3))); }
.t-track.pos-3 { transform: translateX(calc(-100% * 3 / var(--per, 3))); }
.t-track.pos-4 { transform: translateX(calc(-100% * 4 / var(--per, 3))); }
.t-track.pos-5 { transform: translateX(calc(-100% * 5 / var(--per, 3))); }

/* ==========================================================
   LOGO IMAGE
   ========================================================== */

.logo-img {
    height: 64px;
    width: 64px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 50%;
}

.footer-logo-img {
    height: 72px;
    width: 72px;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--white);
}

/* ==========================================================
   LANGUAGE SWITCH (Google Translate, our own dropdown)
   ========================================================== */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-switch i { margin-right: 0; color: var(--white); }

.lang-switch select {
    padding: 3px 8px;
    background: var(--white);
    border: 1px solid var(--white);
    border-radius: 4px;
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
}

.gt-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Hindi text: Devanagari fallback after the main font stack.
   Only body/.svc-hindi are set; icons keep their own font. */
html[lang="hi"] body,
html.translated-ltr body,
.svc-hindi {
    font-family: "Plus Jakarta Sans", Arial, "Noto Sans Devanagari", sans-serif;
}

/* Font Awesome icons must never lose their icon font
   (Google Translate adds lang="hi" and font tags to the page) */
.fa-solid, .fas, .fa-regular, .far {
    font-family: "Font Awesome 6 Free" !important;
}
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands" !important;
}
.fa-solid, .fas { font-weight: 900 !important; }
.fa-regular, .far, .fa-brands, .fab { font-weight: 400 !important; }

/* hide the Google Translate bar and tooltips */
body { top: 0 !important; }
iframe.skiptranslate,
.goog-te-banner-frame { display: none !important; }
.goog-tooltip,
.goog-tooltip:hover { display: none !important; }
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

/* ==========================================================
   FLOATING CONTACT + SOCIAL ICONS
   ========================================================== */

.float-icons {
    position: fixed;
    right: 10px;
    top: 50%;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateY(-50%);
}

.float-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--royal);
    color: var(--white);
    font-size: 15px;
    box-shadow: var(--shadow);
    transition: background 0.25s ease, transform 0.25s ease;
}

.float-icon:hover {
    background: var(--royal-dark);
    transform: scale(1.12);
}

/* ==========================================================
   MODAL (donate pop-up and document viewer)
   ========================================================== */

.modal {
    position: fixed;
    inset: 0;
    z-index: 3500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.75);
}

.modal.open { display: flex; }

.modal-box {
    position: relative;
    width: min(860px, 100%);
    max-height: 94vh;
    overflow-y: auto;
    padding: 20px;
    background: var(--white);
    border-top: 4px solid var(--royal);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--smoke);
    color: var(--black);
    font-size: 16px;
    transition: background 0.25s ease, color 0.25s ease;
}

.modal-close:hover {
    background: var(--royal);
    color: var(--white);
}

.modal-close-static { position: static; flex-shrink: 0; }

.modal-head { margin: 0 44px 0 0; min-width: 0; }
.modal-head h2 { margin-bottom: 6px; }
.modal-head p { font-size: 15px; }

.donate-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.donate-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 50%;
}

.donate-grid {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.donate-qr {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.donate-qr img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
}

.donate-tag {
    align-self: center;
    padding: 4px 14px;
    background: var(--royal);
    color: var(--white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.donate-info { min-width: 0; }

.donate-info h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.donate-info h3 i { color: var(--royal); }

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.detail-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--smoke);
    border: 1px solid var(--line);
    border-left: 3px solid var(--royal);
    border-radius: var(--radius);
}

.detail-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--royal);
    font-size: 14px;
}

.detail-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.detail-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-value { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }

.copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--white);
    border: 1px solid var(--royal);
    border-radius: 6px;
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
}

.copy-btn:hover,
.copy-btn.copied { background: var(--royal); color: var(--white); }

/* the "open in UPI app" button only makes sense on phones/tablets */
.donate-upi-app { display: none; }

@media (hover: none) and (pointer: coarse) {
    .donate-upi-app { display: inline-flex; width: 100%; }
}

.donate-note { margin-top: 12px; font-size: 14px; }
.donate-note a { font-weight: 600; text-decoration: underline; }

/* ==========================================================
   DOCUMENT CARDS + VIEWER
   ========================================================== */

.doc-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    overflow: hidden;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.doc-card:hover,
.doc-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--royal);
}

.doc-thumb {
    position: relative;
    display: block;
    height: 300px;
    overflow: hidden;
    background: var(--smoke);
    border-bottom: 1px solid var(--line);
}

.doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.doc-card:hover .doc-thumb img { transform: scale(1.04); }

.doc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    background: var(--white);
    border-left: 3px solid var(--royal);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.doc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}

.doc-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.doc-desc { flex: 1; font-size: 14px; line-height: 1.55; }

.doc-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.doc-view i { color: var(--royal); }

.doc-box {
    width: min(1100px, 100%);
    display: flex;
    flex-direction: column;
    padding: 12px;
    height: 94vh;
}

.doc-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.doc-bar h3 { font-size: 18px; }

.doc-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-actions .btn { padding: 8px 14px; font-size: 14px; }

.doc-stage {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: var(--smoke);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.doc-stage iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

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

@media (max-width: 800px) {
    .donate-grid { grid-template-columns: 1fr; }
    .donate-qr { width: min(340px, 100%); margin-inline: auto; }
    .donate-qr img { max-height: none; }
}

@media (max-width: 600px) {
    .float-icons {
        top: auto;
        right: 8px;
        bottom: 10px;
        flex-direction: row;
        gap: 4px;
        padding: 4px;
        transform: none;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 30px;
        box-shadow: var(--shadow);
    }

    .float-icon { width: 32px; height: 32px; font-size: 13px; border-width: 1px; }
    .doc-thumb { height: 260px; }
    .modal-box { padding: 14px; }
    .donate-logo { width: 44px; height: 44px; }
    .doc-actions .btn span { display: none; }
}

/* ---------- header fit when a logo image is used ---------- */

@media (max-width: 1400px) {
    .menu > li > a { padding: 10px 8px; font-size: 14px; }
    .menu > li > a::after { left: 8px; right: 8px; }
    .logo-text small { display: none; }
}

@media (max-width: 1200px) {
    .logo-img { height: 56px; width: 56px; }
}

@media (max-width: 600px) {
    .logo-img { height: 46px; width: 46px; }
    .logo-img + .logo-text { display: none; }
}

/* ==========================================================
   DONATE POP-UP: fit inside the screen, no vertical scroll
   (scoped to .donate-box only; document viewer is untouched)
   ========================================================== */

.modal-box.donate-box {
    max-height: none;
    overflow: visible;
    padding: 14px 18px 16px;
    transform-origin: center center;
}

.donate-box .donate-head { gap: 12px; margin-bottom: 10px; }
.donate-box .donate-logo { width: 48px; height: 48px; }
.donate-box .modal-head { margin-right: 44px; }
.donate-box .modal-head .eyebrow { margin-bottom: 4px; }
.donate-box .modal-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 4px; line-height: 1.2; }
.donate-box .modal-head p { font-size: 14px; line-height: 1.45; }

.donate-box .donate-grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.donate-box .donate-qr { padding: 6px; gap: 6px; align-items: center; }

.donate-box .donate-qr img {
    width: auto;
    max-width: 100%;
    height: clamp(200px, calc(100vh - 230px), 400px);
    height: clamp(200px, calc(100dvh - 230px), 400px);
    max-height: none;
    object-fit: contain;
}

.donate-box .donate-info h3 { font-size: 17px; margin-bottom: 8px; }
.donate-box .detail-list { gap: 6px; margin-bottom: 10px; }
.donate-box .detail-list li { padding: 6px 10px; gap: 10px; }
.donate-box .detail-icon { width: 30px; height: 30px; font-size: 13px; }
.donate-box .detail-label { font-size: 11px; }
.donate-box .detail-value { font-size: 14px; }
.donate-box .copy-btn { padding: 4px 10px; font-size: 12px; }
.donate-box .donate-note { margin-top: 8px; font-size: 13px; line-height: 1.45; }

@media (max-width: 800px) {
    .donate-box .donate-grid { grid-template-columns: 1fr; gap: 10px; }
    .donate-box .donate-qr { width: auto; margin-inline: auto; }
    .donate-box .donate-qr img {
        height: clamp(130px, 24vh, 230px);
        height: clamp(130px, 24dvh, 230px);
        max-height: none;
    }
    .donate-box .modal-head p { font-size: 13px; }
}

@media (max-width: 600px) {
    .modal-box.donate-box { padding: 12px; }
    .donate-box .donate-logo { width: 38px; height: 38px; }
    .donate-box .modal-head h2 { font-size: 22px; }
    .donate-box .detail-list li { padding: 5px 8px; gap: 8px; }
    .donate-box .detail-icon { width: 26px; height: 26px; font-size: 12px; }
    .donate-box .detail-value { font-size: 13px; }
    .donate-box .donate-info h3 { margin-bottom: 6px; }
}
