/* Global Styles */
:root {
    --cs-bg: #0c0c0e;
    --cs-border: #1e1e20;
    --cs-text: #ffffff;
    --cs-muted: #777;
    --cs-orange: #f5a623;
    --cs-font-h: 'League Spartan', sans-serif;
    --cs-font-b: 'Mulish', sans-serif;
    --cs-max: min(100%, 1200px);
}

/* Base theme colors - no !important to allow overrides */
body.post-type-archive-case-study,
body.single-case-study,
body.tax-industry,
body.tax-service {
    background: var(--cs-bg);
    color: var(--cs-text);
}

/* Scoped fonts */
.cs-single,
.cs-archive {
    font-family: var(--cs-font-b);
}

/* Tag pills */
/* .cs-tag {
    padding: 0;
    font-size: clamp(26px, 3vw, 40px);
    font-family: "League Spartan", Sans-serif;
    font-weight: 500;
    fill: currentColor;
    background: transparent;
    border: 0;
    border-radius: 0;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
} */

.cs-tag-sm {
    padding: 6px 50px;
    font-size: 16px;
    font-family: "League Spartan", Sans-serif;
    font-weight: 400;
    fill: #FFFFFF;
    color: #FFFFFF;
    border-style: solid;
    border-width: 2px 2px 2px 2px;
    border-color: #f2ab004a;
    border-radius: 5000px 5000px 5000px 5000px;
}

.cs-orange {
    color: var(--cs-orange);
}

/* === Archive/Grid Styles === */

/* Top hero section */
.cs-hero {
    background: var(--cs-bg);
    text-align: center;
    padding: 80px 20px 50px;
}

.cs-hero-label {
    display: inline-block;
    background: #fff;
    color: #000;
    font-family: var(--cs-font-h);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 20px;
    margin: 0 0 22px;
}

.cs-hero-title {
    font-family: var(--cs-font-h);
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: #fff;
}

/* ── Multi-select Filters ────────────────────────────────────── */
.cs-filter-controls {
    max-width: var(--cs-max);
    margin: 0 auto 50px;
    padding: 0 20px;
}

.cs-filter-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Filter dropdowns */
.cs-filter-dropdown {
    position: relative;
    user-select: none;
}

.cs-filter-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 14px 24px;
    background: #1a1a1c;
    border: 1px solid var(--cs-border);
    border-radius: 4px;
    cursor: pointer;
    min-width: 220px;
    transition: all 0.2s;
}

.cs-filter-dropdown-trigger:hover {
    background: #252528;
    border-color: #444;
}

.cs-filter-dropdown-trigger span {
    font-family: var(--cs-font-b);
    font-size: 16px;
    font-weight: 600;
    color: #eee;
}

.cs-icon-chevron {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #eee;
    transition: transform 0.2s;
}

.cs-filter-dropdown.active .cs-icon-chevron {
    transform: rotate(180deg);
}

.cs-filter-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 280px;
    background: #1a1a1c;
    border: 1px solid var(--cs-border);
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: none;
    max-height: 350px;
    overflow-y: auto;
}

.cs-filter-dropdown.active .cs-filter-dropdown-content {
    display: block;
}

.cs-filter-options {
    padding: 15px 0;
}

.cs-filter-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.cs-filter-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cs-filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 1px solid #444;
    background: #222;
    border-radius: 3px;
}

.cs-filter-option span {
    font-family: var(--cs-font-b);
    font-size: 15px;
    color: #ddd;
    font-weight: 500;
}

.cs-filter-clear-all {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    font-family: var(--cs-font-b);
    margin-left: 10px;
}

.cs-filter-clear-all:hover {
    color: var(--cs-orange);
}

#cs-grid-results {
    transition: opacity 0.3s ease;
}

/* Main grid layout for archives */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    max-width: var(--cs-max);
    margin: 0 auto;
    /* padding: 20px 20px 80px; */

}

.cs-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0;
    transition: opacity 0.2s;
}

.cs-card:hover {
    opacity: 0.9;
}

/* Remove old borders */
.cs-card:nth-child(odd) {
    border-right: none;
}

/* Thumbnail — no border radius, matches screenshot */
.cs-card-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #1a1a1c;
    margin-bottom: 22px;
    border-radius: 12px;
}

.cs-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.4s;
}

.cs-card:hover .cs-card-thumb img {
    transform: scale(1.03);
}

/* Card content area */
.cs-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Meta row: client name + tags on same line */
.cs-card-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Industry (niche) — Matches reference: white, bold, uppercase, ~13px */
.cs-card-industry {
    font-family: var(--cs-font-h);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

/* Tags inline with Industry */
.cs-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Card title — Matches reference: ~28px, bold */
.cs-card-title {
    font-family: var(--cs-font-h);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #fff;
    letter-spacing: -0.01em;
}

.cs-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--cs-muted);
    padding: 60px 0;
}

/* Pagination */
.cs-pagination {
    text-align: center;
    padding: 60px 0 100px;
    max-width: var(--cs-max);
    margin: 0 auto;
}

.cs-pagination .page-numbers {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-family: var(--cs-font-h);
    font-weight: 400;
    transition: all 0.2s;
    border: none;
    background: transparent;
}

.cs-pagination .page-numbers.current {
    color: var(--cs-orange);
    font-weight: 700;
}

.cs-pagination .page-numbers:hover:not(.current) {
    color: var(--cs-orange);
}

/* .cs-pagination .prev,
.cs-pagination .next {
    font-weight: 600;
} */

/* Archive responsive */
@media (max-width: 900px) {
    .cs-grid {
        gap: 40px 20px;
    }

    .cs-card-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .cs-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .cs-card {
        padding: 0;
    }

    .cs-card-title {
        font-size: 24px;
    }
}

/* === Single Case Study Layout === */

/* Hero area */
.cs-single-hero {
    background: var(--cs-bg);
    text-align: center;
    padding: 78px 20px 42px;
}

.cs-single-hero-inner {
    max-width: 980px;
    margin: 0 auto;
}

.cs-single-title {
    font-family: var(--cs-font-h);
    font-size: clamp(30px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
    margin: 0 0 22px;
}

.cs-single-tags {
    display: flex;
    justify-content: center;
    gap: 44px;
    flex-wrap: wrap;
}

.cs-tag-service {
    color: #f2ab00;
}

.cs-tag-industry {
    color: #E66B00;
}

/* ── FEATURED IMAGE ────────────────────────────────────────────── */
.cs-single-thumb {
    max-width: 860px;
    margin: 0 auto 72px;
    padding: 0 20px;
}

.cs-single-thumb img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

/* Stat boxes */
.cs-key-results {
    padding: 0 20px 78px;
}

.cs-key-results-inner {
    max-width: var(--cs-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 100px;
}

.cs-key-results-title {
    font-family: var(--cs-font-h);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #F2AB00, #F2AB00, #E66B00);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cs-key-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cs-key-result-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.cs-key-stat-val {
    font-family: var(--cs-font-h);
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 800;
    color: var(--cs-orange);
    line-height: 1;
    margin: 0;
}

.cs-key-stat-lbl {
    font-family: var(--cs-font-h);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

/* ── SECTION LABEL (BACKGROUND, CHALLENGE, RESULTS…) ───────────── */
.cs-section-label {
    display: inline-block;
    font-family: "League Spartan", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    margin: 0;
    /* margin-bottom: 4px; */
}

.cs-ai-gradient {
    background: linear-gradient(90deg, #F2AB00, #F2AB00, #E66B00);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ── MAIN CONTENT AREA ────────────────────────────────────────── */
.cs-main-content {
    padding: 60px 20px 20px;
}

.cs-main-content-inner {
    max-width: var(--cs-max);
    margin: 0 auto;
    font-family: var(--cs-font-b);
    font-size: 18px;
    line-height: 1.8;
    color: #ccc;
}

.cs-main-content-inner p {
    margin-bottom: 1.5em;
}

/* ── TWO-COLUMN: BACKGROUND + CHALLENGE ────────────────────────── */
.cs-two-col-section {
    padding: 80px 20px;
}

.cs-two-col-inner {
    max-width: var(--cs-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.cs-two-col-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cs-section-body {
    font-family: var(--cs-font-b);
    font-size: 17px;
    line-height: 1.8;
    color: #ccc;
}

.cs-section-body p {
    margin: 0 0 1.1em;
}

.cs-section-body ul,
.cs-section-body ol {
    padding-left: 1.5em;
    margin-bottom: 1.1em;
}

.cs-section-body li {
    margin-bottom: 0.5em;
}

.cs-section-body h2,
.cs-section-body h3 {
    font-family: var(--cs-font-h);
    color: #fff;
    margin: 1.5em 0 0.5em;
}

.cs-two-col-title {
    font-family: var(--cs-font-h);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    margin: 0;
}

/* Strategy area */
.cs-approach-section {
    padding: 80px 20px;
    background: transparent;
    border-top: 1px solid var(--cs-border);
}

.cs-approach-inner {
    max-width: var(--cs-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cs-approach-main-heading {
    font-family: "League Spartan", Sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.18;
    color: #fff;
    margin: 0;
    max-width: 760px;
}

.cs-approach-content {
    font-family: var(--cs-font-b);
    font-size: 17px;
    line-height: 1.8;
    color: #ccc;
}

.cs-approach-content p {
    margin: 0 0 1em;
}

.cs-approach-content h3 {
    font-family: var(--cs-font-h);
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    margin: 1.5em 0 0.5em;
}

/* Approach CARDS — when strategy text uses h3 headings */
.cs-approach-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cs-approach-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    transition: none;
}

.cs-approach-card:hover {
    border-color: transparent;
}

.cs-approach-card-title {
    font-family: "League Spartan", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.18;
    text-transform: uppercase;
}

.cs-approach-card:nth-child(1) .cs-approach-card-title {
    color: #F2AB00;
}

.cs-approach-card:nth-child(2) .cs-approach-card-title {
    color: #E66B00;
}

.cs-approach-card:nth-child(3) .cs-approach-card-title {
    color: #61CE70;
}

.cs-approach-card-body {
    font-family: var(--cs-font-b);
    font-size: 16px;
    line-height: 1.7;
    color: #d0d0d0;
}

.cs-approach-card-body p {
    margin: 0;
}

/* ── RESULTS HEADING ───────────────────────────────────────────── */
.cs-results-header-section {
    padding: 56px 20px 32px;
}

.cs-results-header-inner {
    max-width: var(--cs-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
}

.cs-results-heading {
    font-family: "League Spartan", Sans-serif;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #FFFFFF;
    margin: 0;
}

/* ── RESULT CARDS ──────────────────────────────────────────────── */
.cs-result-cards-section {
    padding: 0 20px 0px;
}

.cs-result-cards-inner {
    max-width: var(--cs-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cs-result-card {
    background: #0f0f10 url(https://darkgoldenrod-pony-314387.hostingersite.com/wp-content/uploads/2026/04/Screenshot-2026-04-17-at-3.53.39-AM.png);
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: contain;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: none;
    text-align: center;
    min-height: 320px;
    justify-content: flex-start;
}

.cs-result-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.cs-result-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(28deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 24px);
    opacity: 0.15;
    pointer-events: none;
    transform: translateX(-25%) translateY(12%);
    width: 160%;
    height: 160%;
}

.cs-result-stat-val {
    display: block;
    font-family: "League Spartan", Sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #F2AB00;
    line-height: 1;
    position: relative;
    margin: 0 0 8px;
    z-index: 1;
}

.cs-result-stat-lbl {
    font-family: var(--cs-font-h);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    position: relative;
    line-height: 1.2;
}

.cs-result-card-title {
    font-family: "League Spartan", Sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2em;
    color: #fff;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    z-index: 1;
    margin: 0;
}

.cs-result-card-copy {
    font-family: var(--cs-font-b);
    font-size: 16px;
    line-height: 1.65;
    color: #f3f3f3;
    position: relative;
    z-index: 1;
    margin: 0;
}

.cs-results-box {
    padding: 0;
    margin: 0;
}

.cs-results-box p {
    margin: 0;
    color: #f3f3f3;
    font-size: 16px;
    line-height: 1.65;
}

/* ── KEY TAKEAWAYS / HIGHLIGHTS ────────────────────────────────── */
.cs-highlights-section {
    padding: 80px 20px;
    background: #0e0e10;
    border-top: 1px solid var(--cs-border);
    border-bottom: 1px solid var(--cs-border);
}

.cs-highlights-inner {
    max-width: var(--cs-max);
    margin: 0 auto;
}

.cs-highlights-title {
    font-family: var(--cs-font-h);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 40px;
}

.cs-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
}

.cs-highlight-item {
    position: relative;
    padding-left: 32px;
    font-family: var(--cs-font-b);
    font-size: 16px;
    line-height: 1.65;
    color: #ccc;
}

.cs-highlight-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--cs-orange);
    font-weight: 900;
    font-size: 17px;
}

/* Quote section */
.cs-testimonial-section {
    padding: 90px 20px 70px;
}

.cs-testimonial-inner {
    max-width: var(--cs-max);
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.cs-testimonial-top-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin: 0 auto 72px;
}

.cs-testimonial-top-image {
    width: 100%;
}

.cs-testimonial-top-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.cs-testimonial-quote {
    font-family: var(--cs-font-b);
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.3;
    color: #d8d8d8;
    margin: 0 0 26px;
    border: none;
    padding: 0;
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.cs-testimonial-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    position: relative;
    z-index: 1;
}

.cs-testimonial-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.cs-testimonial-logo {
    max-width: 170px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: brightness(1) contrast(1.05);
}

.cs-testimonial-author {
    font-family: var(--cs-font-h);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.cs-testimonial-pos {
    font-family: var(--cs-font-b);
    font-size: 15px;
    color: #c9c9c9;
    font-weight: 600;
}

/* ── PROJECT META ROW ──────────────────────────────────────────── */
.cs-project-meta-row {
    max-width: var(--cs-max);
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 48px;
    border-top: 1px solid var(--cs-border);
    border-bottom: 1px solid var(--cs-border);
}

.cs-detail-item {
    font-family: var(--cs-font-b);
    font-size: 15px;
    color: #ccc;
}

.cs-detail-item strong {
    color: #fff;
    font-weight: 700;
    margin-right: 6px;
}

.cs-detail-item a {
    color: var(--cs-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.cs-detail-item a:hover {
    color: #fff;
}


/* ── BACK LINK ─────────────────────────────────────────────────── */
.cs-single-footer {
    max-width: var(--cs-max);
    margin: 0 auto;
    padding: 40px 20px 70px;
    border-top: 1px solid var(--cs-border);
}

.cs-back-link {
    color: var(--cs-orange);
    text-decoration: none;
    font-family: var(--cs-font-h);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.cs-back-link:hover {
    color: #fff;
}

/* ── SINGLE PAGE RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
    .cs-key-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-approach-cards,
    .cs-result-cards-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cs-single-hero {
        padding: 65px 20px 40px;
    }

    .cs-two-col-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cs-key-results-grid,
    .cs-approach-cards,
    .cs-result-cards-inner,
    .cs-testimonial-top-images {
        grid-template-columns: 1fr;
    }

    .cs-result-card {
        padding: 32px 24px;
        min-height: 280px;
    }

    .cs-testimonial-quote {
        font-size: 17px;
    }

    .cs-two-col-section,
    .cs-approach-section,
    .cs-result-cards-section,
    .cs-testimonial-section,
    .cs-highlights-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .cs-results-header-section {
        padding: 56px 10px 0px;
    }

    .cs-results-heading {
        font-size: 36px;
        line-height: 38px;
    }

    .cs-key-results {
        padding: 0 20px 20px;
    }
}

@media (max-width: 600px) {
    .cs-project-meta-row {
        flex-direction: column;
        gap: 12px;
    }
}

