* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #2d3436;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header Styles */
header {
    background-color: rgba(0, 94, 184, 0.97);
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

header a {
    color: white;
}

header.scrolled {
    padding: 0.6rem 2rem;
    background-color: rgba(0, 94, 184, 0.92);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo:hover img {
    opacity: 0.85;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav ul li a:hover {
    color: #fff;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

nav ul li a.active {
    color: #fff;
}

nav ul li a.active::after {
    transform: scaleX(1);
}

.nav-icons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    position: relative;
    z-index: 1001;
}

/* Search Styles - Fullscreen Overlay */
.search-container {
    position: relative;
}

.search-icon {
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon:hover {
    color: #f5a0a8;
    background: rgba(255, 255, 255, 0.1);
}

.search-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1002;
    padding: 2rem;
}

.search-bar.expanded {
    opacity: 1;
    visibility: visible;
}

.search-bar input {
    width: 100%;
    max-width: 600px;
    padding: 20px 25px;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.2rem;
    outline: none;
    transition: border-color 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-bar input:focus {
    border-color: #005EB8;
}

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
}

.search-close:hover {
    color: #005EB8;
}

/* Dropdown Base Styles */
.notifications-dropdown, .user-dropdown {
    position: relative;
}

.notification-icon, .user-icon {
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon {
    font-size: 1.2rem;
}

.user-icon {
    font-size: 1.5rem;
}

.notification-icon:hover, .user-icon:hover {
    color: #f5a0a8;
    background: rgba(255, 255, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ff5252;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    margin-top: 12px;
    min-width: 220px;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Notifications Menu */
.notifications-menu {
    width: 380px;
    padding: 0;
}

.dropdown-header {
    padding: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.dropdown-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 1.2rem;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #fef0f0;
}

.notification-item-unread {
    background: #fef0f0;
    border-left: 3px solid #005EB8;
}

.notification-item i {
    font-size: 1.3rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.notification-icon-success { color: #28a745; }
.notification-icon-info { color: #17a2b8; }
.notification-icon-warning { color: #ffc107; }

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0 0 0.3rem 0;
    font-size: 0.95rem;
    color: #333;
}

.notification-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.view-all {
    display: block;
    text-align: center;
    padding: 1.2rem;
    border-top: 1px solid #f0f0f0;
    font-weight: 500;
    transition: background-color 0.3s;
    color: #005EB8;
    border-radius: 0 0 12px 12px;
}

.view-all:hover {
    background-color: #f8f9fa;
    color: #003087;
}

/* User Menu */
.user-menu {
    width: 240px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.user-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #333;
    background: white;
}

.user-menu a:last-child {
    border-bottom: none;
}

.user-menu a:hover {
    background-color: #fef0f0;
    color: #005EB8;
    padding-left: 1.5rem;
}

.user-menu a:last-child:hover {
    background-color: #ffe8e8;
    color: #d32f2f;
}

.user-menu i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    font-size: 1rem;
}

/* Sign Up / Login Nav Buttons */
.nav-btn-item {
    display: flex;
    align-items: center;
}

.nav-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-btn-login {
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.nav-btn-login:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-btn-signup {
    background: #fff;
    color: #005EB8;
}

.nav-btn-signup:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-1px);
}

.nav-btn-professional {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    font-size: 0.82rem;
}

.nav-btn-professional:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #005EB8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #003087;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    nav ul {
        gap: 1rem;
    }
    
    .notifications-menu {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        background-color: #005EB8;
        width: 100%;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
        z-index: 999;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-btn-item {
        margin-top: 0.5rem;
    }

    .nav-btn {
        text-align: center;
        width: 100%;
    }

    .dropdown-menu {
        position: fixed;
        top: 70px;
        right: 20px;
        left: auto;
        max-width: calc(100vw - 40px);
    }
    
    .notifications-menu {
        width: calc(100vw - 40px);
        max-width: 400px;
    }
    
    .user-menu {
        width: 200px;
        max-width: calc(100vw - 40px);
    }
    
    .search-bar {
        padding: 1rem;
    }
    
    .search-bar input {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .search-close {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .nav-icons {
        gap: 0.8rem;
    }
    
    .notification-icon, .user-icon, .search-icon, .hamburger {
        padding: 6px;
    }
    
    .notifications-menu {
        width: calc(100vw - 40px);
    }
    
    .notification-item {
        padding: 1rem;
    }
    
    .notification-item i {
        margin-right: 0.8rem;
        font-size: 1.1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem 1rem;
    }
    
    .nav-icons {
        gap: 0.5rem;
    }
    
    .dropdown-menu {
        right: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .notifications-menu {
        width: calc(100vw - 20px);
    }
    
    .notification-item {
        padding: 0.8rem;
    }
    
    .dropdown-header {
        padding: 1rem;
    }
}