/* ============================================================
   ADM Blog — listing, article layout, sidebar, CTA
   Article typography lives in article.css.
   Grid: 3 columns desktop · 2 tablet · 1 mobile.
   ============================================================ */


/* ============================================================
   Listing
   ============================================================ */
.blog-listing {
  background: #fbf7f1;
  padding: 80px 0 96px;
}

/* Category filter row */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.blog-filter {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #4b5a68;
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 30px;
  padding: 9px 20px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.blog-filter:hover {
  border-color: #2f6fb0;
  color: #2f6fb0;
}

.blog-filter.is-active {
  background: #14294a;
  border-color: #14294a;
  color: #fff;
}

.blog-filter__count {
  font-size: 11px;
  opacity: 0.65;
  margin-left: 5px;
}

/* ── Grid ───────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ece7df;
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
}

.blog-card:hover {
  box-shadow: 0 12px 40px -10px rgba(20, 41, 74, 0.14);
  transform: translateY(-3px);
}

.blog-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f4;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.05);
}

.blog-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: 'Work Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #14294a;
  background: rgba(255, 255, 255, 0.94);
  padding: 6px 12px;
  border-radius: 20px;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 26px 26px 28px;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Work Sans', sans-serif;
  font-size: 12.5px;
  color: #7f93aa;
}

.blog-card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c0cbd8;
  display: inline-block;
}

.blog-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  line-height: 1.32;
  font-weight: 600;
  color: #14294a;
  margin: 0;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s;
}

.blog-card__title a:hover { color: #2f6fb0; }

.blog-card__excerpt {
  font-size: 14.5px;
  line-height: 1.7;
  color: #4b5a68;
  margin: 0;
}

.blog-card__link {
  margin-top: auto;
  padding-top: 6px;
  font-family: 'Work Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #2f6fb0;
  text-decoration: none;
  transition: color 0.16s, gap 0.16s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card__link:hover { color: #1c4c80; gap: 10px; }

.blog-empty {
  display: none;
  text-align: center;
  padding: 60px 0;
  font-size: 16px;
  color: #4b5a68;
}

.blog-empty.is-visible { display: block; }


/* ── Pagination ─────────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 52px;
}

.blog-pagination .page-numbers {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #4b5a68;
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.blog-pagination .page-numbers:hover {
  border-color: #2f6fb0;
  color: #2f6fb0;
}

.blog-pagination .page-numbers.current {
  background: #14294a;
  border-color: #14294a;
  color: #fff;
}

.blog-pagination .page-numbers.dots {
  background: none;
  border-color: transparent;
}


/* ============================================================
   Article layout
   ============================================================ */
.blog-article {
  background: #fbf7f1;
  padding: 72px 0 90px;
}

.blog-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px;
  align-items: start;
}

.blog-article__layout--wide {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
  margin: 0 auto;
}

.blog-article__main { min-width: 0; }

.blog-article__hero {
  border-radius: 20px;
  overflow: hidden;
  margin: 0 0 32px;
  border: 1px solid #ece7df;
}

.blog-article__hero img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 26px;
  margin-bottom: 32px;
  border-bottom: 1px solid #e7e0d3;
  font-family: 'Work Sans', sans-serif;
  font-size: 13.5px;
  color: #4b5a68;
}

.blog-article__category {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #2f6fb0;
  background: #eef5fc;
  padding: 6px 12px;
  border-radius: 20px;
}

.blog-article__author { font-weight: 600; color: #14294a; }

.blog-article__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c0cbd8;
  display: inline-block;
}


/* ── Tags ───────────────────────────────────────────────────── */
.blog-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.blog-tags__label {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #7f93aa;
  margin-right: 4px;
}

.blog-tags__tag {
  font-family: 'Work Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #4b5a68;
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 20px;
  padding: 6px 14px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.blog-tags__tag:hover {
  background: #14294a;
  border-color: #14294a;
  color: #fff;
}


/* ── Share ──────────────────────────────────────────────────── */
.blog-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid #e7e0d3;
}

.blog-share__label {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #7f93aa;
}

.blog-share__link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e7e0d3;
  background: #fff;
  color: #14294a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  cursor: pointer;
  padding: 0;
}

.blog-share__link:hover {
  background: #14294a;
  border-color: #14294a;
  color: #fff;
}


/* ============================================================
   Sidebar
   ============================================================ */
.blog-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.blog-widget {
  background: #fff;
  border: 1px solid #ece7df;
  border-radius: 18px;
  padding: 26px 24px;
}

.blog-widget__heading {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #2f6fb0;
  display: block;
  margin-bottom: 18px;
}

.blog-widget__author-name {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  color: #14294a;
  line-height: 1.3;
  margin: 0 0 6px;
}

.blog-widget__author-role {
  font-size: 13.5px;
  color: #7f93aa;
  line-height: 1.6;
  margin: 0;
}

.blog-widget__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-widget__item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  text-decoration: none;
}

.blog-widget__thumb {
  width: 62px;
  height: 62px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-widget__item-title {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #14294a;
  margin: 0 0 4px;
  transition: color 0.16s;
}

.blog-widget__item:hover .blog-widget__item-title { color: #2f6fb0; }

.blog-widget__item-date {
  display: block;
  font-size: 12px;
  color: #9aa9b8;
}

.blog-widget__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-widget__cat {
  font-family: 'Work Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #4b5a68;
  background: #fbf7f1;
  border: 1px solid #e7e0d3;
  border-radius: 20px;
  padding: 6px 14px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.blog-widget__cat:hover {
  background: #14294a;
  border-color: #14294a;
  color: #fff;
}

/* CTA widget */
.blog-widget--cta {
  background: #14294a;
  border-color: #14294a;
  text-align: center;
}

.blog-widget--cta .blog-widget__heading { color: #c9aa70; }

.blog-widget__cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  line-height: 1.28;
  margin: 0 0 10px;
}

.blog-widget__cta-text {
  font-size: 14px;
  line-height: 1.65;
  color: #a9bcd2;
  margin: 0 0 20px;
}

.blog-widget__cta-btn {
  display: block;
  background: #fff;
  color: #14294a;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s;
}

.blog-widget__cta-btn:hover { background: #e8f0fa; color: #14294a; }

.blog-widget__cta-phone {
  display: block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #9dc0e8;
  text-decoration: none;
}

.blog-widget__cta-phone:hover { color: #fff; }

/* Search */
.blog-search { display: flex; gap: 8px; }

.blog-search__input {
  flex: 1;
  min-width: 0;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: #24313f;
  background: #fbf7f1;
  border: 1px solid #e7e0d3;
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.18s;
}

.blog-search__input:focus { border-color: #2f6fb0; }

.blog-search__btn {
  flex-shrink: 0;
  width: 42px;
  border: 0;
  border-radius: 10px;
  background: #14294a;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.blog-search__btn:hover { background: #2f6fb0; }


/* ============================================================
   Related posts
   ============================================================ */
.blog-related {
  background: #fff;
  padding: 84px 0;
}

.blog-related__header {
  text-align: center;
  margin-bottom: 44px;
}

.blog-related__eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2f6fb0;
  display: block;
  margin-bottom: 12px;
}

.blog-related__heading {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  color: #14294a;
  line-height: 1.2;
  margin: 0;
}

.blog-related .blog-card { background: #fbf7f1; }


/* ============================================================
   Closing CTA — mirrors the site's .sp-cta-strip
   ============================================================ */
.adm-cta {
  background: #2f6fb0;
  padding: 72px 0;
  text-align: center;
}

.adm-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.adm-cta__eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: #c9aa70;
}

.adm-cta__title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  max-width: 580px;
  margin: 0;
}

.adm-cta__text {
  font-size: 16px;
  color: #cce3ff;
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}

.adm-cta__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}


/* ============================================================
   Responsive — 3 col · 2 col (tablet) · 1 col (mobile)
   ============================================================ */

/* Tablet — 2 columns */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media only screen and (max-width: 991px) {
  .blog-listing { padding: 60px 0 72px; }
  .blog-article { padding: 56px 0 72px; }

  .blog-article__layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .blog-sidebar { position: static; }

  .blog-related { padding: 64px 0; }
  .blog-related__heading { font-size: 30px; }
  .adm-cta { padding: 60px 0; }
  .adm-cta__title { font-size: 30px; }
}

/* Mobile — 1 column */
@media only screen and (max-width: 767px) {
  .blog-grid { grid-template-columns: 1fr; gap: 22px; }

  .blog-listing { padding: 48px 0 60px; }
  .blog-filters { margin-bottom: 34px; gap: 8px; }
  .blog-filter { font-size: 12.5px; padding: 8px 16px; }

  .blog-card__body { padding: 22px 22px 24px; }
  .blog-card__title { font-size: 20px; }

  .blog-article { padding: 44px 0 60px; }
  .blog-article__hero { border-radius: 16px; margin-bottom: 26px; }

  .blog-related { padding: 52px 0; }
  .blog-related__heading { font-size: 26px; }

  .adm-cta { padding: 52px 0; }
  .adm-cta__title { font-size: 26px; }
  .blog-pagination { margin-top: 40px; }
}

@media only screen and (max-width: 575px) {
  .blog-card__media { aspect-ratio: 16 / 9; }
  .blog-article__meta { font-size: 12.5px; gap: 8px; }
  .blog-widget { padding: 22px 20px; }
  .adm-cta__actions { width: 100%; flex-direction: column; }
  .adm-cta__actions a { width: 100%; }
}
