:root {
    --navy: #002147;
    --orange: #f37021;
    --gray-line: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; }

.main-header {
    background: #f5f5f5;
    border-bottom: 1px solid var(--gray-line);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo-section { display: flex; align-items: center; gap: 15px; 
    flex: 0 1 auto; /* Allows it to take only needed space on the left */}
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.school-logo { height: 130px; width: auto; }
.school-name { color: #222; font-family: 'Georgia', serif; font-size: 38px; font-weight: 900; margin: 0;
    padding: 0;
    text-align: left;
    display: inline-block; /* Keeps it tight to the content */
    line-height: 1;
}
.school-name span { color: var(--orange);
    margin-left: 8px; /* Adds a small gap before the suffix */
    font-weight: 700;
   /* display: inline; /* Ensures it stays on the same line */
    font-size: 14px; /* Smaller than the main name */
    text-transform: uppercase;
    /* This creates the 'Suffix Superscript' effect */
    vertical-align: super; 
    margin-left: 5px;
    
    /* Optional: adjust exact height if 'super' is too high */
    position: relative;
    top: -5px;
}
.affiliation { color: var(--orange); font-size: 20px; font-weight: bold; }

/* DESKTOP NAV */
.nav-bar { display: flex; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 0px;align-items: center; }
.nav-links li {
    display: flex;
    align-items: center;
    /* This creates the thin grey vertical divider line */
    border-right: 1px solid #e0e0e0; 
}
.nav-links li:last-child {
    border-right: none; /* Removes the divider after the last item */
}
.nav-links a {
    padding: 10px 18px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    border-radius: 4px;
    /* FONT STYLE SETTINGS */
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 18px; /* Adjust based on your preference; 18px-22px matches the image */
    font-weight: 500; /* Not too bold, but clear */
    transition: all 0.3s ease;
}
/* Caret Icon Styling */
.nav-links i {
    font-size: 14px;
    color: #333;
    margin-top: 2px; /* Fine-tune vertical alignment of the arrow */
}
/* Hover Effect 
.nav-links li:hover > a {
    color: var(--orange);
    background: transparent; /* Removes the orange box to match your screenshot style 
}*/
/* Hover Effect Desktop */
.nav-links li:hover > a { background: var(--orange); color: #fff; } /*BUTTON EFFECT*/

/* Dropdown Base */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    list-style: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 100;
    border-top: 3px solid var(--orange);
}

.has-dropdown.open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    width: 100%;
}

/* MOBILE STYLES */
.mobile-toggle { display: none; font-size: 24px; cursor: pointer; }

.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100%;
    background: #fff;
    z-index: 2000;
    transition: 0.4s;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
.mobile-menu.active { right: 0; }
.mobile-menu-header { padding: 20px; background: #f8f8f8; display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
.close-menu { font-size: 30px; color: var(--orange); cursor: pointer; }

.mobile-links { list-style: none; padding: 20px; }
.mobile-links li a { display: flex; justify-content: space-between; padding: 15px 0; text-decoration: none; color: #333; border-bottom: 1px solid #eee; font-weight: bold; }

@media (max-width: 1150px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }

    /* Mobile Dropdown Effect */
    .mobile-links .dropdown {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        background: #fdfdfd;
        box-shadow: none;
        padding-left: 15px;
        border-top: none;
    }

    .mobile-links li.has-dropdown.open > .dropdown {
        display: block !important;
    }

    .mobile-links li.has-dropdown.open > a {
        color: var(--orange);
    }
    
    .mobile-links li.has-dropdown i {
        transition: 0.3s;
    }

    .mobile-links li.has-dropdown.open i {
        transform: rotate(180deg);
    }

    .header-container {
        padding: 0 15px; /* Tighter spacing for mobile */
    }

    /* Main List Tap Color */
    .mobile-links li.has-dropdown.open > a {
        background: var(--orange) !important;
        color: #fff !important;
    }

    /* Sub-list Item Tap Color */
    .mobile-links .dropdown li a:active,
    .mobile-links .dropdown li a:hover {
        background: #eee;
        color: var(--orange);
        padding-left: 30px;
    }
    
    /* Mobile Link Text Style */
    .mobile-links li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 25px;
        text-decoration: none;
        color: #000;
        
        /* MATCHING YOUR DESKTOP STYLE */
        font-family: 'Georgia', 'Times New Roman', serif;
        font-size: 17px; /* Slightly smaller than desktop for mobile screens */
        font-weight: 500;
        transition: all 0.3s ease;
    }
}