.related-posts {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0;
}

.related-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.related-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.related-post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.related-thumbnail {
    width: 100%;
}

.related-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.related-content {
    padding: 15px;
    flex: 1;
}

.related-content h3 {
    margin: 0 0 10px;
    font-size: 1.1em;
}

.related-content a {
    color: #0066cc;
    text-decoration: none;
}

.related-content a:hover {
    text-decoration: underline;
}

.related-date {
    color: #666;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .related-posts-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .related-thumbnail img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .related-posts-container {
        grid-template-columns: 1fr;
    }
    
    .related-post {
        max-width: 100%;
    }
}