/* Header Public Styles */
header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

header > div:first-child {
    padding: 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

header > div:first-child {
    box-sizing: border-box;
}

/* Left Section: Logo and Text */
header > div:first-child > div:first-child {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

header > div:first-child > div:first-child img {
    height: 60px;
    width: auto;
}

header > div:first-child > div:first-child > div {
    display: flex;
    flex-direction: column;
}

header > div:first-child > div:first-child > div > div {
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

header > div:first-child > div:first-child > div h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #002e8a;
    margin: 0;
}

/* Hamburger Menu Icon (Mobile) */
#hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

#hamburger-btn i {
    font-size: 2rem;
    color: #002e8a;
}

/* Navigation Styles */
#desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#desktop-nav a {
    padding: 0.65rem 1.3rem;
    border: 2px solid #002e8a;
    color: #002e8a;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-block;
}

#desktop-nav a:hover {
    background: #002e8a;
    color: white;
}

#desktop-nav a.login {
    background: #002e8a;
    color: white;
}

#desktop-nav button {
    padding: 0.65rem 1.3rem;
    border: 2px solid #ef4444;
    background: #ef4444;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

#desktop-nav button:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

#mobile-menu-overlay.active {
    display: block !important;
}

/* Mobile Menu */
#mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

#mobile-menu.active {
    right: 0 !important;
}

#mobile-menu > div:first-child {
    padding: 1.5rem;
    border-bottom: 2px solid #e0e6ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mobile-menu > div:first-child h3 {
    margin: 0;
    color: #002e8a;
    font-family: 'Playfair Display', serif;
}

#mobile-menu > div:first-child button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

#mobile-menu > div:first-child button i {
    font-size: 2rem;
    color: #002e8a;
}

#mobile-menu > nav {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

#mobile-menu a {
    padding: 1rem;
    color: #002e8a;
    text-decoration: none;
    border-bottom: 1px solid #e0e6ff;
    font-weight: 600;
    transition: background 0.3s;
}

#mobile-menu a.login {
    color: white;
    background: #002e8a;
    text-decoration: none;
    font-weight: 600;
    margin: 1rem;
    border-radius: 6px;
    text-align: center;
    display: block;
    border: none;
}

#mobile-menu button {
    padding: 1rem;
    background: #ef4444;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    margin: 1rem;
    font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 968px) {
    header > div:first-child {
        padding: 1rem 1.5rem !important;
    }
}

@media (max-width: 768px) {
    #hamburger-btn {
        display: block !important;
    }

    #desktop-nav {
        display: none !important;
    }

    header > div:first-child {
        padding: 1rem !important;
    }

    header > div:first-child > div:first-child img {
        height: 50px !important;
    }

    header > div:first-child > div:first-child > div h1 {
        font-size: 1.5rem !important;
    }

    header > div:first-child > div:first-child > div > div {
        font-size: 0.7rem !important;
    }

    #login-dropdown {
        display: none !important;
    }
}

@media (max-width: 480px) {
    header > div:first-child {
        padding: 0.75rem !important;
    }

    header > div:first-child > div:first-child {
        gap: 1rem !important;
    }

    header > div:first-child > div:first-child img {
        height: 45px !important;
    }

    header > div:first-child > div:first-child > div h1 {
        font-size: 1.3rem !important;
    }

    #mobile-menu {
        width: 100% !important;
    }
}
