.custom-articles-widget {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3498db;
}

.custom-articles-grid {
    display: grid;
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #3498db;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.article-image-container {
    position: relative;
    overflow: hidden;
}

.article-image-link {
    display: block;
    text-decoration: none;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
    flex-grow: 0;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #3498db;
}

.article-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 13px;
    flex-grow: 0;
}

.read-time {
    color: #95a5a6;
    font-size: 12px;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 5px 12px;
    border: 1px solid #3498db;
    border-radius: 5px;
}

.read-more:hover {
    background: #3498db;
    color: white;
    text-decoration: none;
}

.no-articles {
    text-align: center;
    color: #95a5a6;
    font-size: 16px;
    padding: 40px;
}

/* حالت بدون تصویر */
.article-card:not(.has-image) .article-content {
    padding-top: 25px;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .custom-articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .custom-articles-grid {
        grid-template-columns: 1fr !important;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .read-more {
        align-self: flex-end;
    }
}