* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html{
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


h2{
    font-size: 1.2rem;
}
a{
    text-decoration: none;
}

#top_bar{
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
    font-size: 1.4rem;
    background-color:#16275e;
    /* background-color: #39f; */
    padding: 15px 20px
}

#top_bar .location_bar::before{
    content: ' \27A2';
    margin-right: 5px;
}

#top_bar .email_bar::before{
    content: ' \2706';
    margin-right: 5px;

}

/* ****************************  Start Header  */

header {
    position: sticky;
    left: 0;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color:#f8f9fa;
    width: 100%;
    box-shadow: 0px 2px 4px grey;
    z-index: 100;
    

}


header .logo{
    cursor: pointer;
    margin-left: 30px;


}

.nav_links{
    display: flex;
    margin-right: 50px;
    list-style: none;
    font-weight: 600;
    color:black;
    flex-wrap: wrap;
    
}

.nav_links li{
    margin: 0 20px;
}


.nav_links li a{
    font-weight: 600;
    font-size: 1rem;
    color: #000;
    padding: 7px 10px;
    /* border-bottom: #4189c0 1px solid; */

}

.nav_links li a:hover{
    /* border-bottom: #4189c0 solid 3px; */
    /* background-color: #97999b8c; */
    border-radius: 3px;
    border: 1.8px solid #16275e;
    /* background-color: #16275e; */
    padding: 5px 8px;


}



.nav_btn{
    display: none;
    border: none;
    padding: 8px 16px;
    color: #eee;
    background-color: #16275e;
    margin: 10px auto;
    cursor: pointer;

}
/* #################################  START  CONTAINER  ############################  */

#container {
    display: grid;
    grid-gap: 50px;
    padding: 20px;
    grid-template-columns: 2.5fr 1fr;
}

.blog_body{
    flex-wrap: wrap;
    position: relative;
    justify-content: space-between;
}


.element{
    display: block;
    background-color: #f8f9fa;
    margin: 5px 0;
    padding: 5px;
    border-radius: 5px;
    overflow: hidden;
    text-align: justify;
    padding: 10px;

}
.element h2{
    color:rgb(31, 31, 31);
    font-size: 1.5rem;
    text-transform: uppercase;

}

.element img{

    max-width: 50%;
    height: auto;
} 

.element .titles{
    font-size: 20px;
    font-weight: bold;
    color: #3c90f7;
}
/* --------------------------------------------------------- */
.text{
    font-size: 20px;
    margin-bottom: 10px;
}

.more_text{
    display: none;
}

.read_more_btn{
    padding: 15px 60px;
    background-color: #5ea1f3;
    color: #000;
    border: none;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    border-radius: 3px;

}
.read_more_btn:hover{
    background-color:  #2c6bb9;
    color: white;
}

.text.show_more .more_text{
    display: inline;
}
.text.show_more .dots{
    display: none;
}

/* ---------------------------------------------------------- */
.text1{
    font-size: 20px;
    margin-bottom: 10px;
}

.more_text1{
    display: none;
}
.read_more_btn1{
    padding: 15px 60px;
    background-color: rgb(222, 122, 226);
    color: #000;
    border: none;
    font-size: 1rem;
    outline: none;
    border-radius: 3px;
    cursor: pointer;

}
.read_more_btn1:hover{
    background-color: rgb(158, 36, 121);
    color: white;
}

.text1.show_more1 .more_text1{
    display: inline;
}
.text1.show_more1 .dots1{
    display: none;
}

/* ---------------------------------------------------------- */
.text2{
    font-size: 20px;
    margin-bottom: 10px;
}

.more_text2{
    display: none;
}
.read_more_btn2{
    padding: 15px 60px;
    background-color: lightgreen;
    color: #000;
    border: none;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    border-radius: 3px;

}

.text2.show_more2 .more_text2{
    display: inline;
}

.text2.show_more2 .dots2{
    display: none;
}

.read_more_btn2:hover{
    background-color: rgb(37, 145, 37);
    color: white;
}

/* ---------------------------------------------------------- */

/* ######################   STRAT   SIDEBARE  ################################## */

.blog_sidebar{
}
.blog_sidebar img{
    width: 100%;
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.blog_sidebar p{
    margin: 20px 0; 
    font-size: 1.2rem;
    text-align: center;

}

.blog_sidebar .ads{
    position: sticky;

}

/* ############################################ Start FOOTER  ######################*/

footer{
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    height: 60vh;
    width: 100vw ;
    background-color: #3c90f7;
    margin-top: 20px;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    
}

.footer_col a {
color: #f8f9fa;
opacity: 0.8;
}




footer .footer_col a:hover{
opacity: 1;
}

footer img{
    width: 10%;
    height: auto;
}



















@media screen and (max-width: 900px){
    
    header{
        display: flex;
        justify-content: center;
        flex-direction:column ;  
        align-items: center;
        position: relative;


}
    .logo{
        margin-top: 10px;
        /* left: 35vw; */
    }
    .nav_links{
        background-color: #fff;
    }


    .nav_links li {
        display: flex;
        width: 100%;
        margin: 5px;
    }

    .nav_links li a{
        width: 100%;
        background-color: rgb(218, 218, 218);
        color: black;
        border-radius: 2px;

    }
    .nav_links li a:hover{
        background-color: #eef;
        color: #000;
    }

    
    #top_bar{
        display: flex;
        justify-content: space-around;
        align-items: center;
        color: white;
        font-size: 1.1em;
        background-color:#16275e;
        /* background-color: #39f; */
        padding: 15px 20px
    }

    #container{
        grid-template-columns:1fr;

    }

    .element img{

        max-width: 100%;
        height: auto;
    } 


    .nav_btn{
        display: block;
        border: none;
        padding: 8px 16px;
        color: #eee;
        background-color: #16275e;
        margin: 10px auto;
    
    }

    .nav_links{
        display:none;
        margin: 20px auto;
        padding: 20px;
        list-style: none;
        color:black;
        text-align: center;
        transition: .51s display ease-in-out;
    
        
        }
        .nav_father.show_links .nav_links{
            display: flex;
        }    .nav_btn{
        display: block;
        border: none;
        padding: 8px 16px;
        color: #eee;
        background-color: #16275e;
        margin: 10px auto;
    
    }

    footer img{
        width: 30%;
        height: auto;
    }
}