.blog-banner {
    background: url(../images/home-page/banners/blog-banner.webp) center no-repeat;
    background-size: cover;
}
.blog-banner::before {
    opacity: 0.6;
}
.blog-sec, .blog-detail-sec {
    margin: 0;
    max-width: 100% !important;
}
.blog-list-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
}
.blog-card {
    margin-bottom: 40px;
}
.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    aspect-ratio: 16 / 10.6;
}
.blog-card .item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.blog-card .section-inner, .blog-card .content, .blog-card .item, .blog-card .featured.featured-image {
    height: 100%;
}
.blog-card .post-header h3 {
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    width:100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.blog-card .post-header h3 a {
    color: var(--primary);
}
.blog-card .posted-on time {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #797978;
}
.blog-card .item figure {
    margin-bottom: 35px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 0;
}
.blog-card .item figure img{
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    transition: .5s linear;
    transform: scale(1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card .item:hover a img {
    transform: scale(1.1);
}
.widget_search {
    margin-bottom: 40px;
}
.blog-sidebar {
    padding-left: 2rem;
}
.search-form {
    border-radius: 8px;
    border: 1.5px solid var(--primary);
    padding: 16px 18px 16px 24px;
    position: relative;
    display: flex;
    align-items: center;
}
.search-form input {
    border: none;
    background: transparent;
    width: 88%;
    padding: 0;
}
.search-form button {
    background-color: transparent;
    padding: 0;
    border: none;
    position: absolute;
    right: 15px;
}
.search-form button svg {
    min-height: 30px;
    min-width: 30px;
    transform: rotateY(180deg);
}
.search-form button svg path {
    fill: var(--primary);
}
.related-posts {
    background: #f4f7fb;
    border-radius: 24px;
    padding: 2rem 2.5rem;
}
.related-posts h3 {
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--primary);
}
.related-posts ul {
    list-style: none;
    padding-left: 0;
}
.related-posts ul li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #C9C9C9;
}
.related-posts ul li:last-child {
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: 0;
}
.related-posts ul li a {
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
    line-height: 1.4;
    color: var(--primary);
    font-weight: 500;
}
.related-posts ul li time {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    color: #797978;
    font-size: 14px;
}
.blog-detail-panel h2 {
    font-size: 40px;
    line-height: 1.3;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.blog-detail-panel time {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    color: #797978;
    font-size: 14px;
    margin-bottom: 30px;
    display: block;
}
.blog-detail-panel figure {
    text-align: center;
}
.blog-detail-panel figure img {
    width: auto;
    border-radius: 16px;
    max-height: 550px;
    margin-bottom: 20px;
}
.blog-detail-panel p strong {
    color: var(--primary);
}
.blog-detail-panel h4 {
    font-size: 1.675rem;
    font-weight: 600;
    letter-spacing: normal;
    color: var(--primary);
    margin: 40px 0 10px;
}
.blog-detail-panel h3 {
    font-size: 1.275rem;
}
.next-prev-wrap {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
}
.next-prev-wrap span.older, .next-prev-wrap span.newer {
    width: 50%;
}
.next-prev-wrap span.newer {
    justify-content: flex-end;
    display: flex;
    text-align: right;
}
.next-prev-wrap a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--primary);
}
.next-prev-wrap a span.screen-reader-text {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    color: #797978;
}
.next-prev-wrap a:hover span:nth-child(2) {
    color: var(--secondary);
}
.next-prev-wrap a span.post-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pagination.custom-pagination {
    justify-content: center;
    gap: 20px;
}
.custom-pagination .page-item .page-link {
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 50px;
    font-weight: 500;
    background-color: transparent;
    color: var(--tg-primary-color);
    border-color: #ebebeb;
}
.custom-pagination .page-item:first-child .page-link, .custom-pagination .page-item:last-child .page-link {
    width: auto;
    border-radius: 50px;
}
.pagination.custom-pagination ul {
    gap: 10px;
}
.custom-pagination .page-item.active .page-link, .custom-pagination .page-item:hover .page-link {
    background-color: var(--tg-primary-color);
    border-color: var(--tg-primary-color);
    color: #fff;
}
.custom-pagination .page-item.disabled .page-link {
    color: #c3c3c3;
    background-color: transparent;
    border-color: #dee2e6;
}
.error-msg {
    background: var(--tg-secondary-background);
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.error-msg h3 {
    font-family: var(--tg-body-font-family);
    margin-bottom: 0;
}
.post-description {
    padding: 2rem;
}
.postimg {
    aspect-ratio: 16 / 10;
}
.postimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-post h5 {
    margin-bottom: 10px;
}
.blog-post h5 a {
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.blog-post p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.blog-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.read-more {
    color: var(--secondary);
    font-weight: 600;
}
.read-more:hover {
    color: var(--primary);
}


/*--------------- Responsive -----------------*/
@media screen and (max-width: 1199px) {
    .blog-detail-panel h2 {
        font-size: 35px;
    }
    .blog-card .post-header h3 {
        font-size: 18px;
    }
    .blog-card .posted-on time, .related-posts ul li time {
        font-size: 12px;
    }
    .blog-card .post-header h3 {
        margin-bottom: 8px;
    }
    .related-posts ul li a {
        font-size: 16px;
        margin-bottom: 6px;
    }
}

@media screen and (max-width: 991px) {
    .blog-card .post-header h3 {
        font-size: 20px;
    }
    .related-posts ul li a {
        font-size: 18px;
    }
}

@media screen and (max-width: 767px) {
    .next-prev-wrap a span.post-title {
        font-size: 16px;
    }
    .next-prev-wrap a span.screen-reader-text {
        font-size: 12px;
    }
    .blog-card .post-header h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 680px) {
    .blog-list-row {
        grid-template-columns: repeat(1, 1fr);
    }
    .blog-card .post-header h3 {
        font-size: 20px;
    }
}

@media screen and (max-width: 580px) {
    .next-prev-wrap {
        flex-wrap: wrap;
        gap: 20px;
    }
    .next-prev-wrap span.older, .next-prev-wrap span.newer {
        width: 100%;
    }
    .next-prev-wrap span.newer {
        justify-content: flex-start;
        text-align: left;
    }
    .next-prev-wrap a span.post-title {
        font-size: 18px;
    }
    .next-prev-wrap a span.screen-reader-text {
        font-size: 14px;
    }
    .blog-sec div[class*=col-] {
        padding: 0;
    }
    .blog-detail-panel h2 {
        font-size: 28px;
    }
    .blog-detail-panel time {
        font-size: 12px;
    }
}

@media screen and (max-width: 380px) {
    .search-form {
        padding-left: 16px;
    }
}