/* ==========================================================================
   HEADER & NAVIGATION (Mobile-First)
   ========================================================================== */
.dwu-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 1rem 0;
}

.dwu-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo Image Styling --- */
.dwu-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dwu-logo img {
    max-height: 45px; /* PC ke liye logo ki height */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.dwu-logo img:hover {
    transform: scale(1.02); /* Hover par halka sa pop effect */
}

/* --- Mobile Logo Adjustments --- */
@media (max-width: 991px) {
    .dwu-logo img {
        max-height: 35px; /* Mobile par thoda chota dikhega */
    }
}

.dwu-logo span { color: var(--primary-blue); }

/* --- Mobile Sidebar (Centered Layout) --- */
.dwu-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--dark-navy);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centered on mobile */
    justify-content: center;
    gap: 2rem;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

.dwu-nav.active {
    left: 0;
}

.dwu-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.dwu-nav a:hover { color: var(--primary-blue); }

/* Hamburger Icon */
.dwu-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10000;
}
.dwu-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-navy);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.dwu-nav.active ~ .dwu-menu-toggle span { background: #fff; }
.dwu-nav.active ~ .dwu-menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.dwu-nav.active ~ .dwu-menu-toggle span:nth-child(2) { opacity: 0; }
.dwu-nav.active ~ .dwu-menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Desktop Top-Nav Transition & Hover Effects --- */
@media (min-width: 992px) {
    .dwu-menu-toggle { display: none; }
    
    .dwu-nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        flex-direction: row;
        box-shadow: none;
        gap: 2.5rem;
    }
    
    /* Updated Desktop Menu Items with Hover Effect */
    .dwu-nav a {
        position: relative;
        color: var(--dark-navy);
        font-size: var(--fs-nav);
        font-weight: 600;
        transition: color 0.3s ease;
    }
    
    /* 1. Text Color Change on Hover */
    .dwu-nav a:hover {
        color: var(--primary-blue);
    }

    /* 2. Animated Underline Effect */
    .dwu-nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px; /* Text ke thik niche */
        left: 0;
        background-color: var(--primary-blue);
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dwu-nav a:hover::after {
        width: 100%;
    }
    
    /* 3. CTA Button Overrides (No underline, keep text color correct) */
    .dwu-nav .dwu-btn {
        color: #fff;
    }
    
    .dwu-nav .dwu-btn:hover {
        color: #fff;
    }
    
    .dwu-nav .dwu-btn::after {
        display: none;
    }
}