/* =========================================================
   CUSTOM TOP BAR
   ========================================================= */

.custom-topbar {
    width: 100%;
    background: #0b1830;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    line-height: 1.4;
	position: fixed;
	top: 0;
	z-index: 100000000000000000000000000000000;
}

.custom-topbar-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 8px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}


/* =========================================================
   LEFT SIDE
   ========================================================= */

.custom-topbar-left {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 16px;
}

.custom-affiliation {
    margin: 0;

    white-space: nowrap;

    font-family: monospace;
    letter-spacing: 0.04em;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}


/* =========================================================
   PHONE + EMAIL
   ========================================================= */

.custom-phone,
.custom-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.custom-phone:hover,
.custom-email:hover {
    color: #ffffff;
    text-decoration: none;
}

.custom-topbar-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.custom-topbar-right {
    margin-left: auto;

    display: flex;
    align-items: center;

    flex-shrink: 0;
}


/* =========================================================
   STUDENT LOGIN
   ========================================================= */

.custom-student-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 32px;
    padding: 6px 12px;

    background: #ff6100;
    color: #ffffff;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    border-radius: 6px;

    text-decoration: none;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);

    white-space: nowrap;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.custom-student-login:hover {
    background: #e95700;
    color: #ffffff;
    text-decoration: none;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.custom-student-login:active {
    transform: translateY(1px);
}


/* Student SVG */

.custom-student-icon {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) {

    .custom-topbar-container {
        padding-left: 24px;
        padding-right: 24px;
    }

}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 992px) {

    .custom-topbar-container {
        padding-left: 40px;
        padding-right: 40px;
    }

}


/* =========================================================
   EXTRA LARGE DESKTOP
   ========================================================= */

@media (min-width: 1500px) {

    .custom-topbar-container {
        padding-left: 24px;
        padding-right: 24px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .custom-topbar-container {
        padding: 7px 12px;

        gap: 8px;
    }

    .custom-topbar-left {
        gap: 0;
    }

    /* Keep affiliation visible on mobile */
    .custom-affiliation {
        font-size: 10px;
        letter-spacing: 0.02em;
    }

    /* Hide phone on mobile */
    .custom-phone {
        display: none;
    }

    /* Hide email on mobile */
    .custom-email {
        display: none;
    }

    /* Compact student login */
    .custom-student-login {
        min-height: 30px;
        padding: 6px 9px;

        font-size: 11px;
        border-radius: 5px;
    }

    .custom-student-icon {
        width: 15px;
        height: 15px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .custom-topbar-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .custom-affiliation {
        font-size: 9px;
    }

    .custom-student-login {
        padding: 6px 8px;
        font-size: 10px;
    }

    .custom-student-icon {
        width: 14px;
        height: 14px;
    }

}