.portal-header-image {
    width: 100%;
    aspect-ratio: 16 / 7;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 8px;
}

.portal-header-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 1000px) {
    .portal-header-image {
        aspect-ratio: 16 / 6;
    }

    .portal-header-image img {
        object-position: 40% center;
    }
}

@media (max-width: 700px) {
    .portal-header-image {
        aspect-ratio: 16 / 9;
        border-radius: 4px;
    }

    .portal-header-image img {
        object-position: 30% center;
    }
}

.portal-page-title {
    position: relative;
    margin: 0 auto 2rem;
    padding-bottom: 0.7rem;

    color: #e47c06;
    font-family: "Arial", "Helvetica Neue", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: center;
}

.portal-page-title::after {
    content: "";
    display: block;
    width: 300px;
    height: 3px;
    margin: 0.8rem auto 0;
    border-radius: 999px;
    background: #000000;
}



.home-cards{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

gap:30px;

margin-top:40px;

}

.home-card{

background:#d8e6f1;

padding:30px;

border-radius:12px;

box-shadow:0 5px 18px rgba(0,0,0,.08);

text-align:center;

}

.card-button{

display:inline-block;

margin-top:20px;

padding:12px 28px;

background:#1976d2;

color:white;

border-radius:6px;

text-decoration:none;

}


.home-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 38px;
}

.home-card {
    position: relative;
    padding: 32px;
    border: 1px solid #d9e0e8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(19, 42, 70, 0.09);
    text-align: center;
}

/* .home-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 64px;
    height: 64px;
    margin-bottom: 14px;
    padding: 0 12px;

    border-radius: 50%;
    background:#000000;
    color: #e47c06;

    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
} */

.home-card h2 {
    margin: 0 0 12px;
}

.home-card p {
    min-height: 72px;
}

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;

    border-radius: 6px;
    background: #005ea8;
    color: #ffffff !important;

    font-weight: 700;
    text-decoration: none !important;
}

.card-button:hover {
    background: #00477f;
}

@media (max-width: 700px) {
    .home-cards {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Participating institutions footer
   ========================================================= */

#footer .footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 38px 20px 24px;
    box-sizing: border-box;
    text-align: center;
}

#footer .footer-institutions {
    width: 100%;
}

#footer .footer-institutions h2 {
    margin: 0 0 18px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #ffffff;
}

#footer .footer-logo-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    gap: 14px 18px;
}

#footer .footer-logo-grid .footer-institution-logo {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 105px;
    width: 105px !important;
    min-width: 105px;
    max-width: 105px;

    height: 52px;
    padding: 6px 9px;
    margin: 0;

    box-sizing: border-box;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.96);

    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#footer .footer-logo-grid .footer-institution-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

#footer .footer-logo-grid .footer-institution-logo img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 88px !important;
    max-height: 38px !important;

    margin: 0 !important;
    padding: 0;
    object-fit: contain;
}

#footer .footer-divider {
    max-width: 900px;
    height: 1px;
    margin: 26px auto 20px;
    background: rgba(255, 255, 255, 0.25);
}

#footer .footer-legal p {
    margin: 4px 0;
    line-height: 1.55;
    font-weight: 700;
}

#footer .footer-legal a:hover {
    display: inline !important;
    width: auto !important;
    color: #0c5392;
    text-decoration: none;
}

#footer .footer-legal a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    #footer .footer-content {
        padding: 32px 12px 20px;
    }

    #footer .footer-logo-grid {
        gap: 10px;
    }

    /* #footer .footer-logo-grid .footer-institution-logo {
        flex-basis: 88px;
        width: 88px !important;
        min-width: 88px;
        max-width: 88px;
        height: 46px;
        padding: 5px 7px;
    } */
    #footer .footer-logo-grid .footer-institution-logo {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 150px;
    width: 150px !important;
    min-width: 150px;
    max-width: 150px;

    height: 78px;
    padding: 8px 12px;
    margin: 0;

    box-sizing: border-box;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    }

    /* #footer .footer-logo-grid .footer-institution-logo img {
        max-width: 74px !important;
        max-height: 32px !important;
    } */
    #footer .footer-logo-grid .footer-institution-logo img {
    display: block !important;
    width: auto !important;
    height: auto !important;

    max-width: 128px !important;
    max-height: 58px !important;

    margin: 0 !important;
    padding: 0;
    object-fit: contain;
}
}

/* Keep the browser as the only main vertical scroll container */
html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

#sb-site {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: visible !important;
}

/* Allow scrolling only inside the mobile menu when necessary */
.sb-slidebar {
    overflow-x: hidden;
    overflow-y: auto;
}

/* For contact page */

.contact-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.contact-heading i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    min-width: 28px;

    font-size: 1.25rem;
    line-height: 1;
    color: #005ea8;
}

.contact-heading span {
    line-height: 1.2;
}

.footer-credit {
    font-size: 0.6rem;   /* about 12px */
    color: #666;
    text-align: center;
    margin-top: 1rem;
}