/* Public-site presentation layer. Content and media remain Admin managed. */
:root {
    --nsp-heading: #082f54;
    --nsp-text: #405463;
    --nsp-muted: #647786;
    --nsp-border: #dce7e2;
    --nsp-surface-soft: #f6f9f6;
    --nsp-shadow-sm: 0 10px 28px rgba(7, 45, 75, .065);
    --nsp-shadow-md: 0 22px 56px rgba(7, 45, 75, .11);
}

body {
    color: var(--nsp-text);
    background: #f8faf8;
    font-family: "Inter", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Jost", "Inter", Arial, sans-serif;
    letter-spacing: -.025em;
}

.main-header .header-lower,
.fixed-header .sticky-header {
    box-shadow: 0 7px 28px rgba(6, 40, 66, .055);
}

.banner-area {
    background-color: #072f52;
}

.banner-area::before {
    background: linear-gradient(105deg, rgba(1, 27, 52, .98) 0%, rgba(5, 55, 75, .92) 58%, rgba(38, 106, 28, .82) 100%);
}

.banner-area .banner-title {
    font-size: clamp(2.2rem, 4vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.innerpage-main-wrapper {
    background: linear-gradient(180deg, #f7faf8 0, #fff 420px) !important;
}

.innerpage-main-wrapper .PageContent.nsp-page-content--sectioned > .nsp-custom-grid > .container > .row > [class*="col-"] > .nsp-grid-cell,
.nsp-home-page-content .nsp-custom-grid > .container > .row > [class*="col-"] > .nsp-grid-cell {
    padding: clamp(24px, 3vw, 42px);
    background: #fff;
    border: 1px solid var(--nsp-border);
    border-radius: 24px;
    box-shadow: var(--nsp-shadow-sm);
}

.PageContent .nsp-grid-cell > h2,
.PageContent .nsp-grid-cell > h3 {
    line-height: 1.15;
    text-wrap: balance;
}

.PageContent :is(h1, h2, h3, h4, h5, h6) {
    padding-block: 5px;
}

/* Use the same 5px spacing rhythm as default.css for CMS descriptions. */
.PageContent .nsp-grid-cell > :is(h2, h3, h4, h5, h6),
.nsp-page-content--contained > .row > .PageContent > :is(h2, h3, h4, h5, h6) {
    margin: 0;
    padding: 0 0 15px;
}

.PageContent .nsp-grid-cell > h2:not(:first-child),
.nsp-page-content--contained > .row > .PageContent > h2:not(:first-child) {
    padding-top: 35px;
}

.PageContent .nsp-grid-cell > :is(h3, h4, h5, h6):not(:first-child),
.nsp-page-content--contained > .row > .PageContent > :is(h3, h4, h5, h6):not(:first-child) {
    padding-top: 20px;
    padding-bottom: 10px;
}

.PageContent .nsp-grid-cell > h2 + h3,
.nsp-page-content--contained > .row > .PageContent > h2 + h3 {
    padding-top: 5px;
}

.PageContent .nsp-grid-cell > p:not(:has(img)) {
    max-width: 88ch;
}

.PageContent .nsp-grid-cell > p:has(> img) img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

/* Existing About-page photos sit alongside their related opening copy. */
.nsp-about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    gap: clamp(24px, 4vw, 52px);
    align-items: center;
    margin: 20px 0 28px;
}

.nsp-about-intro__copy > p:last-child {
    margin-bottom: 0;
}

.nsp-about-intro__media {
    margin: 0;
}

.nsp-about-intro__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
}

.PageContent a.button1,
.content-empty-state a,
.content-search-form button {
    box-shadow: 0 12px 24px rgba(35, 104, 14, .18);
}

.PageContent a.button1:hover,
.content-empty-state a:hover,
.content-search-form button:hover {
    box-shadow: 0 16px 30px rgba(35, 104, 14, .22);
}

.nsp-public-form .nsp-captcha {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.nsp-public-form .nsp-captcha-question {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nsp-public-form .nsp-captcha > .form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.nsp-home-page-content .nsp-grid-cell {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    column-gap: clamp(28px, 5vw, 70px);
    align-items: start;
}

.nsp-home-page-content .nsp-grid-cell > h2 {
    grid-row: 1 / span 4;
    margin: 0;
    font-size: clamp(2.15rem, 3.3vw, 3.3rem);
}

.nsp-home-page-content .nsp-grid-cell > p {
    grid-column: 2;
    max-width: 65ch;
}

.nsp-home-page-content .nsp-grid-cell > p:first-of-type {
    font-size: 1.08rem;
    color: #2d4a5a;
}

.page-services-area .tpservices,
.services-blocks-area .service-block-card__inner,
.faq-accordion .card,
.content-empty-state {
    border-radius: 18px;
    box-shadow: var(--nsp-shadow-sm);
}

.page-services-area .tpservices__thumb img,
.services-blocks-area .service-block-card__media img {
    transition: transform .35s ease;
}

.page-services-area .tpservices:hover .tpservices__thumb img,
.services-blocks-area .service-block-card:hover .service-block-card__media img {
    transform: scale(1.035);
}

body:has(.faq-accordion) .innerpage-main-wrapper .PageContent .nsp-grid-cell {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(28px, 4vw, 60px);
    align-items: start;
}

body:has(.faq-accordion) .innerpage-main-wrapper .PageContent .nsp-grid-cell > h2,
body:has(.faq-accordion) .innerpage-main-wrapper .PageContent .nsp-grid-cell > p:first-of-type,
body:has(.faq-accordion) .innerpage-main-wrapper .PageContent .nsp-grid-cell > p:last-of-type {
    grid-column: 1;
}

body:has(.faq-accordion) .innerpage-main-wrapper .PageContent .nsp-grid-cell > p:has(img) {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
}

body:has(.faq-accordion) .innerpage-main-wrapper .PageContent .nsp-grid-cell > p:has(img) img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.faq-accordion .card {
    border-color: var(--nsp-border);
}

.faq-question {
    font-weight: 700;
}

.main-footer .footer-map-content {
    display: grid;
    min-height: 190px;
    place-items: center;
    background: rgba(255, 255, 255, .075);
}

.main-footer .footer-map-content p {
    padding: 24px !important;
    color: #e4f1ed !important;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.main-footer .footer-map-content iframe {
    min-height: 244px;
}

/* The Volunteers page uses named sections in its Admin-managed content. */
.nsp-volunteer-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(24px, 4vw, 52px);
    align-items: center;
}

.nsp-volunteer-intro__copy {
    grid-column: 2;
    grid-row: 1;
}

.nsp-volunteer-intro__media {
    grid-column: 1;
    grid-row: 1;
}

.nsp-volunteer-intro__media img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 20px;
}

.nsp-volunteer-intro__copy h2 {
    margin: 0 0 20px;
    font-size: clamp(2.15rem, 3.4vw, 3.3rem);
}

.nsp-volunteer-intro__copy h3 {
    margin: 30px 0 10px;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.nsp-volunteer-opportunities,
.nsp-volunteer-eligibility,
.nsp-volunteer-outro {
    margin-top: clamp(48px, 6vw, 84px);
}

.nsp-volunteer-opportunities > h2,
.nsp-volunteer-eligibility > h2,
.nsp-volunteer-outro > h2 {
    margin-bottom: 26px;
    font-size: clamp(1.9rem, 3vw, 2.55rem);
}

.nsp-volunteer-opportunities__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.nsp-volunteer-opportunity {
    position: relative;
    min-height: 190px;
    padding: 28px;
    background: linear-gradient(150deg, #fff 0%, #f8fbf6 100%);
    border: 1px solid var(--nsp-border);
    border-radius: 18px;
    box-shadow: var(--nsp-shadow-sm);
}

.nsp-volunteer-opportunity::before {
    display: block;
    width: 34px;
    height: 4px;
    margin-bottom: 20px;
    content: "";
    background: linear-gradient(90deg, #317f0d, #f47700);
    border-radius: 999px;
}

.nsp-volunteer-opportunity h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.nsp-volunteer-opportunity p {
    margin: 0;
}

.nsp-volunteer-eligibility {
    padding: clamp(24px, 3vw, 40px);
    background: #f3f8f0;
    border-radius: 20px;
}

.nsp-volunteer-eligibility ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
    margin: 0;
    padding: 0 !important;
    list-style: none;
}

.nsp-volunteer-eligibility li {
    position: relative;
    display: block;
    margin: 0 !important;
    padding: 10px 0 10px 28px !important;
    list-style: none !important;
}

.nsp-volunteer-eligibility li::marker {
    content: "";
}

.nsp-volunteer-eligibility li::before {
    position: absolute;
    top: 19px;
    left: 0;
    width: 9px;
    height: 9px;
    content: "";
    background: #317f0d;
    border-radius: 50%;
}

.nsp-volunteer-outro {
    padding: clamp(28px, 4vw, 52px);
    color: #e8f2f1;
    background: linear-gradient(115deg, #062d52, #0e5a61 72%, #286c21);
    border-radius: 22px;
}

.nsp-volunteer-outro h2,
.nsp-volunteer-outro p {
    color: #fff;
}

.nsp-volunteer-outro p {
    max-width: 78ch;
}

.PageContent .nsp-volunteer-outro .button1,
.PageContent .nsp-volunteer-outro .button1:visited {
    color: #145b22;
    background: #fff;
    border-color: #fff;
}

.PageContent .nsp-volunteer-outro .button1:hover,
.PageContent .nsp-volunteer-outro .button1:focus-visible {
    color: #0b4925;
    background: #f1f8eb;
    border-color: #f1f8eb;
}

.nsp-motion-ready.nsp-reveal-pending {
    opacity: 1;
    transform: none !important;
}

@media (max-width: 991.98px) {
    .nsp-about-intro {
        grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    }

    .nsp-home-page-content .nsp-grid-cell,
    .nsp-volunteer-intro,
    body:has(.faq-accordion) .innerpage-main-wrapper .PageContent .nsp-grid-cell {
        display: block;
    }

    .nsp-volunteer-intro__media {
        margin-bottom: 26px;
    }

    .nsp-volunteer-opportunities__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .nsp-public-form .nsp-captcha {
        display: flex;
        gap: 8px;
    }

    .nsp-public-form .nsp-captcha-question {
        padding-inline: 8px;
    }

    .nsp-public-form .nsp-captcha-question img {
        width: clamp(80px, 24vw, 105px);
        height: auto;
    }

    .nsp-public-form .nsp-captcha > .form-control {
        padding-inline: 8px;
    }

    .PageContent .nsp-grid-cell > h2:not(:first-child),
    .nsp-page-content--contained > .row > .PageContent > h2:not(:first-child) {
        padding-top: 25px;
    }

    .PageContent .nsp-grid-cell > :is(h3, h4, h5, h6):not(:first-child),
    .nsp-page-content--contained > .row > .PageContent > :is(h3, h4, h5, h6):not(:first-child) {
        padding-top: 15px;
    }

    .nsp-about-intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .innerpage-main-wrapper .PageContent.nsp-page-content--sectioned > .nsp-custom-grid > .container > .row > [class*="col-"] > .nsp-grid-cell,
    .nsp-home-page-content .nsp-custom-grid > .container > .row > [class*="col-"] > .nsp-grid-cell {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .nsp-volunteer-opportunities__grid,
    .nsp-volunteer-eligibility ul {
        grid-template-columns: 1fr;
    }

    .nsp-volunteer-opportunity {
        min-height: 0;
    }
}

@media (max-width: 359.98px) {
    .nsp-public-form .nsp-captcha-question {
        padding-inline: 6px;
    }

    .nsp-public-form .nsp-captcha-question span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-services-area .tpservices__thumb img,
    .services-blocks-area .service-block-card__media img {
        transition: none;
        transform: none !important;
    }
}
