/* Posts Slider - Modern & Clean */
.posts-slider {
    padding: 60px 0;
    background: #f8f9fa;
}

.posts-slider__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.posts-slider__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.posts-slider__title {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #222;
}

.posts-slider__nav {
    display: flex;
    gap: 8px;
}

.posts-slider__btn {
    width: 44px;
    height: 44px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.posts-slider__btn:hover {
    border-color: var(--brand-pink, #D50069);
    color: var(--brand-pink, #D50069);
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(213, 0, 105, 0.2);
}

.posts-slider__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.posts-slider__wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.posts-slider__track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 24px;
}

.posts-slider__item {
    flex: 0 0 auto;
    width: calc(33.333% - 16px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.posts-slider__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.posts-slider__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.posts-slider__media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
}

.posts-slider__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.posts-slider__item:hover .posts-slider__media img {
    transform: scale(1.05);
}

.posts-slider__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.posts-slider__placeholder svg {
    width: 100%;
    height: 100%;
}

.posts-slider__content {
    padding: 20px;
}

.posts-slider__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.posts-slider__category {
    background: var(--brand-pink, #D50069);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.posts-slider__date {
    color: #888;
    font-weight: 500;
}

.posts-slider__post-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.posts-slider__excerpt {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.posts-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.posts-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.posts-slider__dot:hover {
    background: #bbb;
    transform: scale(1.1);
}

.posts-slider__dot--active {
    background: var(--brand-pink, #D50069);
    border-color: var(--brand-pink, #D50069);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .posts-slider__item {
        width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .posts-slider {
        padding: 40px 0;
    }
    
    .posts-slider__container {
        padding: 0 16px;
    }
    
    .posts-slider__header {
        margin-bottom: 24px;
    }
    
    .posts-slider__item {
        width: calc(100% - 0px);
    }
    
    .posts-slider__track {
        gap: 16px;
    }
    
    .posts-slider__btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .posts-slider__content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .posts-slider__header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .posts-slider__track {
        transition: none;
    }
    
    .posts-slider__item:hover {
        transform: none;
    }
    
    .posts-slider__media img {
        transition: none;
    }
    
    .posts-slider__item:hover .posts-slider__media img {
        transform: none;
    }
}
