:root {
    --portal-ink: #162033;
    --portal-muted: #68758a;
    --portal-primary: #5b4ee8;
    --portal-teal: #0ca678;
    --portal-soft: #f4f6fb;
}

.membership-hero {
    padding: 4.5rem 0 3.5rem;
    color: #fff;
    background: linear-gradient(120deg, #172554 0%, #2563eb 58%, #14b8a6 130%);
}

.membership-hero-small {
    padding: 3rem 0;
}

.membership-hero h1 {
    max-width: 760px;
    margin: .45rem 0 .75rem;
    font-size: clamp(2rem, 5vw, 3.6rem);
    letter-spacing: -.04em;
}

.membership-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem;
}

.membership-hero .eyebrow,
.membership-hero .back-link {
    color: rgba(255, 255, 255, .78);
}

.membership-hero .back-link {
    display: block;
    width: fit-content;
    margin-bottom: 1rem;
    text-decoration: none;
}

.section-heading.compact {
    margin-bottom: 1.25rem;
}

.membership-search {
    width: min(100%, 320px);
}

.membership-community-card {
    display: flex;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(98, 105, 118, .16);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 16px 40px rgba(30, 41, 59, .07);
}

.membership-community-logo {
    display: grid;
    flex: 0 0 116px;
    place-items: center;
    padding: 1.25rem;
    background: linear-gradient(145deg, #eff6ff, #f0fdfa);
}

.membership-community-logo img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.membership-community-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 1.35rem;
}

.membership-community-body > span,
.step-label {
    color: #2563eb;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.membership-community-body h3 {
    margin: .35rem 0 .65rem;
    font-size: 1.1rem;
}

.membership-community-body p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 1rem;
    color: #667085;
    font-size: .9rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.membership-community-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
}

.membership-status-list {
    display: grid;
    gap: .65rem;
}

.membership-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(98, 105, 118, .14);
    border-radius: .85rem;
    color: inherit;
    text-decoration: none;
}

.membership-status-item div {
    display: grid;
}

.membership-status-item small {
    color: #667085;
}

.membership-status {
    flex: none;
    padding: .35rem .65rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

.membership-status.is-approved { color: #067647; background: #ecfdf3; }
.membership-status.is-pending { color: #b54708; background: #fffaeb; }
.membership-status.is-rejected { color: #b42318; background: #fef3f2; }

.membership-form-card,
.consent-card {
    height: 100%;
}

.membership-form-card h2,
.consent-card h2 {
    margin: .35rem 0 1rem;
}

.consent-text {
    margin-bottom: .75rem;
    border: 1px solid rgba(98, 105, 118, .18);
    border-radius: .8rem;
}

.consent-text summary {
    padding: .85rem 1rem;
    cursor: pointer;
    font-weight: 600;
}

.consent-text div {
    max-height: 240px;
    overflow: auto;
    padding: 0 1rem 1rem;
    color: #667085;
    white-space: pre-line;
}

.consent-check {
    margin: 1.25rem 0;
    padding: 1rem 1rem 1rem 2.75rem;
    border-radius: .85rem;
    background: #f8fafc;
}

@media (max-width: 575.98px) {
    .membership-community-card { flex-direction: column; }
    .membership-community-logo { flex-basis: auto; }
    .membership-status-item { align-items: flex-start; flex-direction: column; }
}

.application-card {
    height: 100%;
    padding: 1.4rem;
    border: 1px solid rgba(98, 105, 118, .16);
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 16px 40px rgba(30, 41, 59, .07);
}

.application-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: #667085;
    font-size: .82rem;
}

.application-card h3 {
    margin: 1.1rem 0 .35rem;
    font-size: 1.2rem;
}

.application-card > p {
    margin-bottom: 1.2rem;
    color: #667085;
}

.application-page-head {
    padding: 2.5rem 0 2rem;
    color: #fff;
    background: linear-gradient(120deg, #172554, #1d4ed8);
}

.application-page-head .back-link {
    display: block;
    width: fit-content;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.application-page-head > .container-xl > span {
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.application-page-head h1 {
    margin: .35rem 0 0;
}

.application-steps {
    overflow-x: auto;
    border-bottom: 1px solid rgba(98, 105, 118, .15);
    background: #fff;
}

.application-steps .container-xl {
    display: flex;
    min-width: 850px;
    padding-top: .8rem;
    padding-bottom: .8rem;
}

.application-steps a,
.application-steps .container-xl > span {
    display: flex;
    flex: 1;
    align-items: center;
    gap: .55rem;
    padding: .55rem .7rem;
    color: #98a2b3;
    font-size: .8rem;
    text-decoration: none;
}

.application-steps b {
    display: grid;
    width: 1.7rem;
    height: 1.7rem;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: #eef2f6;
}

.application-steps .active {
    color: #1d4ed8;
    font-weight: 700;
}

.application-steps .active b {
    color: #fff;
    background: #2563eb;
}

.application-logo-card h2,
.application-form-card h2 {
    margin-bottom: 1.25rem;
}

.application-logo-preview {
    display: grid;
    min-height: 230px;
    margin-bottom: 1rem;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(145deg, #eff6ff, #f0fdfa);
}

.application-logo-preview img {
    width: 170px;
    height: 170px;
    object-fit: contain;
}

.application-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1rem;
}

@media (max-width: 575.98px) {
    .application-form-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

html {
    scroll-behavior: smooth;
}

body.portal-body {
    color: var(--portal-ink);
    background: #fff;
    font-family: Inter, var(--tblr-font-sans-serif);
}

.portal-skip-link {
    position: fixed;
    z-index: 1100;
    top: 1rem;
    left: 1rem;
    padding: .75rem 1rem;
    background: #fff;
    border-radius: .75rem;
}

.portal-header {
    position: sticky;
    z-index: 1030;
    top: 0;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(98, 105, 118, .12);
    backdrop-filter: blur(16px);
}

.portal-header .navbar {
    min-height: 78px;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--portal-ink);
    letter-spacing: -.02em;
}

.portal-brand:hover {
    color: var(--portal-primary);
}

.portal-brand-mark {
    display: grid;
    width: 43px;
    height: 43px;
    color: #fff;
    background: linear-gradient(135deg, #6458ed, #8f67ff);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(91, 78, 232, .28);
    place-items: center;
}

.portal-brand-mark svg {
    width: 24px;
    height: 24px;
}

.portal-brand span:last-child {
    display: grid;
}

.portal-brand strong {
    font-size: 1.05rem;
    line-height: 1;
}

.portal-brand small {
    margin-top: .25rem;
    color: var(--portal-muted);
    font-size: .72rem;
}

.portal-header .nav-link {
    padding: .75rem .9rem !important;
    color: #4d596c;
    font-weight: 600;
}

.portal-header .nav-link:hover,
.portal-header .nav-link.active {
    color: var(--portal-primary);
}

.portal-login {
    border: 0;
    background: linear-gradient(135deg, #5b4ee8, #735df2);
    box-shadow: 0 9px 24px rgba(91, 78, 232, .25);
}

.portal-hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    background-position: center;
    background-size: cover;
}

.portal-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(22, 22, 48, .94) 0%, rgba(43, 35, 98, .83) 48%, rgba(32, 26, 74, .48) 100%);
}

.portal-hero::after {
    position: absolute;
    right: -12rem;
    bottom: -18rem;
    width: 38rem;
    height: 38rem;
    content: "";
    background: rgba(31, 201, 157, .24);
    border-radius: 50%;
    filter: blur(5px);
}

.portal-hero-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 650px;
    align-items: center;
    padding: 6rem 0;
}

.portal-kicker,
.portal-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #18c99a;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.portal-kicker::before,
.portal-section-kicker::before {
    width: 22px;
    height: 3px;
    content: "";
    background: currentColor;
    border-radius: 99px;
}

.portal-hero h1 {
    max-width: 760px;
    margin: 1.2rem 0 1.4rem;
    color: #fff;
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .98;
}

.portal-hero p {
    max-width: 650px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, .72);
    font-size: 1.2rem;
    line-height: 1.7;
}

.portal-search {
    display: flex;
    max-width: 650px;
    align-items: center;
    gap: .65rem;
    padding: .65rem;
    background: rgba(255, 255, 255, .98);
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(12, 15, 38, .3);
}

.portal-search > svg {
    flex: 0 0 auto;
    margin-left: .55rem;
    color: #7c8798;
}

.portal-search input {
    width: 100%;
    min-width: 0;
    padding: .7rem .2rem;
    color: var(--portal-ink);
    background: transparent;
    border: 0;
    outline: 0;
}

.portal-search .btn {
    flex: 0 0 auto;
    padding: .8rem 1.4rem;
}

.portal-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1rem;
    margin-top: 1.3rem;
    color: rgba(255, 255, 255, .48);
    font-size: .85rem;
}

.portal-quick-links a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
}

.portal-hero-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 1.5rem;
    box-shadow: 0 24px 80px rgba(13, 11, 42, .28);
    backdrop-filter: blur(15px);
}

.portal-hero-card-label {
    margin: .3rem .25rem 1rem;
    color: rgba(255, 255, 255, .68);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-stat {
    display: flex;
    min-height: 135px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-radius: 1rem;
}

.portal-stat strong {
    font-size: 2.1rem;
    letter-spacing: -.04em;
}

.portal-stat span {
    color: rgba(255, 255, 255, .62);
}

.portal-stat-wide {
    min-height: 110px;
    background: linear-gradient(135deg, rgba(12, 166, 120, .88), rgba(23, 196, 151, .72));
}

.portal-section {
    padding: 6rem 0;
}

.portal-events {
    background: var(--portal-soft);
}

.portal-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.portal-section-heading h2,
.portal-announcements h2,
.portal-cta h2 {
    margin: .65rem 0 .55rem;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -.045em;
}

.portal-section-heading p,
.portal-announcements p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 1.05rem;
}

.portal-event-card {
    overflow: hidden;
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 14px 45px rgba(32, 43, 68, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.portal-event-card:hover {
    box-shadow: 0 20px 55px rgba(32, 43, 68, .14);
    transform: translateY(-5px);
}

.portal-event-image {
    position: relative;
    display: block;
    min-height: 240px;
    background-color: #dfe4ed;
    background-position: center;
    background-size: cover;
}

.portal-event-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(12, 18, 32, .03), rgba(12, 18, 32, .42));
}

.portal-date-badge {
    position: absolute;
    z-index: 1;
    top: 1rem;
    left: 1rem;
    display: grid;
    width: 58px;
    height: 62px;
    color: var(--portal-ink);
    background: rgba(255, 255, 255, .96);
    border-radius: .85rem;
    box-shadow: 0 8px 25px rgba(12, 18, 32, .16);
    place-content: center;
    text-align: center;
}

.portal-date-badge strong {
    font-size: 1.4rem;
    line-height: 1;
}

.portal-date-badge small {
    margin-top: .2rem;
    color: var(--portal-primary);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-open-badge {
    position: absolute;
    z-index: 1;
    right: 1rem;
    bottom: 1rem;
}

.portal-community-name {
    margin-bottom: .55rem;
    color: var(--portal-primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.portal-event-card h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 750;
    line-height: 1.3;
}

.portal-event-card h3 a {
    color: var(--portal-ink);
    text-decoration: none;
}

.portal-event-meta {
    display: grid;
    gap: .55rem;
    color: var(--portal-muted);
    font-size: .86rem;
}

.portal-event-meta span {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
}

.portal-event-meta .icon {
    width: 18px;
    min-width: 18px;
    height: 18px;
}

.portal-event-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--portal-muted);
    background: #fff;
    font-size: .84rem;
}

.portal-event-footer a {
    margin-left: auto;
    color: var(--portal-primary);
    font-weight: 700;
    text-decoration: none;
}

.portal-communities {
    background: #fff;
}

.portal-community-card {
    position: relative;
    display: flex;
    min-height: 170px;
    align-items: center;
    gap: 1.2rem;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid #e8ebf1;
    border-radius: 1.2rem;
    transition: border-color .2s ease, transform .2s ease;
}

.portal-community-card:hover {
    border-color: rgba(91, 78, 232, .35);
    transform: translateY(-3px);
}

.portal-community-logo {
    display: grid;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    overflow: hidden;
    padding: .5rem;
    background: var(--portal-soft);
    border-radius: 1.25rem;
    place-items: center;
}

.portal-community-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-community-content > span {
    color: var(--portal-muted);
    font-size: .75rem;
}

.portal-community-content h3 {
    margin: .25rem 0 .75rem;
    font-size: 1.12rem;
    line-height: 1.3;
}

.portal-community-content > a {
    color: var(--portal-primary);
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
}

.portal-community-metrics {
    display: flex;
    gap: .8rem;
    margin-bottom: .65rem;
    color: var(--portal-muted);
    font-size: .78rem;
}

.portal-community-metrics strong {
    color: var(--portal-ink);
}

.portal-announcements {
    background: #f8f9fc;
}

.portal-announcements .btn {
    margin-top: 1.5rem;
}

.portal-announcement-list {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ebf1;
    border-radius: 1.25rem;
    box-shadow: 0 14px 45px rgba(32, 43, 68, .06);
}

.portal-announcement-item {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 1.5rem;
    color: var(--portal-ink);
    border-bottom: 1px solid #edf0f5;
    text-decoration: none;
}

.portal-announcement-item:last-child {
    border-bottom: 0;
}

.portal-announcement-item:hover {
    background: #fafaff;
}

.portal-announcement-item time {
    display: grid;
    width: 58px;
    height: 58px;
    background: rgba(91, 78, 232, .09);
    border-radius: .85rem;
    place-content: center;
    text-align: center;
}

.portal-announcement-item time strong {
    font-size: 1.25rem;
    line-height: 1;
}

.portal-announcement-item time span {
    margin-top: .18rem;
    color: var(--portal-primary);
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-announcement-item h3 {
    margin: 0 0 .3rem;
    font-size: 1rem;
}

.portal-announcement-item p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: .85rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.portal-cta {
    padding: 5rem 0;
    background: #fff;
}

.portal-cta-card {
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3.5rem;
    color: #fff;
    background: linear-gradient(135deg, #4235bd, #6f54e9 55%, #0ca678 140%);
    border-radius: 1.75rem;
    box-shadow: 0 25px 70px rgba(66, 53, 189, .26);
}

.portal-cta .portal-section-kicker {
    color: #55e5bd;
}

.portal-cta h2 {
    margin-bottom: .6rem;
}

.portal-cta p {
    max-width: 670px;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 1rem;
}

.portal-cta-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: .75rem;
}

.portal-empty {
    padding: 2rem;
    color: var(--portal-muted);
    background: #fff;
    border: 1px dashed #d8dde7;
    border-radius: 1rem;
    text-align: center;
}

.portal-footer {
    padding: 4rem 0 2rem;
    color: rgba(255, 255, 255, .58);
    background: #16172d;
}

.portal-footer-brand {
    margin-bottom: .35rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.portal-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.25rem;
}

.portal-footer-links a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
}

.portal-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .8rem;
}

@media (max-width: 991.98px) {
    .portal-header .navbar-collapse {
        padding: 1rem 0 1.25rem;
    }

    .portal-hero,
    .portal-hero-overlay {
        min-height: auto;
    }

    .portal-hero-overlay {
        padding: 5rem 0;
    }

    .portal-cta-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 2.5rem;
    }

    .portal-cta-actions {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .portal-section {
        padding: 4rem 0;
    }

    .portal-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-search {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .portal-search input {
        width: calc(100% - 3rem);
    }

    .portal-search .btn {
        width: 100%;
    }

    .portal-announcement-item {
        grid-template-columns: 52px 1fr;
        padding: 1rem;
    }

    .portal-announcement-item > span:last-child {
        display: none;
    }

    .portal-cta-card {
        padding: 2rem 1.5rem;
    }

    .portal-footer-links {
        justify-content: flex-start;
    }

    .portal-footer-bottom {
        flex-direction: column;
    }
}

.portal-user-button {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem .65rem;
    color: var(--portal-ink);
    background: #f2f3f8;
    border: 1px solid #e4e7ee;
}

.login-page {
    min-height: calc(100vh - 78px);
    padding: 4rem 0;
    background: radial-gradient(circle at 12% 20%, rgba(12, 166, 120, .2), transparent 30%), radial-gradient(circle at 90% 90%, rgba(91, 78, 232, .22), transparent 34%), #eeeff8;
}

.login-shell {
    overflow: hidden;
    min-height: 660px;
    background: #fff;
    border-radius: 1.75rem;
    box-shadow: 0 30px 90px rgba(32, 35, 74, .16);
}

.login-story {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: #fff;
    background: linear-gradient(145deg, rgba(38, 31, 107, .97), rgba(91, 78, 232, .91)), url('../tabler/images/portal-hero.jpg') center/cover;
}

.login-story h1 {
    margin: 1rem 0;
    color: #fff;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1;
}

.login-story p {
    max-width: 560px;
    color: rgba(255, 255, 255, .7);
    font-size: 1.05rem;
    line-height: 1.7;
}

.login-story-points {
    display: grid;
    gap: .8rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, .82);
}

.login-form-side {
    display: grid;
    padding: 3rem;
    place-items: center;
}

.login-form-card {
    width: min(100%, 440px);
}

.login-form-card h2 {
    margin-bottom: .4rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.035em;
}

.login-security-note {
    margin-top: 1.5rem;
    padding: 1rem;
    color: var(--portal-muted);
    background: #f6f7fa;
    border-radius: .75rem;
    font-size: .78rem;
    line-height: 1.5;
}

.profile-page-head {
    padding: 4rem 0;
    color: #fff;
    background: linear-gradient(135deg, #28215f, #5b4ee8 62%, #0ca678 155%);
}

.student-profile-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.student-avatar {
    display: grid;
    width: 105px;
    height: 105px;
    flex: 0 0 105px;
    overflow: hidden;
    color: #fff;
    background: rgba(255, 255, 255, .2);
    border: 4px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 800;
    place-items: center;
}

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

.student-profile-summary span,
.student-profile-summary p {
    color: rgba(255, 255, 255, .65);
}

.student-profile-summary h1 {
    margin: .25rem 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.045em;
}

.student-profile-summary p {
    margin: 0;
}

.profile-stat-card {
    display: flex;
    min-height: 130px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid #e8ebf1;
    border-radius: 1rem;
    box-shadow: 0 12px 35px rgba(32, 43, 68, .05);
}

.profile-stat-card strong {
    color: var(--portal-primary);
    font-size: 2.2rem;
    line-height: 1;
}

.profile-stat-card span {
    margin-top: .45rem;
    color: var(--portal-muted);
}

.profile-actions dl {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: .7rem;
}

.profile-actions dt {
    color: var(--portal-muted);
    font-weight: 500;
}

.profile-actions dd {
    margin: 0;
    text-align: right;
}

.profile-action-link {
    display: grid;
    width: 100%;
    margin-bottom: .75rem;
    padding: 1rem;
    text-align: left;
    background: #f7f8fb;
    border: 1px solid #e7eaf0;
    border-radius: .8rem;
}

.profile-action-link span {
    font-weight: 750;
}

.profile-action-link small {
    margin-top: .25rem;
    color: var(--portal-muted);
}

@media (max-width: 991.98px) {
    .login-story,
    .login-form-side {
        padding: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .login-page {
        padding: 1.5rem 0;
    }

    .login-shell {
        border-radius: 1.2rem;
    }

    .login-story,
    .login-form-side {
        padding: 2rem 1.5rem;
    }

    .student-profile-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

.public-page-hero {
    padding: 5rem 0 3.5rem;
    background: radial-gradient(circle at 85% 10%, rgba(91, 78, 232, .16), transparent 32%), #f5f6fb;
}

.public-page-hero-small {
    padding: 4rem 0 3rem;
}

.public-page-hero h1 {
    margin: .8rem 0 .65rem;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -.05em;
}

.public-page-hero p {
    max-width: 720px;
    color: var(--portal-muted);
    font-size: 1.08rem;
}

.public-search {
    display: flex;
    max-width: 720px;
    gap: .75rem;
    margin-top: 1.75rem;
}

.public-search .form-control {
    min-height: 50px;
    border: 1px solid #e1e5ed;
    border-radius: .85rem;
    box-shadow: 0 10px 30px rgba(32, 43, 68, .06);
}

.public-page-content {
    min-height: 45vh;
    padding: 4.5rem 0 6rem;
    background: #f8f9fc;
}

.public-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e8ebf1;
    border-radius: 1.25rem;
    box-shadow: 0 12px 40px rgba(32, 43, 68, .06);
}

.public-card h2 {
    margin-bottom: 1.4rem;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.public-card h3 {
    margin: 1.5rem 0 .45rem;
    font-size: 1rem;
    font-weight: 750;
}

.rich-content {
    overflow-wrap: anywhere;
    line-height: 1.75;
}

.rich-content img,
.rich-content video,
.rich-content iframe {
    max-width: 100%;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
}

.rich-content th,
.rich-content td {
    padding: .65rem;
    border: 1px solid #e1e5ed;
}

.event-detail-hero {
    position: relative;
    min-height: 520px;
    background-position: center;
    background-size: cover;
}

.event-detail-overlay {
    display: flex;
    min-height: 520px;
    align-items: flex-end;
    padding: 4rem 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 17, 32, .15), rgba(15, 17, 32, .9));
}

.event-detail-overlay h1 {
    max-width: 850px;
    margin: .6rem 0;
    color: #fff;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -.05em;
}

.event-detail-overlay p {
    max-width: 760px;
    color: rgba(255, 255, 255, .74);
    font-size: 1.1rem;
}

.event-back {
    display: inline-block;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, .8);
    font-weight: 700;
    text-decoration: none;
}

.event-facts dl {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: .75rem;
}

.event-facts dt {
    color: var(--portal-muted);
    font-weight: 500;
}

.event-facts dd {
    margin: 0;
    font-weight: 700;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.photo-grid a {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #eef1f6;
    border-radius: .8rem;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.photo-grid a:hover img {
    transform: scale(1.04);
}

.community-profile-hero {
    padding: 4rem 0;
    color: #fff;
    background: linear-gradient(135deg, #2d276f, #5b4ee8 60%, #0ca678 150%);
}

.community-profile-head {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.community-profile-logo {
    display: grid;
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
    overflow: hidden;
    padding: 1rem;
    background: #fff;
    border-radius: 1.75rem;
    box-shadow: 0 20px 55px rgba(17, 13, 53, .3);
    place-items: center;
}

.community-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.community-profile-head h1 {
    margin: .4rem 0;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -.05em;
}

.community-profile-head p,
.community-profile-head > div > span {
    color: rgba(255, 255, 255, .64);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.social-links a {
    padding: .4rem .7rem;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border-radius: .55rem;
    text-decoration: none;
}

.profile-tabs {
    position: sticky;
    z-index: 10;
    top: 78px;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid #e6eaf0;
}

.profile-tabs .container-xl {
    display: flex;
    gap: 1.5rem;
}

.profile-tabs a {
    flex: 0 0 auto;
    padding: 1rem 0;
    color: var(--portal-muted);
    font-weight: 650;
    text-decoration: none;
}

.profile-tabs a:hover {
    color: var(--portal-primary);
}

.profile-list-card {
    display: grid;
    gap: .35rem;
    height: 100%;
    padding: 1rem 1.15rem;
    color: var(--portal-ink);
    background: #f8f9fc;
    border: 1px solid #eceef4;
    border-radius: .8rem;
    text-decoration: none;
}

.profile-list-card span {
    overflow: hidden;
    color: var(--portal-muted);
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.person-card,
.sponsor-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 1rem;
    background: #f8f9fc;
    border-radius: .85rem;
}

.person-card span,
.person-card small,
.sponsor-card span {
    color: var(--portal-muted);
    font-size: .78rem;
}

.person-card strong {
    margin: .3rem 0;
}

.sponsor-card {
    align-items: center;
    flex-direction: row;
    gap: 1rem;
}

.sponsor-card img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.sponsor-card div {
    display: grid;
}

.directive-frame {
    width: 100%;
    min-height: 720px;
    border: 1px solid #e1e5ed;
    border-radius: .75rem;
}

.steps-list {
    display: grid;
    gap: 1rem;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e8ebf1;
    border-radius: 1rem;
}

.step-card > span {
    display: grid;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    color: #fff;
    background: var(--portal-primary);
    border-radius: 14px;
    font-weight: 800;
    place-items: center;
}

.step-card h2 {
    margin: 0 0 .35rem;
    font-size: 1.1rem;
}

.step-card p {
    margin: 0;
    color: var(--portal-muted);
}

.public-accordion .accordion-item {
    overflow: hidden;
    margin-bottom: .75rem;
    border: 1px solid #e4e8ef;
    border-radius: .9rem;
}

.public-accordion .accordion-button {
    font-weight: 700;
}

.contact-card {
    height: 100%;
}

.contact-card > span {
    color: var(--portal-primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-card a {
    color: var(--portal-primary);
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .public-search,
    .community-profile-head {
        align-items: stretch;
        flex-direction: column;
    }

    .community-profile-logo {
        width: 110px;
        height: 110px;
        flex-basis: 110px;
    }

    .profile-tabs {
        top: 70px;
    }

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

    .directive-frame {
        min-height: 520px;
    }
}
