/* ============================================================
   Success Stories — listing, single, cards.
   Aligned to Figma section 3338:49706:
     - Listing  3269:47393  (hero with centered Lines SVG bg)
     - Card     3225:47016  (400x560, chips → eyebrow → title → ghost CTA)
     - Chip     3257:54685  (#D2E6B5 pill, 60-radius)
     - Sort     3270:52715  (200x43, 6-radius bordered, chevron)
   ============================================================ */

/* ---------- Listing ---------- */

.success-listing { padding: 0; }

.success-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;
}
.success-listing-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.success-listing-hero-bg svg {
    width: 1356px;
    max-width: 95%;
    height: auto;
    flex-shrink: 0;
}
.success-listing-hero-image {
    position: absolute; inset: 0; z-index: 0;
    opacity: 0.18;
    pointer-events: none;
    overflow: hidden;
}
.success-listing-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.success-listing-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}
.success-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;
}
.success-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;
}

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

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

.success-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start; /* pack tags + sort together (no huge gap) */
    gap: 24px;
    margin: 0 0 40px;
    padding: 0 15px; /* desktop: nudge tags + sort inside (reset on mobile below) */
    /* Desktop: stay a single row — tags fill the left (chip list wraps to
       multiple lines internally), sort dropdown pinned to the right.
       (was flex-wrap:wrap, which dropped the sort onto its own line.) */
    flex-wrap: nowrap;
}
.success-filter { flex: 0 1 auto; min-width: 0; }
.success-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. */
.success-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;
}
.success-chip:hover {
    background: rgba(143, 192, 69, 0.12);
    color: var(--Dark-Blue, #0D1146);
}
.success-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;
}
.success-chip.is-active:hover { background: linear-gradient(224deg, #3E9A45 0%, #80AD3E 100%); }
.success-chip-label { white-space: nowrap; }
.success-chip-x {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.success-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 */
}
.success-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;
}
.success-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;
}
.success-sort select:focus { outline: 0; }
.success-sort-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--Dark-Blue, #0D1146);
    pointer-events: none;
}
.success-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
*/

.success-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin: 0 0 48px;
}
.success-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;
}
.success-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(13, 17, 70, 0.10);
    border-color: #B6B7C5;
}
.success-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.success-card-thumb {
    position: relative;
    aspect-ratio: 400 / 225;
    overflow: hidden;
    background: var(--grey-F1, #F1F3F1);
}
.success-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.success-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;
}
.success-card-profile img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.success-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);
}
.success-card-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.success-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/* Card tag chip — Figma 3257:54685: pill, #D2E6B5, Poppins 500 12 dark-blue. */
.success-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.success-tag:hover { background: #C2DAA0; }

.success-card-headings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.success-card-eyebrow {
    color: var(--grey-slate, #6E7090);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}
.success-card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.success-card-title {
    margin: 0;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), 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;
}
.success-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. */
.success-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;
}
.success-card-more-text {
    padding: 0;
    border-bottom: 1px solid currentColor;
}
.success-card-link:hover .success-card-more { color: var(--Dark-Green, #45AC4C); }

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

.success-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}
.success-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;
}
.success-load-more .btn-ghost:hover {
    background: var(--Dark-Blue, #0D1146);
    color: var(--White, #FFFFFF);
}
.success-pagination { display: flex; gap: 6px; justify-content: center; }
.success-pagination a,
.success-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;
}
.success-pagination .current {
    background: var(--Dark-Blue, #0D1146);
    border-color: var(--Dark-Blue, #0D1146);
    color: var(--White, #FFFFFF);
}
.success-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--grey-slate, #6E7090);
}

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

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

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

/* Hero — Figma Frame 1000014432: l=VERTICAL, counterAxisAlignItems=CENTER,
   gap 24, padding 80/40/240/240. Breadcrumb stays left of the boxed
   column; title + chips center horizontally. */
.success-single-hero {
    background: var(--White, #FFFFFF);
    padding: 80px 0 0; /* image→content gap = body top (80px), matching news single */
}
.success-single-hero-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.success-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;
}
.success-single-breadcrumb:hover { color: var(--Dark-Green, #45AC4C); }
.success-single-breadcrumb svg { flex: 0 0 16px; }

.success-single-title {
    margin: 0;
    max-width: 1100px;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-display, 'Poppins'), sans-serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}
.success-single-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.success-single-hero-image-wrap {
    max-width: 1440px; /* Figma hero inner (1440) — slightly wider than the 1380 content, so the body sits ~30px inside on desktop; padding:24 keeps it wide on laptops */
    margin: 40px auto 0;
    padding: 0 24px;
}
.success-single-hero-image {
    width: 100%;
    aspect-ratio: 1440 / 497;
    border-radius: 10px;
    overflow: hidden;
    background: var(--grey-F1, #F1F3F1);
}
.success-single-hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

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

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

/* Sidebar */
.success-single-sidebar {
    position: sticky;
    top: auto;
    bottom: 20px; /* sticky-BOTTOM so the testimonial at the bottom of the sidebar stays in view while scrolling */
    display: flex;
    flex-direction: column;
    gap: 56px; /* gap between the Sector value (meta) and the quote/testimonials box */
    align-self: start;
}
.success-single-sidebar-block { display: flex; flex-direction: column; }

.success-single-meta-block { gap: 24px; }
.success-single-client-logo {
    max-width: 200px;
    max-height: 100px;
    overflow: hidden;
}
.success-single-client-logo img {
    /* Absolute caps — max-height:100% does not constrain against an
       auto-height wrapper, so large source logos overflowed. */
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.success-single-meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.success-single-meta-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.success-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;
}
.success-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 — Figma Frame 1000014445: outer gap 24, inner head gap 16, author gap 8. */
/* Wrapper = the single boxed grey container holding all testimonials. */
/* Each testimonial is its own grey card (Figma); stack them with a gap. */
.success-single-testimonials {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.success-single-testimonial {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    background: var(--grey-F1, #F1F3F1);
    border-radius: 20px;
}
.success-single-testimonial-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.success-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;
}
.success-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;
}
.success-single-testimonial-quote p { margin: 0 0 12px; }
.success-single-testimonial-quote p:last-child { margin: 0; }
.success-single-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.success-single-testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--grey-E5, #E5E6EC);
}
.success-single-testimonial-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.success-single-testimonial-name {
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 16px; /* Alina Jun-30: author name title size */
    font-weight: 600;
    line-height: 1.4;
}
.success-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 ---------- */

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

.success-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;
}

.success-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.success-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;
}
.success-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;
}
.success-block-section-body p { margin: 0 0 16px; }
.success-block-section-body p:last-child { margin: 0; }
/* Bulleted lists — Figma uses tabler:check inside a 24px green circle. */
.success-block-section-body ul,
.success-block-section-body ol {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}
.success-block-section-body ul li,
.success-block-section-body ol li {
    position: relative;
    padding-left: 40px;
    min-height: 24px;
    color: var(--Dark-Blue, #0D1146);
    font-size: 18px;
    line-height: 1.4;
}
.success-block-section-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 24px;
    height: 24px;
    /* Outline check in a green-stroked circle (Figma) — no fill. */
    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;
}
.success-block-section-body ol { counter-reset: ssn; }
.success-block-section-body ol li::before {
    counter-increment: ssn;
    content: counter(ssn);
    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;
}
.success-block-section-body a { color: var(--Dark-Green, #45AC4C); }
.success-block-section-body strong { font-weight: 600; }
/* Embedded video (YouTube oEmbed) — full width, 16:9 ratio. */
.success-block-section-body img { max-width: 100%; height: auto; }
.success-block-section-body iframe,
.success-block-section-body .wp-block-embed iframe,
.success-block-section-body .wp-embedded-content {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 10px;
    display: block;
    margin: 16px 0;
}
.success-block-section-body .wp-block-embed,
.success-block-section-body .wp-block-embed__wrapper { margin: 16px 0; max-width: 100%; }

.success-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;
}
.success-block-highlight p { margin: 0 0 8px; }
.success-block-highlight p:last-child { margin: 0; }

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

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

/* About company callout — Figma Frame 2612423: fill #F2F4F2 + 3px stroke #8FC045, radius 20. */
.success-about-company {
    margin-top: 16px;
    padding: 32px;
    border-radius: 20px;
    background: #F2F4F2;
    border: 3px solid var(--Light-Green, #8FC045);
    gap: 24px;
}
.success-about-company-logo { max-width: 200px; max-height: 100px; overflow: hidden; }
.success-about-company-logo img {
    /* Absolute caps so a large source never exceeds the 200×100 box
       (max-height:100% against an auto-height wrapper does not constrain). */
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.success-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;
}
.success-about-company-body {
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 16px;
    line-height: 1.4;
}
.success-about-company-body p { margin: 0 0 12px; }
.success-about-company-body p:last-child { margin: 0; }

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

.success-edit-notice {
    margin: 16px 0;
    padding: 16px 20px;
    border: 1px dashed #B6B7C5;
    border-radius: 10px;
    background: #FFFBE6;
    color: var(--Dark-Blue, #0D1146);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.success-edit-notice a {
    margin-left: 8px;
    color: var(--Dark-Green, #45AC4C);
    font-weight: 600;
}

/* Legacy fallback styling (used when post is not a Success Story) */
.success-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;
}
.success-summary {
    margin-bottom: 24px;
    color: var(--Dark-Blue, #0D1146);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.45;
}
.success-content p { margin: 0 0 16px; }
.success-content a { color: var(--Dark-Green, #45AC4C); }

/* Metrics (legacy, still used if metrics ACF rows present) */
.success-metrics-section { padding: 32px 0 0; background: var(--White, #FFFFFF); }
.success-metrics-section > .container { max-width: 1280px; }
.success-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);
}
.success-metric { text-align: center; }
.success-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;
}
.success-metric-label {
    color: var(--grey-slate, #6E7090);
    font-family: var(--font-body, 'DM Sans'), sans-serif;
    font-size: 14px;
    margin-top: 4px;
}

.success-more {
    padding: 0 0 100px;
    background: var(--White, #FFFFFF);
}
.success-more-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}
/* More Stories grid: flex+center so 1–2 cards sit centered (not left-aligned),
   while each card keeps the exact 3-column width. (Mobile slider overrides below.) */
.success-more-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.success-more-grid .success-card {
    flex: 0 0 calc((100% - 80px) / 3); /* = 3-col width (2 gaps of 40px) */
    max-width: calc((100% - 80px) / 3);
}
.success-more-head {
    display: flex;
    align-items: center;
    justify-content: center;   /* heading centered (link removed) */
    text-align: center;
    gap: 24px;
    flex-wrap: wrap;
}
/* Slider arrows are mobile-only (desktop shows the full 3-card grid). */
.success-more-nav { display: none; }
.success-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) {
    .success-single-hero-image-wrap { padding: 0 24px; }
    .success-single-layout { gap: 64px; grid-template-columns: 300px 1fr; }
}
@media (max-width: 1024px) {
    .success-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .success-grid-section { padding: 60px 0 80px; }
    .success-toolbar { flex-direction: column; align-items: stretch; gap: 16px; padding: 0; }
    .success-sort { width: auto; align-self: center; margin-inline-start: 0; }
    /* Sidebar drops above the main column; stays a 2-up row at tablet width
       (~600–1024) so a populated card doesn't feel cramped. */
    .success-single-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .success-single-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 32px;
    }
    .success-single-sidebar-block { flex: 1 1 280px; }
    .success-single-body { padding: 48px 0 64px; }
}
@media (max-width: 768px) {
    /* Figma mobile single 3357:17996: sidebar stacks logo→meta→testimonial vertically,
       then body sections. Hero title Poppins 400 36, chips wrap. */
    .success-listing-hero { min-height: 220px; padding: 60px 24px; }
    /* Mobile: bleed the lines bg out both sides so it fills the narrow hero. */
    .success-listing-hero-bg { inset: 0 -40vw; }
    .success-listing-title { font-size: 36px; }
    /* QA #12/#13 (Jun4) — subtitle narrower + centered on mobile. */
    .success-listing-subtitle { font-size: 16px; max-width: 340px; margin-left: auto; margin-right: auto; text-align: center; }
    .success-listing-hero-inner { gap: 20px; text-align: center; align-items: center; }
    .success-grid { grid-template-columns: 1fr; gap: 24px; }
    .success-grid-section { padding: 40px 0 60px; }
    /* Filter chips centered on mobile (were left-aligned). Sort dropdown
       sits centered in its own row at its natural width (not 100%). */
    .success-toolbar { flex-direction: column; align-items: center; gap: 8px; margin-bottom: 17px; padding: 0; }
    .success-filter { width: 100%; }
    .success-filter-list { gap: 8px; justify-content: center; }
    .success-chip { height: 32px; padding: 6px 16px; font-size: 13px; }
    .success-sort { width: auto; align-self: center; margin-inline-start: 0; }
    /* Figma mobile card 3357:17644 — image 361×214; all text sizes/weights/gaps
       already match desktop card (client 16/600, title 20/600, sector 18/400,
       chips 12/500, body gap 32 / pad 24, headings gap 16, tags gap 8). */
    .success-card-thumb { aspect-ratio: 361 / 214; }

    .success-single-hero { padding: 32px 0 24px; }
    .success-single-hero-inner { gap: 24px; padding: 24px 16px; }
    .success-single-title { font-size: 36px; line-height: 1.25; }
    .success-single-chips { gap: 8px; }
    .success-single-hero-image-wrap { padding: 0 0; margin-top: 0; }
    .success-single-hero-image { aspect-ratio: 393 / 220; border-radius: 0; }

    .success-single-body { padding: 20px 16px 64px; }
    .success-single-layout { padding: 0; gap: 40px; }
    .success-single-sidebar {
        flex-direction: column;
        gap: 40px;
    }
    .success-single-sidebar-block { flex: 1 1 auto; width: 100%; }

    .success-single-summary { font-size: 19px; }
    .success-block-section-title { font-size: 28px; }
    .success-about-company-title { font-size: 28px; }
    .success-block-section-body { font-size: 17px; }
    .success-block-section-body ul li,
    .success-block-section-body ol li { font-size: 16px; padding-left: 40px; }
    .success-block-gallery { grid-template-columns: 1fr; }
    .success-more { padding: 0 16px 64px; }
    .success-more-inner { padding: 0; gap: 24px; }
    /* Mobile: heading centered. */
    .success-more-head { justify-content: center; text-align: center; }
    .success-more-title { font-size: 28px; }

    /* Mobile: "More Success Stories" becomes a 1-at-a-time scroll-snap slider, centered. */
    .success-more-grid {
        display: flex;
        justify-content: center;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        margin: 0 -16px;
        padding: 0 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .success-more-grid::-webkit-scrollbar { display: none; }
    .success-more-grid .success-card {
        flex: 0 0 100%;
        max-width: none; /* reset desktop 1/3 cap so the mobile slider card is full-width */
        scroll-snap-align: center;
    }
    .success-more-nav {
        display: none; /* hide prev/next arrows on mobile (swipe instead) */
        justify-content: center;
        gap: 16px;
        margin-top: 8px;
    }
    .success-more-arrow {
        width: 48px; height: 48px;
        display: inline-flex; align-items: center; justify-content: center;
        border: 1px solid var(--Dark-Blue, #0D1146);
        border-radius: 50%;
        background: transparent;
        color: var(--Dark-Blue, #0D1146);
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
    }
    .success-more-arrow:hover { background: var(--Dark-Blue, #0D1146); color: #fff; }
    .success-metric-value { font-size: 28px; }
    .success-single-testimonial { padding: 20px; }
    .success-single-testimonial-title { font-size: 24px; }
    .success-single-testimonial-quote { font-size: 17px; }
    .success-about-company { padding: 24px; }
}
