/* css/main.css - أنماط قسم الأخبار */
.news-section {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-image-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(153, 41, 189, 0.3);
}

.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.news-link:hover {
    color: var(--primary-dark);
    transform: translateX(-5px);
}

.news-link i {
    margin-right: 8px;
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(-3px);
}

/* تأثيرات للشاشات الصغيرة */
@media (max-width: 768px) {
    .news-section {
        padding: 3rem 0;
    }

    .news-image-container {
        height: 200px;
    }

    .news-content {
        padding: 20px;
    }

    .news-title {
        font-size: 1.125rem;
    }
}

/* تأثيرات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .news-card {
        margin-bottom: 1.5rem;
    }

    .news-image-container {
        height: 180px;
    }

    .news-date {
        top: 12px;
        left: 12px;
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}