/**
 * Related Posts Styles - بسيط ومميز
 * @version 8.0 - Simple & Professional
 */

.nl7za-related-posts {
    margin: 30px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    clear: both;
}

.related-posts-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding: 0 0 12px;
    border-bottom: 3px solid #00A859;
    position: relative;
    display: inline-block;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 50%;
    height: 3px;
    background: rgba(0, 168, 89, 0.3);
}

.title-icon {
    font-size: 26px;
    margin-left: 8px;
}

/* List Style - نظيف واحترافي */
.nl7za-related-list .related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.nl7za-related-list .related-posts-list li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.nl7za-related-list .related-posts-list li:last-child {
    border-bottom: none;
}

.nl7za-related-list .related-posts-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #fff;
    text-decoration: none;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.nl7za-related-list .related-posts-list a:hover {
    background: #f8fffe;
    color: #00A859;
    padding-right: 25px;
}

.nl7za-related-list .post-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: #f0f0f0;
    color: #666;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.nl7za-related-list .related-posts-list a:hover .post-number {
    background: #00A859;
    color: #fff;
}

/* Grid Style - كروت بسيطة */
.nl7za-related-grid .related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.nl7za-related-grid .related-post-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.nl7za-related-grid .related-post-item:hover {
    box-shadow: 0 8px 20px rgba(0, 168, 89, 0.15);
    transform: translateY(-4px);
    border-color: #00A859;
}

.nl7za-related-grid .related-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
}

.nl7za-related-grid .related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nl7za-related-grid .related-post-item:hover .related-thumb img {
    transform: scale(1.05);
}

.nl7za-related-grid .related-title {
    padding: 15px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.nl7za-related-grid .related-title a {
    color: #2c3e50;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nl7za-related-grid .related-title a:hover {
    color: #00A859;
}

/* Responsive - محسّن */
@media (max-width: 768px) {
    .nl7za-related-posts {
        padding: 15px;
        margin: 20px 0;
    }
    
    .related-posts-title {
        font-size: 18px;
    }
    
    .nl7za-related-grid .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .nl7za-related-list .related-posts-list a {
        font-size: 14px;
        padding: 10px;
        gap: 10px;
    }
    
    .nl7za-related-list .post-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .nl7za-related-grid .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

