/* Top Announcement */
.top-announcement {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

.announcement-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* Header & Navigation Styles */
.nav-container {
    padding: 10px 20px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-align {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.main-logo img {
    width: 130px;
}

/* Desktop Menu */
.nav-list {
    display: block;
}

.nav-list ul {
    display: flex;
    gap: 35px;
}

.nav-list ul li {
    list-style: none;
    position: relative;
}

.nav-list ul li a {
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: var(--dark-color);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-list ul li a:hover,
.nav-list ul li a.active {
    color: var(--primary-color);
}
/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--light-grey-color);
    font-weight: 500;
}

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

.dropdown-menu a:hover {
    background-color: var(--light-primary-color);
    color: var(--primary-color);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    color: var(--dark-color);
    font-size: 18px;
    transition: color 0.3s;
}

.nav-icon:hover {
    color: var(--primary-color);
}

/* Hamburger Button */
.hamburger {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--dark-color);
    transition: all 0.3s ease;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .nav-align {
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
        position: relative;
        left: 0;
        z-index: 101;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        display: none;
        z-index: 100;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;

         max-height: calc(100vh - 70px); 
    /* overflow-y: auto;  */
    -webkit-overflow-scrolling: touch; 
    }

    .nav-list.open {
        display: block;
    }

    .nav-list ul {
        display: block;
        width: 100%;
    }

    .nav-list ul li {
        border-bottom: 1px solid var(--light-grey-color);
        padding: 15px 0;
    }

    .nav-list ul li:last-child {
        border-bottom: none;
    }

    .nav-list ul li a {
        display: block;
        width: 100%;
    }

    /* --- Fixed dropdown behavior --- */
    .dropdown-menu {
        display: none; /* Hide by default */
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 10px;
        margin-left: 20px;
    }

    .dropdown.active .dropdown-menu {
        display: block; /* Show when .active is toggled in JS */
    }

    .nav-actions {
        display: block;
        margin-top: 20px;
        text-align: center;
    }


    .nav-actions .nav-icon{
        display: none;
    }

    .nav-actions .btn{
        display: inline-block;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 14px;
        border-radius: 6px;
    }
    .nav-align > .nav-actions{
        display: none;
    }
    .nav-list.open .nav-actions{
        display: block;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .specializations-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}