/* ══════════════════════════════════════════════════
   BLOG LISTING PAGE — STANDALONE STYLESHEET
   Brand tokens mirror privacy-policy.css / verisafe.
   Nav = shared custom-nav-v3.css (loaded after this).
   Footer = shared custom-footer-v2.css.
   ══════════════════════════════════════════════════ */

/* ── FONT FACE ────────────────────────────── */
@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/CenturyGothic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Century Gothic';
  src: url('../fonts/CenturyGothic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── RESET & BASE ──────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --navy: rgba(15, 26, 12, 1);
  --green: rgba(68, 214, 44, 1);
  --green-dark: #38b824;
  --dark-text: rgba(26, 31, 23, 1);
  --muted: rgba(107, 127, 101, 1);
  --border: #E2E8F4;
  --cream: #F9F6EF;
  --card-border: rgba(15, 26, 12, 0.10);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
}

body {
  /*
   * MUST be explicit. hello-elementor's reset.css sets
   * `-webkit-font-smoothing: antialiased` on body, which renders Century Gothic
   * visibly THINNER than VERISafe at the identical family/size/weight.
   * VERISafe never hits this because its template dequeues the theme stylesheets;
   * the blog templates deliberately can't (block content needs wp-block-library),
   * so the reset has to be undone here instead. See CLAUDE.md — this is the #1
   * cause of "same font, looks different".
   */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
  background: var(--bg);
  color: var(--navy);
  overflow-x: hidden;
  font-size: 17px;
  font-weight: 500;
}

/* NAV: fully styled by the shared custom-nav-v3.css (loaded after this
   file, same as VERISafe) — no nav rules here on purpose. */

/* ══════════════════════════════════════════════════
   HERO (green band: title + search)
   ══════════════════════════════════════════════════ */
.blog-hero {
  background: var(--green);
  padding: 72px 24px 96px;
  text-align: center;
  color: var(--navy);
}

.blog-hero h1 {
  font-size: clamp(48px, 10vw, 128px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -3px;
  color: var(--navy);
}

.blog-search-wrap {
  max-width: 560px;
  margin: 20px auto 0;
  text-align: left;
}

.blog-search-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--navy);
  margin-bottom: 8px;
}

.blog-search {
  position: relative;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 6px 10px 6px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blog-search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.blog-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  padding: 12px 12px;
  font-size: 14px;
  color: var(--navy);
}

.blog-search input::placeholder { color: var(--muted); }

/* Hide the browser's native (×) — replaced by .blog-search-clear */
.blog-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.blog-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin-left: 4px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(107, 124, 101, 1);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Anchor in the PHP template, <button> in the mirror — strip the link underline. */
.blog-search-clear { text-decoration: none; }

.blog-search-clear svg { width: 18px; height: 18px; }

.blog-search-clear[hidden] { display: none; }

.blog-search-clear:hover {
  background: rgba(107, 124, 101, 0.12);
}


/*
 * NAV COLOUR REPAIR — required only on these blog pages.
 *
 * The top-level dropdown parents ("Our Services", "About Us", "Help") are <a> with no
 * href. hello-elementor's reset.css carries
 *     a:not([href]):not([tabindex]) { color: inherit }
 * at specificity (0,2,1), which outranks custom-nav-v3.css's `.nav-links > li > a`
 * at (0,1,2) — so those three inherit body colour and render dark on the green bar.
 * Dropdown children have hrefs and stay white, which is what makes it look so odd.
 *
 * WHY THIS LIVES HERE AND NOT IN custom-nav-v3.css:
 * every other page using that nav dequeues the theme stylesheets, so reset.css never
 * reaches them — verified on /individual-background-checks/, which has the identical
 * hrefless markup and a correctly white nav. These blog templates are the only ones
 * that keep theme CSS (block content needs wp-block-library), so they are the only
 * ones that can hit this. Patching the shared file would put ~20 working pages
 * through a redeploy for no benefit.
 *
 * This is a repair of the shared nav's own intended value, not a restyle — see
 * CLAUDE.md "don't re-style the nav in page CSS". Don't change the colour here.
 */
.nav-links > li > a:not([href]),
.nav-links > li > a:not([href]):not([tabindex]) {
  color: white;
}

/* ══════════════════════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════════════════════ */
.blog-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 52px 96px;
}

/* Header: 48px per landing-v2-font-upsize typography scale */
.blog-section-heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--navy);
  margin: 64px 0 32px;
}

/* ══════════════════════════════════════════════════
   CATEGORY TABS
   ══════════════════════════════════════════════════ */
.blog-tabs {
  display: flex;
  gap: 40px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 40px;
  overflow-x: auto;
  /* Must be explicit. Per spec, `overflow-x: auto` makes an unset `overflow-y`
     compute to `auto` too — and .blog-tab's deliberate `margin-bottom: -1px`
     (which laps the active underline over the container's border) leaves exactly
     1px of vertical overflow. That was enough to render a full vertical scrollbar
     beside the tabs. Horizontal scrolling on narrow screens still works. */
  overflow-y: hidden;
}

.blog-tab {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 2px 16px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

/* The PHP template renders tabs as <a> (real, crawlable, works with JS off);
   the local mirror renders <button>. These two lines make the anchor render
   identically — without them a link keeps its underline and inline baseline. */
.blog-tab {
  display: inline-block;
  text-decoration: none;
}

.blog-tab:hover { color: var(--navy); }

/* mouse clicks leave a default outline that reads as a second active
   underline — keep the ring for keyboard users only */
.blog-tab:focus { outline: none; }

.blog-tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.blog-tab.is-active {
  color: var(--navy);
  border-bottom-color: var(--green);
}

/* ══════════════════════════════════════════════════
   FEATURED POST (image | content)
   ══════════════════════════════════════════════════ */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-featured:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.blog-featured-media {
  min-height: 356px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.blog-featured-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}

.blog-featured-badge {
  align-self: flex-start;
  background: rgba(68, 214, 44, 0.16);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
}

.blog-featured-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--navy);
}

.blog-featured-excerpt {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════
   ARTICLE CARDS (3-col grid)
   ══════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--cream);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.blog-card-media {
  height: 280px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
}

/* Real thumbnails render as <img> (so the Media Library alt text survives) while the
   gradient stand-ins stay background-only. Absolute fill is what makes an <img> behave
   like the background did — height:100% alone doesn't resolve against a min-height
   parent in the featured/pick grids. */
.blog-card-media img,
.blog-featured-media img,
.blog-pick-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Clip, so an image can never spill past its media window onto the card title.
   The gradient placeholders masked this class of bug for months — they are
   backgrounds, so there was nothing to overflow. */
.blog-card-media,
.blog-featured-media,
.blog-pick-media { overflow: hidden; }

/* Default image (Verity logo) for posts with no featured image: shown whole on a
   light panel, never cropped like a photo. */
.blog-card-media.is-default,
.blog-featured-media.is-default,
.blog-pick-media.is-default { background: var(--cream); }
.blog-card-media.is-default img,
.blog-featured-media.is-default img,
.blog-pick-media.is-default img {
  object-fit: contain;
  padding: 12%;
  box-sizing: border-box;
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.blog-card-category {
  display: block;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-card-title {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--navy);
}

.blog-card-excerpt {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════ */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 48px 0 16px;
}

.blog-page-btn {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-page-btn:hover:not(:disabled):not(.is-active) { background: var(--cream); }

.blog-page-btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--navy);
}

.blog-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.blog-page-arrow svg { width: 16px; height: 16px; }

.blog-page-ellipsis { color: var(--muted); }

/* ── paginate_links() output ──────────────────────
   WordPress emits .page-numbers / .current / .dots and its own <a>/<span> mix.
   Aliased onto the .blog-page-btn design here rather than string-rewriting the
   markup in PHP. The mirror keeps the hand-written .blog-page-btn buttons. */
.blog-pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-pagination a.page-numbers:hover { background: var(--cream); }

.blog-pagination .page-numbers.current {
  background: var(--green);
  border-color: var(--green);
  color: var(--navy);
}

/* Ellipsis is a bare marker, not a button */
.blog-pagination .page-numbers.dots {
  border: none;
  background: none;
  color: var(--muted);
  min-width: 0;
}

.blog-pagination .page-numbers svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════
   EDITOR'S PICKS (2 wide cards: image | content)
   ══════════════════════════════════════════════════ */
.blog-editors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.blog-pick {
  display: grid;
  grid-template-columns: 190px 1fr;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-pick:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.blog-pick-media {
  min-height: 240px;
  position: relative;
  background-size: cover;
  background-position: center;
}

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

.blog-pick-title {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--navy);
}

.blog-pick-excerpt {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════
   NO RESULTS STATE (mirrors privacy-policy empty state)
   ══════════════════════════════════════════════════ */
.blog-empty {
  text-align: center;
  padding: 48px 24px 40px;
}

.blog-empty-icon {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(68, 214, 44, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
}

.blog-empty-icon svg { width: 40px; height: 40px; }

.blog-empty-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--navy);
  margin-bottom: 10px;
}

.blog-empty-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
}

.blog-related-lead {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 24px 0 32px;
}

/* ══════════════════════════════════════════════════
   IMAGE PLACEHOLDERS
   Stand-ins for the Figma photos — swap each media-*
   class for a real background-image when marketing
   supplies assets (drop files in assets/images/).
   ══════════════════════════════════════════════════ */
.media-handshake { background: linear-gradient(135deg, #9fb4c7 0%, #5b7185 60%, #37474f 100%); }
.media-degree    { background: linear-gradient(135deg, #f2a541 0%, #e07b39 70%, #b23a48 100%); }
.media-phone     { background: linear-gradient(135deg, #7fb5d5 0%, #4b86ad 100%); }
.media-signing   { background: linear-gradient(135deg, #d9c8b4 0%, #a98f72 100%); }
.media-meeting   { background: linear-gradient(135deg, #8d99ae 0%, #55606f 100%); }
.media-tech      { background: linear-gradient(135deg, #16324f 0%, #2f9e8f 100%); }
.media-plants    { background: linear-gradient(135deg, #3a5a40 0%, #6a994e 100%); }
.media-navy      { background: linear-gradient(135deg, #1d2d50 0%, #133b5c 100%); }
.media-beige     { background: linear-gradient(135deg, #f4e9cd 0%, #e3cf8b 100%); }

/* ══════════════════════════════════════════════════
   RESPONSIVE (project breakpoints: 992 / 768 / 576)
   ══════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .blog-main { padding: 40px 32px 80px; }

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

  .blog-editors-grid { grid-template-columns: 1fr; }

}

@media (max-width: 768px) {
  .blog-featured { grid-template-columns: 1fr; }

  .blog-featured-media { min-height: 240px; }

  .blog-featured-body { padding: 32px 28px; }


  .blog-tabs { gap: 24px; }

}

@media (max-width: 576px) {
  .blog-main { padding: 32px 20px 64px; }

  .blog-hero { padding: 56px 20px 80px; }

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

  .blog-pick { grid-template-columns: 1fr; }

  .blog-pick-media { min-height: 180px; }


  .blog-search input { font-size: 16px; }

}

/* ══════════════════════════════════════════════════
   TYPOGRAPHY SCALE — mirrors VERISafe
   (verisafe-v2-font-upsize.css, the page loaded by
   verisafe-v3-font-upsize.html). Breakpoints and
   values are VERISafe's, not the layout breakpoints
   above, so text renders the same size as VERISafe
   at every viewport width. Roles:
     Display h1   = .hero h1
     Heading      = .vs-*-heading
     Subheader    = .hero-sub
     Body/desc    = .vs-*-desc
     Card title   = .vs-feature-item strong
     Card h3      = .vs-pain-card h3
     Card body    = .vs-*-card p
     Small label  = .vs-pkg-label
     Footnote     = .pricing-popular
   ══════════════════════════════════════════════════ */

/* ── Display h1: VERISafe's mid-range step ── */
@media (min-width: 961px) and (max-width: 1492px) {
  .blog-hero h1 { font-size: clamp(64px, 6.2vw, 92px); }
}

/* ── Tablet / mobile ── */
@media (max-width: 960px) {
  .blog-hero h1 { font-size: clamp(28px, 8vw, 56px); }

  .blog-section-heading { font-size: clamp(26px, 6vw, 36px); }
}

@media (max-width: 768px) {
  .blog-featured-title { font-size: 24px; }

  .blog-featured-excerpt,
  .blog-empty-text,
  .blog-related-lead { font-size: 15px; }
}

@media (max-width: 480px) {
  .blog-featured-title { font-size: 22px; }
}

/* ── Full HD ── */
@media (min-width: 1920px) {
  body { font-size: 19px; }

  .blog-section-heading { font-size: 64px; }

  .blog-featured-title { font-size: 36px; }

  .blog-featured-excerpt,
  .blog-empty-text,
  .blog-related-lead { font-size: 22px; }

  .blog-card-title,
  .blog-pick-title { font-size: 20px; }

  .blog-empty-title { font-size: 22px; }

  .blog-card-excerpt,
  .blog-pick-excerpt { font-size: 17px; }

  .blog-tab { font-size: 14px; }

  .blog-search-label,
  .blog-card-category,
  .blog-featured-badge { font-size: 13px; }

  .blog-search input { font-size: 16px; }
  .blog-page-btn { font-size: 17px; }
}

/* ── 1440p / 2K ── */
@media (min-width: 2560px) {
  body { font-size: 21px; }

  .blog-section-heading { font-size: 78px; }

  .blog-featured-title { font-size: 42px; }

  .blog-featured-excerpt,
  .blog-empty-text,
  .blog-related-lead { font-size: 26px; }

  .blog-card-title,
  .blog-pick-title { font-size: 24px; }

  .blog-empty-title { font-size: 26px; }

  .blog-card-excerpt,
  .blog-pick-excerpt { font-size: 20px; }

  .blog-tab { font-size: 15px; }

  .blog-search-label,
  .blog-card-category,
  .blog-featured-badge { font-size: 15px; }

  .blog-search input { font-size: 18px; }
  .blog-page-btn { font-size: 19px; }
}

/* ── 4K ── */
@media (min-width: 3840px) {
  body { font-size: 24px; }

  .blog-section-heading { font-size: 112px; }

  .blog-featured-title { font-size: 58px; }

  .blog-featured-excerpt,
  .blog-empty-text,
  .blog-related-lead { font-size: 34px; }

  .blog-card-title,
  .blog-pick-title { font-size: 30px; }

  .blog-empty-title { font-size: 34px; }

  .blog-card-excerpt,
  .blog-pick-excerpt { font-size: 26px; }

  .blog-tab { font-size: 18px; }

  .blog-search-label,
  .blog-card-category,
  .blog-featured-badge { font-size: 18px; }

  .blog-search input { font-size: 22px; }
  .blog-page-btn { font-size: 24px; }
}
