::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #008a47;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #00bf63;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.navbar {
    display: flex;
    background: #fff;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    transition: background 0.3s ease-in-out;
    z-index: 1000;
    /* box-shadow: 0px 0px 7px 0px #ececec; */
}

.navbar.scrolled {
    background: #fff;
    box-shadow: 0px 0px 20px 10px black;
}

.navbar.scrolled .nav-item a {
    /* color: rgb(8, 142, 78); */
    text-decoration: none;
}

.navbar.scrolled .sub-menu li a:hover {
    color: #fff;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.navlogo img {
    width: 250px;
    height: 50px;
}

.nav-items {
    list-style: none;
    display: flex;
    margin-top: auto;
}

.nav-item {
    position: relative;
    margin: 0 5px;
}

.nav-item a {
    color: #0D1820;    
    text-decoration: none;
    background-color: white;
    padding: 7px 10px;
    text-align: center;
    
}

.sub-menu {
    position: absolute;
    text-align-last: left;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0px 0px 10px 3px gray;
    border-radius: 10px;
    padding: 0;
    width: max-content;
    list-style: none;
    z-index: 99;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 20px;
    transition: max-height 0.4s linear, opacity 0.4s linear, transform 0.4s linear, padding 0.4s;
}

.sub-menu li {
    margin: 2px;
}

.sub-menu hr {
    margin-top: 0rem;
    margin-bottom: 0rem;
    background-color: #137a75;
}

.nav-item:hover .sub-menu {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
    padding: 10px;
}

.sub-menu li a {
    color: #000;
    display: block;
    padding: 8px;
}

.sub-menu li a:hover {
    background: #137a75;
    color: white;
    border-radius: 5px;
}

.navbar-profile-button {
    display: flex;
    gap: 15px;
}

.navbar-profile-button .nav-button {
    color: white;
}

.navbar-profile-button .nav-button .call i {
    animation: ring-left-right 5s linear infinite;
}

@keyframes ring-left-right {
    0% {
        transform: rotate(0deg);
    }

    5% {
        transform: rotate(-10deg);
    }

    10% {
        transform: rotate(10deg);
    }

    15% {
        transform: rotate(-10deg);
    }

    20% {
        transform: rotate(10deg);
    }

    25% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.nav-button.add-to{
    display: none;
}

.navbar-profile-button .nav-profile-button a i{
    animation: ring-left-right 5s linear infinite;
}

.navbar-profile-button .nav-call-button{
    display: none;
}

.navbar-profile-button .nav-button a {
    background-color: rgb(8, 142, 78);
    color: white;
    padding: 7px 10px;
    border-radius: 10px;
    text-decoration: none;
}

.navbar-profile-button .nav-button.add-to a span,
.navbar-profile-button .nav-button.add-to a i {
    background-image: linear-gradient(120deg, white, white, white, white, rgb(8, 142, 78), white);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: rgb(8, 142, 78);
    font-weight: 600;
    animation: digitalformlinkhighlight 6s infinite ease-in-out;
}

@keyframes digitalformlinkhighlight {
    0% {
        background-position: 200% 0;
    }

    20% {
        background-position: 50% 0;
    }

    40% {
        background-position: -200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.menu-toggle {
    display: none;
    background-color: rgb(8, 142, 78);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: -7px;
}


@media (max-width:1200px) {
    .navlogo img {
        width: 225px;
        height: 45px;
    }

    .nav-item {
        margin: 0px 0px;
    }

    .intall-app-span {
        display: none;
    }
}

@media (max-width:991px) {
    .nav-items {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: calc(100% - 60px);
        background: #fff;
        margin: 30px;
        border-radius: 20px;
    }

    .navbar.scrolled {
        box-shadow: 0px 0px 4px 2px rgb(0, 0, 0);
    }

    .navbar .nav-items {
        box-shadow: 0px 0px 10px 0px rgb(80, 80, 80);
    }

    .navbar.scrolled .nav-items {
        box-shadow: 0px 0px 10px 5px gray;
    }

    .navbar.scrolled .nav-items .sub-menu a:hover {
        color: #fff;
    }

    .nav-items .nav-item {
        margin:0px 5px 0px -40px;
        text-align: left;
        padding: 15px;
    }

    .nav-item a {
        /* color: rgb(8, 142, 78); */
        font-weight: 600;
    }

    .nav-items.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .navbar-profile-button {
        margin-top: 9px;
    }

    /* .intall-app-span {
        display: none;
    } */

    .sub-menu {
        top: 100%;
        /* left: 20%; */
        /* right:0; */
        background: #dbdbdb;
        box-shadow: 0px 0px 10px 3px gray;
        border-radius: 10px;
        padding: 10px;
        width: 100%;
        margin-top: 10px;
    }

    i.navlist-drop-icon{
        right: 20px;
        position:absolute;
    }

    /* navbar service icon */
    .nav-item a .navlist-drop-icon {
        display: inline-block;
        margin-left: 5px;
        transition: transform 0.3s ease-in-out;
    }

    .sub-menu {
        display: none;
        position: static;
        box-shadow: none;
        padding: 0;
        width: 100%;
    }

    .nav-item.open .sub-menu {
        display: block;
    }

    .nav-item.open .navlist-drop-icon {
        transform: rotate(180deg);
    }
    /* navbar service icon end */

    .sub-menu a {
        background-color: #dbdbdb;
    }
}

@media (max-width:575px) {
    .navbar {
        padding: 10px 10px;
    }

    .navbar-profile-button .nav-button a {
        padding: 5px 7px;
    }

    .navbar-profile-button {
        gap: 10px;
    }

    .menu-toggle {
        padding: 3px 8px;
        margin-top: -3px;
    }

    .nav-items {
        top: 50px;
        left: 0;
        width: calc(100% - 20px);
        background: #fff;
        margin: 10px;
        border-radius: 20px;
    }

    .navlogo img {
        width: 150px;
        height: 30px;
    }
}

@media (max-width:451px) {
    p.call-1 {
        font-size: 11.8px;
        font-weight: 600;
    }
}