/* ==========================================================================
   Psychological Support Organization — main stylesheet
   Order: 1 Tokens · 2 Base · 3 Utilities · 4 Buttons · 5 Top bar · 6 Header/nav
          7 Page banner · 8 Sections & titles · 9 Home · 10 Cards · 11 Inner pages
          12 Forms · 13 Footer · 14 Motion · 15 Development helpers
   Bootstrap 5.3 is themed through its CSS variables — no Sass build needed.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    /* Brand (sampled from the logo) */
    --pso-blue: #2484C0;
    --pso-blue-700: #185E8E;
    --pso-blue-800: #124A70;
    --pso-blue-50: #EAF4FB;
    --pso-green: #3CA848;
    --pso-green-700: #2B8038;
    --pso-green-50: #ECF7EE;
    --pso-orange: #F09018;
    --pso-orange-700: #9A5408;
    --pso-orange-50: #FFF4E6;
    --pso-red: #C03C24;
    --pso-red-50: #FCEDEA;
    --pso-sky: #50C7F1;

    /* Neutrals */
    --pso-ink: #16324A;
    --pso-ink-900: #0F2536;
    --pso-text: #4A5B6B;
    --pso-muted: #5B6C7C;
    --pso-line: #E1EAF0;
    --pso-bg-soft: #F3F9FC;
    --pso-bg-warm: #FFF8EF;
    --pso-white: #FFFFFF;

    /* Shape & depth */
    --radius-sm: .5rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --shadow-sm: 0 2px 10px rgba(22, 50, 74, .06);
    --shadow: 0 14px 34px -14px rgba(22, 50, 74, .22);
    --shadow-lg: 0 28px 60px -24px rgba(22, 50, 74, .32);

    /* Type */
    --font-head: 'Poppins', 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --dur: .35s;

    /* Bootstrap overrides */
    --bs-primary: var(--pso-blue-700);
    --bs-primary-rgb: 24, 94, 142;
    --bs-body-font-family: var(--font-body);
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.7;
    --bs-body-color: var(--pso-text);
    --bs-body-color-rgb: 74, 91, 107;
    --bs-heading-color: var(--pso-ink);
    --bs-link-color: var(--pso-blue-700);
    --bs-link-color-rgb: 24, 94, 142;
    --bs-link-hover-color: var(--pso-blue-800);
    --bs-link-hover-color-rgb: 18, 74, 112;
    --bs-border-color: var(--pso-line);
    --bs-border-radius: .75rem;
    --bs-emphasis-color: var(--pso-ink);
    --bs-secondary-color: var(--pso-muted);
}

/* Nepali: Poppins draws Devanagari digits as Western numerals, so headings use Mukta too */
html:lang(ne) { --font-head: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* Text-size preference (A− / A / A+) — everything in Bootstrap is rem-based */
html { font-size: 100%; }
html[data-text-size="sm"] { font-size: 93.75%; }
html[data-text-size="lg"] { font-size: 112.5%; }

/* 2. Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    background: var(--pso-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--bs-heading-color);
}

/* Devanagari needs more vertical room and no negative tracking */
:lang(ne) h1, :lang(ne) h2, :lang(ne) h3, :lang(ne) h4, :lang(ne) h5, :lang(ne) h6,
:lang(ne) .h1, :lang(ne) .h2, :lang(ne) .h3, :lang(ne) .h4, :lang(ne) .h5, :lang(ne) .h6 {
    line-height: 1.5;
    letter-spacing: 0;
}
html:lang(ne) body { line-height: 1.8; }

a { text-underline-offset: .2em; transition: color var(--dur) var(--ease); }
img { max-width: 100%; height: auto; }

::selection { background: var(--pso-orange); color: var(--pso-ink); }

:focus-visible {
    outline: 3px solid var(--pso-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    padding: .75rem 1.25rem;
    background: var(--pso-ink);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* 3. Utilities ------------------------------------------------------------- */
.text-ink { color: var(--pso-ink) !important; }
.text-brand { color: var(--pso-blue-700) !important; }
.text-green { color: var(--pso-green-700) !important; }
.bg-soft { background: var(--pso-bg-soft); }
.bg-warm { background: var(--pso-bg-warm); }
.rounded-xl { border-radius: var(--radius-xl) !important; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--pso-ink);
    font: 500 .8rem/1.2 var(--font-head);
    box-shadow: var(--shadow-sm);
}
.chip-soft { background: var(--pso-blue-50); color: var(--pso-blue-700); box-shadow: none; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--pso-ink); font-weight: 500; }
.check-list i {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 1.6rem; height: 1.6rem;
    border-radius: 50%;
    background: var(--pso-green-50);
    color: var(--pso-green-700);
    font-size: .9rem;
    margin-top: .1rem;
}

.dot-pattern {
    background-image: radial-gradient(var(--pso-blue) 1.5px, transparent 1.6px);
    background-size: 16px 16px;
    opacity: .25;
}

/* 4. Buttons --------------------------------------------------------------- */
.btn {
    --bs-btn-font-family: var(--font-head);
    --bs-btn-font-weight: 500;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: .7rem;
    --bs-btn-border-radius: 999px;
    --bs-btn-font-size: .975rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-lg { --bs-btn-padding-x: 1.9rem; --bs-btn-padding-y: .85rem; --bs-btn-font-size: 1.025rem; --bs-btn-border-radius: 999px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary {
    --bs-btn-bg: var(--pso-blue-700);
    --bs-btn-border-color: var(--pso-blue-700);
    --bs-btn-hover-bg: var(--pso-blue-800);
    --bs-btn-hover-border-color: var(--pso-blue-800);
    --bs-btn-active-bg: var(--pso-blue-800);
    --bs-btn-active-border-color: var(--pso-blue-800);
    --bs-btn-focus-shadow-rgb: 24, 94, 142;
    --bs-btn-disabled-bg: var(--pso-blue-700);
    --bs-btn-disabled-border-color: var(--pso-blue-700);
}
.btn-accent {
    --bs-btn-color: var(--pso-ink);
    --bs-btn-bg: var(--pso-orange);
    --bs-btn-border-color: var(--pso-orange);
    --bs-btn-hover-color: var(--pso-ink);
    --bs-btn-hover-bg: #F7A33C;
    --bs-btn-hover-border-color: #F7A33C;
    --bs-btn-active-color: var(--pso-ink);
    --bs-btn-active-bg: #E5860F;
    --bs-btn-active-border-color: #E5860F;
    --bs-btn-focus-shadow-rgb: 240, 144, 24;
    font-weight: 600;
}
.btn-green {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--pso-green-700);
    --bs-btn-border-color: var(--pso-green-700);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #236B2E;
    --bs-btn-hover-border-color: #236B2E;
    --bs-btn-active-bg: #236B2E;
    --bs-btn-focus-shadow-rgb: 43, 128, 56;
}
.btn-outline-ink {
    --bs-btn-color: var(--pso-ink);
    --bs-btn-border-color: rgba(22, 50, 74, .35);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--pso-ink);
    --bs-btn-hover-border-color: var(--pso-ink);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--pso-ink);
    --bs-btn-focus-shadow-rgb: 22, 50, 74;
    background: rgba(255, 255, 255, .6);
}
.btn-outline-light {
    --bs-btn-border-color: rgba(255, 255, 255, .45);
    --bs-btn-hover-color: var(--pso-ink);
}
.btn-danger {
    --bs-btn-bg: var(--pso-red);
    --bs-btn-border-color: var(--pso-red);
    --bs-btn-hover-bg: #A6331E;
    --bs-btn-hover-border-color: #A6331E;
    --bs-btn-active-bg: #A6331E;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font: 600 .975rem var(--font-head);
    text-decoration: none;
    color: var(--pso-blue-700);
}
.link-arrow i { transition: transform var(--dur) var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* 5. Top bar --------------------------------------------------------------- */
.topbar {
    background: var(--pso-ink);
    color: rgba(255, 255, 255, .85);
    font-size: .875rem;
    line-height: 1.4;
}
.topbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.6rem;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 1.5rem; }
.topbar-info li { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.topbar-info i { color: var(--pso-sky); }

.topbar-crisis {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .25rem .85rem;
    border-radius: 999px;
    background: var(--pso-red);
    color: #fff !important;
    font-weight: 500;
    white-space: nowrap;
}
.topbar-crisis strong { font-family: var(--font-head); letter-spacing: .02em; }
.pulse-dot {
    position: relative;
    width: .5rem; height: .5rem;
    border-radius: 50%;
    background: #fff;
}
@media (prefers-reduced-motion: no-preference) {
    .pulse-dot::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #fff;
        animation: pulse 2s var(--ease) infinite;
    }
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }

.topbar-tools { display: flex; align-items: center; gap: .75rem; }
.text-size, .lang-switch {
    display: flex;
    align-items: center;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}
.text-size button, .lang-switch a {
    display: inline-grid;
    place-items: center;
    min-width: 2rem;
    height: 1.75rem;
    padding: 0 .5rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    font: 600 .8rem/1 var(--font-head);
    cursor: pointer;
}
.text-size .ts-sm { font-size: .72rem; }
.text-size .ts-md { font-size: .85rem; }
.text-size .ts-lg { font-size: 1rem; }
.text-size button:hover, .lang-switch a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.text-size button[aria-pressed="true"], .lang-switch a.active { background: #fff; color: var(--pso-ink); }
.lang-switch a[lang="ne"] { font-family: var(--font-body); font-size: .95rem; }

/* 6. Header & navigation --------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid transparent;
    transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would become the
   containing block for the fixed-position offcanvas menu and break it on mobile. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(22, 50, 74, .35); border-color: var(--pso-line); }
.site-header .navbar { padding: .8rem 0; transition: padding var(--dur) var(--ease); }
.site-header.is-scrolled .navbar { padding: .45rem 0; }

.site-header .navbar > .container { flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: .75rem; margin-right: 1rem; min-width: 0; flex: 0 1 auto; white-space: normal; }
.brand-logo { width: 60px; height: 60px; transition: width var(--dur) var(--ease), height var(--dur) var(--ease); }
.is-scrolled .brand-logo { width: 50px; height: 50px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font: 600 1rem/1.2 var(--font-head);
    color: var(--pso-ink);
    max-width: 16rem;
}
.brand-sub { font: 500 .875rem/1.3 var(--font-body); color: var(--pso-blue-700); margin-top: .15rem; }
:lang(ne) .brand-name { font-size: 1.15rem; line-height: 1.35; }
@media (max-width: 575.98px) {
    .brand { gap: .55rem; margin-right: .5rem; }
    .brand-logo, .is-scrolled .brand-logo { width: 46px; height: 46px; }
    .brand-name { font-size: .88rem; }
    :lang(ne) .brand-name { font-size: 1rem; }
    .brand-sub { font-size: .78rem; }
}

.navbar-toggler {
    border: 0;
    padding: .5rem;
    border-radius: .75rem;
    background: var(--pso-blue-50);
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler:focus-visible { outline: 3px solid var(--pso-orange); }
.toggler-bars { display: grid; gap: 5px; width: 24px; }
.toggler-bars span { height: 2px; border-radius: 2px; background: var(--pso-ink); }
.toggler-bars span:nth-child(2) { width: 70%; justify-self: end; }

.navbar .nav-link {
    position: relative;
    font: 500 .95rem/1.4 var(--font-head);
    color: var(--pso-ink);
    padding: .55rem .8rem;
}
:lang(ne) .navbar .nav-link { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; }
.navbar .nav-link:hover, .navbar .nav-link:focus-visible,
.navbar .nav-link.active, .navbar .nav-link.show { color: var(--pso-blue-700); }
.navbar .dropdown-toggle::after {
    border: 0;
    content: "\F282"; /* bi-chevron-down */
    font-family: "bootstrap-icons";
    font-size: .7rem;
    vertical-align: middle;
    margin-left: .3rem;
    transition: transform var(--dur) var(--ease);
}
.navbar .dropdown-toggle.show::after { transform: rotate(180deg); }

.dropdown-menu {
    --bs-dropdown-border-width: 0;
    --bs-dropdown-border-radius: 1rem;
    --bs-dropdown-padding-y: .5rem;
    --bs-dropdown-min-width: 15.5rem;
    --bs-dropdown-link-color: var(--pso-ink);
    --bs-dropdown-link-hover-bg: var(--pso-bg-soft);
    --bs-dropdown-link-hover-color: var(--pso-blue-700);
    --bs-dropdown-link-active-bg: var(--pso-blue-50);
    --bs-dropdown-link-active-color: var(--pso-blue-700);
    padding: .5rem;
    box-shadow: var(--shadow-lg);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .8rem;
    border-radius: .65rem;
    font: 500 .95rem var(--font-head);
}
:lang(ne) .dropdown-item { font-family: var(--font-body); font-size: 1.05rem; }
.dropdown-item i {
    display: inline-grid;
    place-items: center;
    width: 2rem; height: 2rem;
    border-radius: .6rem;
    background: var(--pso-blue-50);
    color: var(--pso-blue-700);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.dropdown-item:hover i, .dropdown-item.active i { background: var(--pso-blue-700); color: #fff; }

.navbar .nav-link { white-space: nowrap; }
.nav-cta { white-space: nowrap; --bs-btn-padding-y: .6rem; }
:lang(ne) .btn { --bs-btn-font-family: var(--font-body); --bs-btn-font-size: 1.05rem; --bs-btn-font-weight: 600; }
:lang(ne) .btn-lg { --bs-btn-font-size: 1.12rem; }

/* Laptop widths (1200–1399px): tighten the menu so everything fits on one line */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar .nav-link { padding-left: .55rem; padding-right: .55rem; font-size: .9rem; }
    :lang(ne) .navbar .nav-link { font-size: 1rem; }
    .navbar .nav-link:not(.dropdown-toggle)::before { left: .55rem !important; right: .55rem !important; }
    .navbar .dropdown-toggle.active::before { left: .55rem !important; right: 1.35rem !important; }
    .brand-logo { width: 52px; height: 52px; }
    .brand-name { max-width: 12rem; font-size: .92rem; }
    :lang(ne) .brand-name { font-size: 1.05rem; }
    .brand-sub { font-size: .8rem; }
    .nav-cta { margin-left: .5rem !important; --bs-btn-padding-x: 1.1rem; }
}

.offcanvas-extra { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--pso-line); }
.crisis-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: var(--pso-red-50);
    color: var(--pso-red);
    font-weight: 600;
    text-decoration: none;
}
.offcanvas-contact { margin: 1.25rem 0 0; display: grid; gap: .6rem; font-size: .95rem; }
.offcanvas-contact i { color: var(--pso-blue-700); margin-right: .4rem; }
.offcanvas-contact a { color: var(--pso-ink); text-decoration: none; }

/* Mobile / tablet menu (offcanvas) */
@media (max-width: 1199.98px) {
    .offcanvas { --bs-offcanvas-width: min(360px, 88vw); }
    .offcanvas-header { border-bottom: 1px solid var(--pso-line); }
    .navbar .navbar-nav .nav-link { padding: .85rem .25rem; border-bottom: 1px solid var(--pso-line); font-size: 1.05rem; }
    .navbar .navbar-nav .nav-link.active { color: var(--pso-blue-700); }
    .navbar .navbar-nav .nav-link.active::before {
        content: "";
        position: absolute;
        left: -1rem; top: 25%; bottom: 25%;
        width: 3px;
        border-radius: 3px;
        background: var(--pso-orange);
    }
    .navbar .dropdown-menu { box-shadow: none; background: var(--pso-bg-soft); margin: .5rem 0; }
    .navbar .dropdown-toggle { display: flex; justify-content: space-between; align-items: center; }
    .nav-cta { width: 100%; margin-top: 1.25rem; }
}

/* Desktop menu */
@media (min-width: 1200px) {
    .navbar .navbar-nav { align-items: center; gap: .1rem; }
    .navbar .nav-link:not(.dropdown-toggle)::before {
        content: "";
        position: absolute;
        left: .8rem; right: .8rem; bottom: .2rem;
        height: 2px;
        border-radius: 2px;
        background: var(--pso-orange);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--dur) var(--ease);
    }
    .navbar .nav-link:not(.dropdown-toggle):hover::before,
    .navbar .nav-link.active:not(.dropdown-toggle)::before { transform: scaleX(1); }
    .navbar .dropdown-toggle.active::before {
        content: "";
        position: absolute;
        left: .8rem; right: 1.6rem; bottom: .2rem;
        height: 2px;
        border-radius: 2px;
        background: var(--pso-orange);
    }
    .nav-cta { margin-left: 1rem; }

    /* Dropdown opens on hover (pointer devices) and on click/keyboard (Bootstrap) */
    .navbar .dropdown-menu {
        display: block;
        margin-top: .5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    .navbar .dropdown-menu::before { /* hover bridge */
        content: "";
        position: absolute;
        left: 0; right: 0; top: -.75rem;
        height: .75rem;
    }
    .navbar .dropdown-menu.show { opacity: 1; visibility: visible; transform: none; }
}
@media (min-width: 1200px) and (hover: hover) {
    .navbar .dropdown:hover > .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
    .navbar .dropdown:hover > .dropdown-toggle { color: var(--pso-blue-700); }
}

/* 7. Page banner ----------------------------------------------------------- */
.page-banner {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 9vw, 7rem) 0 clamp(5rem, 10vw, 8rem);
    background: var(--pso-ink);
    color: #fff;
    isolation: isolate;
}
.page-banner-media { position: absolute; inset: -8% 0; z-index: -2; }
.page-banner-media img { width: 100%; height: 100%; object-fit: cover; }
.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 85% 20%, rgba(80, 199, 241, .25), transparent 45%),
        linear-gradient(100deg, rgba(15, 37, 54, .94) 0%, rgba(18, 74, 112, .86) 50%, rgba(24, 94, 142, .6) 100%);
}
.page-banner .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5);
    --bs-breadcrumb-item-active-color: #fff;
    --bs-breadcrumb-margin-bottom: 1rem;
    --bs-breadcrumb-divider: "›";
    font-size: .925rem;
}
.page-banner .breadcrumb a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.page-banner .breadcrumb a:hover { color: #fff; }
.page-banner-title { text-wrap: balance; color: #fff; font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; margin-bottom: .75rem; max-width: 22ch; }
:lang(ne) .page-banner-title { max-width: none; }
.page-banner-sub { font-size: 1.15rem; color: rgba(255, 255, 255, .85); max-width: 40rem; margin: 0; }
.page-banner-wave, .footer-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(36px, 5vw, 70px); }
.page-banner-wave path { fill: var(--wave-fill, #fff); }

/* 8. Sections & titles ----------------------------------------------------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section-sm { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-soft { background: var(--pso-bg-soft); }
.section-warm { background: var(--pso-bg-warm); }

.section-title { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-title:not(.text-center) { margin-left: 0; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .75rem;
    color: var(--pso-green-700);
    font: 600 .8rem/1.3 var(--font-head);
    letter-spacing: .12em;
    text-transform: uppercase;
}
:lang(ne) .eyebrow { font-family: var(--font-body); font-size: 1rem; letter-spacing: .02em; }
.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--pso-green), var(--pso-orange));
}
.section-heading { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; margin-bottom: .75rem; text-wrap: balance; }
.section-lead { font-size: 1.125rem; margin-bottom: 0; }
.section-title.is-light .section-heading { color: #fff; }
.section-title.is-light .section-lead { color: rgba(255, 255, 255, .8); }
.section-title.is-light .eyebrow { color: #8BDB94; }

/* 9. Home ------------------------------------------------------------------ */

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(6rem, 10vw, 8rem);
    background:
        radial-gradient(circle at 8% 15%, rgba(80, 199, 241, .20), transparent 38%),
        radial-gradient(circle at 92% 8%, rgba(240, 144, 24, .12), transparent 32%),
        radial-gradient(circle at 70% 95%, rgba(60, 168, 72, .12), transparent 35%),
        linear-gradient(180deg, var(--pso-bg-soft) 0%, #fff 100%);
}
.hero-title {
    font-size: clamp(2.35rem, 5.4vw, 4rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    letter-spacing: -.02em;
}
:lang(ne) .hero-title { line-height: 1.35; letter-spacing: 0; }
.hero-title .hl {
    display: inline-block;
    background: linear-gradient(90deg, var(--pso-blue-700) 0%, var(--pso-green-700) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-text { font-size: 1.2rem; max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2rem; }
.hero-note {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .95rem;
    color: var(--pso-muted);
}
.hero-note a { color: var(--pso-red); font-weight: 700; text-decoration: none; }
.hero-note i { color: var(--pso-red); }

.hero-visual { position: relative; max-width: 36rem; margin-inline: auto; padding: 1rem 1rem 2rem 2rem; }
.hero-ring {
    position: absolute;
    inset: 0 0 1rem 1rem;
    border: 2px dashed rgba(36, 132, 192, .35);
    border-radius: 2.5rem 2.5rem 2.5rem 9rem;
    transform: rotate(-4deg);
}
.hero-blob {
    position: absolute;
    width: 10rem; height: 10rem;
    border-radius: 50%;
    filter: blur(2px);
    z-index: 0;
}
.hero-blob.b1 { right: -2rem; top: -1rem; background: radial-gradient(circle, rgba(240, 144, 24, .35), transparent 70%); }
.hero-blob.b2 { left: -1rem; bottom: 0; background: radial-gradient(circle, rgba(60, 168, 72, .35), transparent 70%); }

.hero-slider {
    position: relative;
    z-index: 1;
    aspect-ratio: 5 / 4.4;
    border-radius: 2.5rem 2.5rem 2.5rem 9rem;
    overflow: hidden;
    background: var(--pso-blue-50);
    box-shadow: var(--shadow-lg);
}
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
    .hero-slide.is-active img { animation: kenburns 9s ease-out both; }
}
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero-slide .caption {
    position: absolute;
    right: 1rem; bottom: 1rem;
    max-width: calc(100% - 7rem);
    padding: .45rem .9rem;
    border-radius: 999px;
    background: rgba(15, 37, 54, .72);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: .85rem;
    line-height: 1.35;
}
.hero-controls {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 1rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-sm);
}
.hero-dot {
    width: 1.5rem; height: 1.5rem;
    display: grid; place-items: center;
    border: 0; padding: 0;
    border-radius: 50%;
    background: transparent;
}
.hero-dot::before {
    content: "";
    width: .5rem; height: .5rem;
    border-radius: 999px;
    background: rgba(22, 50, 74, .3);
    transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hero-dot[aria-current="true"]::before { width: 1.1rem; background: var(--pso-blue-700); }
.hero-dot:focus-visible, .hero-toggle:focus-visible { outline-offset: 1px; }
.hero-toggle {
    width: 1.75rem; height: 1.75rem;
    display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: var(--pso-ink);
    color: #fff;
    font-size: .9rem;
    margin-left: .2rem;
}

.hero-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: var(--shadow);
    line-height: 1.25;
}
.hero-float strong { display: block; font: 600 .95rem/1.3 var(--font-head); color: var(--pso-ink); }
.hero-float small { color: var(--pso-muted); font-size: .8rem; }
.hero-float .icon {
    flex: none;
    display: grid; place-items: center;
    width: 2.6rem; height: 2.6rem;
    border-radius: .8rem;
    font-size: 1.2rem;
}
.hero-float-1 { left: -.5rem; bottom: 3.5rem; }
.hero-float-1 .icon { background: var(--pso-orange-50); color: var(--pso-orange-700); }
.hero-float-2 { right: -.5rem; top: 30%; }
.hero-float-2 .icon { background: var(--pso-green-50); color: var(--pso-green-700); }
.hero-float-1 img { width: 2.6rem; height: 2.6rem; border-radius: 50%; }
@media (max-width: 575.98px) {
    .hero-visual { padding: .5rem .5rem 1.5rem 1rem; }
    .hero-float { padding: .55rem .75rem; }
    .hero-float-2 { top: auto; bottom: -1rem; right: .5rem; }
    .hero-float-1 { bottom: auto; top: 3.5rem; left: -.25rem; }
    .hero-slide .caption { display: none; }
}

/* Pillars strip */
.pillars {
    position: relative;
    z-index: 2;
    margin-top: clamp(-5rem, -7vw, -3.5rem);
}
.pillars-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.pillar {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.75rem 1.5rem;
    border-right: 1px solid var(--pso-line);
    transition: background var(--dur) var(--ease);
}
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--pso-bg-soft); }
.pillar .icon {
    flex: none;
    display: grid; place-items: center;
    width: 3rem; height: 3rem;
    border-radius: .9rem;
    font-size: 1.35rem;
    background: var(--tone-50);
    color: var(--tone);
}
.pillar h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.pillar p { font-size: .95rem; line-height: 1.5; margin: 0; }
@media (max-width: 991.98px) {
    .pillars-inner { grid-template-columns: repeat(2, 1fr); }
    .pillar:nth-child(2) { border-right: 0; }
    .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--pso-line); }
}
@media (max-width: 575.98px) {
    .pillars-inner { grid-template-columns: 1fr; }
    .pillar { border-right: 0; border-bottom: 1px solid var(--pso-line); padding: 1.25rem; }
    .pillar:last-child { border-bottom: 0; }
}

.tone-blue   { --tone: var(--pso-blue-700);   --tone-50: var(--pso-blue-50);   --tone-solid: var(--pso-blue-700); }
.tone-green  { --tone: var(--pso-green-700);  --tone-50: var(--pso-green-50);  --tone-solid: var(--pso-green-700); }
.tone-orange { --tone: var(--pso-orange-700); --tone-50: var(--pso-orange-50); --tone-solid: var(--pso-orange); }

/* About collage */
.about-collage { position: relative; padding: 0 3rem 3rem 0; max-width: 34rem; }
.about-collage .img-main {
    border-radius: 2rem 2rem 2rem 6rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 4.6;
}
.about-collage .img-main img, .about-collage .img-second img { width: 100%; height: 100%; object-fit: cover; }
.about-collage .img-second {
    position: absolute;
    right: 0; bottom: 0;
    width: 55%;
    aspect-ratio: 16 / 10;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: var(--shadow);
}
.about-collage .dot-pattern { position: absolute; left: -1.5rem; top: -1.5rem; width: 9rem; height: 9rem; z-index: -1; }
.about-badge {
    position: absolute;
    left: -1rem; bottom: 2.5rem;
    display: grid;
    place-items: center;
    text-align: center;
    width: 7.5rem; height: 7.5rem;
    border-radius: 50%;
    background: var(--pso-orange);
    color: var(--pso-ink);
    font: 700 1rem/1.2 var(--font-head);
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 5px solid #fff;
}
:lang(ne) .about-badge { font-family: var(--font-body); font-size: 1.1rem; }
@media (max-width: 575.98px) { .about-collage { padding: 0 1.5rem 2.5rem 0; } .about-badge { width: 6rem; height: 6rem; font-size: .85rem; left: -.5rem; } }

/* Therapies band */
.therapy-band {
    position: relative;
    overflow: hidden;
    background: var(--pso-ink);
    color: rgba(255, 255, 255, .8);
}
.therapy-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(36, 132, 192, .35), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(60, 168, 72, .25), transparent 40%);
    pointer-events: none;
}
.therapy-band .container { position: relative; }
.therapy-photo { border-radius: 1.75rem; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.therapy-photo img { width: 100%; height: 100%; object-fit: cover; }
.therapy-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.therapy-tile {
    position: relative;
    padding: 1.4rem 1.25rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    text-decoration: none;
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.therapy-tile:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); transform: translateY(-4px); color: #fff; }
.therapy-tile .abbr {
    display: block;
    font: 700 1.75rem/1 var(--font-head);
    letter-spacing: .02em;
    margin-bottom: .5rem;
}
.therapy-tile.tone-blue .abbr { color: var(--pso-sky); }
.therapy-tile.tone-green .abbr { color: #7BD686; }
.therapy-tile.tone-orange .abbr { color: #FFB65C; }
.therapy-tile .name { display: block; font-size: .95rem; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.therapy-tile:last-child:nth-child(odd) { grid-column: span 2; }

/* Stats */
.stat {
    height: 100%;
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--pso-line);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stat::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    background: var(--tone-solid, var(--pso-blue));
}
.stat .icon { font-size: 1.6rem; color: var(--tone); }
.stat .num { display: block; font: 700 clamp(2.2rem, 4vw, 2.9rem)/1.1 var(--font-head); color: var(--pso-ink); margin: .5rem 0 .25rem; }
.stat .label { font-weight: 500; }

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(150px, 16vw, 220px);
    grid-auto-flow: dense;
    gap: 1rem;
}
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1.1rem;
    background: var(--pso-blue-50);
}
.gallery-item.is-tall { grid-row: span 2; }
.gallery-item.is-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 37, 54, .8) 100%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}
.gallery-item .cap {
    position: absolute;
    left: 1rem; right: 1rem; bottom: .9rem;
    z-index: 1;
    color: #fff;
    font-size: .925rem;
    line-height: 1.35;
    transform: translateY(8px);
    opacity: 0;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery-item .zoom {
    position: absolute;
    right: .8rem; top: .8rem;
    z-index: 1;
    display: grid; place-items: center;
    width: 2.25rem; height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--pso-ink);
    opacity: 0;
    transform: scale(.8);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.07); }
.gallery-item:hover::after, .gallery-item:focus-visible::after,
.gallery-item:hover .cap, .gallery-item:focus-visible .cap,
.gallery-item:hover .zoom, .gallery-item:focus-visible .zoom { opacity: 1; transform: none; }
@media (hover: none) { .gallery-item::after, .gallery-item .cap { opacity: 1; transform: none; } }
@media (max-width: 767.98px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: .75rem; }
    .gallery-item.is-wide { grid-column: span 2; }
}

/* Partners */
.partner-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.partner {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1.4rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--pso-line);
    color: var(--pso-ink);
    font: 500 .975rem var(--font-head);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
:lang(ne) .partner { font-family: var(--font-body); font-size: 1.05rem; }
.partner i { color: var(--pso-blue); font-size: 1.15rem; }
.partner:hover { border-color: var(--pso-blue); box-shadow: var(--shadow-sm); }

/* Help call-to-action */
.cta-help { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-help-inner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 100% 0%, rgba(80, 199, 241, .25), transparent 45%),
        linear-gradient(115deg, #FFF1DE 0%, #FFF8EF 45%, #EAF4FB 100%);
    border: 1px solid rgba(240, 144, 24, .2);
}
.cta-help-art {
    display: grid; place-items: center;
    width: 5rem; height: 5rem;
    border-radius: 1.5rem;
    background: #fff;
    color: var(--pso-orange-700);
    font-size: 2.2rem;
    box-shadow: var(--shadow);
    transform: rotate(-6deg);
}
.cta-help-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .4rem; }
.cta-help-inner p { margin: 0; max-width: 38rem; }
.cta-help-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 991.98px) {
    .cta-help-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .cta-help-actions { justify-content: center; }
}

/* 10. Cards ---------------------------------------------------------------- */
.card-service {
    position: relative;
    height: 100%;
    padding: 2rem 1.6rem 1.75rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--pso-line);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card-service:hover, .card-service:focus-within { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-service h3 { font-size: 1.15rem; margin: 1.25rem 0 .6rem; }
.card-service h3 a { color: inherit; text-decoration: none; }
.card-service p { font-size: 1rem; line-height: 1.6; margin-bottom: 1.25rem; }
.card-service .card-link { font: 600 .9rem var(--font-head); color: var(--tone); display: inline-flex; gap: .35rem; align-items: center; }
.card-service .card-link i { transition: transform var(--dur) var(--ease); }
.card-service:hover .card-link i { transform: translateX(4px); }
.icon-bubble {
    display: grid; place-items: center;
    width: 3.6rem; height: 3.6rem;
    border-radius: 1.1rem;
    background: var(--tone-50);
    color: var(--tone);
    font-size: 1.6rem;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card-service:hover .icon-bubble { background: var(--tone-solid); color: #fff; transform: rotate(-6deg) scale(1.05); }
.tone-orange .card-service:hover .icon-bubble, .card-service.tone-orange:hover .icon-bubble { color: var(--pso-ink); }

.card-program, .card-news {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--pso-line);
    overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card-program:hover, .card-news:hover, .card-news:focus-within { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-program-media, .card-news-media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--pso-blue-50); }
.card-program-media img, .card-news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-program:hover img, .card-news:hover img { transform: scale(1.06); }
.card-program-media .chip { position: absolute; left: 1rem; top: 1rem; }
.card-program-body, .card-news-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-program h3, .card-news h3 { font-size: 1.15rem; margin-bottom: .55rem; }
.card-program p, .card-news p { font-size: 1rem; line-height: 1.6; margin: 0; }
.card-news h3 a { color: var(--pso-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur) var(--ease); }
.card-news h3 a:hover { background-size: 100% 1px; color: var(--pso-blue-700); }
.card-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .875rem; color: var(--pso-muted); margin-bottom: .75rem !important; }

.card-team {
    height: 100%;
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--pso-line);
    text-align: center;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card-team:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-team-photo {
    width: 7.5rem; height: 7.5rem;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    overflow: hidden;
    padding: 4px;
    background: conic-gradient(from 200deg, var(--pso-blue), var(--pso-green), var(--pso-orange), var(--pso-blue));
}
.card-team-photo img, .avatar-placeholder { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.avatar-placeholder { display: grid; place-items: center; background: var(--pso-bg-soft); color: #9AB0C2; font-size: 3rem; }
.card-team p { color: var(--pso-blue-700); font-weight: 500; }

.card-therapy {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--pso-line);
    transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card-therapy:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-therapy .abbr-badge {
    display: grid; place-items: center;
    width: 4.5rem; height: 4.5rem;
    border-radius: 1.25rem;
    background: var(--tone-50);
    color: var(--tone);
    font: 700 1.3rem/1 var(--font-head);
}
.card-therapy h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.card-therapy .helps { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--pso-line); font-size: .95rem; }
.card-therapy .helps strong { color: var(--pso-ink); }
@media (max-width: 575.98px) { .card-therapy { grid-template-columns: 1fr; padding: 1.5rem; } }

.card-resource {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--pso-line);
    transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card-resource:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card-resource .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.card-resource .file-icon {
    display: grid; place-items: center;
    width: 3.25rem; height: 3.25rem;
    border-radius: 1rem;
    background: var(--pso-blue-50);
    color: var(--pso-blue-700);
    font-size: 1.5rem;
}
.card-resource .format { font: 600 .75rem var(--font-head); letter-spacing: .08em; color: var(--pso-muted); border: 1px solid var(--pso-line); border-radius: .4rem; padding: .2rem .5rem; }
.card-resource h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.card-resource p { font-size: .975rem; line-height: 1.6; flex: 1; }
.card-resource .btn { align-self: flex-start; }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.filter-btn {
    padding: .5rem 1.15rem;
    border-radius: 999px;
    border: 1px solid var(--pso-line);
    background: #fff;
    color: var(--pso-ink);
    font: 500 .925rem var(--font-head);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
:lang(ne) .filter-btn { font-family: var(--font-body); font-size: 1rem; }
.filter-btn:hover { border-color: var(--pso-blue); color: var(--pso-blue-700); }
.filter-btn[aria-pressed="true"] { background: var(--pso-blue-700); border-color: var(--pso-blue-700); color: #fff; }
[data-filter-items] > [hidden] { display: none !important; }

/* 11. Inner pages ---------------------------------------------------------- */
.fact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.fact { padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--pso-bg-soft); }
.fact .k { display: block; font-size: .85rem; color: var(--pso-muted); }
.fact .v { display: block; font: 600 1rem/1.35 var(--font-head); color: var(--pso-ink); }
:lang(ne) .fact .v { font-family: var(--font-body); font-size: 1.1rem; }
@media (max-width: 575.98px) { .fact-list { grid-template-columns: 1fr; } }

.vm-card {
    height: 100%;
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.vm-card.vision { background: linear-gradient(135deg, var(--pso-blue-700), var(--pso-blue-800)); }
.vm-card.mission { background: linear-gradient(135deg, var(--pso-green-700), #1F5F29); }
.vm-card .icon { font-size: 2rem; opacity: .9; }
.vm-card h2, .vm-card h3 { color: #fff; font-size: 1.35rem; margin: .75rem 0 .5rem; }
.vm-card p { margin: 0; font-size: 1.1rem; color: rgba(255, 255, 255, .9); }
.vm-card::after {
    content: "";
    position: absolute;
    right: -3rem; bottom: -3rem;
    width: 10rem; height: 10rem;
    border-radius: 50%;
    border: 20px solid rgba(255, 255, 255, .08);
}

.value-card { text-align: center; padding: 1.5rem 1rem; }
.value-card .icon-bubble { margin: 0 auto 1rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.value-card p { font-size: .975rem; margin: 0; }

.objective {
    display: flex;
    gap: 1.1rem;
    height: 100%;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--pso-line);
}
.objective .num {
    flex: none;
    display: grid; place-items: center;
    width: 2.75rem; height: 2.75rem;
    border-radius: .85rem;
    background: var(--pso-blue-700);
    color: #fff;
    font: 700 1rem var(--font-head);
}
.objective:nth-child(3n+2) .num { background: var(--pso-green-700); }
.objective:nth-child(3n) .num { background: var(--pso-orange); color: var(--pso-ink); }
.objective p { margin: 0; color: var(--pso-ink); }

.field-chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.field-chips li {
    padding: .55rem 1.1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--pso-line);
    color: var(--pso-ink);
    font-weight: 500;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field-chips li:nth-child(3n+1) { border-left: 4px solid var(--pso-blue); }
.field-chips li:nth-child(3n+2) { border-left: 4px solid var(--pso-green); }
.field-chips li:nth-child(3n) { border-left: 4px solid var(--pso-orange); }

/* Services page */
.service-jump { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.service-jump a {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem .95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--pso-line);
    color: var(--pso-ink);
    text-decoration: none;
    font-size: .95rem;
}
.service-jump a:hover { border-color: var(--pso-blue); color: var(--pso-blue-700); }
.service-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.75rem;
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--pso-line);
    scroll-margin-top: 7rem;
}
.service-row + .service-row { margin-top: 1.25rem; }
.service-row .icon-bubble { width: 4.25rem; height: 4.25rem; font-size: 1.9rem; }
.service-row h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.service-row .for { display: inline-flex; gap: .5rem; align-items: center; margin-top: .5rem; padding: .35rem .9rem; border-radius: 999px; background: var(--pso-bg-soft); font-size: .925rem; color: var(--pso-ink); }
.service-row:target { border-color: var(--pso-blue); box-shadow: 0 0 0 4px var(--pso-blue-50); }
@media (max-width: 575.98px) { .service-row { grid-template-columns: 1fr; padding: 1.5rem; gap: 1rem; } }

/* Light crisis card (contact page) */
.crisis-card { padding: 1rem 1.1rem; border-radius: 1rem; background: var(--pso-red-50); border: 1px solid rgba(192, 60, 36, .25); color: var(--pso-ink); font-size: .95rem; }
.crisis-card strong { color: var(--pso-red); }
.crisis-card a { display: flex; align-items: baseline; gap: .6rem; margin-top: .35rem; color: var(--pso-ink); text-decoration: none; }
.crisis-card .num { min-width: 3.2rem; font: 700 1.2rem var(--font-head); color: var(--pso-red); }

/* Get help page */
.crisis-box {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.75rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--pso-red-50);
    border: 1px solid rgba(192, 60, 36, .25);
    border-left: 6px solid var(--pso-red);
}
.crisis-box .icon { font-size: 2.2rem; color: var(--pso-red); }
.crisis-box h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.crisis-box p { margin: 0; color: var(--pso-ink); }
.crisis-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.crisis-actions .btn { flex-direction: column; gap: 0; line-height: 1.2; padding: .6rem 1.4rem; border-radius: 1rem; }
.crisis-actions .btn strong { font-size: 1.35rem; }
.crisis-actions .btn small { font-size: .75rem; font-weight: 400; opacity: .9; }
@media (max-width: 991.98px) { .crisis-box { grid-template-columns: 1fr; text-align: left; } .crisis-box .icon { display: none; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step .num {
    position: relative;
    z-index: 1;
    display: grid; place-items: center;
    width: 4rem; height: 4rem;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--pso-blue);
    color: var(--pso-blue-700);
    font: 700 1.35rem var(--font-head);
    box-shadow: 0 0 0 8px var(--pso-bg-soft);
}
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2rem;
    left: calc(50% + 2.5rem);
    right: calc(-50% + 2.5rem);
    border-top: 2px dashed rgba(36, 132, 192, .4);
}
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { font-size: .975rem; margin: 0; }
@media (max-width: 991.98px) {
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
    .step:nth-child(2)::after { display: none; }
}
@media (max-width: 575.98px) {
    .steps { grid-template-columns: 1fr; }
    .step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; text-align: left; padding: 0; }
    .step .num { margin: 0; width: 3.25rem; height: 3.25rem; font-size: 1.1rem; }
    .step::after { display: none; }
}

.info-card {
    height: 100%;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--pso-line);
}
.info-card .icon-bubble { margin-bottom: 1.1rem; }
.info-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.info-card p { margin: 0; }

.tip {
    display: flex;
    gap: 1rem;
    height: 100%;
    padding: 1.4rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(240, 144, 24, .2);
}
.tip .icon-bubble { flex: none; width: 3rem; height: 3rem; font-size: 1.3rem; border-radius: .9rem; }
.tip h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.tip p { font-size: .95rem; line-height: 1.55; margin: 0; }

.accordion {
    --bs-accordion-border-color: var(--pso-line);
    --bs-accordion-border-radius: 1rem;
    --bs-accordion-inner-border-radius: 1rem;
    --bs-accordion-btn-color: var(--pso-ink);
    --bs-accordion-active-color: var(--pso-blue-700);
    --bs-accordion-active-bg: var(--pso-blue-50);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(240, 144, 24, .45);
    --bs-accordion-btn-padding-y: 1.1rem;
}
.accordion-item { border-radius: 1rem !important; overflow: hidden; }
.accordion-item + .accordion-item { margin-top: .75rem; border-top: 1px solid var(--pso-line); }
.accordion-button { font: 600 1.02rem var(--font-head); }
:lang(ne) .accordion-button { font-family: var(--font-body); font-size: 1.1rem; }

/* News article */
.article { max-width: 46rem; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; color: var(--pso-muted); margin-bottom: 1.5rem; }
.article-figure { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow); }
.article-figure img { width: 100%; }
.article-body p { font-size: 1.15rem; line-height: 1.8; margin-bottom: 1.35rem; color: #3E4F5F; }
.article-body p:first-child::first-letter {
    float: left;
    font: 700 3.4rem/.85 var(--font-head);
    color: var(--pso-blue-700);
    margin: .35rem .6rem 0 0;
}
:lang(ne) .article-body p:first-child::first-letter { float: none; font: inherit; color: inherit; margin: 0; }
.share-links { display: flex; gap: .5rem; align-items: center; }
.share-links a {
    display: grid; place-items: center;
    width: 2.4rem; height: 2.4rem;
    border-radius: 50%;
    background: var(--pso-bg-soft);
    color: var(--pso-ink);
    text-decoration: none;
}
.share-links a:hover { background: var(--pso-blue-700); color: #fff; }

/* Privacy */
.prose { max-width: 48rem; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin: 2.25rem 0 .75rem; }
.prose p { font-size: 1.075rem; }

/* 404 */
.error-page { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.error-code {
    font: 800 clamp(5rem, 16vw, 9rem)/1 var(--font-head);
    background: linear-gradient(90deg, var(--pso-blue), var(--pso-green), var(--pso-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

/* 12. Forms ---------------------------------------------------------------- */
.form-card {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--pso-line);
}
.form-label { font-weight: 600; color: var(--pso-ink); margin-bottom: .4rem; }
.form-label .opt { font-weight: 400; color: var(--pso-muted); font-size: .875rem; }
.form-control, .form-select {
    padding: .75rem 1rem;
    border-radius: .85rem;
    border-color: #CFDCE6;
    font-size: 1rem;
    color: var(--pso-ink);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-control:focus, .form-select:focus { border-color: var(--pso-blue); box-shadow: 0 0 0 .25rem rgba(36, 132, 192, .18); }
.form-check-input:checked { background-color: var(--pso-blue-700); border-color: var(--pso-blue-700); }
.form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(36, 132, 192, .2); }
.form-text { color: var(--pso-muted); }
.method-options { display: flex; flex-wrap: wrap; gap: .75rem; }
.method-options .btn-check + label {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem 1.2rem;
    border-radius: .85rem;
    border: 1px solid #CFDCE6;
    cursor: pointer;
    color: var(--pso-ink);
    font-weight: 500;
}
.method-options .btn-check:checked + label { border-color: var(--pso-blue-700); background: var(--pso-blue-50); color: var(--pso-blue-700); box-shadow: inset 0 0 0 1px var(--pso-blue-700); }
.method-options .btn-check:focus-visible + label { outline: 3px solid var(--pso-orange); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: 1rem; margin-bottom: 1.5rem; }
.form-alert i { font-size: 1.35rem; line-height: 1.2; }
.form-alert.success { background: var(--pso-green-50); color: #1F5F29; border: 1px solid rgba(43, 128, 56, .25); }
.form-alert.error { background: var(--pso-red-50); color: #8E2B19; border: 1px solid rgba(192, 60, 36, .25); }
.form-note { font-size: .9rem; color: var(--pso-muted); }
.form-warning { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: #8E2B19; background: var(--pso-red-50); padding: .75rem 1rem; border-radius: .85rem; }

.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--pso-line);
    height: 100%;
}
.contact-card .icon-bubble { flex: none; width: 3rem; height: 3rem; font-size: 1.25rem; border-radius: .9rem; }
.contact-card .k { display: block; font: 600 .95rem var(--font-head); color: var(--pso-ink); }
.contact-card a { color: var(--pso-text); text-decoration: none; word-break: break-word; }
.contact-card a:hover { color: var(--pso-blue-700); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--pso-line); aspect-ratio: 16 / 7; background: var(--pso-bg-soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 767.98px) { .map-embed { aspect-ratio: 4 / 3; } }

/* 13. Footer --------------------------------------------------------------- */
.site-footer {
    position: relative;
    margin-top: clamp(36px, 5vw, 70px);
    background: var(--pso-ink);
    color: rgba(255, 255, 255, .75);
    font-size: .975rem;
}
.footer-wave { top: calc(-1 * clamp(36px, 5vw, 70px) + 1px); bottom: auto; }
.footer-wave path { fill: var(--pso-ink); }
.footer-main { padding: clamp(3rem, 6vw, 4.5rem) 0 3rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.footer-logo { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; }
.footer-logo img { width: 64px; height: 64px; }
.footer-brand-name { font: 600 1.1rem/1.3 var(--font-head); color: #fff; }
.footer-brand-sub { font-size: .9rem; color: #8BDB94; }
.footer-muted { color: rgba(255, 255, 255, .6); }
.footer-heading { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2rem; height: 2px; border-radius: 2px; background: var(--pso-orange); }
.footer-links { display: grid; gap: .55rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .75); text-decoration: none; transition: color var(--dur) var(--ease), padding var(--dur) var(--ease); }
.footer-links a:hover { color: #fff; padding-left: .25rem; }
.footer-contact { display: grid; gap: .75rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact i { color: var(--pso-sky); margin-top: .2rem; }
.footer-contact a:hover { color: #fff; }
.social-links { display: flex; gap: .5rem; margin: 0; }
.social-links a {
    display: grid; place-items: center;
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.social-links a:hover { background: var(--pso-orange); color: var(--pso-ink); transform: translateY(-3px); }
.footer-crisis {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(192, 60, 36, .16);
    border: 1px solid rgba(255, 140, 120, .25);
    font-size: .9rem;
    line-height: 1.5;
}
.footer-crisis strong { color: #fff; }
.footer-crisis a { display: flex; align-items: baseline; gap: .6rem; color: #fff; text-decoration: none; margin-top: .35rem; }
.footer-crisis .num { font: 700 1.2rem var(--font-head); color: #FFB3A6; min-width: 3.2rem; }
.footer-crisis .lbl { color: rgba(255, 255, 255, .8); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.25rem 0; font-size: .9rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.footer-bottom a { color: rgba(255, 255, 255, .75); }
.footer-bottom a:hover { color: #fff; }

.back-to-top {
    position: fixed;
    right: 1.25rem; bottom: 1.25rem;
    z-index: 1020;
    display: grid; place-items: center;
    width: 3rem; height: 3rem;
    border: 0; border-radius: 50%;
    background: var(--pso-blue-700);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur), background var(--dur) var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--pso-blue-800); }

/* 14. Motion --------------------------------------------------------------- */
/* Hidden start states only while animations.js is in charge (html.anim). */
.anim [data-anim], .anim [data-anim-item], .anim [data-hero] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 15. Development helpers (only rendered when config env = development) ---- */
[data-todo] { position: relative; outline: 2px dashed rgba(240, 144, 24, .9); outline-offset: 8px; border-radius: 4px; }
[data-todo]::before {
    content: attr(data-todo);
    position: absolute;
    bottom: calc(100% + 10px); left: .25rem;
    z-index: 5;
    padding: .2rem .5rem;
    border-radius: .35rem;
    background: var(--pso-orange);
    color: var(--pso-ink);
    font: 600 .7rem/1.3 var(--font-head);
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    max-width: calc(100% - .5rem);
    pointer-events: none;
}
.todo-badge {
    display: inline-block;
    align-self: flex-start;
    margin-top: .75rem;
    padding: .2rem .55rem;
    border-radius: .35rem;
    background: var(--pso-orange-50);
    border: 1px dashed var(--pso-orange);
    color: #7A4204;
    font: 600 .72rem/1.3 var(--font-head);
}
.dev-flag {
    position: fixed;
    left: 1rem; bottom: 1rem;
    z-index: 1020;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: var(--pso-ink);
    color: #fff;
    font: 500 .75rem var(--font-head);
    box-shadow: var(--shadow);
    opacity: .85;
}
.dev-flag i { color: var(--pso-orange); }

/* Lightbox captions use the site fonts */
.glightbox-container .gslide-description { font-family: var(--font-body); }
.glightbox-container .gslide-desc { font-size: 1rem; color: var(--pso-ink); }
