/* تنسيق الصفحة العام مع مسافات خارجية */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #f4f7f6; 
    margin: 0; 
    padding: 0; 
    direction: ltr;
}

/* الحاوية الرئيسية الخاصة بعنوان الصفحة */
.news-container-header {
    max-width: 900px;
    margin: 40px auto 20px auto;
    padding: 10px;
    background: transparent;
    text-align: center;
}

.header-section { 
    text-align: center; 
    margin-bottom: 40px; 
}

.main-icon { 
    color: #e74c3c; 
    font-size: 45px; 
    margin-bottom: 15px; 
}

/* شبكة الأخبار: 3 أعمدة في اللابتوب */
.news-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

/* تنسيق البطاقة */
.news-card { 
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    transition: all 0.3s ease; 
    text-decoration: none; 
    color: inherit; 
    display: flex;
    flex-direction: column;
    border: 1px solid #eee; 
}

.news-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.image-wrapper {
    width: 100%;
    height: 180px; 
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.news-card:hover img { 
    transform: scale(1.05); 
}

.card-body { 
    padding: 20px; 
    text-align: left; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.date { 
    color: #e74c3c; 
    font-size: 0.85rem; 
    margin-bottom: 10px; 
    display: block; 
    font-weight: 600;
}

.card-body h3 { 
    margin: 0 0 10px 0; 
    font-size: 1.15rem; 
    color: #333; 
    line-height: 1.4; 
}

.card-body p { 
    color: #777; 
    font-size: 0.9rem; 
    line-height: 1.6; 
    margin: 0; 
}

/* 📱 تنسيق الجوال */
@media (max-width: 850px) {
    .news-grid { 
        grid-template-columns: 1fr; 
        max-width: 400px; 
        margin: 0 auto 40px auto; 
    }
    .card-body h3 { font-size: 1rem; }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #25D366;
  color: white;
  font-size: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.whatsapp-float:hover {
  background-color: #1ebe57;
  transform: scale(1.1);
}