/* ── City Eye Center · Blog (public) ─────────────────────────────────── */
/* Inside an article (post page) the navbar is always white, so show the
   dark + blue-eye wordmark as-is — never filtered to a black silhouette. */
body.article-page .navbar .logo img { filter: none !important; }

.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #12305c 55%, var(--blue) 130%);
  color: #fff;
  padding: 150px 6vw 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(0,172,193,.25), transparent 55%);
  pointer-events: none;
}
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -.5px; }
.blog-hero p  { font-size: clamp(1rem, 2vw, 1.18rem); color: #b7c7dd; max-width: 640px; margin: 0 auto; line-height: 1.6; }

.blog-announce {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  color: #fff; text-align: center; padding: 11px 20px; font-weight: 600; font-size: .92rem;
}

/* ── Toolbar: search + categories ─────────────────────────────────────── */
.blog-wrap { max-width: 1180px; margin: 0 auto; padding: 44px 5vw 80px; }
.blog-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  margin-bottom: 34px;
}
.blog-search {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 240px; max-width: 420px;
  background: var(--off-white); border: 1.5px solid var(--gray-lt); border-radius: 40px; padding: 4px 6px 4px 16px;
}
.blog-search input { border: 0; background: none; outline: none; flex: 1; padding: 9px 0; font-size: .95rem; font-family: inherit; }
.blog-search button {
  border: 0; cursor: pointer; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; display: grid; place-items: center;
}
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-cat {
  border: 1.5px solid var(--gray-lt); background: #fff; color: var(--text-md);
  padding: 8px 16px; border-radius: 30px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.blog-cat:hover { border-color: var(--blue); color: var(--blue); }
.blog-cat.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Grid of post cards ───────────────────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
}
.post-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--card-shadow); border: 1px solid var(--gray-lt); transition: var(--transition); text-decoration: none; color: inherit;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); border-color: transparent; }
.post-card-img { aspect-ratio: 16/10; background: var(--gray-lt) center/cover no-repeat; position: relative; }
.post-card-img .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gray); opacity: .5; }
.post-card-cat {
  position: absolute; top: 12px; left: 12px; background: rgba(11,29,58,.82); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 20px; backdrop-filter: blur(4px); letter-spacing: .3px;
}
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 { font-size: 1.16rem; font-weight: 700; line-height: 1.35; margin: 0 0 9px; color: var(--navy); }
.post-card-body p  { font-size: .92rem; color: var(--text-md); line-height: 1.6; margin: 0 0 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--gray); margin-top: auto; }
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray); }
.post-card .readmore { color: var(--blue); font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; }

.featured-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--teal); font-weight: 700; font-size: .76rem; }

/* ── Pagination ──────────────────────────────────────────────────────── */
.blog-pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.blog-pager button {
  min-width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--gray-lt);
  background: #fff; color: var(--text-md); font-weight: 700; cursor: pointer; transition: var(--transition);
}
.blog-pager button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.blog-pager button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.blog-pager button:disabled { opacity: .4; cursor: not-allowed; }

.blog-empty { text-align: center; padding: 80px 20px; color: var(--gray); }
.blog-empty svg { opacity: .35; margin-bottom: 16px; }

.skeleton { background: linear-gradient(90deg,#eef2f8 25%,#e2e9f4 50%,#eef2f8 75%); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── Single post page ────────────────────────────────────────────────── */
.article { max-width: 800px; margin: 0 auto; padding: 130px 5vw 70px; }
.article-cover { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--card-shadow); }
.article-cat { color: var(--teal); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }
.article h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; line-height: 1.2; color: var(--navy); margin: 10px 0 16px; }
.article-meta { display: flex; align-items: center; gap: 12px; color: var(--gray); font-size: .9rem; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-lt); }
.article-body { font-size: 1.08rem; line-height: 1.85; color: var(--text); }
.article-body h2 { font-size: 1.6rem; color: var(--navy); margin: 36px 0 14px; }
.article-body h3 { font-size: 1.3rem; color: var(--navy); margin: 28px 0 12px; }
.article-body p  { margin: 0 0 20px; }
.article-body p.lead { font-size: 1.22rem; color: var(--navy); line-height: 1.6; font-weight: 500; margin-bottom: 26px; }
.article-body img { max-width: 100%; border-radius: 14px; margin: 22px 0; }
.article-body a  { color: var(--blue); text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-inline-start: 26px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { border-inline-start: 4px solid var(--teal); background: var(--off-white); margin: 24px 0; padding: 16px 22px; border-radius: 8px; color: var(--text-md); font-style: italic; }

.article-share { display: flex; align-items: center; gap: 10px; margin: 40px 0; padding: 18px 0; border-top: 1px solid var(--gray-lt); border-bottom: 1px solid var(--gray-lt); }
.article-share span { font-weight: 700; color: var(--text-md); font-size: .9rem; }
.article-share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--off-white); color: var(--navy); transition: var(--transition); }
.article-share a:hover { background: var(--navy); color: #fff; }

.related { max-width: 1180px; margin: 0 auto; padding: 0 5vw 80px; }
.related h2 { font-size: 1.6rem; color: var(--navy); margin-bottom: 24px; }

[dir=rtl] .post-card-cat { left: auto; right: 12px; }
[dir=rtl] .blog-search { padding: 4px 16px 4px 6px; }

@media (max-width: 600px) {
  .blog-hero { padding: 120px 6vw 50px; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-search { max-width: none; }
}
