/* ===========================
   Blog Section
=========================== */

.news-section{
    padding-top: 120px !important;
}

.news-box-items{
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all .3s ease;
}

.news-box-items .news-img{
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.news-box-items .news-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.news-box-items:hover .news-img img{
    transform: scale(1.08);
}

.news-box-items .news-content{
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.news-box-items .news-content h3{
    min-height: 78px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.news-box-items .news-content p{
    flex-grow: 1;
    margin-bottom: 0;
    line-height: 1.8;
}

/* Tablet */
@media (max-width:991px){

    .news-section{
        padding-top:90px !important;
    }

    .news-box-items .news-img{
        height:220px;
    }

    .news-box-items .news-content h3{
        min-height:auto;
    }
}

/* Mobile */
@media (max-width:767px){

    .news-section{
        padding-top:70px !important;
    }

    .news-box-items{
        margin-bottom:30px;
    }

    .news-box-items .news-img{
        height:220px;
    }

    .news-box-items .news-content{
        padding:25px;
    }
}


/* ===========================
   Blog Section Responsive
=========================== */

/* Tablet */
@media (max-width: 991px) {

    .news-section {
        padding-top: 80px !important;
        padding-bottom: 80px;
    }

    .news-section .section-title h2 {
        font-size: 34px;
        line-height: 1.3;
    }

    .news-box-items {
        margin-bottom: 30px;
    }

    .news-box-items .news-img {
        height: 230px;
    }

    .news-box-items .news-content {
        padding: 25px;
    }

    .news-box-items .news-content h3 {
        font-size: 22px;
        line-height: 1.4;
        min-height: auto;
    }

    .news-box-items .news-content p {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* Mobile */
@media (max-width: 767px) {

    .news-section {
        padding-top: 60px !important;
        padding-bottom: 60px;
    }

    .news-section .section-title {
        margin-bottom: 35px;
    }

    .news-section .section-title h2 {
        font-size: 28px;
        line-height: 1.4;
    }

    .news-section .section-title br {
        display: none;
    }

    .news-box-items {
        margin-bottom: 25px;
    }

    .news-box-items .news-img {
        height: 220px;
    }

    .news-box-items .news-content {
        padding: 20px;
    }

    .news-box-items .news-content span {
        font-size: 14px;
    }

    .news-box-items .news-content h3 {
        font-size: 20px;
        line-height: 1.5;
        margin-bottom: 12px;
        min-height: auto;
    }

    .news-box-items .news-content h3 br {
        display: none;
    }

    .news-box-items .news-content p {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* Small Mobile */
@media (max-width: 575px) {

    .news-section {
        padding-top: 70px !important;
        padding-bottom: 30px;
    }

    .news-section .section-title h2 {
        font-size: 28px;
    }

    .news-box-items .news-img {
        height: 200px;
    }

    .news-box-items .news-content {
        padding: 18px;
    }

    .news-box-items .news-content h3 {
        font-size: 18px;
    }

    .news-box-items .news-content p {
        font-size: 14px;
    }
}


/* ===================================
   Blog Comments Author Image
=================================== */

.comments-item-list .author-img {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comments-item-list .author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* ===================================
   Blog Comments Author Image
=================================== */

.comments-item-list .author-img {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comments-item-list .author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}


.comment-message{
    display:none;
    padding:15px 20px;
    margin-bottom:20px;
    border-radius:6px;
    font-size:15px;
    font-weight:500;
}

.comment-message.success{
    display:block;
    background:#d4edda;
    color:#155724;
    border:1px solid #c3e6cb;
}

.comment-message.error{
    display:block;
    background:#f8d7da;
    color:#721c24;
    border:1px solid #f5c6cb;
}






/* =========================
   Breadcrumb Mobile Fix
========================= */

@media only screen and (max-width: 767px) {

    .breadcrumb-wrapper .page-heading .breadcrumb-items-area .breadcrumb-sub-title h1 {
        font-size: 20px !important;
        line-height: 1.4 !important;
        font-weight: 700 !important;
        margin-bottom: 10px !important;
        word-break: break-word;
    }

    .breadcrumb-wrapper .page-heading {
        padding: 80px 0 !important;
    }

    .breadcrumb-wrapper .breadcrumb-items {
        font-size: 13px !important;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .breadcrumb-wrapper .breadcrumb-items li {
        line-height: 1.5;
    }
}

@media only screen and (max-width: 575px) {

    .breadcrumb-wrapper .page-heading .breadcrumb-items-area .breadcrumb-sub-title h1 {
        font-size: 25px !important;
        line-height: 1.5 !important;
    }

    .breadcrumb-wrapper .breadcrumb-items {
        font-size: 10px !important;
    }
}



/* ==========================
   Blog Details Image - Mobile
========================== */

@media (max-width: 767px) {

  .blog-wrapper .single-blog-post.post-details .post-content .single-post-image {
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    height: 250px;
    border-radius: 6px;
    -o-object-fit: cover;
    object-fit: cover;
}
.blog-wrapper .single-blog-post.post-details .post-content img {
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    height: 250px;
    border-radius: 6px;
    -o-object-fit: cover;
    object-fit: cover;
}
}

/* ==========================
   Comment Author Image - Mobile
========================== */

@media (max-width: 767px) {

    .comments-item-list .author-img {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        flex-shrink: 0;
    }

    .comments-item-list .author-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
        display: block;
    }
}

/* ==========================
   Latest Blogs - Mobile
========================== */
@media (max-width: 767px) {

    .popular-posts .post-content h5 {
        font-size: 14px !important;
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .popular-posts .post-content h5 a {
        font-size: 14px !important;
        line-height: 1.5;
    }

    .popular-posts .post-date {
        font-size: 12px !important;
    }
    .team-section-2.section-bg-2{
        padding: 0px 0px 70px 0;
    }
}

@media (max-width: 575px) {

    .popular-posts .post-content h5,
    .popular-posts .post-content h5 a {
        font-size: 13px !important;
        line-height: 1.4;
    }

    .popular-posts .post-date {
        font-size: 11px !important;
    }
}

.main-sidebar .single-sidebar-widget:first-child .popular-posts .post-content h5 {
    font-size: 14px;
}


/* Blog Section White Background */
.team-section-2 {
    background: #fff !important;
}

/* Remove background image if section-bg-2 adds one */
.team-section-2.section-bg-2 {
    background: #fff !important;
    background-image: none !important;
}