/* Blog + fallback templates. Loaded on top of page-about.css (shared header, footer, tokens). */

.im-blog-hero { min-height: 52vh; min-height: 52dvh; }
.im-blog-hero__inner { position: relative; z-index: 2; text-align: center; padding: 6rem 1.5rem 0; max-width: 60rem; }
.im-blog-hero__eyebrow {
  font-family: var(--font); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7); margin-bottom: .75rem;
}
.im-blog-hero .page-hero__title { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.1; }

/* Listing */
.im-blog-list { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--light); }
.im-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.im-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(10, 14, 26, .06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.im-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10, 14, 26, .12); }
.im-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark-2); }
.im-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.im-card:hover .im-card__media img { transform: scale(1.05); }
.im-card__placeholder {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--dark-2), var(--blue-deep));
}
.im-card__body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.im-card__meta { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .5rem; }
.im-card__title { font-family: var(--font); font-size: 1.3rem; font-weight: 600; line-height: 1.3; margin-bottom: .75rem; }
.im-card__title a:hover { color: var(--blue-bright); }
.im-card__excerpt { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.25rem; }
.im-card__more { margin-top: auto; font-weight: 600; color: var(--blue-bright); font-size: .9rem; }
.im-card__more i { margin-left: .35rem; transition: transform .3s var(--ease); }
.im-card__more:hover i { transform: translateX(4px); }

.im-pagination { margin-top: 3rem; }
.im-pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.im-pagination .page-numbers {
  min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--text-dark); font-weight: 600;
}
.im-pagination .page-numbers.current,
.im-pagination .page-numbers:hover { background: var(--blue-bright); color: #fff; }
.im-empty { color: var(--text-muted); }

/* Single post / generic page */
.im-article { background: var(--light); padding: clamp(3rem, 7vw, 5.5rem) 1.5rem; }
.im-article__content { max-width: 46rem; margin: 0 auto; font-size: 1.05rem; color: var(--text-dark); }
.im-article__content > * + * { margin-top: 1.25rem; }
.im-article__content h2,
.im-article__content h3 { font-family: var(--font); font-weight: 600; line-height: 1.25; margin-top: 2.5rem; }
.im-article__content h2 { font-size: 1.8rem; }
.im-article__content h3 { font-size: 1.35rem; }
.im-article__content a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.im-article__content ul,
.im-article__content ol { padding-left: 1.4rem; }
.im-article__content ul { list-style: disc; }
.im-article__content img { border-radius: 16px; height: auto; }
.im-article__content blockquote {
  border-left: 3px solid var(--blue-bright); padding: .25rem 0 .25rem 1.25rem;
  font-family: var(--font); font-size: 1.25rem;
}
.im-article__nav {
  max-width: 46rem; margin: 3.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(10, 14, 26, .1);
  display: flex; justify-content: space-between; gap: 1rem; font-weight: 600;
}
.im-article__nav a:hover { color: var(--blue-bright); }
.im-404 .btn-blue { display: inline-flex; justify-content: center; color: #fff; }

@media (max-width: 991.98px) {
  .im-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .im-blog-grid { grid-template-columns: 1fr; }
  .im-blog-hero__inner { text-align: left; }
  .im-blog-hero .page-hero__title { text-align: left; padding: 0; }
  .im-article__nav { flex-direction: column; }
}
