:root{
    --primary: royalblue;
    --secondary: rgb(3, 158, 86);
    --fam: roboto,arial,sans-serif;
 }

 html{
    scroll-behavior: smooth;
 }

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--fam);
}

nav{
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 10px;
}

.nav_logo{
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav_title{
    color: rgb(71, 71, 71);;
    font-size: 20px;
    font-weight: bold;
}

.nav_title span:first-of-type{
    color: var(--primary);
}

.nav_title span:last-of-type{
    margin-left: 15px;
    color: var(--secondary);
}



.nav_links{
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.closespan{
    display: none;
}

.nav_item{
    margin: 0 15px;
}

.nav_link{
    text-decoration: none;
    color: gray;
    font-size: 14px;
    transition: .2s ease-out;
}

.nav_link:hover{
    font-weight: bold;
    text-decoration: none;
    color: var(--secondary);
}

.nav_link.active{
    font-weight: bold;
    color: var(--secondary);
}

    .menu_tag{
        display: none;
    }

.nav_search{
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav_search form{
    display: flex;
    justify-content: center;
    align-items: center;
}

.search{
    color: gray;
    border: 1px solid silver;
    padding: 5px;
    width: 100%;
    border-right: none;
    outline: none;
}

.nav_search button{
    border: 1px solid silver;
    background-color: white;
    border-left: none;
    padding: 8px;
    outline: none;
}






footer{
    padding: 60px;
    margin-top: 100px;
    position: relative;
    
}

.footer_background_img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(29, 29, 29);
    z-index: -1;
}

.footer_background_img img{
    
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.footer_container{
    width: 80%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
    gap: 10px;
}

.footer_title{
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.footer_bar{
    margin-top: 15px;
    width: 30%;
    border-bottom: 3px solid white;
    height: 1px;
}

.footer_links{
    list-style: none;
    margin-top: 30px;
}

.footer_item{
    margin: 10px 0;
}

.footer_link{
    color: white; 
    font-size: 14px;
    text-decoration: none;
    
}

.footer_link:hover{
    text-decoration: none;
    color: var(--secondary);
}

.footer_link span{
    margin-right: 10px;
    color: var(--secondary);
    font-size: 14px;
}

.footer_illus_container{
    margin-top: 20px;
}

.footer_illus{
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 10px;
    text-decoration: none;
    margin: 10px 0;
    border-radius: 5px;
    padding: 5px;
}

.footer_illus:hover{
    text-decoration: none;
    background-color: var(--primary);
}

.footer_img{
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.footer_img img{
    border-radius: 5px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer_illus_text{
    color: var(--secondary);
    font-size: 15px;
    font-weight: bold;
}

.footer_illus_desc{
    color: white;
    font-size: 13px;
}

.footer_items{
    list-style: none;
    margin-top: 30px;
}

.footer_item2{
    margin: 13px 0;
    color: white;
    font-weight: bold;
    font-size: 12px;
    word-wrap: break-word;
}

.footer_item2 span{
    color: var(--secondary);
    font-size: 13px;
    margin-right: 5px;
}

.footer_form {
    margin-top: 30px;
}

.footer_form_text{
    color: white;
    font-size: 14px;
    padding: 5px;
}

.footer_form form{
    margin-top: 10px;
}

.footer_form_item input{
    border: none;
    padding: 10px;
    color: gray;
    width: 100%;
    outline: none;
}

.footer_form_item button{
    margin-top: 10px;
    background-color: var(--primary);
    color: white;
    padding: 5px 8px;
    border: none;
    outline: none;
}



@media screen and (max-width: 1100px) {

    nav{
        grid-template-columns: 1fr 3fr;
    }
    
    .nav_search{
        display: none;
    }

    .nav_links{
        justify-content: flex-end;
    }

    .footer_container{
        width: 100%;
        grid-template-columns: repeat(3,1fr);
    }


}


@media screen and (max-width: 720px) {

    nav{
        grid-template-columns: 1fr 2fr 0.3fr;
    }

    .nav_links{
        z-index: 2000;
        position: fixed;
        top: 0;
        left: 0; 
        width: 0;    
        height: 100%;
        visibility: hidden;
        background-color:rgb(15, 54, 36);
        display: block;
        transition: width 0.3s ease-out;
    }


    .nav_link{
        display: block;
        width: 100%;
        color: white;
        text-align: center;
        margin: 15px 0;
        transition: none;
    }

    .menu_tag{
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .menu_tag span{
        margin-right: 20px;
        color: rgb(105, 105, 105);
        font-size: 18px;
    }

    .closespan{
        display: flex;
        justify-content: flex-end;
    }

    .closespan span{
        color: white;
        padding: 10px 15px;
    }

    .nav_search{
        display: flex;
        justify-content: flex-end;
        margin-right: 10px;
    }

    .nav_search form{
        justify-content: flex-end;
    }

   

    footer{
        padding: 60px 15px;
    }

    .footer_container{
        width: 100%;
        grid-template-columns: repeat(2,1fr);
    }

}

@media screen and (max-width: 480px){
    nav{
        grid-template-columns: repeat(2,1fr);
    }

    .nav_links{
        z-index: 2000;
        position: fixed;
        top: 0;
        left: 0; 
        width: 0;    
        height: 100%;
        visibility: hidden;
        background-color:rgb(15, 54, 36);
        display: block;
        transition: width 0.3s ease-out;
    }


    .nav_link{
        display: block;
        width: 100%;
        color: white;
        text-align: center;
        margin: 15px 0;
        transition: none;
    }

    .menu_tag{
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .menu_tag span{
        margin-right: 20px;
        color: rgb(105, 105, 105);
        font-size: 18px;
    }

    .closespan{
        display: flex;
        justify-content: flex-end;
    }

    .closespan span{
        color: white;
        padding: 10px 15px;
    }

    .nav_search{
        display: none;
    }

    footer{
        padding: 20px 10px;
    }

    .footer_container{
        width: 90%;
        grid-template-columns: 1fr;
    }

    .footer_illus{
        grid-template-columns: 1fr 3fr;
    }
    .footer_img{
        height: 80%;
        margin: auto 0;
    }

}