/*=========================================================
  SINGLE BLOG PAGE
  File: public/css/single-blogpage.css
=========================================================*/

/*=========================
General
=========================*/

body{
    background:#f8f9fa;
    color:#444;
    font-family:'Poppins',sans-serif;
    line-height:1.8;
}

/*=========================
Section
=========================*/

.blog-wrapper{
    padding:80px 0;
    background:#f8f9fa;
}

/*=========================
Main Article
=========================*/

.post-box{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.post-thumb{
    overflow:hidden;
}

.post-thumb img{
    width:100%;
    height:520px;
    object-fit:cover;
    display:block;
    transition:.5s;
}

.post-thumb img:hover{
    transform:scale(1.03);
}

/*=========================
Meta
=========================*/

.post-meta{
    padding:35px 40px 15px;
}

.article-title{
    font-size:2.3rem;
    font-weight:700;
    color:#1d1d1d;
    line-height:1.3;
    margin-bottom:20px;
}

.post-meta ul{
    margin:0;
    padding:0;
    list-style:none;
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

.post-meta ul li{
    color:#777;
    font-size:15px;
}

.post-meta ul li i{
    color:#4f46e5;
    margin-right:8px;
}

/*=========================
Article
=========================*/

.article-content{
    padding:0 40px 40px;
}

.article-content p{
    font-size:17px;
    color:#555;
    line-height:2;
    margin-bottom:25px;
    text-align:justify;
}

.article-content img{
    width:100%;
    border-radius:12px;
    margin:35px 0;
}

.article-content h2,
.article-content h3,
.article-content h4{
    margin-top:35px;
    margin-bottom:20px;
    color:#222;
    font-weight:700;
}

.article-content ul,
.article-content ol{
    margin:20px 0 25px 25px;
}

.article-content li{
    margin-bottom:12px;
}

/*=========================
Blockquote
=========================*/

.blockquote{
    background:#f3fff6;
    border-left:6px solid #4f46e5;
    padding:35px;
    margin:40px 0;
    border-radius:10px;
}

.blockquote p{
    margin:0;
    font-size:24px;
    font-weight:600;
    font-style:italic;
    color:#4f46e5;
}

/*=========================
Gallery Image
=========================*/

.article-content .gallery-image{
    margin:50px 0;
}

.article-content .gallery-image img{
    width:100%;
    border-radius:14px;
}

/*=========================
Author Card
=========================*/

.card{
    border:none;
    border-radius:15px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.card-body{
    padding:35px;
}

.card img{
    border:4px solid #4f46e5;
}

.card h4{
    font-weight:700;
    color:#222;
    margin-bottom:10px;
}

.card p{
    margin:0;
    color:#666;
    line-height:1.8;
}

/*=========================
Sidebar
=========================*/

.widget-sidebar{
    background:#fff;
    padding:30px;
    margin-bottom:35px;
    border-radius:15px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.sidebar-title{
    font-size:22px;
    font-weight:700;
    color:#222;
    margin-bottom:25px;
    position:relative;
}

.sidebar-title::after{
    content:"";
    width:60px;
    height:3px;
    background:#4f46e5;
    display:block;
    margin-top:12px;
}

/*=========================
Search
=========================*/

.sidebar-search .form-control{
    border-radius:8px 0 0 8px;
    border:1px solid #ddd;
    height:50px;
}

.sidebar-search .btn{
    border-radius:0 8px 8px 0;
    padding:0 20px;
    background:#4f46e5;
    border:none;
}

.sidebar-search .btn:hover{
    background:#4f46e5;
}

/*=========================
Recent Posts
=========================*/

.list-group{
    border:none;
}

.list-group-item{
    border:none;
    border-bottom:1px solid #eee;
    padding:18px 0;
}

.list-group-item:last-child{
    border-bottom:none;
}

.list-group-item a{
    color:#222;
    font-weight:600;
    text-decoration:none;
    transition:.3s;
}

.list-group-item a:hover{
    color:#4f46e5;
    padding-left:5px;
}

.list-group-item small{
    color:#999;
}

/*=========================
About Author Widget
=========================*/

.widget-sidebar img{
    border:4px solid #4f46e5;
}

.widget-sidebar h5{
    margin-top:15px;
    font-weight:700;
}

.widget-sidebar p{
    color:#666;
    line-height:1.8;
}

/*=========================
Buttons
=========================*/

.btn-primary{
    background:#4f46e5;
    border-color:#4f46e5;
}

.btn-primary:hover{
    background:#4f46e5;
    border-color:#4f46e5;
}

/*=========================
Links
=========================*/

a{
    transition:.3s;
}

a:hover{
    text-decoration:none;
}

/*=========================
Responsive
=========================*/

@media(max-width:991px){

    .blog-wrapper{
        padding:60px 0;
    }

    .post-thumb img{
        height:380px;
    }

    .post-meta,
    .article-content{
        padding-left:25px;
        padding-right:25px;
    }

    .article-title{
        font-size:34px;
    }

}

@media(max-width:768px){

    .post-thumb img{
        height:260px;
    }

    .article-title{
        font-size:28px;
    }

    .article-content p{
        font-size:16px;
    }

    .blockquote{
        padding:25px;
    }

    .blockquote p{
        font-size:20px;
    }

    .widget-sidebar{
        padding:25px;
    }

}

@media(max-width:576px){

    .post-meta{
        padding:25px 20px 10px;
    }

    .article-content{
        padding:0 20px 25px;
    }

    .article-title{
        font-size:24px;
    }

    .post-meta ul{
        display:block;
    }

    .post-meta ul li{
        margin-bottom:10px;
    }

    .card-body{
        padding:25px;
    }

}

/*=========================================================
BLOG SEARCH PAGE
=========================================================*/

.blog-search-section .input-group{
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    border-radius:10px;
    overflow:hidden;
}

.blog-search-section .form-control{
    height:58px;
    border:none;
    font-size:16px;
    padding:0 20px;
    box-shadow:none;
}

.blog-search-section .form-control:focus{
    box-shadow:none;
}

.blog-search-section .btn{
    padding:0 30px;
    font-weight:600;
    border:none;
    background:#4f46e5;
    color:#fff;
}

.blog-search-section .btn:hover{
    background:#3d35c6;
}

.blog-search-section .card{
    height:100%;
    transition:.35s;
    overflow:hidden;
}

.blog-search-section .card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.12);
}

.blog-search-section .card-img-top{
    width:100%;
    height:230px;
    object-fit:cover;
    transition:.4s;
}

.blog-search-section .card:hover .card-img-top{
    transform:scale(1.05);
}

.blog-search-section .card-body{
    display:flex;
    flex-direction:column;
}

.blog-search-section .card-title{
    font-size:22px;
    font-weight:700;
    color:#222;
    margin-bottom:15px;
    line-height:1.4;
}

.blog-search-section .card-text{
    color:#666;
    line-height:1.8;
    flex:1;
}

.blog-search-section .card small{
    display:block;
    margin-bottom:10px;
    color:#888;
}

.blog-search-section .card small i{
    color:#4f46e5;
    margin-right:6px;
}

.blog-search-section .btn-success{
    background:#4f46e5;
    border-color:#4f46e5;
    border-radius:8px;
    padding:10px 22px;
    font-weight:600;
    transition:.3s;
}

.blog-search-section .btn-success:hover{
    background:#3d35c6;
    border-color:#3d35c6;
}

.blog-search-section .alert{
    border:none;
    border-radius:15px;
    padding:50px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.blog-search-section h2{
    font-size:42px;
    font-weight:700;
    color:#222;
}

.blog-search-section .text-muted{
    color:#777!important;
}

/*=========================
Responsive Search
=========================*/

@media(max-width:768px){

    .blog-search-section h2{
        font-size:32px;
    }

    .blog-search-section .card-title{
        font-size:20px;
    }

    .blog-search-section .card-img-top{
        height:220px;
    }

}

@media(max-width:576px){

    .blog-search-section{
        padding:60px 0;
    }

    .blog-search-section .card-img-top{
        height:200px;
    }

    .blog-search-section .btn{
        padding:0 18px;
    }

}