/* --- Global & Reset --- */
.navbar,
.navbar * {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* --- Main Navbar Container --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #F0F9FF;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    height: 96px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.logo img {
    height: 150px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Navigation Links --- */
.navbar-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0 0 0 20%;
    padding: 0;
}

.navbar-links a {
    text-decoration: none;
    color: #1f1f1f;
    font-weight: 600;
    font-size: 0.98rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-links a:hover {
    color: #0a6db8;
}

/* --- Dropdown Logic (Desktop Click-based) --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
}

.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; 
    right: 0;
    background-color: #F0F9FF;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    z-index: 1001;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Toggle Class for Click Logic */
.dropdown-content.show {
    display: block;
    opacity: 1;
}

.dropdown-content a {
    color: #1f1f1f;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #e6f4ff;
    color: #0a6db8;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #1f1f1f;
    transition: 0.3s;
}

/* --- Responsive Styles (Mobile & Tablet) --- */
@media (max-width: 992px) {
    .navbar {
        justify-content: space-between;
        height: 70px; 
        padding: 0 1.5rem;
    }

    .logo img {
        height: 80px; 
        width: 80px;
    }

    .navbar-links {
        position: absolute;
        top: 70px; 
        left: -100%;
        flex-direction: column;
        background-color: #F0F9FF;
        width: 100%;
        height: auto;
        transition: all 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        margin: 0;
        padding: 1rem 0;
        border-top: 1px solid #e0e0e0;
    }

    .navbar-links.active {
        left: 0;
    }

    .navbar-links li {
        width: 100%;
    }

    .navbar-links a {
        display: block;
        padding: 1.2rem 1.5rem;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        font-size: 1.1rem;
        text-align: left;
    }

    /* Mobile Dropdown Adjustments */
    .dropdown-content {
        position: static; 
        width: 100%;
        box-shadow: none;
        background-color: #e6f4ff;
        opacity: 1;
        transition: none; /* Instant display on mobile */
    }

    /* On mobile, we still use the .show class to display */
    .dropdown-content.show {
        display: block;
    }

    .dropdown-content a {
        padding-left: 3rem; 
    }

    .menu-toggle {
        display: flex;
        z-index: 1001; 
    }

    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}