/* Navigation styles */
body {
    padding-top: 110px; /* Reduced to accommodate shorter navigation */
    transition: padding-top 0.3s ease;
}

body.scrolled {
    padding-top: 80px; /* Even smaller padding when scrolled */
}

.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem; /* Reduced padding to make nav shorter */
}

.sticky-nav.scrolled {
    padding: 0.25rem 1rem; /* Even less padding when scrolled */
}

.sticky-nav .logo-img {
    height: 8rem; /* 32px (h-32) */
    transition: height 0.3s ease;
}

.sticky-nav.scrolled .logo-img {
    height: 5rem; /* Smaller logo when scrolled */
}

.nav-link {
    color: #1a56db;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: #1e40af;
}

.brand-text {
    color: #1a56db;
    font-weight: 700;
    transition: font-size 0.3s ease;
}

.sticky-nav.scrolled .brand-text {
    font-size: 0.875rem; /* Smaller text when scrolled */
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 6px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-content a {
    color: #1a56db;
    padding: 0.65rem 1rem;
    display: block;
    text-decoration: none;
    text-align: left;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f0f5ff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 10px;
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
}

/* Mobile menu styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 110px; /* Adjusted for shorter nav */
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    z-index: 999;
    transition: top 0.3s ease;
}

.mobile-menu.scrolled {
    top: 80px; /* Adjusted for smaller scrolled nav */
}

.mobile-menu.show {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
    color: #1a56db;
}

.mobile-menu a:hover {
    color: #1e40af;
}

.mobile-submenu {
    padding-left: 1rem;
    display: none;
}

.mobile-submenu.show {
    display: block;
}

.hamburger {
    display: none;
    color: #1a56db;
}

/* Responsive styles */
@media (max-width: 768px) {
    .desktop-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .mobile-menu-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }
    
    /* Smaller logo and text on mobile */
    .sticky-nav .logo-img {
        height: 5rem;
    }
    
    .sticky-nav.scrolled .logo-img {
        height: 3.5rem;
    }
    
    body {
        padding-top: 90px;
    }
    
    body.scrolled {
        padding-top: 70px;
    }
    
    .mobile-menu {
        top: 90px;
    }
    
    .mobile-menu.scrolled {
        top: 70px;
    }
} 