/* ===========================
   Global Typography Control
   =========================== */

:root {
    --font-primary: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html,
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
}

/* --------------------------- */
/* Base Styles                 */
/* --------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a, a:active, a:focus {
    color: #42545e;
    text-decoration: none;
    transition: .2s ease-in-out;
}

a:hover, a:active {
    color: #84a4fc;
    text-decoration: none;
}

a:focus {
    outline: none;
    box-shadow: none;
}

::selection {
    color: #000;
    background: #dbdbdb;
}

header {
    transition: all 0.5s ease;
    position: relative;
    z-index: 99999;
    font-weight: 400; 
}

/* --------------------------- */
/* Top Bar                     */
/* --------------------------- */

.top-bar {
    background-color: #0a1f44;
    color: #ffffff;
    padding: 6px 15px;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: #5fa9f8;
    text-decoration: underline;
}

.top-bar a:hover {
    color: #84a4fc;
    text-decoration: none;
}

/* --------------------------- */
/* Top Bar – Mobile Fix Only   */
/* --------------------------- */

@media (max-width: 768px) {
    .top-bar {
        flex-wrap: nowrap;          
        white-space: nowrap;        
        overflow-x: auto;           
        gap: 3px;                  
    }

    .top-bar span {
        display: inline-flex;       
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

    .top-bar i {
        font-size: 0.85rem;         
        flex-shrink: 0;
    }

    .top-bar a {
        white-space: nowrap;        
    }
}

/* --------------------------- */
/* Header Layout               */
/* --------------------------- */

header.slim-header {
    background: linear-gradient(90deg, #0a1f44, #193366);
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

header.slim-header,
header.slim-header .logo-group,
header.slim-header .logo-group img {
    font-weight: 400 !important;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* --------------------------- */
/* Logo & Wordmark Fluid Sizing */
/* --------------------------- */

#logo {
    width: 50px;
    height: auto;
}

#words {
    width: 150px;
    height: auto;
}

/* Fluid scaling: scale with viewport width */
@media (max-width: 1200px) {
    #logo {
        width: 4vw; 
        max-width: 50px; 
        height: auto;
    }

    #words {
        width: 12vw; 
        max-width: 150px;
        height: auto;
    }
}

@media (max-width: 768px) {
    header.slim-header {
        flex-direction: column;
        gap: 10px;
    }

    nav.nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav.nav-links a.active::after {
        bottom: -4px;
        height: 2px;
    }

    /* Further scaling for smaller mobiles */
    #logo {
        width: 8vw; 
        max-width: 40px;
    }

    #words {
        width: 30vw;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    #logo {
        width: 10vw; 
        max-width: 35px;
    }

    #words {
        width: 40vw;
        max-width: 100px;
    }
}

@media (max-width: 372px) {
    #words {
        width: auto;
        max-width: 90px;
    }
}

/* --------------------------- */
/* Navigation                  */
/* --------------------------- */

nav.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav.nav-links a {
    color: #fff;
    font-weight: 500;
}

nav.nav-links a:hover {
    color: #5fa9f8;
    text-decoration: underline;
}

/* Buttons */
.request-btn {
    background-color: #3078c8;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
}

.request-btn:hover {
    background-color: #0d5ec5;
}

.btn-login {
    padding: 8px 15px;
    background: #3078c8;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
}

.btn-login:hover {
    background: #0d5ec5;
}

/* Active navigation link – underline style */
nav.nav-links a.active {
    color: #ffffff !important;
    font-weight: 600;
    position: relative;
}

/* Underline indicator */
nav.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background-color: #3078c8; 
    border-radius: 2px;
}

nav.nav-links a.active:hover {
    color: #ffffff;
    text-decoration: none;
}
