body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #f4f7f6; 
    margin: 0; 
    padding: 0; 
}

.news-container {
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

.header-section { 
    text-align: center; 
    margin-bottom: 40px; 
}

.main-icon { 
    color: #e74c3c; 
    font-size: 45px; 
    margin-bottom: 15px; 
}

.news-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

.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; 
    height: 100%;
}

.news-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.image-wrapper {
    width: 100%;
    height: 200px; 
    background-color: #f8f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* يمنع الزووم وقص أطراف الصورة ويعرضها كاملة بوضوح */
    transition: transform 0.3s ease; 
}

.news-card:hover img { 
    transform: scale(1.03); 
}

.card-body { 
    padding: 20px; 
    text-align: right; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.date { 
    color: #e74c3c; 
    font-size: 0.85rem; 
    margin-bottom: 10px; 
    display: block; 
}

.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 0 20px 0;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e74c3c;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: auto;
    transition: 0.2s;
}

.news-card:hover .read-more-btn {
    gap: 10px;
}

/* 📱 تنسيق الجوال والشاشات المتوسطة */
@media (max-width: 992px) {
    .news-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 600px) {
    .news-grid { 
        grid-template-columns: 1fr; 
        max-width: 400px; 
        margin: 0 auto; 
    }
    .news-container {
        margin: 20px auto; 
        padding: 10px;
    }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 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);
}