.header {
    background-color: #00303f;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px #00303f;
}

.logo {
    width: 5rem;
}

.logo-txt {
    font-size: larger;
    font-weight: bold;
    color: #ecf0f1;
    text-decoration: none;
    text-align: left;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

/* Positioning the dropdown relative to parent */
.nav-menu li.dropdown {
    position: relative;
}

/* Hiding dropdown by default */
.nav-menu li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    background: #fff; 
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 180px; 
    border: 1px solid #ccc;
    border-radius: 5px; 
    z-index: 999;
}

/* Show on hover */
.nav-menu li.dropdown:hover .dropdown-menu {
    display: block;
}

/* Dropdown links styling */
.nav-menu li.dropdown .dropdown-menu li a {
    display: block;
    padding: 8px 12px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

/* Hover effect */
.nav-menu li.dropdown .dropdown-menu li a:hover {
    background: none;
}

.nav-menu a:hover {
    color: #1cc3b2;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1cc3b2;
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 21px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2), .hamburger span:nth-child(3) {
    top: 9px;
}

.hamburger span:nth-child(4) {
    top: 18px;
}

.hamburger.open span:nth-child(1) {
    top: 9px;
    width: 0%;
    left: 50%;
}

.hamburger.open span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.hamburger.open span:nth-child(4) {
    top: 9px;
    width: 0%;
    left: 50%;
}

.mobile-menu {
    display: none;
    background-color: rgb(2,108,108);
    width: 100%;
    padding: 1rem 2rem;
    list-style: none;
    box-shadow: 0 2px 5px rgb(2,108,108);
}

.mobile-menu li {
    margin: 1rem 0;
}

.mobile-menu a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
}

.mobile-menu a:hover {
    color: #1cc3b2;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }
}