.smart-related-posts {
    margin: 2em 0;
    font-family: inherit;
}

.smart-related-posts .related-posts-title {
    font-size: 1.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}

.smart-related-posts .related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
}

.smart-related-posts .related-post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.smart-related-posts .related-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.smart-related-posts .related-post-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.smart-related-posts .related-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.smart-related-posts .related-post:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.smart-related-posts .related-post-content {
    padding: 1.5em;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.smart-related-posts .related-post-title {
    margin: 0 0 0.5em;
    font-size: 1.2em;
    line-height: 1.4;
}

.smart-related-posts .related-post-title a {
    color: inherit;
    text-decoration: none;
}

.smart-related-posts .related-post-title a:hover {
    color: #0073aa;
}

.smart-related-posts .related-post-excerpt {
    font-size: 0.9em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1em;
    flex-grow: 1;
}

.smart-related-posts .related-post-date {
    font-size: 0.8em;
    color: #999;
    margin-top: auto;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .smart-related-posts .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    
    .smart-related-posts .related-post {
        max-width: 500px;
        margin: 0 auto;
    }
} 