/* ===== BLOG — Archive & Single Post ===== */
*,
:before,
:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden !important;
  font-size: clamp(12px, calc(12px + 4 * (100vw - 1366px) / 554), 16px);
  line-height: 1.4;
  color: var(--sw_black);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--sw_white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Georgia", serif;
  line-height: 1.2;
  font-weight: normal;
}

a {
  text-decoration: none;
  transition: color 0.2s;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

p:empty,
span:empty,
strong:empty,
ul:empty,
ol:empty,
li:empty,
a:empty {
  display: none;
}

.single-body ul+ul,
.single-body ul:has(+ ul),
.single-body ol+ol,
.single-body ol:has(+ ol) {
  margin-bottom: 0;
}

/* ================================================================
   ARCHIVE PAGE SHELL
   ================================================================ */

.archive-page {
  padding-bottom: 5rem;
}

/* ── Page intro: heading + filter pills ── */
.archive-intro {
  padding: 7rem 0 2.5rem;
}

.archive-intro h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  color: var(--sw_black);
  font-weight: normal;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  margin-top: 1.75rem;
}

/* ── Filter pills ── */
.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  height: 2.125rem;
  padding: 0 1.125rem;
  border-radius: 9999px;
  border: 0.0625rem solid #c8c8c8;
  font-size: 0.875rem;
  color: var(--sw_black);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--sw_black);
}

.filter-pill--active {
  background: var(--sw_black);
  color: #fff;
  border-color: var(--sw_black);
}

/* ================================================================
   BLOG GRID — 2-col featured row, then 3-col rows
   Uses a 6-column base grid with nth-child targeting
   ================================================================ */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 2rem;
  row-gap: 3.5rem;
  margin-top: 2.5rem;
}

/* First 2 cards: span 3 of 6 columns → 2-per-row */
.archive-grid .blog-card:nth-child(1),
.archive-grid .blog-card:nth-child(2) {
  grid-column: span 3;
}

/* Cards 3+: span 2 of 6 columns → 3-per-row */
.archive-grid .blog-card:nth-child(n + 3) {
  grid-column: span 2;
}

/* ── Individual card ── */
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.border_box {
  border: 1px solid;
  padding: 15px;
}

/* ── Card image ── */
.blog-img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e8eef3;
  flex-shrink: 0;
}

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

.blog-card:hover .blog-img-link img {
  transform: scale(1.03);
}

.blog-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d0dde8 0%, #b8cdd9 100%);
}

/* ── Card body ── */
.blog-body {
  padding: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Meta line: Author · Date · X min ── */
.blog-meta-line {
  font-size: 0.75rem;
  color: var(--sw_accent);
  letter-spacing: 0.01em;
}

.blog-meta-line .sep {
  margin: 0 0.3em;
}

/* ── Title ── */
.blog-body h3 {
  font-family: "Georgia", serif;
  font-size: clamp(1rem, 1.5vw, 1.375rem);
  color: var(--sw_black);
  font-weight: normal;
  line-height: 1.35;
  margin: 0.25rem 0 0.125rem;
}

/* Featured row titles slightly larger */
.archive-grid .blog-card:nth-child(1) .blog-body h3,
.archive-grid .blog-card:nth-child(2) .blog-body h3 {
  font-size: clamp(1.125rem, 1.8vw, 1.625rem);
}

.blog-body h3 a {
  color: inherit;
}

.blog-body h3 a:hover {
  color: var(--sw_primary);
}

/* ── Read more ── */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sw_primary);
  margin-top: 0.375rem;
}

.blog-read-more:hover {
  opacity: 0.8;
}

/* ── No posts ── */
.no-posts {
  padding: 5rem 0;
  text-align: center;
  color: var(--sw_accent);
}

/* ================================================================
   PAGINATION
   ================================================================ */

.archive-pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.archive-pagination ul {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-pagination ul li a,
.archive-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 0.0625rem solid var(--sw_accent-2);
  font-size: 0.875rem;
  color: var(--sw_black);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.archive-pagination ul li a:hover {
  border-color: var(--sw_black);
  background: var(--sw_black);
  color: #fff;
}

.archive-pagination ul li span.current {
  background: var(--sw_black);
  border-color: var(--sw_black);
  color: #fff;
}

.archive-pagination ul li .next,
.archive-pagination ul li .prev {
  border-color: var(--sw_accent-2);
  font-size: 1rem;
}

/* Blog header */

header#site-header {
  background-color: #004976df !important;
}

.border_box p {
  margin: 0 !important;
}

.border_box {
  margin-bottom: 15px;
}

.cta_button_div {
  display: flex;
  gap: 10px;
  justify-content: start;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (min-width: 1025px) {

  html:has(.single-post),
  body.single-post {
    overflow: unset !important;
  }
}

@media (max-width: 1024px) {

  html,
  body {
    font-size: 16px !important;
  }

  /* All cards go 2-col */
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-grid .blog-card:nth-child(1),
  .archive-grid .blog-card:nth-child(2),
  .archive-grid .blog-card:nth-child(n + 3) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .archive-intro {
    padding: 5.5rem 0 2rem;
  }

  /* All cards 1-col */
  .archive-grid {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }

  .archive-grid .blog-card:nth-child(1),
  .archive-grid .blog-card:nth-child(2),
  .archive-grid .blog-card:nth-child(n + 3) {
    grid-column: span 1;
  }
}

/* ================================================================
   SINGLE POST PAGE
   ================================================================ */

.single-page {
  padding-bottom: 5rem;
}

/* ── HERO: 2-col — left content | right image ── */
.single-hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgb(151 153 155 / 25%);
}

.single-hero-inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 3rem;
  align-items: center;
  min-height: 22rem;
}

.single-hero-inner--no-image {
  grid-template-columns: 1fr;
  max-width: 48rem;
}

.single-hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.single-meta-line {
  font-size: 1rem;;
  color: var(--sw_accent);
}

.single-meta-line .sep {
  margin: 0 0.3em;
  -webkit-text-stroke: 1.5px;
}

.single-category {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--sw_primary);
}

.single-hero-content h1 {
  font-family: "Georgia", serif;
  font-size: clamp(1.875rem, 3vw, 3rem);
  font-weight: normal;
  line-height: 1.18;
  color: var(--sw_black);
  margin: 0;
}

/* Share row */
.single-share {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.share-label {
  font-size: 1rem;
  color: var(--sw_accent);
  margin-right: 0.25rem;
}

.single-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  transition:
    background 0.2s,
    transform 0.2s;
  flex-shrink: 0;
}

.single-share a:hover {
  background: var(--sw_primary);
  transform: translateY(-0.125rem);
}

.single-share a svg {
  width: 0.9375rem;
  height: 0.9375rem;
  fill: #fff;
}

/* Hero image */
.single-hero-image {
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 4 / 3;
}

.single-hero-image img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  object-fit: contain;
  display: block;
}

.highlighted_box {
  background-color: #BDD0DC;
  padding: 1rem 1rem;
  margin: 0;
  font-style: italic;
}

.highlighted_box p {
  margin: 0 !important;
}

/* ── CONTENT + SIDEBAR layout ── */
.single-content-wrap {
  padding: 3.5rem 0 2rem;
}

.single-layout {
  display: grid;
  grid-template-columns: 1fr 20rem;
  gap: 4rem;
  align-items: start;
}

/* ── Article body ── */
.single-body {
  min-width: 0;
  font-size: 18px;
  /* line-height: 1.85; */
  color: var(--sw_black);
}

.single-body h2,
.single-body h3 {
  font-family: var(--sw_title);
  color: var(--sw_black);
  font-weight: normal;
  margin: 2.5rem 0 1rem;
  font-weight: normal !important;
}

.single-body h2 {
  font-size: 2.75rem !important;
}

.single-body h3 {
  font-size: 2rem !important;
}

.single-body h2 strong,
.single-body h3 strong {
  font-weight: normal;
}

.single-body p {
  margin-bottom: 1.5rem;
  font-size: inherit !important;
}

/* .single-body > p > strong {
  font-size: 1.5em;
} */

.single-body hr {
  margin: 3rem 0;
  opacity: 0.375;
}

/* .single-body hr:has(+h2),
.single-body hr:has(+h3) {
  margin-bottom: 3rem;
} */
.single-body ul,
.single-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: inherit !important;
}

.single-body ul li p,
.single-body ol li p {
  margin: 0;
}

.single-body li {
  margin-bottom: 0.5rem;
}

.single-body a {
  color: var(--sw_primary) !important;
  text-decoration: underline;
  font-weight: 600;
}

.single-body a:hover {
  color: rgb(0 73 118 / 62.5%) !important;
}

.single-body img {
  max-width: 100%;
  border-radius: 0.375rem;
  margin: 2rem auto;
  display: block;
  text-align: center;
}

.single-body blockquote {
  border-left: 0.25rem solid var(--sw_primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  color: var(--sw_accent);
  font-style: italic;
  background: #f5fafb;
  border-radius: 0 0.375rem 0.375rem 0;
  display: flow-root;
  clear: both;
  vertical-align: middle;
}

.single-body blockquote p {
  margin-bottom: 0 !important;
}

.single-body blockquote img {
  margin-block: 0 !important;
}

.single-body blockquote br {
  display: none;
}

/* ── Sidebar ── */
.single-sidebar {
  position: sticky;
  top: 8rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-heading {
  font-family: "Georgia", serif;
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--sw_black);
  margin-bottom: 1.25rem;
}

.sidebar-cards {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-card-img {
  display: block;
  overflow: hidden;
  border-radius: 0.25rem;
  aspect-ratio: 16 / 9;
  background: #e8eef3;
  flex-shrink: 0;
}

.sidebar-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.sidebar-card:hover .sidebar-card-img img {
  transform: scale(1.04);
}

.sidebar-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d0dde8, #b8cdd9);
}

.sidebar-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.sidebar-meta {
  font-size: 0.75rem;
  color: var(--sw_accent);
}

.sidebar-meta .sep {
  margin: 0 0.25em;
}

.sidebar-card-body h4 {
  font-family: "Georgia", serif;
  font-size: 1rem;
  font-weight: normal;
  color: var(--sw_black);
  line-height: 1.35;
}

.sidebar-card-body h4 a {
  color: inherit;
}

.sidebar-card-body h4 a:hover {
  color: var(--sw_primary);
}

.sidebar-read-more {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.0125em;
  text-transform: uppercase;
  color: var(--sw_primary);
  margin-top: 0.125rem;
}

.sidebar-read-more:hover {
  opacity: 0.75;
}

/* Ad slot */
.sidebar-ad {
  border-top: 0.0625rem solid var(--sw_accent-2);
  padding-top: 1.5rem;
}

.sidebar-ad-label {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  display: block;
  margin-bottom: 0.75rem;
}

.sidebar-ad-slot {
  min-height: 16rem;
  background: #f3f4f6;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.875rem;
}

/* ── RELATED ARTICLES ── */
.single-related {
  border-top: 1px solid rgb(151 153 155 / 25%);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}

.related-heading {
  font-family: "Georgia", serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: normal;
  color: var(--sw_black);
  margin-bottom: 2.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ── PREV / NEXT NAV ── */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgb(151 153 155 / 25%);
  margin-top: 1rem;
}

.post-nav a {
  color: var(--sw_primary);
  font-weight: 600;
  font-size: 1rem;;
  max-width: 45%;
}

.post-nav a:hover {
  text-decoration: underline;
}

a.website_button {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  background-color: #004976;
  color: #fff !important;
  text-decoration: none;
  border-radius: 100vmax;
  font-weight: 600;
  transition: opacity 0.2s ease;
  text-transform: uppercase;
}

a.website_button:hover {
  color: #fff !important;
  background-color: #004976cc;
}

.cta_box_button {
  border: 1px solid #00000040;
  border-radius: 25px;
  padding: 15px 30px;
  /* padding-right: 200px; */
}

.cta_box_button h3 {
  padding: 0;
  margin: 0;
  margin-bottom: 15px;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
}

.cta_box_button p {
  margin: 0;
}

.cta_box_button a.website_button {
  margin-top: 2rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .single-body {
    font-size: 1rem;
  }

  .single-layout {
    grid-template-columns: 1fr;
  }

  .single-body p {
    margin-bottom: 1.2rem;
  }

  .single-sidebar {
    position: static;
    border-top: 0.0625rem solid var(--sw_accent-2);
    padding-top: 2.5rem;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .single-body h2 {
    font-size: 2.25rem !important;
  }

  .single-body h3 {
    font-size: 1.5rem !important;
  }

  .single-body hr {
    margin: 2rem 0;
  }

  .single-body h2,
  .single-body h3 {
    margin: 2rem 0 1rem;
  }
}

@media (max-width: 768px) {

  .cta_box_button {
    padding: 5px 10px;
  }

  .cta_box_button h3 {
    margin-top: 10px;
    font-size: 1.4rem !important;
  }

  .cta_box_button a.website_button {
    margin-top: 0;
    font-size: 1rem;
    display: block;
  }

  .single-hero-inner {
    grid-template-columns: 1fr;
  }

  .single-hero-image {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  h2 br {
    display: none;
}
}

@media (max-width: 575px) {
  .single-body blockquote a:has(img) {
    display: flex;
    margin-bottom: 1.5rem;
  }

  .single-body h2 {
    font-size: 2rem !important;
  }

  .single-body h3 {
    font-size: 1.125rem !important;
  }
}

@media (max-width: 550px) {
  h2 {
    font-size: 28px !important;
  }

  .btn {
    font-size: 14px;
    font-weight: 400 !important;
    padding: 15px 25px;
    height: auto;
  }

  p {
    font-size: 16px !important;
  }

  h3 {
    font-size: 24px !important;
  }

  h4 {
    font-size: 24px !important;
  }

  .faq-question {
    font-size: 16px;
    padding-bottom: 0;
}
.main-hero {
    height: max-content;
    max-height: fit-content;
  }
}