.related-posts-container {
    width: 100%;
    margin-top: 24px;
}

.related-posts-container.related-posts-sticky {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.related-posts-header {
    border-left: 4px solid #0057DA;
    padding-left: 16px;
    margin-bottom: 20px;
}

.related-posts-header h3.related-posts-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    color: #0057DA;
}

.related-posts-list {
    display: flex;
    flex-direction: column;
}

.related-post-item {
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.related-post-item:hover {
    background: #d9d9d94d;
}
.related-post-item:hover .related-post-title {
    color: #0057DA;
}

.related-post-link {
    text-decoration: none;
    display: block;
}

.related-post-item h4.related-post-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-post-item:hover .related-post-title {
    color: #0057DA !important;
}

.related-post-excerpt {
    font-size: 12px;
    color: #525252;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .related-posts-container,
    .related-posts-container.related-posts-sticky {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        max-height: none;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .related-post-item {
        padding: 4px 10px;
    }
    .related-posts-header h3.related-posts-title {
        font-size: 12px;
    }
    .related-posts-header {
        border-width: 2px;
    }
    .related-post-item h4.related-post-title {
        font-size: 14px;
    }
    .related-posts-header {
        padding-left: 10px;
    }
}