/* استایل‌های RSS News Plugin */

.rss-news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
    padding: 0;
}

.rss-news-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rss-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rss-news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.rss-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rss-news-item:hover .rss-news-image img {
    transform: scale(1.05);
}

.rss-news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rss-news-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
}

.rss-news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rss-news-title a:hover {
    color: #0073aa;
}

.rss-news-date {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
}

.rss-news-text {
    color: #555;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
    font-size: 0.95rem;
}

.rss-news-text p {
    margin: 0 0 12px 0;
}

.rss-news-text p:last-child {
    margin-bottom: 0;
}

.rss-news-text img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

.rss-news-text a {
    color: #0073aa;
    text-decoration: underline;
}

.rss-news-text a:hover {
    color: #005177;
}

.rss-news-read-more {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    margin-top: auto;
}

.rss-news-read-more:hover {
    color: #005177;
    text-decoration: underline;
}

/* استایل برای حالت تک ستونی (موبایل) */
@media (max-width: 768px) {
    .rss-news-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rss-news-image {
        height: 180px;
    }
    
    .rss-news-title {
        font-size: 1.1rem;
    }
}

/* استایل برای حالت دو ستونی (تبلت) */
@media (min-width: 769px) and (max-width: 1024px) {
    .rss-news-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* استایل برای حالت سه ستونی (دسکتاپ) */
@media (min-width: 1025px) {
    .rss-news-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* استایل برای حالت چهار ستونی (صفحه بزرگ) */
@media (min-width: 1400px) {
    .rss-news-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

