/* تنسيقات عامة لصفحة الأخبار */
.news-page {
  padding: 3rem 0;
  background-color: #f9f9f9;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
  font-size: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 3px;
  background: #3498db;
}

/* فلترة الأخبار */
.news-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: #eee;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Tajawal', sans-serif;
}

.filter-btn.active,
.filter-btn:hover {
  background: #3498db;
  color: white;
}

/* شبكة عرض الأخبار */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin: 2rem 0;
}

.news-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

.news-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #e74c3c;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
}

/* محتوى البطاقة */
.news-content {
  padding: 20px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  color: #7f8c8d;
  font-size: 14px;
  margin-bottom: 10px;
}

.news-title {
  color: #2c3e50;
  margin: 10px 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.news-excerpt {
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  color: #3498db;
  font-weight: 500;
  transition: color 0.3s;
}

.read-more:hover {
  color: #2980b9;
}

/* صفحة التفاصيل */
.single-news {
  padding: 3rem 0;
}

.news-details {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.news-header {
  margin-bottom: 20px;
}

.news-details .news-title {
  font-size: 1.8rem;
  margin: 15px 0;
}

.news-details img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 20px 0;
}

.news-tags {
  margin: 20px 0;
  font-size: 14px;
}

.news-tags a {
  color: #3498db;
  margin: 0 5px;
}

.news-share {
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: #3498db;
  color: white;
}

/* التجاوبية */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .news-details {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}