* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #202124;
}

a {
    text-decoration: none;
}


/* =========================
   NAVIGATION
   ========================= */

.portal-nav {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e3e6ea;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.portal-nav-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 13px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.portal-brand {
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .3px;
    white-space: nowrap;
}

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

.portal-menu a {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 11px;
    border-radius: 7px;
    transition: background .2s, color .2s;
}

.portal-menu a:hover {
    background: #f1f5f9;
    color: #198754;
}

.portal-menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 25px;
    cursor: pointer;
}


/* =========================
   PAGE
   ========================= */

.portal-page {
    width: 100%;
}


/* =========================
   HERO
   ========================= */

.portal-hero {
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7fafc 55%,
            #eef7f2 100%
        );

    border-bottom: 1px solid #e4e8ec;
}

.portal-hero-content {
    max-width: 1180px;
    margin: 0 auto;

    min-height: 430px;
    padding: 65px 20px;

    display: flex;
    align-items: center;
    gap: 55px;
}

.portal-logo {
    width: 180px;
    min-width: 180px;
    height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-logo img {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
}

.portal-hero-text {
    max-width: 760px;
}

.portal-eyebrow {
    margin: 0 0 10px;
    color: #198754;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.portal-hero h1 {
    margin: 0 0 18px;

    color: #111827;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.portal-hero-description {
    max-width: 680px;
    margin: 0 0 28px;

    color: #5b6470;
    font-size: 17px;
    line-height: 1.65;
}

.portal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================
   COMMUNITY CONTEXT
   ========================= */

.portal-community-context {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;

    margin: 0 0 18px;
    padding: 9px 13px;

    background: #f0fdf4;
    border: 1px solid #cdebd8;
    border-radius: 9px;

    color: #166534;
    font-size: 13px;
}

.portal-community-context-label {
    color: #198754;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.portal-community-context strong {
    color: #166534;
    font-size: 14px;
}

.portal-community-context > span:last-child {
    color: #4b6355;
}


/* =========================
   BUTTONS
   ========================= */

.portal-primary-button,
.portal-secondary-button {
    display: inline-block;

    padding: 12px 18px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    transition: transform .2s, box-shadow .2s, background .2s;
}

.portal-primary-button {
    background: #198754;
    color: #ffffff;
}

.portal-primary-button:hover {
    background: #157347;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
}

.portal-secondary-button {
    background: #ffffff;
    color: #198754;
    border: 1px solid #198754;
}

.portal-secondary-button:hover {
    background: #f0fdf4;
    transform: translateY(-1px);
}


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

.portal-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 60px 20px;
}

.portal-section-heading {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 35px;
}

.portal-section-heading h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 32px;
}

.portal-section-heading p:last-child {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.portal-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.portal-service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;

    display: flex;
    gap: 18px;

    color: inherit;

    box-shadow: 0 2px 8px rgba(0,0,0,.04);

    transition:
        transform .2s,
        box-shadow .2s,
        border-color .2s;
}

.portal-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border-color: #b9ddc8;
}

.portal-service-icon {
    width: 50px;
    min-width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f0fdf4;
    border-radius: 10px;

    font-size: 25px;
}

.portal-service-card h3 {
    margin: 2px 0 8px;

    color: #111827;
    font-size: 19px;
}

.portal-service-card p {
    margin: 0 0 12px;

    color: #626b76;
    font-size: 14px;
    line-height: 1.55;
}

.portal-service-card span {
    color: #198754;
    font-size: 14px;
    font-weight: 700;
}

.portal-service-card-muted {
    background: #fafafa;
}


/* =========================
   CONNECT CTA
   ========================= */

.portal-connect-section {
    max-width: 1140px;
    margin: 0 auto 55px;
    padding: 35px 40px;

    background: #198754;
    color: #ffffff;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.portal-connect-section .portal-eyebrow {
    color: #d9f7e5;
}

.portal-connect-section h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.portal-connect-section p {
    margin: 0;
    max-width: 680px;
    color: #e9fff1;
    line-height: 1.55;
}

.portal-connect-section .portal-primary-button {
    flex-shrink: 0;
    background: #ffffff;
    color: #198754;
}

.portal-connect-section .portal-primary-button:hover {
    background: #f5f5f5;
}


/* =========================
   FOOTER
   ========================= */

.portal-footer {
    border-top: 1px solid #e3e6ea;
    background: #ffffff;

    padding: 28px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;

    color: #6b7280;
    font-size: 13px;
}

.portal-footer strong {
    color: #222;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 800px) {

    .portal-menu-toggle {
        display: block;
    }

    .portal-menu {
        display: none;

        width: 100%;

        flex-direction: column;
        align-items: stretch;

        border-top: 1px solid #eeeeee;
        padding-top: 8px;
    }

    .portal-menu.portal-menu-open {
        display: flex;
    }

    .portal-nav-inner {
        flex-wrap: wrap;
    }

    .portal-menu a {
        display: block;
        padding: 12px;
    }

    .portal-hero-content {
        min-height: auto;
        padding: 45px 20px;

        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .portal-logo {
        width: 130px;
        min-width: 130px;
        height: 130px;
    }

    .portal-logo img {
        max-width: 130px;
        max-height: 130px;
    }

    .portal-hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .portal-hero-actions {
        justify-content: center;
    }

    .portal-services-grid {
        grid-template-columns: 1fr;
    }

    .portal-connect-section {
        margin-left: 20px;
        margin-right: 20px;

        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 480px) {

    .portal-hero h1 {
        font-size: 36px;
    }

    .portal-hero-description {
        font-size: 15px;
    }

    .portal-service-card {
        padding: 20px;
    }

    .portal-connect-section {
        padding: 28px 24px;
    }
}
