/* =========================================================
   ARGUS BLOG INDEX (home.php) - the posts page at /blog/.

   Enqueued only when is_home() is true, so none of this ships
   on the other 23 pages. Palette, buttons, badges and the
   section backgrounds come from the child theme (style.css +
   argus-components.css); only what those do not carry is
   defined here.

   WHY A TEMPLATE AND NOT PAGE CONTENT: /blog/ is page 7, set as
   page_for_posts. WordPress ignores a posts page's post_content
   entirely, which is why that page was empty and why the index
   had no H1 at all - GeneratePress fell through to index.php and
   rendered a bare list of post titles. The H1 has to come from a
   template, so this one supplies it.

   HEADING ORDER, deliberately: h1 page title -> h2 section
   headings -> h3 post titles. Post titles are h3 rather than h2
   because they sit inside the "Latest Articles" h2 section. One
   h1 on the page, no levels skipped.
========================================================= */

.argus-blog { overflow-x: hidden; }
.argus-blog .argus-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.argus-blog .argus-intro { max-width: 62rem; }
.argus-blog .argus-lead {
  font-size: 1.18rem; line-height: 1.75; font-weight: 600; color: var(--argus-navy);
}

/* --- hero ---
   No photograph here on purpose. This is an index: the three card
   images below are the visual interest, and a fourth competing
   photo behind the h1 flattened them. A gradient costs no bytes
   and leaves the LCP element as text, which paints immediately. */
.argus-blog-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--argus-navy);
  /* The band now holds one small pill: the headline is screen-reader-only
     and the standfirst was removed on client instruction. Padding is sized
     for the badge alone. */
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
}
.argus-blog-hero::before {
  content: ""; position: absolute; z-index: 0;
  top: -40%; left: 50%; transform: translateX(-50%);
  width: min(920px, 120%); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(234,180,61,.20) 0%, rgba(234,180,61,.06) 42%, transparent 68%);
  pointer-events: none;
}
.argus-blog-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(234,180,61,.45), transparent);
}
.argus-blog-hero__inner { position: relative; z-index: 2; max-width: 52rem; margin: 0 auto; }
.argus-blog-hero h1 {
  color: #fff; margin: 1rem 0 1.25rem;
  font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.12;
}

/* --- breadcrumbs --- */
.argus-blog-crumbs {
  list-style: none; display: flex; flex-wrap: wrap;
  margin: 0 0 1.75rem; padding: 0; font-size: .88rem; color: #6C779B;
}
.argus-blog-crumbs a { color: var(--argus-blue); text-decoration: none; }
.argus-blog-crumbs a:hover { text-decoration: underline; }
/* A CSS escape, not an HTML entity: content:'' cannot decode &rsaquo;. */
.argus-blog-crumbs li + li::before { content: "\203A"; margin-right: .6rem; color: #C3CAE4; }
.argus-blog-crumbs li + li { margin-left: .6rem; }

/* --- topic chips --- */
.argus-blog-topics {
  list-style: none; display: flex; flex-wrap: wrap; gap: .75rem;
  margin: 1.75rem 0 0; padding: 0;
}
.argus-blog-topics li { margin: 0; }
.argus-blog-topics a {
  display: block; padding: .6em 1.25em; text-decoration: none;
  background: #fff; border: 1px solid #E4E8F4;
  border-radius: var(--argus-radius-pill, 999px);
  font-size: .93rem; font-weight: 600; color: var(--argus-navy);
  transition: border-color .18s ease, color .18s ease;
}
.argus-blog-topics a:hover { border-color: var(--argus-blue); color: var(--argus-blue); }
.argus-blog-topics__count { color: #8A93B2; font-weight: 500; }

/* --- the post grid --- */
.argus-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin: 2.5rem 0 0; padding: 0; list-style: none;
}
@media (max-width: 1000px) { .argus-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px)  { .argus-blog-grid { grid-template-columns: 1fr; } }
.argus-blog-grid > li { min-width: 0; }

.argus-blog-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: var(--argus-radius-card, 12px);
  overflow: hidden; box-shadow: 0 10px 30px rgba(14,26,73,.07);
  border-top: 4px solid var(--argus-blue);
  transition: transform .18s ease, box-shadow .18s ease;
}
.argus-blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,26,73,.13); }

/* Fixed aspect ratio so three cards keep a straight top edge no matter what
   dimensions the featured images happen to be. */
.argus-blog-card__media { position: relative; line-height: 0; background: #E9EEFD; }
.argus-blog-card__media img {
  width: 100%; height: 100%; aspect-ratio: 16 / 10;
  object-fit: cover; display: block;
}
.argus-blog-card__cat {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(14,26,73,.92); color: #fff;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; padding: .45em 1em;
  border-radius: var(--argus-radius-pill, 999px);
  text-decoration: none; line-height: 1.4;
}
.argus-blog-card__cat:hover { background: var(--argus-blue); color: #fff; }

.argus-blog-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1.6rem 1.6rem 1.75rem; }
.argus-blog-card__date {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--argus-blue); font-weight: 700; margin: 0 0 .7rem;
}
.argus-blog-card__title { font-size: 1.12rem; line-height: 1.38; margin: 0 0 .75rem; }
.argus-blog-card__title a { color: var(--argus-navy); text-decoration: none; }
.argus-blog-card__title a:hover { color: var(--argus-blue); }
.argus-blog-card__excerpt {
  margin: 0 0 1.25rem; font-size: .95rem; line-height: 1.7; color: var(--argus-slate);
}
/* margin-top:auto pins the read link to the card floor so three cards of
   unequal copy length still line their links up. */
.argus-blog-card__more {
  margin-top: auto; align-self: flex-start;
  font-weight: 700; font-size: .95rem; color: var(--argus-navy); text-decoration: none;
  border-bottom: 2px solid var(--argus-gold); padding-bottom: 2px;
}
.argus-blog-card__more::after { content: " \2192"; color: var(--argus-blue); font-weight: 700; }
.argus-blog-card__more:hover { color: var(--argus-blue); border-bottom-color: var(--argus-blue); }

/* --- who writes these (E-E-A-T) --- */
.argus-blog-authority { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .argus-blog-authority { grid-template-columns: 1fr; gap: 2rem; } }
.argus-blog-authority > * { min-width: 0; }
.argus-blog-authority h2 { margin: 0 0 1.25rem; }
.argus-blog-authority p { font-size: 1.02rem; line-height: 1.8; }
.argus-blog-authority p:last-child { margin-bottom: 0; }
.argus-blog-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 0; }
@media (max-width: 520px) { .argus-blog-stats { grid-template-columns: 1fr; } }
.argus-blog-stat {
  background: #fff; border-radius: var(--argus-radius-card, 12px);
  padding: 1.5rem 1.4rem; box-shadow: 0 10px 30px rgba(14,26,73,.07);
  border-left: 4px solid var(--argus-gold); min-width: 0;
}
.argus-blog-stat__num {
  display: block; font-family: var(--argus-font-heading); font-weight: 800;
  font-size: 1.9rem; line-height: 1.1; color: var(--argus-navy); margin-bottom: .25rem;
}
.argus-blog-stat__label { font-size: .86rem; line-height: 1.5; color: var(--argus-slate); margin: 0; }

/* --- pagination (kicks in at 11+ posts) --- */
.argus-blog-nav { margin: 3rem 0 0; text-align: center; }
.argus-blog-nav .page-numbers {
  display: inline-block; min-width: 2.6rem; padding: .55rem .8rem; margin: 0 .2rem;
  background: #fff; border: 1px solid #E4E8F4; border-radius: 8px;
  color: var(--argus-navy); font-weight: 700; text-decoration: none; font-size: .95rem;
}
.argus-blog-nav .page-numbers:hover { border-color: var(--argus-blue); color: var(--argus-blue); }
.argus-blog-nav .page-numbers.current { background: var(--argus-navy); border-color: var(--argus-navy); color: #fff; }

/* --- empty state --- */
.argus-blog-empty { max-width: 40rem; margin: 0 auto; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .argus-blog-card { transition: none; }
  .argus-blog-card:hover { transform: none; }
  .argus-blog-topics a { transition: none; }
}
