/* ============================================================
   News & Media — listing, cards, featured row.
   Aligned to Figma 3194:45940 (file gGiKZpLdsR2qeW2VEowRF3).
   Pattern mirrors success-stories.css (use existing news_theme taxonomy).
   - Listing  3508:40088  (hero 1920x320, dark-blue, white title 52/400)
   - Featured 3226:48636  (1297x394, image left 700x394, body 436x394 radius 8)
   - Card     3209:46924  (3 cards 400x538, title 20/700, date #6E7090 16/400)
   - Sort     same pattern as success stories
   ============================================================ */
/* ---------- Listing ---------- */

.news-listing { padding: 0; }

.news-listing-hero {
    position: relative;
    background: var(--Dark-Blue, #0D1146);
    padding: 100px 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}
.news-listing-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
/* EXACTLY the success-stories hero sizing: natural proportional height
   (1400:933 viewBox), clipped by the hero's overflow — NO max-height,
   which squashed the drawing into the 320px band and distorted the lines. */
/* Match the Success Stories hero-bg sizing exactly (desktop + mobile). */
.news-listing-hero-bg svg {
    width: 1356px;
    max-width: 95%;
    height: auto;
    flex-shrink: 0;
}
.news-listing-hero-image {
    position: absolute; inset: 0; z-index: 0;
    opacity: 0.18;
    pointer-events: none;
    overflow: hidden;
}
.news-listing-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.news-listing-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}
.news-listing-title {
    margin: 0;
    color: var(--White, #FFFFFF);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.3;
}
.news-listing-subtitle {
    margin: 0;
    color: var(--White, #FFFFFF);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
}

.news-grid-section { padding: 80px 0 100px; }
.news-grid-section > .container { max-width: 1280px; }

/* ---------- Toolbar (filter chips + sort dropdown) ---------- */

.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* pack tags + sort together (no huge gap) */
    gap: 24px;
    margin: 0 0 40px;
    padding: 0 15px; /* desktop: nudge filters + sort inside (reset on mobile below) */
    flex-wrap: wrap;
}
.news-filter { flex: 0 1 auto; min-width: 0; }
.news-filter-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
/* Filter chip (toolbar) — Figma 3269:52590: 36-tall, transparent + green outline,
   DM Sans 500/14 grey-slate text. Active state fills with green. */
.news-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 8px 24px;
    border: 1px solid var(--Light-Green, #8FC045);
    border-radius: 800px;
    background: transparent;
    color: var(--grey-slate, #6E7090);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}
.news-chip:hover {
    background: rgba(143, 192, 69, 0.12);
    color: var(--Dark-Blue, #0D1146);
}
.news-chip.is-active {
    /* Figma active filter (3269:52591): green gradient fill + white text, no border. */
    background: linear-gradient(224deg, #45AC4C 0%, #8FC045 100%);
    border-color: transparent;
    color: #FFFFFF;
}
.news-chip.is-active:hover { background: linear-gradient(224deg, #3E9A45 0%, #80AD3E 100%); }
.news-chip-label { white-space: nowrap; }
.news-chip-x {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.news-sort {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 200px;
    height: 43px;
    padding: 0 16px;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    background: var(--White, #FFFFFF);
    flex: 0 0 auto;
    margin-inline-start: auto; /* desktop: push the dropdown to the end of the row */
}
.news-sort-label {
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin-right: 6px;
    cursor: pointer;
    line-height: 1.3;
}
.news-sort select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: 0;
    padding: 0 24px 0 0;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--Dark-Blue, #0D1146);
    line-height: 1.3;
    cursor: pointer;
}
.news-sort select:focus { outline: 0; }
.news-sort-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--Dark-Blue, #0D1146);
    pointer-events: none;
}
.news-sort-submit { display: none; }

/* ---------- Card grid ----------
   Figma: Sucess Card/Default 3225:47016 (400x560)
     outer wrap 3225:46988 — radius 8, border #CFCFDA, fill #FFFFFF, padding-bottom 32
     image     3225:46989 — 400x225, scaleMode FILL, clipped by parent radius
     body      3225:46990 — padding 24/24/24 (top/left/right; bottom from outer), gap 32
       top    3259:24907 — gap 32 between chips row and title block
         chips row     3225:46992 — gap 8
         title block   3225:47005 — gap 16
           eyebrow row 3357:17829 — single text (client)
           title block 3357:17860 — gap 8 (title + sector)
       cta    3225:47009 — Button Ghost (Read more) + arrow
*/

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin: 0 0 48px;
}
.news-card {
    background: var(--White, #FFFFFF);
    border: 1px solid #CFCFDA;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(13, 17, 70, 0.10);
    border-color: #B6B7C5;
}
.news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.news-card-thumb {
    position: relative;
    aspect-ratio: 400 / 225;
    overflow: hidden;
    background: var(--grey-F1, #F1F3F1);
}
.news-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.news-card-profile {
    position: absolute;
    left: 16px;
    bottom: -28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--White, #FFFFFF);
    background: var(--grey-E5, #E5E6EC);
    overflow: hidden;
}
.news-card-profile img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 24px 24px 32px;
    background: var(--White, #FFFFFF);
}
.news-card-top {
    display: flex;
    flex-direction: column;
    gap: 24px; /* Figma 3226:48642 chip-row -> date */
}
.news-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* Card tag chip — Figma 3257:54685: pill, #D2E6B5, Poppins 500 12 dark-blue. */
.news-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 60px;
    background: #D2E6B5;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-decoration: none;
}
a.news-tag:hover { background: #C2DAA0; }

.news-card-headings {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Figma 3226:48642 — date sits one tight row above title */
}
/* News card date "August 2025" — Figma 3226:48642: Poppins 16/400, NOT
   uppercase (a stray style.css rule forced uppercase + letter-spacing). */
.news-card-eyebrow {
    color: var(--grey-slate, #6E7090);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: normal;
}
.news-card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* News card title — Figma 3226:48642: Poppins 600 (was 700). */
.news-card-title {
    margin: 0;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-sector {
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}
/* "Read more" — Button Ghost 3225:47010: text in 1px-bordered wrapper + arrow alongside. */
.news-card-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}
.news-card-more-text {
    padding: 0;
    border-bottom: 1px solid currentColor;
}
.news-card-link:hover .news-card-more { color: var(--Dark-Green, #45AC4C); }

/* "Show more": all cards render; collapsed grid hides the 10th onward
   until the button reveals them (JS removes .is-collapsed). No AJAX. */
.news-grid.is-collapsed .news-card:nth-child(n+10) { display: none; }

/* ---------- Load more + pagination ---------- */

.news-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}
.news-load-more .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 800px;
    border: 1px solid var(--Dark-Blue, #0D1146);
    background: transparent;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.news-load-more .btn-ghost:hover {
    background: var(--Dark-Blue, #0D1146);
    color: var(--White, #FFFFFF);
}
.news-pagination { display: flex; gap: 6px; justify-content: center; }
.news-pagination a,
.news-pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--grey-E5, #E5E6EC);
    color: var(--Dark-Blue, #0D1146);
    text-decoration: none;
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 14px;
}
.news-pagination .current {
    background: var(--Dark-Blue, #0D1146);
    border-color: var(--Dark-Blue, #0D1146);
    color: var(--White, #FFFFFF);
}
.news-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--grey-slate, #6E7090);
}

/* ============================================================
   Single News Story — Figma frame 3176:21468
   ============================================================ */

.news-single { background: var(--White, #FFFFFF); }

/* ---------- Hero (breadcrumb + title + chips + big image) ---------- */

.news-single-hero {
    background: var(--White, #FFFFFF);
    padding: 80px 0 0;
}
.news-single-hero-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.news-single-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    align-self: flex-start;
}
.news-single-breadcrumb:hover { color: var(--Dark-Green, #45AC4C); }
.news-single-breadcrumb svg { flex: 0 0 16px; }

.news-single-title {
    margin: 0;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.3;
}
.news-single-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Image wrap sits INSIDE .news-single-hero-inner which already provides the
   side padding (clamp 24px → 240px). No extra horizontal padding here, else
   it double-pads and shrinks the image. */
.news-single-hero-image-wrap {
    width: 100%;
    margin: 40px 0 0;
}
.news-single-hero-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}
.news-single-hero-image img {
    width: 100%; height: auto;
    display: block;
}

/* ---------- Body layout: sticky sidebar + main column ---------- */

.news-single-body {
    background: var(--White, #FFFFFF);
    padding: 80px 0 100px;
}
.news-single-layout {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 120px;
    align-items: start;
}

/* Sidebar */
.news-single-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-self: start;
}
.news-single-sidebar-block { display: flex; flex-direction: column; }

.news-single-meta-block { gap: 24px; }
.news-single-client-logo {
    max-width: 200px;
    max-height: 100px;
}
.news-single-client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.news-single-meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.news-single-meta-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.news-single-meta-label {
    margin: 0;
    color: #585C63;
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}
.news-single-meta-value {
    margin: 0;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

/* Sidebar testimonial */
.news-single-testimonial {
    gap: 24px;
    padding: 24px;
    background: var(--grey-F1, #F1F3F1);
    border-radius: 20px;
}
.news-single-testimonial-title {
    margin: 0;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}
.news-single-testimonial-quote {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}
.news-single-testimonial-quote p { margin: 0 0 12px; }
.news-single-testimonial-quote p:last-child { margin: 0; }
.news-single-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.news-single-testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--grey-E5, #E5E6EC);
}
.news-single-testimonial-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.news-single-testimonial-name {
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}
.news-single-testimonial-role {
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

/* ---------- Main column ---------- */

.news-single-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}

.news-single-summary {
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.45;
}

.news-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.news-block-section-title {
    margin: 0;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
}
.news-block-section-body {
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}
.news-block-section-body p { margin: 0 0 16px; }
.news-block-section-body p:last-child { margin: 0; }
.news-block-section-body ul,
.news-block-section-body ol {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}
.news-block-section-body ul li,
.news-block-section-body ol li {
    position: relative;
    padding-left: 32px;
    color: var(--Dark-Blue, #0D1146);
    font-size: 18px;
    line-height: 1.4;
}
.news-block-section-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%2345AC4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 16px 16px;
}
.news-block-section-body ol { counter-reset: ssn; }
.news-block-section-body ol li::before {
    counter-increment: ssn;
    content: counter(ssn) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--Dark-Green, #45AC4C);
    font-weight: 600;
}
.news-block-section-body a { color: var(--Dark-Green, #45AC4C); }
.news-block-section-body strong { font-weight: 600; }

.news-block-highlight {
    margin: 8px 0 0;
    padding: 24px;
    border-radius: 10px;
    background: #D2E6B5;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}
.news-block-highlight p { margin: 0 0 8px; }
.news-block-highlight p:last-child { margin: 0; }

.news-block-image { gap: 8px; margin: 0; }
.news-block-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}
.news-block-image-caption {
    color: var(--grey-slate, #6E7090);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.news-block-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.news-block-gallery figure { margin: 0; }
.news-block-gallery img {
    width: 100%;
    border-radius: 10px;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.news-block-gallery figcaption {
    margin-top: 4px;
    color: var(--grey-slate, #6E7090);
    font-size: 14px;
}

/* About company callout */
.news-about-company {
    margin-top: 16px;
    padding: 32px;
    border-radius: 20px;
    background: #F2F4F2;
    gap: 24px;
}
.news-about-company-logo { max-width: 200px; max-height: 100px; }
.news-about-company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.news-about-company-title {
    margin: 0;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
}
.news-about-company-body {
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 16px;
    line-height: 1.4;
}
.news-about-company-body p { margin: 0 0 12px; }
.news-about-company-body p:last-child { margin: 0; }

.news-source-footer { margin-top: 24px; }

/* Legacy fallback styling (used when post is not a News Story) */
.news-single-content {
    max-width: 820px;
    margin: 0 auto;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 18px;
    line-height: 1.6;
}
.news-summary {
    margin-bottom: 24px;
    color: var(--Dark-Blue, #0D1146);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.45;
}
.news-content p { margin: 0 0 16px; }
.news-content a { color: var(--Dark-Green, #45AC4C); }

/* Metrics (legacy, still used if metrics ACF rows present) */
.news-metrics-section { padding: 32px 0 0; background: var(--White, #FFFFFF); }
.news-metrics-section > .container { max-width: 1280px; }
.news-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid var(--grey-E5, #E5E6EC);
    border-bottom: 1px solid var(--grey-E5, #E5E6EC);
}
.news-metric { text-align: center; }
.news-metric-value {
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
}
.news-metric-label {
    color: var(--grey-slate, #6E7090);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 14px;
    margin-top: 4px;
}

.news-more {
    padding: 0 0 100px;
    background: var(--White, #FFFFFF);
}
.news-more-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}
.news-more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.news-more-title {
    margin: 0;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.3;
}

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
    .news-single-layout { gap: 64px; grid-template-columns: 300px 1fr; }
}
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .news-grid-section { padding: 60px 0 80px; }
    .news-toolbar { flex-direction: column; align-items: stretch; gap: 16px; padding: 0; }
    .news-sort { width: auto; align-self: center; margin-inline-start: 0; }
    .news-single-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .news-single-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 32px;
    }
    .news-single-sidebar-block { flex: 1 1 280px; }
    .news-single-body { padding: 48px 0 64px; }
}
@media (max-width: 768px) {
    .news-listing-hero { min-height: 220px; padding: 60px 24px; }
    /* Mobile: bleed the lines bg out both sides (same as Success Stories mobile). */
    .news-listing-hero-bg { inset: 0 -40vw; }
    .news-listing-title { font-size: 36px; }
    .news-listing-subtitle { font-size: 16px; }
    .news-listing-hero-inner { gap: 20px; }
    .news-grid { grid-template-columns: 1fr; gap: 24px; }
    .news-grid-section { padding: 40px 0 60px; }
    /* QA Jun18 — match Success Stories mobile: chips centered, sort at its own
       natural width centered in its row (was full-width stretch). */
    .news-toolbar { flex-direction: column; align-items: center; gap: 8px; margin-bottom: 17px; padding: 0; }
    .news-filter { width: 100%; }
    .news-filter-list { gap: 8px; justify-content: center; }
    .news-sort { width: auto; align-self: center; margin-inline-start: 0; }
    .news-chip { height: 32px; padding: 6px 16px; font-size: 13px; }
    .news-single-hero { padding: 32px 0 0; }
    .news-single-title { font-size: 32px; line-height: 1.25; }
    .news-single-hero-image-wrap { margin-top: 24px; }
    .news-single-body { padding: 40px 0 64px; }
    .news-single-summary { font-size: 19px; }
    .news-block-section-title { font-size: 26px; }
    .news-about-company-title { font-size: 26px; }
    .news-block-gallery { grid-template-columns: 1fr; }
    .news-more-title { font-size: 28px; }
    .news-metric-value { font-size: 28px; }
    .news-single-testimonial { padding: 20px; }
    .news-single-testimonial-title { font-size: 24px; }
}

/* ============================================================
   Featured article row — Figma 3226:48636 (1297×394).
   Horizontal layout: image left 700×394 (radius 8 left side),
   body right 436×394 (gap 24): meta row → title 28/600 → sector → "Read more".
   Sits between hero and the "Latest News" section header.
   ============================================================ */
.news-featured-section {
    background: var(--White, #FFFFFF);
    padding: 80px 0 0;
}
.news-featured-section > .container { max-width: 1280px; }
/* Figma spec: frame 1297×394, gap 80, padding-right 80, border-radius 8, border #CFCFDA 1px.
   Image 700×394 flush to left edge; body 436 wide on the right; 80px right gutter. */
.news-featured {
    display: grid;
    grid-template-columns: 700fr 436fr;
    column-gap: 80px;
    padding-right: 80px;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    background: var(--White, #FFFFFF);
    border: 1px solid #CFCFDA;
}
.news-featured-link {
    display: contents;
    color: inherit;
    text-decoration: none;
}
/* Thumb fills its grid column and the row height set by the body content.
   NO aspect-ratio here: combined with the stretched row height it forced
   width = height x 700/394 (816px) and blew past the 671px column. */
.news-featured-thumb {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: none;   /* design: photo covers the half edge-to-edge, no grey backdrop */
}
.news-featured-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
/* Body spans the same row, stretches to image height, content vertically centred. */
.news-featured-body {
    grid-column: 2;
    grid-row: 1;
    display: flex; flex-direction: column;
    gap: 24px;
    padding: 24px 0;
    justify-content: center;
    min-width: 0;
}
.news-featured-meta {
    display: flex; align-items: center; gap: 8px;
    color: var(--grey-slate, #6E7090);
}
.news-featured-meta .news-tag { font-size: 12px; font-weight: 500; }
.news-featured-meta-sep { color: var(--grey-slate, #6E7090); }
.news-featured-date {
    color: var(--grey-slate, #6E7090);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
}
.news-featured-title {
    margin: 0;
    color: var(--Dark-Blue, #0D1146);
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}
.news-featured-sector {
    color: var(--Dark-Blue, #0D1146);
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}
.news-featured-cta {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--Dark-Blue, #0D1146);
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
}
.news-featured-cta svg { transition: transform 0.2s; }
.news-featured-link:hover .news-featured-cta svg { transform: translateX(4px); }

/* "Latest News" / "Explore More News" section headings — Figma 3194:46329 (38/600) + 3233:47130 (38/500). */
.news-grid-section .news-section-title {
    margin: 0 0 24px;
    color: var(--Dark-Blue, #0D1146);
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.3;
}
.news-grid-section .news-section-title.alt {
    font-weight: 500;
}
@media (min-width: 769px) {
    /* Desktop: centre the "Latest News" heading; drop filter bottom margin. */
    .news-grid-section .news-section-title { text-align: center; }
    .news-filter { margin-bottom: 0; }
}

/* "Button Ghost" between sections — Figma 3194:46039 (140×51, radius 30). */
.news-grid-more {
    display: flex; justify-content: center;
    margin: 40px 0 80px;
}
.news-grid-more .btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px;
    border: 1px solid var(--Dark-Blue, #0D1146);
    border-radius: 30px;
    background: transparent;
    color: var(--Dark-Blue, #0D1146);
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.news-grid-more .btn-ghost:hover {
    background: var(--Dark-Blue, #0D1146);
    color: var(--White, #FFFFFF);
}

/* Figma mobile featured — Frame 1000014560 (361×549): vertical card r8,
   image 360×203 on top, gap 32, body padded 0/16, card pad-bottom 32. */
@media (max-width: 1024px) {
    .news-featured {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 32px;
        padding-right: 0;          /* reset the desktop 80px gutter */
        padding-bottom: 32px;
        border-radius: 8px;
    }
    .news-featured-thumb {
        grid-column: 1;
        grid-row: auto;
        height: auto;
        aspect-ratio: 360 / 203;   /* image proportion from the mobile frame */
    }
    .news-featured-body {
        grid-column: 1;
        grid-row: auto;
        padding: 0 16px;
        gap: 24px;
    }
    .news-featured-title { font-size: 24px; }
}
@media (max-width: 768px) {
    .news-featured-section { padding-top: 32px; }
    .news-featured-section > .container { padding-left: 16px; padding-right: 16px; }
    .news-featured-title { font-size: 22px; }
    /* "Latest News" — Figma mobile 26/500 */
    .news-grid-section .news-section-title { font-size: 26px; font-weight: 500; }
    .news-grid-section > .container { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   Single News Article — Figma 3233:18823 (1920×2313).
   Hero block 1920×831 (pad 80/240): breadcrumb → title 52/400 → chips → wide image 1440×497 r=10.
   Body 1920×950 (pad 80/270/120/270): 2-col 840/400 gap 140.
   Right sidebar = "More News" list (date 13/400 + title 16/600 + 119×67 thumb), line dividers.
   ============================================================ */

.news-single { background: var(--White, #FFFFFF); }

.news-single-hero {
    padding: 80px 0 0;
    background: var(--White, #FFFFFF);
}
/* Figma 3544:18115 — Frame 1920×831 padding 80/240/?/240; inner content box = 1440.
   At narrower viewports the side padding scales down (clamp 24px–240px).
   The hero image fills 100% of this boxed content width. */
.news-single-hero-inner {
    width: 100%;
    max-width: 1440px; /* hero inner ≈ SS hero (1440), wider than the 1380 body — fixes content-wider-than-hero */
    margin: 0 auto;
    padding: 0 24px;
    display: flex; flex-direction: column;
    gap: 24px;
    text-align: center;
    box-sizing: border-box;
}
.news-single-breadcrumb {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--Dark-Blue, #0D1146);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    align-self: flex-start;
    text-align: left;
}
.news-single-breadcrumb:hover { color: var(--Dark-Green, #45AC4C); }
.news-single-breadcrumb svg { transition: transform 0.2s; }
.news-single-breadcrumb:hover svg { transform: translateX(-3px); }

.news-single-title {
    margin: 0;
    color: var(--Dark-Blue, #0D1146);
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    text-wrap: balance; /* even out the title lines (long vs short) */
}
/* Body copy: avoid orphan/short last lines on the single article */
.news-single-summary,
.news-content p,
.news-content li { text-wrap: pretty; }

.news-single-chips {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 16px;
    max-width: 822px;
    margin: 0 auto;
}

.news-single-hero-image-wrap {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 0;
}
.news-single-hero-image {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}
.news-single-hero-image picture,
.news-single-hero-image img {
    width: 100%; height: auto;
    display: block;
}

/* Body: 2-col 840/400, gap 140, padding 80/270/120/270. */
.news-single-body {
    background: var(--White, #FFFFFF);
    padding: 80px 0 120px;
}
.news-single-layout {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 840fr 400fr;
    column-gap: 140px;
    align-items: start;
}
.news-single-main {
    min-width: 0;
    display: flex; flex-direction: column;
    gap: 24px;
}
.news-single-summary {
    color: var(--Dark-Blue, #0D1146);
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 8px;
}
.news-content {
    color: var(--Dark-Blue, #0D1146);
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}
.news-content p { margin: 0 0 16px; }
.news-content h2, .news-content h3 { margin: 24px 0 8px; font-weight: 600; }
.news-content h2 { font-size: 22px; }
.news-content h3 { font-size: 18px; }
.news-content a { color: var(--Dark-Green, #45AC4C); }
.news-content ul, .news-content ol { padding-left: 1.4em; margin: 0 0 16px; }

/* --- News article body: overflow safety + match Success Stories content styleguide (Figma SS post content) --- */
.news-content { overflow-wrap: break-word; word-wrap: break-word; }
.news-content img { max-width: 100%; height: auto; border-radius: 10px; }
.news-content figure { max-width: 100%; margin: 0 0 16px; }
.news-content video, .news-content embed { max-width: 100%; }
/* Embedded video (YouTube oEmbed) — full width, 16:9 ratio. */
.news-content iframe,
.news-content .wp-block-embed iframe,
.news-content .wp-embedded-content {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 10px;
    display: block;
    margin: 16px 0;
}
.news-content .wp-block-embed,
.news-content .wp-block-embed__wrapper { margin: 16px 0; max-width: 100%; }
.news-content pre { white-space: pre-wrap; word-break: break-word; }
.news-content table { width: 100%; max-width: 100%; display: block; overflow-x: auto; }
.news-content a { overflow-wrap: break-word; word-break: break-word; }
.news-content strong { font-weight: 600; }
/* Lists styled like SS posts — green-circle check bullets / numbered green circles */
.news-content ul,
.news-content ol {
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}
.news-content ul li,
.news-content ol li {
    position: relative;
    padding-left: 40px;
    min-height: 24px;
    line-height: 1.4;
}
.news-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Crect x='0.5' y='0.5' width='23' height='23' rx='11.5' stroke='%2345AC4C'/%3E%3Cpath d='M6.55078 12L10.517 15.9662L18.4493 8.03381' stroke='%2345AC4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    flex-shrink: 0;
}
.news-content ol { counter-reset: nsn; }
.news-content ol li::before {
    counter-increment: nsn;
    content: counter(nsn);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--Dark-Green, #45AC4C);
    color: var(--White, #FFFFFF);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
}

.news-single-source-footer { margin: 24px 0 0; }

/* Sidebar — Figma 3522:40920 (400×483, vertical gap 32). */
.news-single-sidebar {
    position: sticky;
    top: 110px;
    display: flex; flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.news-single-sidebar-title {
    margin: 0 0 8px;
    color: var(--Dark-Blue, #0D1146);
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}
.news-single-rail {
    list-style: none;
    margin: 0;
    padding: 0;
}
.news-single-rail-item { border-top: 1px solid #E5E6EC; }
.news-single-rail-item:last-child { border-bottom: 1px solid #E5E6EC; }
.news-single-rail-item a {
    display: flex; align-items: center; gap: 32px;
    padding: 16px 0;
    color: inherit; text-decoration: none;
}
.news-single-rail-text {
    flex: 1 1 auto; min-width: 0;
    display: flex; flex-direction: column;
    gap: 8px;
}
.news-single-rail-date {
    color: var(--grey-slate, #6E7090);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}
.news-single-rail-title {
    color: var(--Dark-Blue, #0D1146);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    /* QA Jun11 — Alina: limit sidebar titles to 4 lines */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}
.news-single-rail-thumb {
    flex: 0 0 119px;
    width: 119px; height: 67px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--grey-E5, #E5E6EC);
}
.news-single-rail-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1280px) {
    .news-single-layout { column-gap: 60px; padding: 0 24px; }
}
@media (max-width: 1024px) {
    .news-single-layout {
        grid-template-columns: 1fr;
        row-gap: 56px;
    }
    .news-single-sidebar { position: static; }

    /* Featured row stacks on tablet/mobile — Figma stacks at narrow widths too. */
    .news-featured {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 24px;
        padding-right: 0;
        aspect-ratio: auto;
    }
    .news-featured-thumb { grid-column: 1; aspect-ratio: 16 / 9; height: auto; }
    .news-featured-body { grid-column: 1; padding: 0 24px 24px; }
    .news-featured-title { font-size: 22px; }
}
/* Figma mobile 3500:18823 — pad 32/16 on breadcrumb + title (16 side),
   image runs edge-to-edge (no side gap, no radius), title 32/400. */
@media (max-width: 768px) {
    .news-single-hero { padding: 32px 0 0; }
    .news-single-hero-inner { padding: 0 16px; gap: 16px; }
    .news-single-title { font-size: 32px; font-weight: 400; line-height: 1.25; }
    /* Full-bleed: image-wrap escapes ANY ancestor padding by using viewport
       width and self-centering. Works regardless of hero-inner/site-wrapper padding. */
    .news-single-hero-image-wrap {
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin: 24px 0 0;
        padding: 0;
        max-width: 100vw;
    }
    .news-single-hero-image {
        width: 100%;
        aspect-ratio: 393 / 220; /* match SS single hero on mobile */
        border-radius: 0;
        background: none;        /* no colored placeholder bg */
    }
    .news-single-hero-image picture,
    .news-single-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;       /* fill the frame, no gray gap */
    }
    .news-single-body { padding: 40px 0 60px; }
    .news-single-layout { padding: 0 16px; }
    .news-single-summary { font-size: 17px; }
    .news-content { font-size: 16px; }
    .news-single-chips { gap: 8px; }
    .news-single-rail-thumb { flex: 0 0 96px; width: 96px; height: 54px; }
    .news-single-rail-title { font-size: 15px; }
}

/* ============================================================
   NEWS SINGLE TYPE PASS — 2026-06-07 · Figma 3233:18823 (desktop)
   / 3500:18823 (mobile). Body copy + rail are DM Sans in Figma;
   live rendered Poppins. Mobile rail/moreNews sizes corrected.
   ============================================================ */
.news-single-breadcrumb,
.news-single-breadcrumb a {
    font-family: 'DM Sans', sans-serif;  /* Figma 14/500 DM Sans */
}
.news-single-summary {
    font-family: 'DM Sans', sans-serif;  /* Figma has no lead style — */
    font-size: 18px;                     /* body copy: DM Sans 18/400 */
    font-weight: 400;
    line-height: 140%;
}
.news-content p,
.news-content li {
    font-family: 'DM Sans', sans-serif;  /* Figma 18/400 lh25 */
    font-size: 18px;
    line-height: 140%;
}
.news-content h2,
.news-content h3,
.news-content h4 {
    font-family: 'Poppins', sans-serif;  /* Figma sub-heads 18/600 lh23 */
    font-size: 18px;
    font-weight: 600;
    line-height: 130%;
}
.news-single-rail-title {
    font-family: 'DM Sans', sans-serif;  /* Figma 16/600 lh22 */
    font-size: 16px;
    font-weight: 600;
    line-height: 140%;
}
@media (max-width: 768px) {
    .news-single-title {
        line-height: 130%;               /* Figma lh42/32 — was 125% */
    }
    .news-single-summary,
    .news-content p,
    .news-content li {
        font-size: 18px;                 /* Figma MB keeps 18/400 — was 16 */
        line-height: 140%;
    }
    .news-single-sidebar-title {
        font-size: 22px;                 /* Figma MB "More News" 22/600 */
    }
    .news-single-rail-date {
        font-size: 14px;                 /* Figma MB 14/400 */
    }
    .news-single-rail-title {
        font-size: 18px;                 /* Figma MB 18/600 lh25 */
    }
}
