/* Khadim Hospital - Option 3 Bright Glass Navbar */
html {
    visibility: hidden;
}

html.loaded {
    visibility: visible;
}

.navbar {
    position: fixed;
    top: 38px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(2, 132, 199, 0.15);
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.06);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(2, 132, 199, 0.25);
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1380px;
    margin: 0 auto;
    width: 100%;
    height: 72px;
    padding: 0 2rem;
    box-sizing: border-box;
}

.nav-top-bar {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #0F172A;
    font-family: 'Poppins', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
}

@keyframes logoCyanGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(2, 132, 199, 0.3)); }
    50% { filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.75)); }
}

.logo-symbol, .brand-icon, .custom-logo {
    height: 42px;
    width: auto;
    animation: logoCyanGlow 3s ease-in-out infinite;
}

.brand-name {
    color: #0F172A;
    font-family: 'Poppins', -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.nav-menu-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.nav-links ul {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link, .nav-links li a {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    padding: 0.4rem 0.5rem;
    text-decoration: none;
    position: relative;
    background: transparent;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.nav-link::after, .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #0284C7, #38BDF8);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after, .nav-links li a:hover::after,
.nav-link.active::after, .nav-links li.current-menu-item a::after {
    width: 100%;
}

.nav-link:hover, .nav-links li a:hover,
.nav-link.active, .nav-links li.current-menu-item a {
    color: #0284C7;
    background: transparent;
}

.nav-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-toggle .arrow-indicator {
    font-size: 0.65rem;
    margin-left: 0.35rem;
    transition: transform 0.3s ease;
    display: inline-block;
    color: #0284C7;
}

.nav-dropdown-wrapper:hover .dropdown-toggle .arrow-indicator {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: block;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 210px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.15);
    padding: 0.6rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1000;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 0.65rem 1.25rem;
    color: #475569;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-item:hover {
    color: #0284C7;
    background: rgba(2, 132, 199, 0.06);
    padding-left: 1.5rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: auto;
}

.find-doctor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 1.35rem;
    background: rgba(2, 132, 199, 0.06);
    border: 1.5.px solid #0284C7;
    color: #0284C7;
    border-radius: 9999px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: none;
}

.find-doctor-btn:hover {
    background: #0284C7;
    border-color: #0284C7;
    color: #FFFFFF;
    transform: scale(1.04);
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.pricing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 1.45rem;
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: #FFFFFF;
    border-radius: 9999px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
    white-space: nowrap;
}

.pricing-btn:hover {
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
    border-color: #38BDF8;
    color: #FFFFFF;
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(2, 132, 199, 0.5);
}

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 992px) {
    .navbar {
        top: 55px;
    }
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 1.25rem;
    }
    .nav-top-bar {
        width: 100%;
        justify-content: space-between;
        height: 56px;
    }
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 19px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 120;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2.5px;
        background: #0284C7;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .mobile-menu-toggle.active span:first-child {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
    .nav-menu-content {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 18px;
        border: 1px solid rgba(2, 132, 199, 0.2);
        padding: 1.25rem;
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 20px 50px rgba(2, 132, 199, 0.15);
        transition: max-height 0.4s ease, opacity 0.3s ease;
        box-sizing: border-box;
    }
    .nav-menu-content.mobile-open {
        display: flex;
        max-height: 600px;
        opacity: 1;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
        align-items: stretch;
        margin: 0;
    }
    .nav-links ul {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }
    .nav-link, .nav-links li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.98rem;
        font-weight: 600;
        color: #334155;
        background: #F8FAFC;
        border-radius: 12px;
        border: 1px solid rgba(2, 132, 199, 0.1);
        text-align: center;
        box-sizing: border-box;
    }
    .nav-link::after, .nav-links li a::after {
        display: none;
    }
    .nav-link:hover, .nav-links li a:hover {
        background: rgba(2, 132, 199, 0.08);
        border-color: rgba(2, 132, 199, 0.3);
        color: #0284C7;
    }
    .nav-dropdown-wrapper {
        width: 100%;
        flex-direction: column;
    }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        width: 100%;
        background: rgba(2, 132, 199, 0.04);
        border: 1px solid rgba(2, 132, 199, 0.15);
        border-radius: 12px;
        margin-top: 0.4rem;
        box-shadow: none;
        padding: 0.4rem 0;
    }
    .dropdown-item {
        text-align: center;
        padding: 0.6rem 1rem;
        color: #475569;
    }
    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        margin-left: 0;
    }
    .find-doctor-btn, .pricing-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }
}