/* =========================================================
   ABS Global — Blog pages (blog.html · blogview.html)
   Page-specific styles. Builds on assets/css/style.css
   (hero + breadcrumbs follow the services/about treatment)
   ========================================================= */

/* ---------- Page hero (dark artwork, crumbs + title) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52vh;
  overflow: hidden;
  padding: 88px 0 80px;
  background: #0c2540;
  color: #fff;
  text-align: center;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../img/blog/blog-hero.jpg') center / cover no-repeat;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 10, 20, .94) 0%, rgba(2, 10, 20, .8) 100%);
  opacity: .66;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 940px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero h1 {
  max-width: 860px;
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.05rem, 3.9vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: .002em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 6px 40px rgba(2, 12, 24, .35);
}
.page-hero__sub {
  max-width: 660px;
  margin: 18px 0 0;
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .75);
  text-wrap: pretty;
}

/* single-post hero */
.post-hero { min-height: 44vh; padding: 102px 0 90px; }
.post-hero h1 { max-width: 820px; font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.post-hero__cat {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.post-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, .78);
}
.post-hero__meta > span { display: inline-flex; align-items: center; gap: 7px; }
.post-hero__meta svg { width: 15px; height: 15px; color: rgba(255, 255, 255, .55); }
.post-hero__dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .42); }

/* ---------- Breadcrumbs (matches about/services hero) ---------- */
.crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .62);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .75);
  transition: color .2s;
}
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 13px; height: 13px; }
.crumbs__sep { color: rgba(255, 255, 255, .32); display: inline-flex; }
.crumbs [aria-current="page"] { color: #fff; font-weight: 600; }

/* ---------- Blog listing ---------- */
.blog-index { overflow: hidden; }
.blog-grid { display: grid; gap: 22px; }

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-200);
  box-shadow: 0 30px 54px -34px rgba(13, 35, 58, .45);
}
.post-card__media {
  display: block;
  flex-shrink: 0;
  height: 230px;
  overflow: hidden;
  background: var(--surface);
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transition: transform .6s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.8vw, 34px);
}
.post-card__kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.post-card__cat {
  padding: 5px 12px;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}
.post-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  color: var(--muted);
}
.post-card__meta svg { width: 15px; height: 15px; color: var(--brand); }
.post-card__title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--ink);
  transition: color .25s;
}
.post-card:hover .post-card__title { color: var(--brand); }
.post-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: .9rem;
  line-height: 1.72;
  color: var(--muted);
}
.post-card__more { margin-top: 2px; }
.post-card:hover .post-card__more svg { transform: translateX(4px); }

/* ---------- Single post ---------- */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 4vw, 54px);
  align-items: start;
}
.post-main { min-width: 0; }
.post-cover {
  margin: 0 0 clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.post-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 42%;
}

.post-content { max-width: 760px; }
.post-content h2 {
  margin: 2.1em 0 .6em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.42rem, 2.1vw, 1.72rem);
  line-height: 1.25;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.post-content h2:first-child { margin-top: 0; }
.post-content p {
  margin: 0 0 1.15rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--muted);
  text-wrap: pretty;
}
.post-content ul { margin: 0 0 1.35rem; }
.post-content li {
  position: relative;
  margin: 0 0 .6rem;
  padding-left: 30px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}
.post-content li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: .58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.post-content li strong { color: var(--ink-2); font-weight: 600; }
.post-back { margin-top: 14px; }
.post-back:hover svg { transform: translateX(-4px); }

/* ---------- Post sidebar ---------- */
.post-side { display: grid; gap: 20px; }
.side-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.side-card::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-200));
}
.side-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 22px 0;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.side-card__title::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.side-card__body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 16px 22px 22px;
}
.side-row { display: flex; align-items: flex-start; gap: 12px; }
.side-row__icon { margin-top: 2px; color: var(--brand); }
.side-row__icon svg { width: 17px; height: 17px; }
.side-row__label {
  display: block;
  margin-bottom: 1px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #93a6bb;
}
.side-row__value { display: block; font-size: .9rem; font-weight: 600; color: var(--ink-2); }

.side-post { display: flex; align-items: center; gap: 14px; }
.side-post__thumb {
  flex: 0 0 auto;
  width: 86px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.side-post__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.side-post__cat {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}
.side-post__title {
  display: block;
  margin: 3px 0 2px;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  transition: color .25s;
}
.side-post:hover .side-post__title { color: var(--brand); }
.side-post__date { display: block; font-size: .74rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (min-width: 880px) {
  .post-card { flex-direction: row; min-height: 300px; }
  .post-card__media { width: 42%; height: auto; }
  .post-card__body { flex: 1; justify-content: center; }
}
@media (min-width: 1024px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .post-side { position: sticky; top: calc(var(--header-h) + 26px); }
}
@media (max-width: 1023px) {
  .post-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 640px) {
  .page-hero { padding: 74px 0 66px; }
  .post-hero { padding: 88px 0 78px; }
  .page-hero__inner { width: calc(100% - 36px); }
  .post-card__media { height: 200px; }
  .post-content p,
  .post-content li { font-size: .98rem; }
}
