/* =========================================================================
   TSD BLOG ARCHIVE — Additional CSS
   Paste into: WP Admin → Appearance → Customize → Additional CSS
   Covers: /blog/  ·  /category/*  ·  /tag/*  ·  all archive pages
   Site colors: --navy #0D1B4B  |  orange #F4521C  |  teal #00A99D
   ========================================================================= */

/* ── 1. HERO ──────────────────────────────────────────────────────────────── */
.ba-hero {
  background: linear-gradient(135deg, #0D1B4B 0%, #0d2d5e 55%, #0a3d52 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ba-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(0,169,157,.15) 0%, transparent 70%);
  pointer-events: none;
}
.ba-hero__inner {
  max-width: 740px;
  margin: 0 auto;
  position: relative;
}
.ba-hero__eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #00A99D;
  border: 1.5px solid rgba(0,169,157,.45); border-radius: 100px;
  padding: .3rem .9rem; margin-bottom: 1.2rem;
}
.ba-hero__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900; color: #fff;
  line-height: 1.15; letter-spacing: -.02em;
  margin: 0 0 1rem;
}
.ba-hero__sub {
  font-size: 1.05rem; color: rgba(255,255,255,.72);
  line-height: 1.7; margin: 0 0 1.6rem;
}
.ba-hero__stats {
  display: flex; gap: .8rem; justify-content: center;
  flex-wrap: wrap; font-size: .84rem;
  color: rgba(255,255,255,.5);
}
.ba-hero__stats span { white-space: nowrap; }

/* ── 2. FILTER BAR ────────────────────────────────────────────────────────── */
.ba-filter-bar {
  background: #fff;
  border-bottom: 1px solid #eaecf0;
  position: sticky; top: 0;
  z-index: 80;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.ba-filter-bar__inner {
  max-width: 1220px; margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex; gap: .45rem; flex-wrap: wrap;
  align-items: center;
}
.ba-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .85rem;
  font-size: .8rem; font-weight: 600;
  color: #4a5568;
  background: #f4f6f8;
  border: 1.5px solid transparent;
  border-radius: 100px;
  text-decoration: none;
  transition: all .18s ease;
  white-space: nowrap;
}
.ba-pill:hover {
  background: rgba(0,169,157,.08);
  border-color: rgba(0,169,157,.4);
  color: #00A99D;
}
.ba-pill--active {
  background: #0D1B4B;
  border-color: #0D1B4B;
  color: #fff;
}
.ba-pill--active:hover {
  background: #162454;
  border-color: #162454;
  color: #fff;
}
.ba-pill__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  font-size: .68rem; font-weight: 700; border-radius: 100px;
  background: #dde1e8; color: #4a5568;
}
.ba-pill--active .ba-pill__count {
  background: rgba(255,255,255,.22); color: #fff;
}

/* ── 3. FEATURED POST ─────────────────────────────────────────────────────── */
.ba-featured {
  background: #fff;
  padding: 3rem 1.5rem;
  border-bottom: 1px solid #eaecf0;
}
.ba-featured__inner {
  max-width: 1220px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 768px) {
  .ba-featured__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
.ba-featured__img-link {
  display: block; border-radius: 14px;
  overflow: hidden; text-decoration: none;
  box-shadow: 0 12px 40px rgba(13,27,75,.14);
}
.ba-featured__img {
  width: 100%; aspect-ratio: 16/9;
  background: var(--thumb-img, linear-gradient(135deg, #0D1B4B 0%, #00A99D 100%));
  background-size: cover; background-position: center;
  transition: transform .4s ease;
  display: flex; align-items: center; justify-content: center;
}
.ba-featured__img-link:hover .ba-featured__img { transform: scale(1.03); }
.ba-featured__no-img-label {
  font-size: 1.1rem; font-weight: 700;
  color: rgba(255,255,255,.5); letter-spacing: .1em;
  text-transform: uppercase;
}
.ba-featured__meta-top {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.ba-featured__badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #F4521C;
  background: rgba(244,82,28,.08); border: 1.5px solid rgba(244,82,28,.25);
  border-radius: 4px; padding: .2rem .6rem;
}
.ba-featured__cat {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #00A99D;
  background: rgba(0,169,157,.08); border: 1.5px solid rgba(0,169,157,.28);
  border-radius: 4px; padding: .2rem .6rem;
  text-decoration: none; transition: background .2s;
}
.ba-featured__cat:hover { background: rgba(0,169,157,.18); color: #00A99D; }
.ba-featured__title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800; color: #0D1B4B;
  line-height: 1.22; letter-spacing: -.015em;
  margin: 0 0 1rem;
}
.ba-featured__title a {
  color: #0D1B4B; text-decoration: none;
  transition: color .18s;
}
.ba-featured__title a:hover { color: #00A99D; }
.ba-featured__excerpt {
  font-size: 1rem; color: #4a5568;
  line-height: 1.7; margin: 0 0 1.4rem;
}
.ba-featured__meta {
  display: flex; align-items: center; gap: .5rem;
  flex-wrap: wrap; font-size: .83rem; color: #718096;
  margin-bottom: 1.6rem;
}
.ba-featured__avatar {
  width: 30px; height: 30px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid #eaecf0;
}
.ba-featured__author { font-weight: 600; color: #2d3748; }
.ba-featured__sep { color: #d1d9e0; }
.ba-featured__cta {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.5rem;
  background: #F4521C; color: #fff;
  font-size: .9rem; font-weight: 700;
  border-radius: 8px; text-decoration: none;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(244,82,28,.3);
}
.ba-featured__cta:hover {
  background: #d9440f; color: #fff;
  transform: translateY(-1px);
}

/* ── 4. GRID SECTION ──────────────────────────────────────────────────────── */
.ba-grid-section {
  background: #f7f9fc;
  padding: 3rem 1.5rem 4rem;
}
.ba-grid-section__inner {
  max-width: 1220px; margin: 0 auto;
}
.ba-grid-section__heading {
  font-size: 1.3rem; font-weight: 800;
  color: #0D1B4B; margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eaecf0;
}

/* ── 5. POST CARDS ────────────────────────────────────────────────────────── */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 960px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ba-grid { grid-template-columns: 1fr; } }

.ba-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eaecf0;
  box-shadow: 0 2px 12px rgba(13,27,75,.06);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.ba-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,27,75,.13);
}
.ba-card__thumb-link {
  display: block; overflow: hidden;
  text-decoration: none;
}
.ba-card__thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--thumb-img, linear-gradient(135deg, #0D1B4B 0%, #0a5c57 100%));
  background-size: cover; background-position: center;
  transition: transform .35s ease;
  display: flex; align-items: center; justify-content: center;
}
.ba-card:hover .ba-card__thumb { transform: scale(1.04); }
.ba-card__no-img-cat {
  font-size: .82rem; font-weight: 700;
  color: rgba(255,255,255,.6);
  letter-spacing: .1em; text-transform: uppercase;
}
.ba-card__body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex; flex-direction: column;
  flex: 1;
}
.ba-card__cat {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #00A99D;
  text-decoration: none; margin-bottom: .6rem;
  transition: color .18s;
}
.ba-card__cat:hover { color: #0D1B4B; }
.ba-card__title {
  font-size: 1.05rem; font-weight: 800;
  color: #0D1B4B; line-height: 1.35;
  margin: 0 0 .65rem;
}
.ba-card__title a {
  color: #0D1B4B; text-decoration: none;
  transition: color .18s;
}
.ba-card__title a:hover { color: #00A99D; }
.ba-card__excerpt {
  font-size: .88rem; color: #718096;
  line-height: 1.65; margin: 0 0 1rem;
  flex: 1;
}
.ba-card__meta {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: #9aa5b8;
  margin-bottom: .85rem;
}
.ba-card__link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .82rem; font-weight: 700; color: #F4521C;
  text-decoration: none; letter-spacing: .01em;
  transition: gap .2s, color .2s;
  margin-top: auto;
}
.ba-card__link:hover { gap: .55rem; color: #0D1B4B; }

/* ── 6. PAGINATION ────────────────────────────────────────────────────────── */
.ba-pagination {
  display: flex; justify-content: center;
  margin: 3rem 0 0;
}
.ba-pagination ul {
  display: flex; list-style: none;
  padding: 0; margin: 0;
  gap: .35rem; flex-wrap: wrap;
}
.ba-pagination ul li { display: block; }
.ba-pagination ul li a,
.ba-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .9rem;
  border-radius: 8px; font-size: .85rem; font-weight: 600;
  text-decoration: none; transition: all .18s;
  color: #4a5568; background: #fff;
  border: 1.5px solid #e2e8f0;
}
.ba-pagination ul li a:hover {
  background: #0D1B4B; color: #fff;
  border-color: #0D1B4B;
}
.ba-pagination ul li span.current {
  background: #0D1B4B; color: #fff;
  border-color: #0D1B4B;
}

/* ── 7. EMPTY STATE ───────────────────────────────────────────────────────── */
.ba-empty {
  text-align: center; padding: 4rem 1.5rem;
}
.ba-empty__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.ba-empty h2 { color: #0D1B4B; font-size: 1.5rem; margin-bottom: .5rem; }
.ba-empty p  { color: #718096; margin-bottom: 1.5rem; }

/* ── 8. CTA STRIP ─────────────────────────────────────────────────────────── */
.ba-cta-strip {
  background: linear-gradient(120deg, #0D1B4B 0%, #0a2a5e 100%);
  padding: 3.5rem 1.5rem;
}
.ba-cta-strip__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  flex-wrap: wrap; justify-content: space-between;
}
.ba-cta-strip__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #00A99D;
  border: 1.5px solid rgba(0,169,157,.4); border-radius: 100px;
  padding: .3rem .9rem; white-space: nowrap;
  align-self: flex-start; margin-top: .1rem;
}
.ba-cta-strip__text { flex: 1; min-width: 200px; }
.ba-cta-strip__text h2 {
  font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 800;
  color: #fff; margin: 0 0 .3rem;
}
.ba-cta-strip__text p {
  font-size: .92rem; color: rgba(255,255,255,.7); margin: 0;
}

/* ── 9. BUTTONS ───────────────────────────────────────────────────────────── */
.ba-btn-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .75rem 1.65rem;
  background: #F4521C; color: #fff;
  font-size: .9rem; font-weight: 700;
  border-radius: 8px; text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(244,82,28,.3);
}
.ba-btn-primary:hover {
  background: #d9440f; color: #fff;
  transform: translateY(-2px);
}
.ba-btn-primary--lg {
  padding: .85rem 2rem; font-size: 1rem;
}
