/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #fff; color: #1e3a8a; line-height: 1.7; }
a { color: #1e3a8a; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; border-radius: 8px; }

/* Header */
header { background: #000; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; position: sticky; top: 0; z-index: 1000; }
header .logo a { color: #fff; font-size: 1.5rem; font-weight: bold; }
.main-menu { display: flex; gap: 20px; list-style: none; }
.main-menu li a { color: #fff; font-weight: 600; }
.menu-toggle { display: none; }

/* Footer */
footer { background: #000; color: #fff; text-align: center; padding: 20px 10px; margin-top: 40px; font-size: 14px; }
.footer-menu { display: flex; justify-content: center; gap: 20px; list-style: none; padding: 0; margin: 0 0 10px 0; }
.footer-menu li a { color: #fff; text-decoration: none; font-weight: 500; }
.footer-menu li a:hover { color: #facc15; }
.footer-credit { font-size: 12px; color: #ccc; }

/* Layout */
main { width: 90%; max-width: 1100px; margin: 30px auto; padding: 20px; }

/* شبكة المقالات الصفحة الرئيسية */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 20px 0; }
.post-box { background: #fff; border-radius: 12px; box-shadow: 0 3px 8px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; text-align: center; }
.post-box:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.post-thumb img { width: 100%; border-radius: 8px; display: block; }

/* صفحة المقال */
.single-post .post-thumbnail { max-width: 700px; margin: 30px auto; padding: 15px; border: 2px solid #ccc; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); background: #fff; text-align: center; overflow: hidden; }
.single-post .post-thumbnail img { width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 8px; }
.single-post .post-thumbnail h1 { margin-top: 15px; color: #1e3a8a; font-size: 2rem; }
.post-meta { font-size: 0.85rem; color: #777; margin-top: 10px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* أزرار المشاركة */
.post-share-circular { margin-top: 20px; display: flex; gap: 15px; justify-content: center; }
.post-share-circular .share-btn { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.3s, box-shadow 0.3s; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }
.share-btn:hover { transform: scale(1.2); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.share-btn svg { width: 20px; height: 20px; fill: #fff; }

/* روابط المقال السابق / التالي */
.post-navigation { display: flex; justify-content: space-between; margin-top: 30px; }
.post-navigation div a { background: #1e3a8a; color: #fff; padding: 8px 15px; border-radius: 8px; text-decoration: none; transition: 0.3s; }
.post-navigation div a:hover { background: #facc15; color: #000; }

/* Responsive */
@media screen and (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .single-post .post-thumbnail { max-width: 90%; padding: 10px; }
  .single-post .post-thumbnail h1 { font-size: 1.5rem; }
}
