.tab-posts-widget {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    max-width: 100%;
    font-family: sans-serif;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tab-posts-main {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.tab-posts-image {
    flex: 1 1 40%;
    margin-left: 20px;
}

.tab-posts-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.tab-posts-title {
    flex: 1 1 100%;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0 5px;
    font-family: 'RAVi';
}

.tab-posts-excerpt {
    flex: 1 1 100%;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    font-family: 'RAVi';
}

.tab-posts-thumbnails {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding: 15px;
    background-color: #f9f9f9;
}

img.tab-post-thumb {
    width: 15%;
}

.tab-post-thumb {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
    border: 2px solid transparent;
}

.tab-post-thumb:hover {
    border-color: #0073aa;
    transform: scale(1.05);
}

.tab-posts-image,
.title_description {
    width: 50%;
}


.tab-post-thumb.active {
    border: 2px solid #0073aa;
    box-shadow: 0 0 4px #0073aa;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

@keyframes slideOutToRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

.tab-posts-main.slide-in-right {
    animation: slideInFromRight 0.3s ease forwards;
}

.tab-posts-main.slide-in-left {
    animation: slideInFromLeft 0.3s ease forwards;
}

.tab-posts-main.slide-out-left {
    animation: slideOutToLeft 0.3s ease forwards;
}

.tab-posts-main.slide-out-right {
    animation: slideOutToRight 0.3s ease forwards;
}
.main__content{
    min-height: 260px;
}
a.tab-posts-image-link {
    display: flex;
}
@media(max-width:768px) {
    .tab-posts-main.slide-in-right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
.tab-posts-main {
	flex-direction: column;
}
    .tab-posts-image,
    .title_description {
        width: 100%;
    }

    img.tab-post-thumb {
        width: 30%;
    }

    .tab-posts-image {
        margin-left: 0;
    }
    .main__content{
    min-height: 410px;
}
	.title_description {
    margin-top: 15px;
}
}
@media(min-width:1200px){
	a.tab-posts-image-link {
    max-width: 50% !important;
}
}
