@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Libre+Franklin:ital,wght@0,300;0,400;0,600;1,400&display=swap');

:root {
    --ink: #424d5e;
    --mint: #67b698;
    --mint-dark: #4f9a7e;
    --cream: #f7f8f6;
    --white: #ffffff;
    --line: rgba(66, 77, 94, 0.12);
    --shadow: 0 12px 40px rgba(66, 77, 94, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(ellipse at top left, rgba(103, 182, 152, 0.08), transparent 45%),
        linear-gradient(180deg, #fbfbfa 0%, var(--cream) 100%);
    color: var(--ink);
    min-height: 100vh;
    font-family: 'Libre Franklin', sans-serif;
}

body,
button,
input,
textarea,
select,
.btn,
.form-control,
.nav-link,
.navbar,
.dropdown-menu,
.alert {
    font-family: 'Libre Franklin', sans-serif;
}

p, a, li, span, label, .text-muted {
    color: var(--ink);
}

h1, h2, h3, h4, h5, h6, .brand-name {
    font-family: 'Libre Baskerville', serif;
    color: var(--mint);
}

p {
    line-height: 1.7;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
}

a:hover {
    color: var(--mint-dark);
}

.bi {
    filter: invert(95%) sepia(23%) saturate(906%) hue-rotate(77deg) brightness(76%) contrast(81%);
}

.site-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-name {
    font-size: 1.15rem;
    color: var(--ink);
}

.site-nav .nav-link {
    font-weight: 600;
    padding: 0.5rem 0.9rem !important;
}

.nav-cta {
    border: 1.5px solid var(--mint);
    border-radius: 0.4rem;
    margin-left: 0.35rem;
    color: var(--mint) !important;
}

.nav-cta:hover {
    background: var(--mint);
    color: var(--white) !important;
}

.form-control {
    border-color: var(--line);
    color: var(--ink);
}

.form-control::placeholder {
    color: rgba(66, 77, 94, 0.65) !important;
}

.btn-outline {
    border: 1.5px solid var(--mint) !important;
    color: var(--mint) !important;
    white-space: nowrap;
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: var(--mint) !important;
    color: var(--white) !important;
}

.btn-primary-solid {
    background: var(--mint);
    color: var(--white) !important;
    border: 1.5px solid var(--mint);
    padding: 0.7rem 1.35rem;
    border-radius: 0.4rem;
    font-weight: 600;
    display: inline-block;
}

.btn-primary-solid:hover {
    background: var(--mint-dark);
    border-color: var(--mint-dark);
    color: var(--white) !important;
}

.btn-ghost {
    background: transparent;
    color: var(--white) !important;
    border: 1.5px solid rgba(249, 249, 249, 0.7);
    padding: 0.7rem 1.35rem;
    border-radius: 0.4rem;
    font-weight: 600;
    display: inline-block;
}

.btn-ghost:hover {
    background: rgba(249, 249, 249, 0.12);
    color: var(--white) !important;
}

.btn-ghost-dark {
    background: transparent;
    color: var(--ink) !important;
    border: 1.5px solid var(--ink);
    padding: 0.7rem 1.35rem;
    border-radius: 0.4rem;
    font-weight: 600;
    display: inline-block;
}

.btn-ghost-dark:hover {
    background: var(--ink);
    color: var(--white) !important;
}

.text-link {
    color: var(--mint) !important;
    font-weight: 600;
}

.splash {
    background-image:
        linear-gradient(120deg, rgba(66, 77, 94, 0.55), rgba(66, 77, 94, 0.25)),
        url('/static/img/stock6.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.splash-small {
    min-height: 42vh !important;
}

.splash-oval {
    margin: 4rem 0;
    padding: 2.5rem 2.75rem;
    background-color: rgba(66, 77, 94, 0.55);
    box-shadow: 0 0 1rem rgba(66, 77, 94, 0.85);
    border-radius: 1.5rem;
    max-width: 90%;
    animation: rise-in 0.8s ease-out both;
}

.splash-oval-small {
    margin: 2rem 0 !important;
    padding: 1.5rem 2rem !important;
}

.splash-brand {
    color: rgba(249, 249, 249, 0.9) !important;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.splash-text {
    color: #f9f9f9 !important;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    text-align: left !important;
    line-height: 1.35;
    margin-bottom: 1.25rem;
}

.splash-sub {
    color: rgba(249, 249, 249, 0.9) !important;
    margin: 0.5rem 0 0;
}

.splash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-hero {
    padding: 4.5rem 0 2rem;
    background:
        linear-gradient(135deg, rgba(103, 182, 152, 0.12), transparent 55%),
        linear-gradient(180deg, #ffffff, transparent);
}

.page-hero-compact {
    padding-bottom: 1rem;
}

.page-hero h1 {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 18ch;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mint) !important;
    margin-bottom: 0.75rem;
}

.lead {
    font-size: 1.15rem;
    max-width: 42rem;
    color: rgba(66, 77, 94, 0.9);
}

.body-section {
    padding: 2rem 0 4rem;
}

.section-block {
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
}

.section-block:first-child {
    border-top: none;
}

.tile-a h2 {
    color: var(--ink);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

.tile-a em {
    color: var(--mint);
    font-style: italic;
}

.section-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
}

.stat-item p {
    font-size: 0.95rem;
    margin: 0;
}

.stat-figure {
    display: block;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--mint);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.stat-icon {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    margin-bottom: 0.5rem;
}

.feature-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.feature-icon-item {
    text-align: center;
    padding: 1rem;
}

.feature-icon-item img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.feature-icon-item span {
    display: block;
    font-weight: 600;
}

.value-block,
.offer-block {
    height: 100%;
    padding: 0.25rem 0;
}

.value-block h3,
.offer-block h2 {
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.offer-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.cta-band {
    margin-top: 2rem;
    padding: 3rem 0 1rem;
    text-align: center;
}

.cta-band h2 {
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.cta-band .lead,
.cta-band > p {
    margin-left: auto;
    margin-right: auto;
}

.plain-list {
    padding-left: 1.1rem;
}

.plain-list li {
    margin-bottom: 0.65rem;
    line-height: 1.6;
}

.narrow-content {
    max-width: 760px;
}

.login-panel {
    padding: 1rem 0 2rem;
    text-align: center;
}

.login-logo {
    margin-bottom: 1rem;
}

.login-panel h2 {
    color: var(--ink);
}

.login-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: rgba(66, 77, 94, 0.8) !important;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding-top: 1rem;
}

.article-card {
    overflow: hidden;
    transition: transform 0.25s ease;
    display: block;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-4px);
    color: inherit;
}

.article-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.article-card-body {
    padding: 1rem 0.15rem 0;
}

.article-card-body h2 {
    color: var(--ink);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.article-card-body p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.article-stage {
    color: var(--mint) !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem !important;
}

.article-page h1 {
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.article-page h2 {
    color: var(--mint);
    font-size: 1.35rem;
    margin-top: 1.75rem;
}

.article-cta {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.donate-embed {
    margin-top: 1.5rem;
    width: 100%;
}

.donate-embed iframe {
    display: block;
    width: 1px;
    min-width: 100%;
    min-height: 1600px;
    border: 0;
    background: transparent;
    overflow: hidden;
}

.contact-form {
    max-width: 28rem;
    margin: 1.5rem auto 0;
    text-align: left;
}

.contact-form-heading {
    color: var(--ink);
    font-family: 'Libre Baskerville', serif;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.contact-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.contact-form .form-control {
    margin-bottom: 0.85rem;
}

.contact-form textarea.form-control {
    min-height: 6rem;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

.contact-form-inline {
    margin-top: 1.25rem;
}

.mentor-note {
    max-width: 28rem;
    margin: 1.25rem auto 0;
    font-size: 0.95rem;
    text-align: center;
    color: rgba(66, 77, 94, 0.85) !important;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state h2 {
    color: var(--ink);
}

.legal-content h2 {
    color: var(--ink);
    font-size: 1.35rem;
    margin-top: 2rem;
}

.legal-content h3 {
    color: var(--mint);
    font-size: 1.05rem;
    margin-top: 1.25rem;
}

.legal-content ul {
    padding-left: 1.2rem;
}

.legal-content li {
    margin-bottom: 0.45rem;
    line-height: 1.6;
}

.site-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 3.5rem 0 1.5rem;
    margin-top: 2rem;
}

.site-footer h5 {
    margin-bottom: 1rem;
}

.site-footer .nav-link {
    color: rgba(66, 77, 94, 0.8) !important;
}

.site-footer .nav-link:hover {
    color: var(--mint) !important;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    font-size: 0.95rem;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .splash {
        min-height: 78vh;
    }

    .splash-oval {
        margin: 3rem 0;
        padding: 1.75rem;
        max-width: 100%;
    }

    .splash-text {
        font-size: 1.4rem !important;
    }

    .stats-grid,
    .feature-icons {
        grid-template-columns: 1fr;
    }

    .section-image {
        height: 240px;
        margin-top: 1rem;
    }

    .page-hero {
        padding-top: 3rem;
    }
}
