/* ===============================
   BLOG – FINAL CLEAN CSS
================================ */
*{box-sizing:border-box;margin:0;padding:0}
html,body{width:100%;overflow-x:hidden}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:#0a0f1a;
  color:#fff;
}

/* WRAP */
.app-wrap{
  max-width:1100px;
  margin:0 auto;
  padding:14px 12px 40px;
}

/* HEADER */
.blog-top{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  margin-bottom:14px;
  background:rgba(12,15,24,.92);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.1);
}
.blog-brand{
  font-weight:900;
  font-size:16px;
}
.blog-brand span{
  font-size:12px;
  margin-left:6px;
  padding:2px 8px;
  border-radius:999px;
  background:#2563eb;
}
.blog-spacer{flex:1}
.blog-home{
  padding:6px 12px;
  font-size:13px;
  border-radius:999px;
  background:#2563eb;
  color:#fff;
  text-decoration:none;
}

/* TITLES */
.blog-title{
  font-size:22px;
  margin-bottom:4px;
}
.blog-sub{
  font-size:13px;
  color:#9ca3af;
  margin-bottom:14px;
}

/* CARD */
.blog-card{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:14px;
  margin-bottom:12px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
}

/* IMAGE FIX (IMPORTANT) */
.blog-thumb{
  flex:0 0 110px;
  max-width:110px;
}
.blog-thumb img{
  width:110px;
  height:80px;
  object-fit:cover;
  border-radius:12px;
  display:block;
}

/* CONTENT */
.blog-info h2{
  font-size:16px;
  margin-bottom:4px;
}
.blog-info h2 a{
  color:#fff;
  text-decoration:none;
}
.blog-info h2 a:hover{text-decoration:underline}
.blog-info p{
  font-size:13px;
  color:#cbd5e1;
  margin-bottom:6px;
}
.blog-date{
  font-size:12px;
  color:#9ca3af;
}

/* MOBILE */
@media(max-width:600px){
  .blog-card{flex-direction:column}
  .blog-thumb{
    max-width:100%;
    width:100%;
  }
  .blog-thumb img{
    width:100%;
    height:180px;
  }
}

/* PAGINATION */
.blog-pagination{
  display:flex;
  justify-content:center;
  gap:10px;
  margin:18px 0;
}
.blog-pagination a,
.blog-pagination span{
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  text-decoration:none;
}
.blog-pagination span{
  background:#2563eb;
}

/* FOOTER */
.blog-footer{
  margin-top:20px;
  text-align:center;
  font-size:12px;
  color:#9ca3af;
}
.blog-footer a{
  color:#9ca3af;
}
/* ===== SINGLE POST ===== */
.post-card{
  padding:18px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  margin-bottom:20px;
}

.post-title{
  font-size:26px;
  line-height:1.25;
  margin-bottom:8px;
}

.post-meta{
  font-size:13px;
  color:#9ca3af;
  margin-bottom:14px;
}

.post-hero img{
  width:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:16px;
  margin-bottom:18px;
}

/* CONTENT */
.post-body{
  font-size:15px;
  color:#e5e7eb;
  line-height:1.8;
}
.post-body h2{font-size:20px;margin:24px 0 10px}
.post-body h3{font-size:17px;margin:18px 0 8px}
.post-body p{margin:12px 0}
.post-body ul{margin:12px 0 12px 20px}
.post-body li{margin:6px 0}
.post-body img{
  max-width:100%;
  border-radius:12px;
  margin:12px 0;
}

/* TAGS */
.post-tags{
  margin-top:18px;
}
.post-tags a{
  display:inline-block;
  margin:4px 6px 0 0;
  padding:6px 10px;
  font-size:12px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  text-decoration:none;
}

/* RELATED */
.related{
  margin-top:34px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
}

.related h2{
  font-size:20px;
  margin:0 0 12px;
}

.related-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:12px;
}
.related-card{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:10px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  text-decoration:none;
  color:#fff;
}
.related-card img{
  width:100%;
  height:120px;
  object-fit:cover;
  border-radius:10px;
}
.related-card span{
  font-size:13px;
}

/* MOBILE */
@media(max-width:600px){
  .post-title{font-size:22px}
}
.blog-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  background:#0f172a;
  color:#fff;
  border-radius:10px;
}

/* Right side container */
.blog-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.blog-brand{
  font-weight:700;
  font-size:16px;
  white-space:nowrap;
}

.blog-nav{
  display:flex;
  gap:10px;
}

.blog-home{
  color:#e5e7eb;
  text-decoration:none;
  font-size:14px;
  padding:4px 8px;
  border-radius:6px;
}

.blog-home:hover{
  background:rgba(255,255,255,.12);
}

/* Search */
.blog-search{
  display:flex;
  gap:6px;
}

.blog-search input{
  width:180px;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid #d1d5db;
  font-size:14px;
}

.blog-search button{
  padding:8px 12px;
  border:none;
  border-radius:8px;
  background:#2563eb;
  color:#fff;
  cursor:pointer;
}

.blog-search button:hover{
  background:#1d4ed8;
}

/* Mobile */
@media (max-width:640px){
  .blog-top{
    flex-direction:column;
    align-items:flex-start;
  }

  .blog-actions{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }

  .blog-nav{
    justify-content:flex-end;
  }

  .blog-search input{
    width:100%;
  }
}
