
:root {
    --primary-blue: #0d47a1;
    --secondary-blue: #1976d2;
    --accent-blue: #42a5f5;
    --light-blue: #bbdefb;
    --dark-blue: #002171;
}


.nav-logo-section {
  min-height: 90px;
}
.hospital-logo {
  font-weight: 800;
  font-size: 2.8rem !important;
  line-height: 1.1;
  color: white;
  letter-spacing: 1px;
}

/* FIXED BODY */
body {
   
    
    margin: 0;
    padding: 0;
}

/* Navigation Container */
.nav-container {
  width: 100%;
max-width: 100%;
left: 0;
right: 0;

    background: white;
    box-shadow: 0 15px 35px rgba(13, 71, 161, 0.1);
    overflow: visible;
   box-shadow: 0 8px 20px rgba(13, 71, 161, 0.08);


    /* STICKY FIX */
     position: relative;
    top: 0;
    z-index: 9999;
}

/* Logo Section */
.nav-logo-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
   padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.logo-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

.logo-wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    animation: waveMove 15s linear infinite;
}

@keyframes waveMove {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

.hospital-logo {
    font-weight: 800;
    font-size: 2.8rem;
    color: white;
    letter-spacing: 1px;
    z-index: 2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hospital-logo span {
    color: var(--accent-blue);
}

.logo-icon {
    color: var(--accent-blue);
    font-size: 2.5rem;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Navigation Bar */
.nav-bar {
    background: white;
}

/* Nav List */
.nav-list {
    display: flex;
    list-style: none;
    justify-content: space-around;
}

/* Nav Item */
.nav-item {
    flex: 1;
    text-align: center;
    position: relative;
}

/* Nav Link */
/* NAV LINK BASE */
.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 15px;
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
    z-index: 3s;
background: transparent;
 font-family: 'Poppins', sans-serif;

}

/* ICON STYLE */
.nav-link i {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--secondary-blue);
    transition: all 0.4s ease;
   
}

/* SLIDE BACKGROUND EFFECT */
.nav-item {
     overflow: visible;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        var(--primary-blue),
        var(--secondary-blue)
    );
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index:0;
    border-radius: 0 0 50% 50%;
    

}

/* HOVER / ACTIVE STATE */
.nav-link:hover::before,
.nav-link.active::before {
    transform: translateY(0);
    border-radius: 0;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

/* ICON ANIMATION */
.nav-link:hover i,
.nav-link.active i {
    color: var(--light-blue);
    transform: scale(1.2) rotate(5deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    width: 100%;
    background: #fff;
    display: none;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.nav-item:hover .nav-dropdown {
    display: grid;
}

.dropdown-column h5 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-blue);
    padding-left: 10px;
}

.dropdown-column ul {
    list-style: none;
}

.dropdown-column li a {
    display: block;
    padding: 8px;
    color: var(--dark-blue);
    text-decoration: none;
}

.dropdown-column li a:hover {
    background: rgba(187,222,251,.3);
}

/* Mobile Button */
.nav-toggle {
    display: none;
    width: 100%;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 12px;
}

/* Responsive */
@media(max-width:768px){

.nav-logo-section{
    flex-direction: column;
}

.nav-toggle{
    display:block;
}

.nav-list{
    display:none;
    flex-direction:column;
}

.nav-list.show{
    display:flex;
}

.nav-link{
    flex-direction:row;
    justify-content:start;
    gap:15px;
}

.nav-dropdown{
    position:static;
    display:none;
}

}
.nav-bar {
    padding-top: 8px;
}
.nav-link {
    padding: 22px 15px;
}

.nav-list {
    margin: 0;
    padding: 0;
}
body {
    overflow-x: hidden;
}

.nav-link span,
.nav-link i,
.nav-link {
  position: relative;
  z-index: 2;
}
/* MAIN SERVICES DROPDOWN */
.main-dropdown {
    width: 250px;
    padding: 0;
}

.main-services {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-services li {
    position: relative;
}

.main-services li a {
    display: block;
    padding: 12px 15px;
    color: var(--dark-blue);
    font-weight: 600;
    text-decoration: none;
}

.main-services li a:hover {
    background: var(--light-blue);
}

/* SUB MENU */
.sub-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    width: 260px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 999;
}

.sub-dropdown a {
    padding: 10px 15px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

/* SHOW SUB MENU ON HOVER */
.has-submenu:hover .sub-dropdown {
    display: block;
}
.header-logo {
    width: 55px;
    height: auto;
    object-fit: contain;
    animation: pulse 3s infinite;
}
