/**
 * Case Studies listing (/case-studies). Builds on case-study.css (base .csl rules,
 * button hovers, the shared Get the Audit section); this sheet adds the filter
 * pills, story cards, featured card and logo wall.
 */

.csla .csla-intro a { color: #ffffff; text-decoration: underline; text-decoration-color: rgba(88,194,227,.6); text-underline-offset: 3px; }
.csla .csla-intro a:hover { color: #58c2e3; }

/* ---------- Filter pills ---------- */
.csla .csla-pill { font-family: Poppins, sans-serif; font-weight: 600; font-size: 14px; line-height: 1; color: #0f3a55; background: #f4f9fc; border: 1px solid #dbe7ef; border-radius: 999px; padding: 10px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .18s ease, border-color .18s ease, color .18s ease; text-transform: none; letter-spacing: normal; box-shadow: none; text-shadow: none; }
.csla .csla-pill span { font-size: 12px; font-weight: 700; color: #5b7688; background: #ffffff; border-radius: 999px; padding: 3px 7px; min-width: 22px; text-align: center; }
.csla .csla-pill:hover { border-color: #13a89e; color: #0e7a73; background: #f4f9fc; }
.csla .csla-pill.is-active { background: #0f3a55; border-color: #0f3a55; color: #ffffff; }
.csla .csla-pill.is-active span { background: #13a89e; color: #04302c; }
.csla .csla-pill:focus-visible { outline: 2px solid #13a89e; outline-offset: 2px; }

/* ---------- Story cards ---------- */
.csla .csla-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.csla .csla-card { display: flex; flex-direction: column; background: #ffffff; border: 1px solid #e2edf4; border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.csla .csla-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,58,85,.12); border-color: #58c2e3; color: inherit; text-decoration: none; }
.csla .csla-card[hidden] { display: none !important; }
.csla .csla-media { position: relative; aspect-ratio: 16 / 10; background: #eef4f8; overflow: hidden; }
.csla .csla-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.csla .csla-card:hover .csla-media > img { transform: scale(1.03); }
.csla .csla-logo { position: absolute; left: 14px; bottom: 14px; background: #ffffff; border-radius: 10px; padding: 8px 12px; height: 46px; max-width: 150px; display: flex; align-items: center; box-shadow: 0 6px 18px rgba(4,38,60,.18); }
.csla .csla-logo img { position: static; width: auto; height: 100%; max-width: 126px; object-fit: contain; transform: none !important; }
.csla .csla-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.csla .csla-title { font-family: Poppins, sans-serif; font-size: 19px; font-weight: 600; line-height: 1.3; color: #0f3a55; margin: 0; text-wrap: balance; }
.csla .csla-stat { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; background: #eef4f8; border-radius: 10px; }
.csla .csla-stat-value { font-family: Poppins, sans-serif; font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.03em; color: #1b6493; white-space: nowrap; }
.csla .csla-stat-label { font-size: 13.5px; line-height: 1.4; color: #3d5666; font-weight: 600; }
.csla .csla-more { margin-top: auto; font-family: Poppins, sans-serif; font-weight: 700; font-size: 14px; color: #13a89e; }

/* Featured story: full width, image beside the text */
.csla .csla-card--feature { grid-column: 1 / -1; flex-direction: row; background: #0f3a55; border-color: #0f3a55; }
.csla .csla-card--feature:hover { border-color: #58c2e3; }
.csla .csla-card--feature .csla-media { flex: 0 0 52%; aspect-ratio: auto; min-height: 360px; }
.csla .csla-card--feature .csla-body { padding: 36px 40px; justify-content: center; gap: 18px; }
.csla .csla-card--feature .csla-title { font-size: clamp(24px, 2.6vw, 30px); color: #ffffff; line-height: 1.2; }
.csla .csla-card--feature .csla-stat { background: rgba(255,255,255,.08); }
.csla .csla-card--feature .csla-stat-value { color: #58c2e3; font-size: 40px; }
.csla .csla-card--feature .csla-stat-label { color: #bfe0f2; }
.csla .csla-card--feature .csla-more { color: #7fd8cf; margin-top: 4px; }
.csla .csla-quote { margin: 0; padding: 0 0 0 16px; border: 0; border-left: 4px solid #13a89e; background: none; font-family: Poppins, sans-serif; font-weight: 500; font-style: normal; font-size: 16px; line-height: 1.5; color: #e6f2f8; quotes: none; }
.csla .csla-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 13.5px; font-weight: 600; color: #a9c6d8; }

/* ---------- Logo wall ---------- */
.csla .csla-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.csla .csla-logo-tile { display: flex; align-items: center; justify-content: center; background: #ffffff; border: 1px solid #e2edf4; border-radius: 12px; height: 96px; padding: 18px 22px; transition: border-color .2s ease, box-shadow .2s ease; }
.csla .csla-logo-tile img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s ease, opacity .2s ease; }
.csla a.csla-logo-tile:hover { border-color: #58c2e3; box-shadow: 0 10px 22px rgba(15,58,85,.08); }
.csla a.csla-logo-tile:hover img { filter: none; opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
	.csla .csla-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.csla .csla-card--feature { flex-direction: column; }
	.csla .csla-card--feature .csla-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
	.csla .csla-card--feature .csla-body { padding: 26px 24px 28px; }
}
@media (max-width: 640px) {
	.csla .csla-grid { grid-template-columns: 1fr; }
	.csla .csla-stats { padding: 22px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.csla .csla-card, .csla .csla-media img { transition: none; }
	.csla .csla-card:hover { transform: none; }
}

/* When filtered, the featured story drops back to a normal card */
.csla .csla-card--feature.csla-card--flat { grid-column: auto; flex-direction: column; background: #ffffff; border-color: #e2edf4; }
.csla .csla-card--feature.csla-card--flat .csla-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
.csla .csla-card--feature.csla-card--flat .csla-body { padding: 22px 24px 24px; gap: 14px; justify-content: flex-start; }
.csla .csla-card--feature.csla-card--flat .csla-body > div:first-child,
.csla .csla-card--feature.csla-card--flat .csla-quote { display: none; }
.csla .csla-card--feature.csla-card--flat .csla-title { font-size: 19px; color: #0f3a55; line-height: 1.3; }
.csla .csla-card--feature.csla-card--flat .csla-stat { background: #eef4f8; }
.csla .csla-card--feature.csla-card--flat .csla-stat-value { color: #1b6493; font-size: 30px; }
.csla .csla-card--feature.csla-card--flat .csla-stat-label { color: #3d5666; }
.csla .csla-card--feature.csla-card--flat .csla-more { color: #13a89e; margin-top: auto; }

/* ---------- Hero button linking the two listing pages ---------- */
.csla .csla-hero-btn { display: inline-flex; align-items: center; gap: 9px; border: 2px solid #58c2e3; color: #ffffff; background: transparent; padding: 13px 24px; border-radius: 8px; font-family: Poppins, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.csla .csla-hero-btn:hover { background: #58c2e3; color: #00263d; text-decoration: none; transform: translateY(-2px); }

/* ---------- Client List logo grid ---------- */
.csll .csll-search { flex: 1 1 280px; max-width: 420px; font: 500 15.5px/1.2 'Open Sans', sans-serif; color: #0f3a55; background: #f4f9fc; border: 1px solid #dbe7ef; border-radius: 999px; padding: 13px 20px; height: auto; box-shadow: none; }
.csll .csll-search:focus { outline: 2px solid #13a89e; outline-offset: 1px; background: #ffffff; }
.csll .csll-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 20px; }
.csll .csll-item { margin: 0; padding: 0 !important; display: flex; flex-direction: column; }
.csll .csll-item[hidden] { display: none; }
.csll .csll-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.csll .csll-link:hover { text-decoration: none; color: inherit; }
.csll .csll-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: #f4f9fc; border: 1px solid #e2edf4; border-radius: 14px; padding: 22px 26px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease; }
.csll .csll-tile.is-dark { background: #0f3a55; border-color: #0f3a55; }
.csll .csll-tile img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; display: block; }
.csll .csll-wordmark { font-family: Poppins, sans-serif; font-weight: 700; font-size: 17px; color: #0f3a55; text-align: center; line-height: 1.25; }
.csll .csll-item:hover .csll-tile { background: #ffffff; border-color: #58c2e3; box-shadow: 0 12px 26px rgba(15,58,85,.10); transform: translateY(-3px); }
.csll .csll-item:hover .csll-tile.is-dark { background: #0f3a55; }
.csll .csll-name { margin-top: 12px; font-family: Poppins, sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #5b7688; text-align: center; line-height: 1.4; }
.csll .csll-case { margin-top: 4px; font-family: Poppins, sans-serif; font-weight: 700; font-size: 13px; color: #13a89e; text-align: center; }
.csll .has-case .csll-tile { border-color: #b7e3df; }
@media (max-width: 1040px) { .csll .csll-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .csll .csll-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; } }
@media (max-width: 520px) { .csll .csll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .csll .csll-tile { padding: 16px 18px; } .csll .csll-tile img { max-height: 48px; } }
@media (prefers-reduced-motion: reduce) { .csll .csll-tile { transition: none; } .csll .csll-item:hover .csll-tile { transform: none; } }

/* ---------- Scrolling logo carousel (Client List logos) ---------- */
.csla .csla-mq { display: grid; gap: 14px; margin: 0 calc(-1 * clamp(18px, 4vw, 32px)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.csla .csla-mq-row { overflow: hidden; }
.csla .csla-mq-track { display: flex; width: max-content; animation: csla-mq var(--csla-mq-dur, 120s) linear infinite; }
.csla .csla-mq-row.is-reverse .csla-mq-track { animation-direction: reverse; }
.csla .csla-mq:hover .csla-mq-track, .csla .csla-mq:focus-within .csla-mq-track { animation-play-state: paused; }
.csla .csla-mq-set { display: flex; gap: 14px; padding-right: 14px; }
.csla .csla-mq-tile { flex: none; width: 176px; height: 92px; display: flex; align-items: center; justify-content: center; background: #ffffff; border: 1px solid #e2edf4; border-radius: 12px; padding: 16px 22px; transition: border-color .2s ease, box-shadow .2s ease; }
.csla .csla-mq-tile.is-dark { background: #0f3a55; border-color: #0f3a55; }
.csla .csla-mq-tile img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; display: block; }
.csla a.csla-mq-tile:hover { border-color: #58c2e3; box-shadow: 0 10px 22px rgba(15,58,85,.10); }
@keyframes csla-mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.csla .csla-mq { -webkit-mask-image: none; mask-image: none; margin: 0; }
	.csla .csla-mq-track { animation: none; width: auto; }
	.csla .csla-mq-row { overflow: visible; }
	.csla .csla-mq-set { flex-wrap: wrap; justify-content: center; padding: 0; }
	.csla .csla-mq-set[aria-hidden="true"] { display: none; }
}
@media (max-width: 560px) {
	.csla .csla-mq-tile { width: 140px; height: 76px; padding: 12px 16px; }
	.csla .csla-mq-tile img { max-height: 42px; }
}
