.related-posts-block {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.related-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.related-posts-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.related-posts-list {
    margin-top: 15px;
}

.related-posts-list .components-checkbox-control {
    margin-bottom: 10px;
}

.related-posts-error {
    color: #d63638;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Style pour l'affichage front-end */
.nawaat-related-articles {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.nawaat-related-articles h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.nawaat-related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nawaat-related-articles li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.nawaat-related-articles li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.nawaat-related-articles a {
    color: #0073aa;
    text-decoration: none;
}

.nawaat-related-articles a:hover {
    color: #00a0d2;
    text-decoration: underline;
}

.related-posts-container {
    padding: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-post-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-card .components-card__body {
    padding: 15px;
}

.related-post-card h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

.related-post-card p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.related-post-card .components-button {
    width: 100%;
    justify-content: center;
} 