/* =========================================== */
/* Glass Morphism Navigation */
/* =========================================== */
.navbar {
    --c-glass: rgba(187, 187, 188, 0.1);
    --c-light: rgba(255, 255, 255, 0.8);
    --c-dark: rgba(0, 0, 0, 0.2);
    --glass-reflex-dark: 1;
    --glass-reflex-light: 1;
    --saturation: 150%;
    
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    z-index: 1000;
    border-radius: 20px;
    
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border: 1px solid transparent;
    
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    top: 10px;
    padding: 0.8rem 2rem;
    background-color: color-mix(in srgb, var(--c-glass) 15%, transparent);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    
    box-shadow: 
        inset 0 0 0 1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 15%), transparent),
        inset 2px 3px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 40%), transparent),
        inset -2px -2px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 30%), transparent),
        inset -3px -8px 1px -6px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 20%), transparent),
        inset -0.3px -1px 4px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 15%), transparent),
        inset -1.5px 2.5px 0px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 25%), transparent),
        inset 0px 3px 4px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent),
        inset 2px -6.5px 1px -4px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 15%), transparent),
        0px 8px 32px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 15%), transparent),
        0px 2px 8px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 10%), transparent);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.nav-logo img {
    height: 65px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px rgba(56, 182, 255, 0.4);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), #2a9eff);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--secondary);
}

.nav-link.active::after {
    width: 100%;
}

/* Fixed: Course dropdown alignment */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 2px;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--secondary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(9, 75, 101, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    min-width: 250px;
    padding: 1rem 0;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(56, 182, 255, 0.1), rgba(42, 158, 255, 0.05));
    border-left-color: var(--secondary);
    padding-left: 2rem;
    color: var(--secondary);
}

/* Call Button */
.nav-link.call-btn {
    background: linear-gradient(135deg, var(--secondary), #2a9eff);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(56, 182, 255, 0.3);
    transition: var(--transition);
    margin-left: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 182, 255, 0.4);
    background: linear-gradient(135deg, #2a9eff, var(--secondary));
}

.nav-link.call-btn::after {
    display: none;
}

/* =========================================== */
/* Original Hamburger Menu */
/* =========================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================== */
/* Updated Mobile Navigation with Dropdown - FIXED SPACING */
/* =========================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--primary);
    backdrop-filter: blur(20px);
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 2px solid rgba(56, 182, 255, 0.2);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-nav-header .logo-img {
    height: 55px;
    width: auto;
}

.mobile-nav-links {
    padding: 25px;
    flex: 1;
}

.mobile-nav-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* REGULAR MOBILE MENU ITEMS */
.mobile-nav-links ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.mobile-nav-links ul li a:hover,
.mobile-nav-links ul li a.active {
    background: rgba(56, 182, 255, 0.15);
    color: white;
    border-left-color: var(--secondary);
    padding-left: 25px;
}

.mobile-nav-links ul li a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* MOBILE DROPDOWN - FIXED: Proper spacing and arrow position */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px; /* SAME gap as regular items */
    width: 100%;
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    /* Push arrow to the right */
    margin-right: 5px; /* ADDED: Bring arrow closer to text */
}

.mobile-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 0;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    border-radius: 8px;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 500px;
}

/* Dropdown menu items */
.mobile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 16px 48px !important; /* 48px left padding for icon space */
    font-size: 1rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    border-radius: 8px;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-dropdown-menu a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-dropdown-menu a:hover {
    border-left-color: var(--secondary);
    background: rgba(56, 182, 255, 0.1);
    padding-left: 55px !important;
}

/* Mobile Call Button */
.mobile-nav-links ul li a.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #2a9eff);
    color: white;
    justify-content: center;
    margin-top: 10px;
    border: none;
    font-weight: 600;
}

.mobile-nav-links ul li a.btn-primary:hover {
    background: linear-gradient(135deg, #2a9eff, var(--secondary));
    border-left: 3px solid transparent;
    padding-left: 20px;
}

.mobile-nav-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.mobile-contact-info {
    list-style: none;
    margin-bottom: 25px;
}

.mobile-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.mobile-contact-info li i {
    color: var(--secondary);
    font-size: 1.1rem;
    width: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

.mobile-contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-contact-info a:hover {
    color: var(--secondary);
}

.address-group {
    display: flex;
    flex-direction: column;
}

.address-group strong {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.mobile-social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.mobile-social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hide original menu-toggle on desktop */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
    
    .overlay {
        display: none;
    }
}

/* Tablet and Mobile Navigation */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background: rgba(9, 75, 101, 0.98);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        width: 80%;
        height: 100vh;
        text-align: left;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        z-index: 1001;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .dropdown-menu {
        position: static;
        background: transparent;
        backdrop-filter: none;
        padding: 0.5rem 0 0.5rem 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border: none;
        box-shadow: none;
        min-width: auto;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 0.7rem 0;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu a:hover {
        padding-left: 1.5rem;
        border-left: none;
        border-bottom-color: var(--secondary);
    }
    
    /* Show original hamburger menu */
    .menu-toggle {
        display: flex;
    }
}

/* General Responsive Design */
@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: 95%;
        padding: 1rem 1.5rem;
        border-radius: 15px;
    }
    
    .navbar.scrolled {
        padding: 0.8rem 1.5rem;
    }
    
    .nav-logo img {
        height: 55px;
    }
    
    .navbar.scrolled .nav-logo img {
        height: 50px;
    }
    
    .mobile-nav {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .navbar.scrolled {
        padding: 10px 20px;
    }
    
    .nav-logo img {
        height: 50px;
    }
    
    .mobile-nav-header .logo-img {
        height: 50px;
    }
    
    .mobile-nav {
        width: 100%;
        max-width: 320px;
    }
    
    .dropdown-menu {
        min-width: 220px;
    }
    
    .mobile-nav-links ul {
        gap: 8px;
    }
    
    .mobile-nav-links ul li a {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    /* Adjust for mobile */
    .mobile-dropdown-toggle {
        gap: 10px;
    }
    
    .mobile-dropdown-arrow {
        margin-right: 3px; /* Adjusted for mobile */
    }
    
    .mobile-dropdown-menu a {
        padding: 14px 18px 14px 46px !important;
        font-size: 0.95rem;
    }
}