/* Header Styles */
.main-header {
    background: #5B7FCC;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1100;
    transition: top 0.3s ease;
}

.header-wrapper {
    display: flex;
    align-items: stretch;
    padding: 0.75rem 0;
    min-height: 90px;
}

/* Logo Section - Spans full height */
.logo {
    display: flex;
    align-items: center;
    padding-right: 3rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes logo white */
}

/* Right Side Navigation Container */
.header-nav-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem 0;
}

/* Top Row: Secondary Nav and Social Icons */
.header-top-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3rem;
    margin-bottom: 0.75rem;
}

/* Secondary Navigation */
.secondary-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.secondary-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.secondary-link:hover {
    color: white;
}

/* Social Icons */
.header-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-social a,
.search-toggle {
    color: rgba(255, 255, 255, 0.9);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.header-social a:hover,
.search-toggle:hover {
    color: white;
}

/* Bottom Row: Main Navigation */
.header-bottom-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Main Navigation */
.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active {
    opacity: 1;
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    margin-left: 2rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #5B7FCC;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-nav.show {
    display: block;
}

.mobile-nav-content {
    padding: 2rem;
}

/* Mobile Contact Information */
.mobile-nav-contact {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.95);
}

.mobile-contact-item svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.mobile-contact-item a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.mobile-contact-item a:hover {
    color: white;
}

.mobile-nav-primary {
    margin-bottom: 2rem;
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    font-size: 1.1rem;
}

.mobile-nav-link:hover {
    opacity: 0.8;
}

.mobile-nav-secondary {
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-secondary-link {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.mobile-secondary-link:hover {
    color: white;
}

.mobile-nav-social-icons {
    display: flex;
    gap: 1rem;
    padding: 1rem 0 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    justify-content: center;
    align-items: center;
}

.mobile-nav-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.mobile-nav-social-icons a:hover {
    opacity: 1;
}

.mobile-nav-social-icons img {
    display: block;
}

.mobile-nav-social {
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.mobile-social-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.mobile-social-link:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .logo {
        padding-right: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .secondary-nav {
        gap: 1rem;
    }
}

@media (max-width: 1024px) {
    .header-wrapper {
        min-height: 80px;
    }

    .logo-img {
        height: 65px;
        filter: brightness(0) invert(1); /* Makes logo white */
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .secondary-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 900px) {
    .header-wrapper {
        padding: 0.5rem 0;
        min-height: 70px;
        justify-content: center;
        position: relative;
    }

    .logo {
        padding-right: 0;
        flex: 1;
        justify-content: center;
    }

    .logo-img {
        height: 70px;
        filter: brightness(0) invert(1); /* Makes logo white */
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 0;
        margin-left: 0;
    }

    .nav-links {
        display: none;
    }

    .secondary-nav {
        display: none;
    }

    .header-social {
        display: none;
    }

    .header-nav-container {
        justify-content: center;
        width: auto;
    }

    .header-top-row {
        display: none;
    }

    .header-bottom-row {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .header-wrapper {
        min-height: 65px;
    }

    .logo-img {
        height: 60px;
        filter: brightness(0) invert(1); /* Makes logo white */
    }

    .mobile-nav-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        min-height: 60px;
        padding: 0.4rem 0;
    }

    .logo-img {
        height: 50px;
        filter: brightness(0) invert(1); /* Makes logo white */
    }

    .mobile-nav-content {
        padding: 1.25rem;
    }

    .mobile-contact-item a {
        font-size: 0.875rem;
        word-break: break-all;
    }
}