/* =========================================================
   ISB Domestic Staff — blog listing and article pages
   (loaded after style.css; reuses its tokens and components)
   ========================================================= */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--blue); }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Listing hero ---------- */
.blog-hero { position: relative; overflow: hidden; padding: 60px 0 70px; background: linear-gradient(180deg, #f2f8ff 0%, #fff 100%); }
.blog-hero .container { position: relative; }
.blog-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 14px; }
.blog-hero__lead { max-width: 620px; font-size: 1.08rem; }

.blog-list { padding-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 500; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.chip.is-active { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s, box-shadow .35s, border-color .35s; }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: #bcd9ff; }
.post-card__img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--sky); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.post-card:hover .post-card__img img { transform: scale(1.08); }
.post-card__cat { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92); color: var(--navy-2); font-size: .72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .76rem; color: var(--muted); }
.post-card h2 { font-size: 1.12rem; font-weight: 700; margin: 8px 0 10px; line-height: 1.3; transition: color .3s; }
.post-card:hover h2 { color: var(--blue); }
.post-card p { font-size: .88rem; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--orange); }
.post-card__more .ic { transition: transform .25s; }
.post-card:hover .post-card__more .ic { transform: translateX(5px); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Article ---------- */
.post-hero { padding: 50px 0 40px; background: linear-gradient(180deg, #eef6ff, #fff); }
.post-hero__cat { display: inline-block; background: var(--sky); color: var(--blue); font-weight: 600; font-size: .78rem; padding: 6px 14px; border-radius: 999px; }
.post-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 14px; max-width: 900px; }
.post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.post-hero__meta .ic { color: var(--blue); }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 46px; align-items: start; padding-bottom: 40px; }
.post__cover { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 34px; aspect-ratio: 16/9; background: var(--sky); }
.post__cover img { width: 100%; height: 100%; object-fit: cover; }

.post__content { font-size: 1.03rem; line-height: 1.85; color: #334155; }
.post__content > * + * { margin-top: 1.1em; }
.post__content h2 { font-size: 1.6rem; font-weight: 700; margin-top: 1.9em; padding-left: 16px; border-left: 4px solid var(--orange); line-height: 1.3; }
.post__content h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.5em; }
.post__content a { color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.post__content ul, .post__content ol { padding-left: 1.3em; }
.post__content ul { list-style: none; padding-left: 0; }
.post__content ul li { position: relative; padding-left: 28px; margin-top: .5em; }
.post__content ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #ccfbf1; }
.post__content ol { list-style: decimal; }
.post__content ol li { margin-top: .5em; padding-left: 4px; }
.post__content strong { color: var(--ink); }
.post__content blockquote, .post__content .callout { background: linear-gradient(135deg, #eef6ff, #f0fdfa); border-left: 4px solid var(--blue); border-radius: 0 16px 16px 0; padding: 18px 22px; color: var(--ink); }
.post__content table { width: 100%; border-collapse: collapse; font-size: .94rem; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); display: block; overflow-x: auto; }
.post__content th { background: var(--navy-2); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; white-space: nowrap; }
.post__content td { padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.post__content tr:nth-child(even) td { background: #f8fbff; }
.post__content .faq h3 { font-size: 1.05rem; margin-top: 1.2em; }
.post__content .faq { background: var(--bg-soft); border-radius: 20px; padding: 6px 26px 24px; margin-top: 2em; }

.post-cta { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(110deg, #0b3d7a, #127fa8); color: #dbeafe; border-radius: 22px; padding: 30px 32px; box-shadow: var(--shadow-lg); }
.post-cta h2 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.post-cta p { max-width: 460px; font-size: .92rem; }
.post-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }

.post-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm); }
.side-box h3 { font-size: 1.1rem; margin-bottom: 14px; }
.side-box--cta { background: linear-gradient(160deg, #eef6ff, #fff); }
.side-box--cta .ticks { margin-bottom: 18px; }
.side-box--cta .btn { width: 100%; }
.side-box__phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-weight: 600; color: var(--navy-2); }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: block; padding: 10px 0; font-size: .92rem; color: var(--ink); transition: color .25s, padding .25s; }
.side-links a:hover { color: var(--blue); padding-left: 6px; }

.related { background: var(--bg-soft); }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-side { position: static; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post__content { font-size: .98rem; }
  .post__content h2 { font-size: 1.35rem; }
  .post-cta { padding: 24px 20px; }
  .post-cta__btns .btn { width: 100%; }
}
.post__content .lead { font-size: 1.15rem; color: var(--ink); }
