/* ==========================================================================
   Case Studies — Elementor Widgets (shared structural CSS)
   Colors, typography and spacing come from each widget's own Style tab
   controls (set inline by Elementor per instance). This file only holds
   the structural / layout rules controls don't cover, so there is never
   a conflict between the two.
   ========================================================================== */

.cs-hero__kicker,
.cs-hero__heading,
.cs-hero__desc { display: block; margin: 0; }

/* ---- Featured Story ---- */
.cs-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-decoration: none;
    color: inherit;
}
.cs-featured__illust { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cs-featured__illust img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-featured__body { display: flex; flex-direction: column; justify-content: center; }
.cs-featured__pill { display: inline-block; padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; width: fit-content; }
.cs-featured__heading { margin: 0 0 10px; }
.cs-featured__excerpt { margin: 0 0 20px; }
.cs-featured__btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; width: fit-content; text-decoration: none; }
@media (max-width: 820px) { .cs-featured { grid-template-columns: 1fr; } }

/* ---- Filter & Search Bar ---- */
.cs-filter-bar { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.cs-filter-pills { display: flex; flex-wrap: wrap; gap: 12px; flex: 1; min-width: 0; }
.cs-filter {
    display: inline-flex;
    align-items: center;
    border-style: solid;
    border-width: 1px;
    text-decoration: none;
    transition: transform .15s ease, background-color .15s ease;
    padding: 11px 22px;
}
.cs-filter:hover { transform: translateY(-1px); }
.cs-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    padding: 12px 18px;
    min-width: 260px;
    flex-shrink: 0;
}
.cs-search svg { flex-shrink: 0; padding-right: 9px; border-right: 1px solid currentColor; opacity: .4; }
.cs-search input { border: none; outline: none; background: transparent; width: 100%; font: inherit; color: inherit; }
@media (max-width: 640px) { .cs-filter-bar { justify-content: center; } .cs-search { width: 100%; } }

/* ---- Grid & Cards ---- */
.cs-grid__items { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; transition: opacity .2s ease; }
.cs-grid__items.is-loading { opacity: .45; pointer-events: none; }
.cs-card { border-style: solid; border-width: 1px; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.cs-card:hover { transform: translateY(-3px); }
.cs-card__illust-link { display: block; text-decoration: none; }
.cs-card__illust { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,.35); }
.cs-card__illust img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-card__pill { display: inline-block; padding: 4px 10px; border-radius: 20px; margin-bottom: 8px; width: fit-content; }
.cs-card__heading { margin: 0 0 8px; }
.cs-card__heading a { text-decoration: none; color: inherit; }
.cs-card__excerpt { margin: 0 0 14px; }
.cs-card__read { text-decoration: none; font-weight: 800; font-size: 13px; display: inline-block; }
.cs-no-results { grid-column: 1 / -1; text-align: center; padding: 24px 0; }
@media (max-width: 820px) { .cs-grid__items { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { .cs-grid__items { grid-template-columns: 1fr !important; } }

/* ---- Pagination ---- */
.cs-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.cs-pagination.is-hidden { display: none; }
.cs-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.cs-pagination .page-numbers.dots { border: none; background: transparent !important; }

/* ---- CTA Banner ---- */
.cs-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cs-cta--centered { flex-direction: column; text-align: center; }
.cs-cta__heading { margin: 0 0 6px; }
.cs-cta__text { margin: 0; max-width: 480px; }
.cs-cta--centered .cs-cta__text { max-width: 100%; }
.cs-cta__btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; text-decoration: none; flex-shrink: 0; }
@media (max-width: 640px) { .cs-cta { flex-direction: column; text-align: center; } }

/* ---- Search "results found" note (injected by JS) ---- */
.cs-search-meta { grid-column: 1 / -1; font-size: 13px; opacity: .7; margin: 0 0 6px; }

/* ==========================================================================
   SINGLE CASE STUDY PAGE WIDGETS
   ========================================================================== */

/* ---- Single Hero ---- */
.cs-single-hero { padding: 44px 0 0; }
.cs-single-hero__inner { width: min(1080px, calc(100% - 40px)); margin: auto; padding-bottom: 64px; }
.cs-single-hero__crumb { font-size: 13px; color: #c9c2ae; margin-bottom: 26px; }
.cs-single-hero__crumb a { text-decoration: underline; color: inherit; }
.cs-single-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.cs-single-hero__kicker { display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; }
.cs-single-hero__heading { margin: 14px 0; }
.cs-single-hero__desc { margin: 0 0 4px; max-width: 520px; }
.cs-single-hero__byline { margin-top: 16px; font-size: 13px; }
.cs-single-hero__actions { margin-top: 22px; }
.cs-single-hero__btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 14px 28px; border-radius: 30px; font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.cs-single-hero__btn:hover { transform: translateY(-2px); }
.cs-single-hero__illust { border-radius: 20px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cs-single-hero__illust img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-single-hero__cap { position: absolute; bottom: 10px; left: 10px; background: #fff; color: #2b2a24; border-radius: 20px; padding: 5px 12px; font-size: 10.5px; font-weight: 700; }
@media (max-width: 820px) { .cs-single-hero__grid { grid-template-columns: 1fr; } }

/* ---- Stats Bar ---- */
.cs-stats-wrap { position: relative; z-index: 2; margin-top: -34px; }
.cs-stats {
    width: min(1080px, calc(100% - 40px));
    margin: auto;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(43,42,36,.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 22px 28px;
    border: 1px solid transparent;
}
.cs-stat { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; border-right: 1px solid #ece3ce; }
.cs-stat:last-child { border-right: 0; }
.cs-stat__icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 4px; }
.cs-stat__icon i, .cs-stat__icon svg { width: 16px; height: 16px; font-size: 16px; }
.cs-stat small { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; font-weight: 800; }
@media (max-width: 640px) { .cs-stats { grid-template-columns: 1fr; } .cs-stat { border-right: 0; border-bottom: 1px solid #ece3ce; padding-bottom: 10px; } .cs-stat:last-child { border-bottom: 0; } }

/* ---- TL;DR ---- */
.cs-tldr { border-style: solid; border-width: 1px; border-radius: 20px; padding: 26px 30px; width: min(1080px, calc(100% - 40px)); margin: 44px auto 0; }
.cs-tldr h2 { margin: 0 0 12px; font-size: 18px; }
.cs-tldr ul { margin: 0; padding-left: 20px; font-size: 15px; }
.cs-tldr li { margin: 4px 0; }

/* ---- Timeline Story ---- */
.cs-timeline { position: relative; width: min(1080px, calc(100% - 40px)); margin: auto; --p: 0; }
.cs-timeline::before, .cs-timeline::after { content: ""; position: absolute; left: 18px; top: 50px; bottom: 50px; width: 3px; border-radius: 3px; }
.cs-timeline::after { transform-origin: top; transform: scaleY(var(--p)); }
.cs-timeline__item { padding: 36px 0 36px 64px; position: relative; }
.cs-timeline__grid { position: relative; }
.cs-timeline__badge { position: absolute; left: -64px; top: 0; width: 38px; height: 38px; border-radius: 50%; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; z-index: 1; box-shadow: 0 0 0 6px #fffdf8; }
.cs-timeline__kicker { display: block; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; }
.cs-timeline__heading { margin: 0 0 12px; }
.cs-timeline__text { margin: 0; font-size: 15.5px; }
.cs-timeline__quote { border-left: 4px solid; padding-left: 18px; margin-top: 16px; font-style: italic; }
.cs-timeline__quote small { display: block; margin-top: 6px; font-style: normal; font-size: 13px; opacity: .7; }
.cs-timeline__illust { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.cs-timeline__illust img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-timeline__illust i, .cs-timeline__illust svg { font-size: 44px; opacity: .55; }
.cs-timeline__cap { position: absolute; bottom: 10px; left: 10px; background: #fff; color: #2b2a24; border-radius: 20px; padding: 5px 12px; font-size: 10.5px; font-weight: 700; }
@media (min-width: 821px) {
    .cs-timeline__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
    .cs-timeline__item.is-reverse .cs-timeline__text-col { order: 2; }
    .cs-timeline__item.is-reverse .cs-timeline__img-col { order: 1; }
}
@media (max-width: 820px) { .cs-timeline::before, .cs-timeline::after { left: 15px; } .cs-timeline__item { padding-left: 52px; } .cs-timeline__badge { left: -52px; width: 32px; height: 32px; } }

/* ---- Result Section ---- */
.cs-result { padding: 64px 0; }
.cs-result__inner { text-align: center; max-width: 700px; margin: 0 auto; padding: 0 20px; }
.cs-result__kicker { display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; }
.cs-result__heading { margin: 12px 0 34px; }
.cs-counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 34px; }
.cs-counter b { display: block; font-size: 30px; font-weight: 800; }
.cs-counter small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.cs-result__btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 30px; font-weight: 700; font-size: 14px; text-decoration: none; }
@media (max-width: 640px) { .cs-counters { grid-template-columns: 1fr; gap: 16px; } }

/* ---- Process Steps ---- */
.cs-process { text-align: center; padding: 56px 0; width: min(1080px, calc(100% - 40px)); margin: auto; }
.cs-process__kicker { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; }
.cs-process__heading { margin: 8px 0 32px; }
.cs-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.cs-step { border-style: solid; border-width: 1px; border-radius: 18px; padding: 22px; transition: transform .18s, box-shadow .18s; }
.cs-step:hover { transform: translateY(-4px); }
.cs-step__num { display: flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; font-size: 13px; margin-bottom: 10px; }
.cs-step h3 { font-size: 15px; margin: 0 0 4px; }
.cs-step p { font-size: 13px; margin: 0; }
@media (max-width: 820px) { .cs-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cs-steps { grid-template-columns: 1fr; } }

/* ---- Trust Grid ---- */
.cs-trust { text-align: center; padding: 56px 0; width: min(1080px, calc(100% - 40px)); margin: auto; }
.cs-trust__kicker { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; }
.cs-trust__heading { margin: 0 0 36px; }
.cs-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cs-trust-item { border-radius: 18px; padding: 28px 20px; transition: transform .18s; }
.cs-trust-item:hover { transform: translateY(-4px); }
.cs-trust-item__icon { font-size: 32px; margin-bottom: 12px; }
.cs-trust-item__icon i, .cs-trust-item__icon svg { width: 32px; height: 32px; font-size: 32px; }
.cs-trust-item h3 { font-size: 15.5px; margin: 0 0 6px; }
.cs-trust-item p { font-size: 13.5px; margin: 0; }
@media (max-width: 820px) { .cs-trust-grid { grid-template-columns: 1fr; } }

/* ---- Comparison Table ---- */
.cs-compare { padding: 56px 0; text-align: center; width: min(1080px, calc(100% - 40px)); margin: auto; }
.cs-compare__kicker { display: block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; }
.cs-compare__heading { margin: 0 0 30px; }
.cs-compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #ece3ce; text-align: left; }
.cs-compare-table th { padding: 16px 20px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.cs-compare-table td { padding: 16px 20px; font-size: 14px; border-top: 1px solid #ece3ce; }
.cs-compare-table__factor { font-weight: 700; }

/* ---- Testimonials ---- */
.cs-testi { padding: 56px 0; text-align: center; width: min(1080px, calc(100% - 40px)); margin: auto; }
.cs-testi__kicker { display: block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; }
.cs-testi__heading { margin: 0 0 30px; }
.cs-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.cs-testi-card { border-style: solid; border-width: 1px; border-radius: 18px; padding: 26px; transition: transform .18s, box-shadow .18s; }
.cs-testi-card:hover { transform: translateY(-4px); }
.cs-testi-card__stars { font-size: 14px; margin-bottom: 10px; }
.cs-testi-card p { font-size: 14px; font-style: italic; margin: 0 0 14px; }
.cs-testi-card__name { font-size: 13px; font-weight: 800; }
.cs-testi-card__loc { font-size: 12px; opacity: .7; }
@media (max-width: 820px) { .cs-testi-grid { grid-template-columns: 1fr; } }

/* ---- Related Posts Slider ---- */
.cs-posts { padding: 56px 0; width: min(1080px, calc(100% - 40px)); margin: auto; }
.cs-posts__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 14px; }
.cs-posts__heading { margin: 0; }
.cs-post-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-post-filter { background: #fff; border: 1px solid #ece3ce; border-radius: 20px; padding: 8px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.cs-post-slider { position: relative; overflow: hidden; }
.cs-post-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.cs-post-slide { flex: 0 0 33.333%; padding: 0 10px; box-sizing: border-box; }
.cs-post-card { display: block; border-radius: 16px; overflow: hidden; border: 1px solid #ece3ce; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.cs-post-card:hover { transform: translateY(-4px); }
.cs-post-card__illust { min-height: 120px; display: flex; align-items: center; justify-content: center; color: #fff; }
.cs-post-card__illust i, .cs-post-card__illust svg { font-size: 32px; width: 32px; height: 32px; }
.cs-post-card__body { padding: 16px; }
.cs-post-card__body h3 { font-size: 14px; margin: 0 0 10px; }
.cs-post-card__read { font-weight: 800; font-size: 12.5px; color: #a8821e; }
@media (max-width: 640px) { .cs-post-slide { flex: 0 0 100%; } .cs-posts__head { flex-direction: column; align-items: flex-start; } }

/* ---- Related Case Studies Auto-Slider ---- */
.cs-related-cs { padding: 56px 0; text-align: center; width: min(1080px, calc(100% - 40px)); margin: auto; }
.cs-related-cs__kicker { display: block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; }
.cs-related-cs__heading { margin: 0 0 30px; }
.cs-cs-slider { position: relative; height: 120px; max-width: 700px; margin: 0 auto; overflow: hidden; border-style: solid; border-width: 1px; border-radius: 18px; }
.cs-cs-slide { position: absolute; inset: 0; display: flex; align-items: center; gap: 18px; padding: 20px 24px; opacity: 0; transform: translateY(100%); transition: opacity .5s ease, transform .5s ease; text-align: left; }
.cs-cs-slide.active { opacity: 1; transform: translateY(0); }
.cs-cs-slide.exiting { opacity: 0; transform: translateY(-100%); }
.cs-cs-slide__icon { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; flex-shrink: 0; overflow: hidden; }
.cs-cs-slide__icon img { width: 100%; height: 100%; object-fit: cover; }
.cs-cs-slide__body { flex: 1; }
.cs-cs-slide__kicker { display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; }
.cs-cs-slide__body h4 { font-size: 15px; font-weight: 800; margin: 0; }
.cs-cs-slide__btn { flex-shrink: 0; padding: 10px 20px; font-size: 13px; border-radius: 30px; text-decoration: none; font-weight: 700; }

/* ---- FAQ Accordion ---- */
.cs-faq { padding: 56px 0; width: min(1080px, calc(100% - 40px)); margin: auto; }
.cs-faq__kicker { display: block; text-align: center; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; }
.cs-faq__heading { text-align: center; margin: 0 0 28px; }
.cs-faq-list { max-width: 760px; margin: 0 auto; }
.cs-faq-item { border-style: solid; border-width: 1px; border-radius: 16px; margin-bottom: 10px; transition: box-shadow .18s; }
.cs-faq-item[open] { box-shadow: 0 10px 24px rgba(43,42,36,.08); }
.cs-faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; }
.cs-faq-item summary::-webkit-details-marker { display: none; }
.cs-faq-item summary::after { content: "+"; font-size: 22px; line-height: 1; transition: transform .25s; }
.cs-faq-item[open] summary::after { transform: rotate(45deg); }
.cs-faq-item p { margin: 0; padding: 0 22px 18px; font-size: 15px; }

/* ---- Page Utilities: progress bar + WhatsApp float ---- */
.cs-progress-bar { position: fixed; top: 0; left: 0; height: 4px; width: 100%; transform-origin: left; z-index: 9999; transform: scaleX(0); }
.cs-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .18s; text-decoration: none; }
.cs-wa-float:hover { transform: scale(1.08); }

/* ---- Section Dots Nav ---- */
.cs-dots-nav { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.cs-dots-nav a { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; position: relative; transition: transform .2s, background .2s; display: block; }
.cs-dots-nav a.is-active { transform: scale(1.5); }
.cs-dots-nav a::after { content: attr(data-l); position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px; opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .18s; }
.cs-dots-nav a:hover::after, .cs-dots-nav a:focus-visible::after { opacity: 1; }
@media (max-width: 820px) { .cs-dots-nav { display: none; } }

@media (prefers-reduced-motion: reduce) { .cs-timeline *, .cs-cs-slide, .cs-post-track, .cs-wa-float, .cs-progress-bar { transition: none !important; } }
