* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: aliceblue;
    overflow-x: hidden;
}

body.portalPage {
    overflow: hidden;
}


button {
    background-color: #174c92;
    color: white;
}




.flexDiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.containImage{
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


.menuBox {
    height: 88px;
}

.logoLogin {
    height: 50px;
    background-color: whitesmoke;
    color: #174c92;
}

.logoDiv{
    margin-left: 20px;
    width: 120px;
    height: 40px;
    cursor: pointer;
}

.loginDiv{
    height: 80px;
    text-align: right;
    padding-right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loginOptions {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
    text-align: right;
}

.loginOptions a {
    text-decoration: none;
    color: #174c92;
    margin: 5px 0;
}

/* user section with avatar dropdown */
.userSection {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.userInfo {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.3;
}

.userName {
    font-weight: 600;
    font-size: 14px;
    color: #174c92;
}

.userHandle {
    font-size: 12px;
    color: #174c92;
}

.avatarWrapper {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #174c92;
    transition: border-color 0.2s;
}

.avatarWrapper:hover {
    border-color: #0f3666;
}

.avatarImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatarInitials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #174c92, #1954a1);
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
}

.userDropdown {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

.userDropdown.show {
    display: block;
}

.userDropdown a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.15s;
}

.userDropdown a:hover {
    background-color: #f0f4f8;
    color: #174c92;
}

.menuStrip {
    height: 38px;
    background: linear-gradient(to right, #103667, #103667, #1954a1c9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menuStrip a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    font-size: 14px;
    height: 100%;
    display: flex;
    align-items: center;
}

.menuStrip a:hover {
    background-color: #16437e;
}

.activeNav{
    background-color: #1a5ba8;
}   

.mainContainer{
    min-height: calc(100vh - 148px);
}

.portalContentDiv{
    width: 100%;
    height: calc(100vh - 148px);
}

.padDiv{
    width: 20px;
    height: 100%;
}

.portalNavigation{
    width: 450px;
    height: 100%;
}

.portalContent{
    width: calc(100% - 480px);
    height: 100%;
}

.astheticBounds{
    height: 20px;
}


footer{
    background: linear-gradient(to right, #174c92, #1954a1);
    color: white;
    text-align: center;
    height: 60px;
    padding: 0.5rem;
    font-size: 13px;
}

/* ===== Mobile responsive (<= 768px) ===== */
@media (max-width: 768px) {
    .logoDiv { margin-left: 10px; width: 90px; height: 30px; }
    .middleLogos { display: none !important; }
    .loginDiv { padding-right: 10px; gap: 6px; }
    .loginOptions { padding-right: 0; }
    .loginOptions a { font-size: 12px; margin: 2px 0; }
    .userInfo { display: none; }
    .avatarWrapper { width: 36px; height: 36px; }
    .userDropdown { top: 46px; min-width: 160px; }

    .menuStrip {
        justify-content: center;
        padding: 0 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .menuStrip::-webkit-scrollbar { display: none; }
    .menuStrip a {
        padding: 0 10px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .logoDiv { width: 78px; }
    .themeToggle { font-size: 17px; padding: 2px 4px; }
    .userHandle { display: none; }
}
