.atf-blog {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.atf-blog .container {
    height: 100%;
}

.atf-blog .img-wrapper {
    height: 500px;
    overflow: hidden;
    position: absolute;
    width: calc(100% - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%);
    z-index: -1;
    border-radius: 24px;
}

.atf-blog .img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.blog-listing .sidebar {
    position: sticky;
    top: 140px;
}

.blog-listing .search-box {
    border-radius: 10px;
}

.blog-listing .search-box .input-wrapper {
    border-radius: 10px;
}

.blog-listing .search-box .input-wrapper input:focus {
    outline: 0;
    box-shadow: none;
}

.blog-listing .related-box {
    border-radius: 10px;
    background: var(--light-blue);
    margin-top: 16px;
    padding: 16px;
}

.blog-listing .related-box .link-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.blog-listing .related-box .dot {
    position: relative;
    border-radius: 50%;
    background: var(--dark-blue);
    height: 7px;
    width: 7px;
    flex-shrink: 0;
    bottom: 0px;
    left: 0px;
    z-index: 9;
    margin: 10px;
}

.blog-listing .category-description {
    font-size: 24px;
    margin-bottom: 45px;
}

.blog-listing .post {
    display: block;
    padding: 34px 50px 34px 0px;
    border-bottom: 1px solid rgba(0, 96, 156, 0.5);
    color: var(--secondary);
    position: relative;
    transition: all 0.2s ease-in-out;
}

.blog-listing .post:first-of-type {
    padding-top: 16px;
}

.blog-listing .post:hover .h4 {
    color: var(--primary);
    transition: all 0.2s ease-in-out;
}

.blog-listing .post:last-of-type {
    border-bottom: none !important;
}

.blog-listing .post::after {
    content: url("/assets/img/icons/arrow-up.svg");
    position: absolute;
    top: 45px;
    right: 0px;
    transition: all 0.2s ease-in-out;
    opacity: 0;
}

.blog-listing .post:hover::after {
    opacity: 1;
    transition: all 0.2s ease-in-out;
}

@media screen and (max-width: 1200px) {
    .atf-blog {
        height: fit-content;
        position: relative;
    }

    .atf-blog .container {
        padding: 20px;
    }    

    .atf-blog h1 {
        padding: 0px;
    }

    .atf-blog .img-wrapper {
        height: 500px;
        position: static;
        width: 100%;
        bottom: 0px;
        left: 0px;
        transform: none;
        z-index: 0;
        border-radius: 24px;
    }

    .atf-blog .img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 26%;
    }
}

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

    .atf-blog .img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 26%;
    }

    .blog-listing.padding-sm {
        padding-top: 20px !important;
    }

    .blog-listing .post {
        padding: 20px 35px 20px 8px;
    }

    .blog-listing .post p {
        font-size: 14px !important;
    }

    .blog-listing .post .h4{
        font-size: 20px !important;
    }

    .blog-listing .posts-wrapper {
        margin-bottom: 50px;
    }

    .blog-listing .category-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
}

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

    .atf-blog .container {
        padding-left: 20px;
        padding-right: 20px;
    }    
}