/* Articles page — reuses the post page header and the .post-card styles from style.css */
.blog-hero-inner { text-align: center; margin-inline: auto; }
.blog-hero-inner .eyebrow { color: var(--primary); }
.blog-main { padding-top: 40px; padding-bottom: 80px; }
.blog-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  padding: 7px 18px; border-radius: 20px; font: inherit; font-size: .92rem; cursor: pointer; transition: .25s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.blog-search { position: relative; min-width: 260px; }
.blog-search i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.blog-search input { width: 100%; padding: 10px 16px; padding-inline-start: 40px; border: 1px solid var(--line); border-radius: 24px; font: inherit; }
.blog-search input:focus { outline: none; border-color: var(--primary); }

.blog-grid .post-card { display: flex; flex-direction: column; border: 1px solid var(--line); color: inherit; }
.blog-grid .post-card .cover { aspect-ratio: 16 / 10; background: var(--light-bg); overflow: hidden; }
.blog-grid .post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-grid .post-card:hover .cover img { transform: scale(1.05); }
.blog-grid .post-card .cover.no-img { display: grid; place-items: center; color: var(--primary); font-size: 2.4rem; }
.blog-grid .post-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.blog-grid .post-card h3 { font-size: 1.2rem; line-height: 1.6; margin-bottom: 8px; }
.blog-grid .post-card p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-grid .post-card .link-arrow { margin-top: auto; }

/* loading placeholders */
.post-card.skeleton .cover, .post-card.skeleton .line { background: linear-gradient(90deg, #eef1f6 25%, #f7f8fb 50%, #eef1f6 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.post-card.skeleton .line { height: 14px; border-radius: 6px; margin-bottom: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.blog-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.blog-more { text-align: center; margin-top: 36px; }
.nav-links a.active { color: var(--primary) !important; }

/* "back to articles" on the single post page */
.back-to-blog { display: inline-flex; gap: 8px; align-items: center; color: var(--primary); font-weight: 600; margin-top: 40px; }

/* Service pages («أبدأ مسيرتك», …): cards reuse .service-card from style.css */
.solutions-grid .service-card { border: 1px solid var(--line); }
.soon-badge {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--light-bg); color: var(--muted); padding: 4px 14px; border-radius: 14px; font-size: .88rem; font-weight: 600;
}

/* Picture card: only the photo in a white frame; on hover/focus the photo darkens and
   the icon, title, text and link fade in over it. Touch screens (no hover) always show
   the text over a dark gradient so it stays readable. */
.photo-card {
  position: relative; background: var(--white); padding: 10px; border-radius: 14px;
  box-shadow: var(--shadow); aspect-ratio: 1 / 1; outline: none;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; transition: transform .6s var(--ease); }
.photo-overlay {
  position: absolute; inset: 10px; border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px 28px; color: var(--white);
  background: rgba(14, 24, 48, .78);
  opacity: 0; transition: opacity .4s var(--ease);
}
.photo-overlay > * { transform: translateY(14px); transition: transform .45s var(--ease); }
.photo-card:hover .photo-overlay, .photo-card:focus-within .photo-overlay, .photo-card:focus .photo-overlay { opacity: 1; }
.photo-card:hover .photo-overlay > *, .photo-card:focus-within .photo-overlay > *, .photo-card:focus .photo-overlay > * { transform: none; }
.photo-icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--white); font-size: 1.4rem; margin-bottom: 14px;
}
.photo-overlay h3 { color: var(--white); font-size: 1.45rem; margin: 0 0 8px; }
.photo-overlay p { color: rgba(255, 255, 255, .88); font-size: .98rem; line-height: 1.8; margin: 0 0 16px; max-width: 34ch; }
.photo-link { color: var(--white); font-weight: 600; border-bottom: 2px solid var(--primary); padding-bottom: 2px; }
.photo-link i { font-size: .8em; margin-inline-start: 6px; transition: transform .25s; }
.photo-link:hover i { transform: translateX(-4px); }
.photo-overlay .soon-badge { margin: 0; background: rgba(255, 255, 255, .14); color: var(--white); }

@media (hover: none) {
  .photo-overlay {
    opacity: 1; justify-content: flex-end; padding-bottom: 22px;
    background: linear-gradient(0deg, rgba(14, 24, 48, .92) 0%, rgba(14, 24, 48, .6) 55%, rgba(14, 24, 48, .1) 100%);
  }
  .photo-overlay > * { transform: none; }
  .photo-icon { width: 48px; height: 48px; font-size: 1.15rem; margin-bottom: 10px; }
}
