/* Posts Slider Widget Styles */
.post-item{
    justify-content: space-between;
}
.posts-slider-widget {
    position: relative;
    width: 100%;
    overflow: hidden;
    --psw-dot-bg: linear-gradient(135deg, #007cba, #00b4d8);
    --psw-dot-bg-active: linear-gradient(135deg, #ff6b6b, #ffd93d);
    --psw-dot-width: 10px;
    --psw-dot-height: 10px;
    --psw-dot-radius: 999px;
    --psw-dot-gap: 15px;
}
.posts-slider-widget .swiper-container {
    width: 100%;
    height: 100%;
}
.posts-slider-widget .swiper-container *:focus {
    /* outline: none !important; */
    box-shadow: none !important;
}
.posts-slider-widget .swiper-slide {
    /* text-align: center; */
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: none;
    transition: transform 0.3s ease;
}
.posts-slider-widget .psw-post-item {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 15px;
    min-height: 320px;
}
.posts-slider-widget .psw-post-content-block.psw-post-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 1px 15px rgba(18, 38, 63, 0.1);
    opacity: 1;
}
.posts-slider-widget .psw-post-content-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
}
.posts-slider-widget .psw-post-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
    line-height: 1.3;
}

.posts-slider-widget .psw-post-content {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
    max-width: 540px;
}

.posts-slider-widget .psw-post-media-block {
    flex: 0 0 46%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 28px; */
}
.posts-slider-widget .psw-post-thumbnail {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: none;
}

.posts-slider-widget .psw-post-placeholder {
    width: 100%;
    min-height: 260px;
    border-radius: 24px;
    background: linear-gradient(135deg, #e0e7ff, #f9fafb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Swiper Navigation */
.posts-slider-widget .swiper-button-next,
.posts-slider-widget .swiper-button-prev {
    color: #007cba;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
}

.posts-slider-widget .swiper-button-next:after,
.posts-slider-widget .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* Swiper Pagination */
.posts-slider-widget .swiper-pagination-bullet {
    background: var(--psw-dot-bg);
    width: var(--psw-dot-width);
    height: var(--psw-dot-height);
    border-radius: var(--psw-dot-radius);
    opacity: 0.6;
    margin: 0 4px;
}

.posts-slider-widget .swiper-pagination-bullet-active {
    background: var(--psw-dot-bg-active);
    opacity: 1;
}

.posts-slider-widget .swiper-pagination {
    position: static;
    margin-top: var(--psw-dot-gap);
}

.alternating-posts-widget .post-image,.alternating-posts-widget .post-content{
    max-width: 45% !important;
    width: 45% !important;
}

/* Responsive Design */
@media (max-width: 767px){
    .alternating-posts-widget .post-image{
        max-height: fit-content;
        height: fit-content;
    }
    .alternating-posts-widget .post-image,.alternating-posts-widget .post-content{
        max-width: 100% !important;
        width: 100% !important;
    }
}
@media (max-width: 1024px) {
    .posts-slider-widget .psw-post-item {
        flex-direction: column;
    }
    .posts-slider-widget .psw-post-media-block {
        width: 100%;
    }
    .posts-slider-widget .psw-post-thumbnail,
    .posts-slider-widget .psw-post-placeholder {
        min-height: 220px;
    }
    .benefit-dot{
        left: 48.8%;
    }
}

@media (max-width: 640px) {
    .posts-slider-widget .psw-post-item {
        gap: 18px;
    }

    .posts-slider-widget .psw-post-title {
        font-size: 22px;
    }

    .posts-slider-widget .psw-post-content {
        font-size: 14px;
    }

    .posts-slider-widget .psw-post-thumbnail,
    .posts-slider-widget .psw-post-placeholder {
        min-height: 200px;
        border-radius: 18px;
    }
}

/* for comments */
.psw-post-comments {
    margin-top: 10px;
    /* font-size: 16px; */
    /* color: #000 !important; */
}
.psw-comment-rating{
    /* font-size: 20px; */
}
.psw-comment-author {
    display: block;
    font-weight: bold;
    margin-bottom: 3px;
}
.psw-comment-content {
    opacity: 0.85;
}
.psw-post-comments {
    border-radius: 10px;
    padding: 20px;
    /* background: linear-gradient(90deg, #F3F5FF 0%, #FFFAFE 100%); */
}
