/* ======== الحاوية العامة ======== */
.posts-container{
  max-width:900px;
  margin:40px auto;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* ======== شريط التصنيفات ======== */
.categories-bar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-bottom:25px;
}

.categories-bar a{
  padding:8px 18px;
  border-radius:20px;
  background:#eee;
  color:#444;
  text-decoration:none;
  font-weight:700;
  transition:.3s;
}

.categories-bar a.active{
  background:var(--yellow);
  color:#000;
}

/* ========== الكرت الرئيس ======== */
.news-card{
  background:#fff;
  padding:18px 22px;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* ======== رأس الكرت (صورة + عنوان) ======== */
.news-header{
  display:flex;
  align-items:center;
  gap:14px;
}

.news-thumb img{
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:12px;
 
}

.news-title{
  font-size:22px;
  font-weight:800;
  color:#111;
  line-height:1.4;
}

/* ======== جدول البيانات ======== */
.news-table{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap:12px;
  align-items:center;
}

.news-cell{
  display:flex;
  align-items:center;
  gap:6px;
}

.label{
  color:#777;
  font-size:13px;
  font-weight:600;
}

.value{
  color:#222;
  font-size:15px;
  font-weight:700;
}

.type{
  background:#f1f1f1;
  padding:3px 10px;
  border-radius:8px;
  font-size:13px;
  font-weight:600;
}

/* ======== زر التفاصيل ======== */
.details-btn{
  padding:7px 16px;
  background:var(--mint);
  border-radius:16px;
  color:#000;
  font-weight:700;
  text-decoration:none;
  transition:.3s;
  white-space:nowrap;
}

.details-btn:hover{
  background:#000;
  color:#fff;
}

/* ======== استجابة الموبايل ======== */
@media(max-width:650px){
  .news-table{
    grid-template-columns: 1fr 1fr;
  }
  .news-title{
    font-size:18px;
  }
  .news-thumb img{
    width:50px;
    height:50px;
  }
}
