.main_containers
{
    display: flex;
    
}
.main_body
{
    flex: 1;
    padding: 50px 20px 50px 50px;
    text-align: justify;
}
.sidebar
{
    width: 400px;
    padding: 40px 40px 40px 20px;
    /*box-shadow: 2px 2px 8px silver;*/
    border-left: 1px solid #e3e5e3;
    background-color: #fafafa;
}
.latest_news_style
{
    color: orangered;
    margin-bottom: 20px;
}
.sidebar_read_more
{
    padding: 5px 8px;
    border: 1 px solid orangered;
    background-color: rgb(246, 248, 248);
    color: rgb(218, 84, 23);
    margin-top: 10px;
    font-size: 14px;
    border-radius: 5px;
    letter-spacing: 2px;
}
.sidebar_post_content
{
    padding: 10px;
    flex: 1;
}

.sidebar h4
{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 20px;
    

}


.side_post_img
{
    width: 100px;
    overflow: hidden;
}

.side_post_img img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btitle
{
    text-align: center;
    padding-top: 50px;
    margin-top: 80px;
    box-shadow: 0 0 5px silver;
}

.post_container
{
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 5px silver;
    overflow: hidden;
    display: flex;
}
.blog_head
{
    margin-top: 80px;
    text-align: center;
    white-space: no-wrap;
}

.post_content small
{
    font-size: 15px;
}


.post_container:not(:last-child)
{
    margin-bottom: 20px;
}
.post_img 
{
    width: 400px;
    height: 300px;
}

.single_post_img
{
    width: 100%;
    height: 550px;
    
}

.single_post_img img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.post_img img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post_content
{
    padding: 20px;
    flex: 1;
}

.post_content p
{
    display: none;
   /* margin-top: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: justify; */
}

.read_more
{
    display: none;
   /* padding: 5px 8px;
    border: 1 px solid orangered;
    background-color: orangered;
    color: white;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 16px;
    letter-spacing: 1.5px;
    */

}

.quick_links ul
{
    padding-left: 14px;
}
.quick_links ul li:not(:last-child)
{
    padding-bottom: 10px;
}
.quick_links ul li a
{
    text-decoration: none;
    color: #545454
}
.quick_lick_head
{
    color: orangered;
    padding-bottom: 10px;
}

.single_post_container .post_img
{
    height: 450px;
    overflow: hidden;
    border-radius: 5px;
}

.single_post_content p
{
    margin-top: 20px;
}
.single_blog_head
{
    margin-top: 20px;
    text-align: left;
}

/* TO CATEGORY STYLES */
.category_container
{
    margin-top: 80px;
    padding: 20px;
    display: flex;
    overflow-x: auto;
}

.category_box
{
    flex-basis: 200px;
    flex-grow: 0;
    flex-shrink: 0;
    background: #17006b;
    border-radius: 5px;
    background-image: linear-gradient(to left, rgba(15, 1, 92, 0.7), rgba(28, 3, 73, 0.7)), url("../img/hero-bg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category_box h2
{
    color: white;
    text-align: center;
    padding: 30px 10px;
    font-size: 18px;
    
}

.category_box:not(:last-child)
{
    margin-right: 10px;
}
.category_box a
{
    text-decoration: none;
    display: block;
    width: 100%;
}


.category_title
{
    margin-top: 80px;
    background-color: darkblue;
    padding: 50px;
    background-image: linear-gradient(to left, rgba(15, 1, 92, 0.7), rgba(28, 3, 73, 0.7)), url("../img/hero-bg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category_title h1
{
    color: #deffd6;
    text-align: center;
    font-size: 40px;
}
/* COMMENTS STYLES */
.comment_container
{
    margin-top: 50px;
    border: 1px solid #e3e5e3;
}

.comment_contents
{
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e3e5e3;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.comment_text
{
    flex: 1;
    padding-left: 15px;
}
.comment_img
{
    overflow: hidden;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment_img img
{
    width: 100%;
    height: 100%;
    object-fit: cover;

}
.comment_form
{
    max-width: 600px;
    margin: auto;
}

.comment_container h3
{
    margin-bottom: 20px;
    color: orangered;
}
.comment_form lable
{
    display: block;
    width: 100%;
}
.input_box:not(:last-child)
{
    margin-bottom: 20px;
}

.form_imput
{
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e3e5e3;
}
.form_imput:focus
{
   
    border: 1px solid orangered;
    outline: none;
}
button
{
    background-color: orangered;
    padding: 8px 10px;
    border-radius: 30px;
    color: white;
    border: 1px solid orangered;
    font-size: 14px;
    cursor: pointer;
}

/*==========================ALERT MESSAGE ==========================*/

.msg_container
{
    display: none;
    margin: 10px 0;
    position: fixed;
    top: 80px;
    

}

.success_mgs
{
    display: none;
    background: #deffd6;
    color: #146300;
    padding: 10px;
}

.failed_mgs
{
    display: none;
    background: #fff0e0;
    color: #6b0000;
    padding: 10px;
}

/*==========================RESPONSIVE MEDIA==========================*/

@media only screen and (max-width: 1065px)
{
        .post_content
    {
        padding: 10px;
    }

    .post_content p
    {
        margin-top: 10px;
    }

            .single_post_img
        {
            height: 450px;
            
        }

      

}


@media only screen and (max-width: 997px)
{

      
    .main_containers
    {
        flex-direction: column;
        
    }
    .trendwrap
    {
        display: flex;
    }
    
        .sidebar
    {
        
        width: 100%;
    }
    .trend_post
    {
        width: 30%;
        margin-left: 10px;
        border-left: 1px solid rgb(219, 218, 218);
    }
    .quick_links
    {
        margin-left: 10px;
        padding-top: 15px;
         
    }

        .btitle
    {
        text-align: center;
        padding-top: 30px;
        margin-top: 60px;
        margin-bottom: -45px;
    }
    
   
}

@media only screen and (max-width: 844px)
{
    .post_img 
    {
       width: 300px;
    }

    .single_post_img
    {
        height: 400px;
        
    }


}

@media only screen and (max-width: 747px)
{

    .single_post_img
    {
        height: 380px;
        
    }
    
    .btitle
    {
        margin-bottom: -25px;

    }
    
            
        .sidebar_post_content
        {
            padding: 5px;
            flex: 1;
        }

        .sidebar h4
        {
            font-size: 13px;
            

        }

        .side_post_img
        {
            width: 70px;
        }

        .main_body
        {
            flex: 1;
            padding: 30px 10px 30px 20px;
            text-align: justify;
        }
   

        
            
   
}

@media only screen and (max-width: 660px)
{
    .trendwrap
    {
        flex-direction: column;
    }

    .sidebar_post_content
    {
        padding: 15px;
    }

    .sidebar h4
    {
        font-size: 18px;
        

    }
    

    .side_post_img
    {
        width: 95px;
    }

    .category_box
    {
        flex-basis: 120px;
    }

    .category_box h2
    {
       
        padding: 18px 10px;
        font-size: 16px;
        
    }

    .category_box:not(:last-child)
        {
            margin-right: 7px;
        }


}

@media only screen and (max-width: 580px)
{

            .category_container
        {
            margin-top: 64px;
        }


        .post_container:not(:last-child)
        {
            margin-bottom: 10px;
        }
        .post_img 
        {
            width: 250px;
            height: 200px;
        }
        .post_content
        {
            padding: 10px;
        }

        .post_content p
        {
            margin-top: 5px;
        }

        .read_more
        {
            padding: 2px 4px;
            margin-top: 10px;
            font-size: 14px;
            letter-spacing: 1px;

        }

                .post_content p
        {
            margin-top: 10px;
            -webkit-line-clamp: 2;
        }
            .blog_head
        {
            text-align: center;
            margin-top: 8px;
            font-size: 22px;
        }


                .category_container
        {
            padding: 10px;

        }

        .category_box
        {
            flex-basis: 180px;
        }
        .category_box h2
        {
            color: white;
            text-align: center;
            padding: 15px 8px;
            font-size: 16px;
            
        }

        .category_box:not(:last-child)
        {
            margin-right: 7px;
        }

        .trend_post
    {
        width: 100%;
    }



}

@media only screen and (max-width: 500px)
{
    .btitle
    {
        margin-bottom: -5px;
        font-size: 10px;
    }

    .post_img 
    {
        width:170px;
        height: 150px;
    }

    .main_body
        {
            padding: 10px 5px 10px 10px;
        }
        .category_box
        {
            flex-basis: 120px;
        }
}

@media only screen and (max-width: 440px)
{

    .btitle h1
    {
        font-size: 25px;
    }

        .single_blog_head
    {
        font-size: 25px;
    }

    .single_post_img
    {
        height: 320px;
        
    }
    .post_img 
    {
        flex-basis: 150px;
    }
    .post_content p
        {
            margin-top: 3px;
        }

        .blog_head
        {
            margin-top: 3px;
            font-size: 20px;

        }

        .category_container
        {
            padding: 5px;

        }

        .category_box
        {
            flex-basis: 100px;
        }
        .category_box h2
        {
            padding: 8px 4px;
            font-size: 14px;
            
        }

        .category_box:not(:last-child)
        {
            margin-right: 5px;
        }

        .btitle
    {
        font-size: 15px;
    }
    

}

@media only screen and (max-width: 350px)
{
    .post_img 
    {
        flex-basis: 125px;
    }

    .trend_post
    {
        margin-left: 2px;
    }
    .quick_links
    {
        margin-left: 2px;
        padding-top: 5px;
         
    }
    .category_box
    {
        flex-basis: 88px;
    }
    .single_post_img
    {
        height: 250px;
        
    }


}

