
/* Related Posts Widget Styles */
.related-posts {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.related-posts__header {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 12px 20px;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.related-posts__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 20px 0 0;
    border-color: #3b82f6 transparent transparent transparent;
}

.related-posts__title {
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.related-posts__title i {
    font-size: 14px;
}

.related-posts__list {
    max-height: 650px;
    overflow-y: auto;
    padding: 16px;
    list-style: none;
    margin: 0;
}

.related-posts__item {
    margin-bottom: 16px;
}

.related-posts__item:last-child {
    margin-bottom: 0;
}

.related-posts__link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 6px;
}

.related-posts__link:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.related-posts__image {
    width: 112px;
    height: 84px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-posts__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-posts__image:hover img {
    transform: scale(1.1);
}

.related-posts__no-image {
    color: #9ca3af;
    font-size: 24px;
}

.related-posts__content {
    flex: 1;
    min-width: 0;
}

.related-posts__post-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-posts__excerpt {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-posts__date {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-posts__date i {
    font-size: 12px;
    color: #9ca3af;
}

.related-posts__list::-webkit-scrollbar {
    width: 6px;
}

.related-posts__list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.related-posts__list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.related-posts__list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 768px) {
    .related-posts__image {
        width: 80px;
        height: 60px;
    }

    .related-posts__header {
        padding: 10px 16px;
    }

    .related-posts__list {
        padding: 12px;
    }

    .related-posts__link {
        gap: 8px;
        padding: 6px;
    }
}