/* =========================================================
   Knowledge Center — Archive Case Studies
   File: assets/css/layout/knowledge-center/kc-archive-case-studies.css
   Template: templates/archive-agr_case_study.php
   ========================================================= */


/* =========================================================
   01. PAGE WRAPPER
   ========================================================= */

.agr-kc-case-archive {
    --kc-border: rgba(26, 48, 26, 0.10);

    position: relative;
    overflow: hidden;
    width: 100%;
    background: var(--kc-bg-light, #f0f0f0);
    color: var(--kc-black, #000000);
    font-family: var(--kc-font-body, Lato, Arial, sans-serif);
}

.agr-kc-case-archive *,
.agr-kc-case-archive *::before,
.agr-kc-case-archive *::after {
    box-sizing: border-box;
}


/* =========================================================
   02. HERO
   ========================================================= */

.agr-kc-case-hero {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 720px;
    padding: 34px 42px 0;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 18%, rgba(38, 173, 33, 0.18) 0%, transparent 28%),
        radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 24%),
        linear-gradient(135deg, #111811 0%, #1a301a 48%, #0f1710 100%);
}

.agr-kc-case-hero--has-image {
    background:
        linear-gradient(
            90deg,
            rgba(10, 16, 11, calc(0.62 + var(--agr-kc-case-banner-overlay, 0.38))) 0%,
            rgba(26, 48, 26, calc(0.54 + var(--agr-kc-case-banner-overlay, 0.38))) 48%,
            rgba(10, 16, 11, calc(0.40 + var(--agr-kc-case-banner-overlay, 0.38))) 100%
        ),
        var(--agr-kc-case-banner-image),
        linear-gradient(135deg, #111811 0%, #1a301a 100%);
    background-position:
        center,
        var(--agr-kc-case-banner-position, center center),
        center;
    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat;
    background-size:
        cover,
        cover,
        cover;
}

.agr-kc-case-hero--no-image {
    background:
        radial-gradient(circle at 12% 18%, rgba(38, 173, 33, 0.18) 0%, transparent 28%),
        radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 24%),
        linear-gradient(135deg, #111811 0%, #1a301a 48%, #0f1710 100%);
}

.agr-kc-case-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.22;
    -webkit-mask-image: radial-gradient(
        circle at 76% 42%,
        #000000 0%,
        rgba(0, 0, 0, 0.56) 42%,
        transparent 76%
    );
    mask-image: radial-gradient(
        circle at 76% 42%,
        #000000 0%,
        rgba(0, 0, 0, 0.56) 42%,
        transparent 76%
    );
}

.agr-kc-case-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.04) 0%,
            transparent 36%,
            rgba(0, 0, 0, 0.16) 100%
        );
}


/* =========================================================
   03. HERO DECORATIONS
   ========================================================= */

.agr-kc-case-hero__background {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.agr-kc-case-hero__shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
}

.agr-kc-case-hero__shape--one {
    top: 76px;
    right: 7%;
    width: 300px;
    height: 300px;
    transform: rotate(8deg);
}

.agr-kc-case-hero__shape--two {
    bottom: 70px;
    left: -90px;
    width: 280px;
    height: 190px;
    opacity: 0.7;
    transform: rotate(-12deg);
}

.agr-kc-case-hero__line {
    position: absolute;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.24),
            rgba(38, 173, 33, 0.46),
            transparent
        );
}

.agr-kc-case-hero__line--one {
    top: 180px;
    right: -8%;
    left: -8%;
    transform: rotate(-2.2deg);
}

.agr-kc-case-hero__line--two {
    right: -10%;
    bottom: 145px;
    left: -10%;
    opacity: 0.64;
    transform: rotate(2.4deg);
}


/* =========================================================
   04. HERO INNER
   ========================================================= */

.agr-kc-case-hero__inner {
    position: relative;
    z-index: 7;
    max-width: var(--kc-container-wide, 1440px);
    min-height: 686px;
    margin: 0 auto;
    padding: 0 48px 92px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 0;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 24px 72px rgba(0, 0, 0, 0.16);
}

.agr-kc-case-hero__inner::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.045);
}

.agr-kc-case-hero__inner::after {
    content: "";
    position: absolute;
    right: 20%;
    bottom: 22px;
    left: 0;
    height: 1px;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.11) 22%,
            rgba(38, 173, 33, 0.33) 68%,
            rgba(255, 255, 255, 0) 100%
        );
}


/* =========================================================
   05. HERO TOPBAR
   ========================================================= */

.agr-kc-case-hero__topbar {
    position: relative;
    z-index: 9;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    min-height: 104px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.agr-kc-case-hero__topbar::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -1px;
    left: -48px;
    height: 1px;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.14) 20%,
            rgba(255, 255, 255, 0.42) 48%,
            rgba(38, 173, 33, 0.34) 74%,
            rgba(255, 255, 255, 0) 100%
        );
}

.agr-kc-case-hero__back {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    width: fit-content;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        color 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

.agr-kc-case-hero__back:hover {
    color: #ffffff;
    opacity: 0.82;
    transform: translateX(-2px);
}

.agr-kc-case-hero__back:focus-visible {
    outline: 2px solid var(--kc-green-accent, #26ad21);
    outline-offset: 6px;
}

.agr-kc-case-hero__back-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: var(--kc-green-accent, #26ad21);
}

.agr-kc-case-hero__back-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.agr-kc-case-hero__label {
    justify-self: center;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.055em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.agr-kc-case-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.agr-kc-case-hero__badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 174px;
    min-height: 48px;
    padding: 0 30px;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid rgba(74, 138, 74, 0.42);
    background:
        linear-gradient(
            135deg,
            rgba(74, 138, 74, 0.98) 0%,
            rgba(63, 125, 63, 0.94) 56%,
            rgba(26, 48, 26, 0.94) 100%
        );
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 12px 24px rgba(0, 0, 0, 0.16);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.045em;
    text-align: center;
    text-transform: uppercase;
}

.agr-kc-case-hero__badge::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            115deg,
            transparent 0%,
            rgba(255, 255, 255, 0.16) 24%,
            rgba(255, 255, 255, 0.035) 44%,
            transparent 62%
        );
    transform: translateX(-38%);
}


/* =========================================================
   06. HERO MAIN LAYOUT
   ========================================================= */

.agr-kc-case-hero__layout {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(400px, 0.74fr);
    gap: clamp(48px, 6vw, 92px);
    align-items: center;
    padding-top: 54px;
}

.agr-kc-case-hero__content {
    position: relative;
    z-index: 8;
    min-width: 0;
    max-width: 760px;
}

.agr-kc-case-hero__title {
    max-width: 800px;
    margin: 0;
    color: #ffffff;
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: clamp(48px, 5.5vw, 50px);
    font-weight: 850;
    line-height: 0.96;
    letter-spacing: -0.052em;
    text-wrap: balance;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 34px rgba(0, 0, 0, 0.34);
}

.agr-kc-case-hero__description {
    max-width: 680px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.7;
}

.agr-kc-case-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.agr-kc-case-hero__stat {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 152px;
    min-height: 66px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.035)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 14px 28px rgba(0, 0, 0, 0.12);
}

.agr-kc-case-hero__stat span {
    flex: 0 0 auto;
    color: #ffffff;
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.agr-kc-case-hero__stat small {
    max-width: 130px;
    color: rgba(255, 255, 255, 0.68);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}


/* =========================================================
   07. HERO VISUAL — DASHBOARD
   ========================================================= */

.agr-kc-case-hero__visual {
    position: relative;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 470px;
}

.agr-kc-case-hero__dashboard-stack {
    position: relative;
    width: min(100%, 540px);
    min-height: 430px;
    transform:
        perspective(1100px)
        rotateY(-7deg)
        rotateX(3deg);
}

.agr-kc-case-hero__dashboard-stack::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 78%;
    height: 34px;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, 0.34) 0%,
            transparent 70%
        );
    filter: blur(8px);
    transform: translateX(-50%);
}

.agr-kc-case-hero__dashboard-layer {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.035)
        );
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 24px 58px rgba(0, 0, 0, 0.20);
}

.agr-kc-case-hero__dashboard-layer--back {
    opacity: 0.46;
    transform: translate(34px, -34px) rotate(7deg);
}

.agr-kc-case-hero__dashboard-layer--middle {
    opacity: 0.62;
    transform: translate(17px, -17px) rotate(3deg);
}

.agr-kc-case-hero__dashboard {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background:
        radial-gradient(
            circle at 74% 20%,
            rgba(38, 173, 33, 0.26),
            transparent 26%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0.055)
        );
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 28px 76px rgba(0, 0, 0, 0.28);
}

.agr-kc-case-hero__dashboard::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.16;
}

.agr-kc-case-hero__dashboard::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -32%;
    z-index: 4;
    width: 34%;
    height: 150%;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent
        );
    transform: rotate(18deg);
    animation: agrKcCaseHeroSweep 5.8s ease-in-out infinite;
}

.agr-kc-case-hero__dashboard-top {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 8px;
    height: 52px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.06);
}

.agr-kc-case-hero__dashboard-top span {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
}

.agr-kc-case-hero__dashboard-top span:first-child {
    background: var(--kc-green-accent, #26ad21);
}

.agr-kc-case-hero__dashboard-body {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 18px;
    align-content: center;
    padding: 28px;
}

.agr-kc-case-hero__panel {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.14),
            rgba(255, 255, 255, 0.055)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 16px 28px rgba(0, 0, 0, 0.14);
}

.agr-kc-case-hero__panel::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 4px;
    background: var(--kc-green-accent, #26ad21);
}

.agr-kc-case-hero__panel span,
.agr-kc-case-hero__metrics span,
.agr-kc-case-hero__flow span {
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.agr-kc-case-hero__panel strong {
    max-width: 410px;
    color: #ffffff;
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 28px;
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.agr-kc-case-hero__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.agr-kc-case-hero__metrics > div {
    display: grid;
    gap: 10px;
    min-height: 112px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.055);
}

.agr-kc-case-hero__metrics strong {
    color: #ffffff;
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 22px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.04em;
}

.agr-kc-case-hero__flow {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(0, 0, 0, 0.10);
}

.agr-kc-case-hero__flow i {
    display: block;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            rgba(38, 173, 33, 0.9),
            rgba(255, 255, 255, 0.16)
        );
}


/* =========================================================
   08. HERO BOTTOM LINE
   ========================================================= */

.agr-kc-archive-banner__bottom-line {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8;
    height: 46px;
    color: rgba(74, 138, 74, 0.96);
    pointer-events: none;
}

.agr-kc-archive-banner__bottom-line svg {
    display: block;
    width: 100%;
    height: 46px;
    overflow: visible;
}


/* =========================================================
   05. SECTIONS
   ========================================================= */

.agr-kc-case-section {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 96px 42px;
    overflow: hidden;
    background: var(--kc-bg-light, #f0f0f0);
}

.agr-kc-case-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(26, 48, 26, 0.025) 1px, transparent 1px),
        linear-gradient(180deg, rgba(26, 48, 26, 0.02) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.28;
    -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 0%, rgba(0, 0, 0, 0.42) 42%, transparent 78%);
    mask-image: radial-gradient(circle at 50% 35%, #000 0%, rgba(0, 0, 0, 0.42) 42%, transparent 78%);
}

.agr-kc-case-section__inner {
    position: relative;
    z-index: 1;
    max-width: var(--kc-container-max-width, 1180px);
    margin: 0 auto;
}

.agr-kc-case-section--featured {
    padding-top: 104px;
    background:
        radial-gradient(circle at 86% 12%, rgba(74, 138, 74, 0.08), transparent 24rem),
        linear-gradient(180deg, #f7f7f7 0%, var(--kc-bg-light, #f0f0f0) 100%);
    border-top: 1px solid rgba(26, 48, 26, 0.08);
}

.agr-kc-case-section--filters {
    padding-top: 54px;
    padding-bottom: 54px;
    background: #ffffff;
}

.agr-kc-case-section--archive {
    background:
        radial-gradient(circle at 12% 8%, rgba(74, 138, 74, 0.07), transparent 24rem),
        linear-gradient(180deg, var(--kc-bg-light, #f0f0f0) 0%, #f6f6f6 100%);
}

.agr-kc-case-section__heading {
    max-width: 760px;
    margin: 0 0 44px;
}

.agr-kc-case-section__heading--split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
    gap: 52px;
    align-items: end;
}

.agr-kc-case-section__eyebrow {
    display: block;
    margin: 0 0 18px;
    color: var(--kc-green-main, #4a8a4a);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.agr-kc-case-section__title {
    max-width: 760px;
    margin: 0;
    color: #000000;
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.agr-kc-case-section__lead {
    max-width: 520px;
    margin: 0;
    color: rgba(0, 0, 0, 0.62);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.625;
}


/* =========================================================
   06. FILTERS
   ========================================================= */

.agr-kc-case-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "header header"
        "fields actions";
    column-gap: 18px;
    row-gap: 20px;
    align-items: end;
    padding: 28px 30px;
    overflow: hidden;
    border: 1px solid rgba(26, 48, 26, 0.10);
    border-radius: 12px;
    background:
        radial-gradient(circle at 94% 14%, rgba(74, 138, 74, 0.08), transparent 18rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 249, 247, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 18px 44px rgba(0, 0, 0, 0.055);
}

.agr-kc-case-filters__header {
    grid-area: header;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-width: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(26, 48, 26, 0.09);
}

.agr-kc-case-filters__header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 11px;
    color: var(--kc-green-main, #4a8a4a);
    border: 1px solid rgba(74, 138, 74, 0.18);
    border-radius: 999px;
    background: rgba(74, 138, 74, 0.055);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.065em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.agr-kc-case-filters__header strong {
    min-width: 0;
    max-width: 760px;
    color: #000000;
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.agr-kc-case-filters__fields {
    grid-area: fields;
    display: grid;
    grid-template-columns: repeat(4, minmax(132px, 1fr));
    gap: 14px;
    min-width: 0;
}

.agr-kc-case-filters__field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.agr-kc-case-filters__field span {
    color: rgba(0, 0, 0, 0.58);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
}

.agr-kc-case-filters__field select {
    width: 100%;
    min-height: 48px;
    padding: 0 38px 0 14px;
    color: #000000;
    border: 1px solid rgba(26, 48, 26, 0.14);
    border-radius: 8px;
    outline: 0;
    background-color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
    font-size: 14px;
    font-weight: 700;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.agr-kc-case-filters__field select:hover {
    border-color: rgba(74, 138, 74, 0.34);
}

.agr-kc-case-filters__field select:focus-visible {
    border-color: var(--kc-green-main, #4a8a4a);
    box-shadow: 0 0 0 3px rgba(74, 138, 74, 0.12);
}

.agr-kc-case-filters__actions {
    grid-area: actions;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 48px;
}

.agr-kc-case-filters__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 112px;
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    border: 1px solid rgba(26, 48, 26, 0.14);
    border-radius: 8px;
    background: linear-gradient(135deg, #4a8a4a 0%, #3f7a3f 52%, #1a301a 100%);
    box-shadow:
        0 12px 24px rgba(26, 48, 26, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.agr-kc-case-filters__button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #26ad21 0%, #4a8a4a 52%, #1a301a 100%);
    box-shadow:
        0 16px 30px rgba(26, 48, 26, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.agr-kc-case-filters__button:focus-visible,
.agr-kc-case-filters__reset:focus-visible {
    outline: 2px solid var(--kc-green-main, #4a8a4a);
    outline-offset: 3px;
}

.agr-kc-case-filters__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 6px;
    color: var(--kc-green-main, #4a8a4a);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.agr-kc-case-filters__reset:hover {
    color: var(--kc-green-dark, #1a301a);
    text-decoration: underline;
}


/* =========================================================
   07. LIST
   ========================================================= */

.agr-kc-case-featured,
.agr-kc-case-list {
    display: grid;
    gap: 24px;
}

.agr-kc-case-list--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* =========================================================
   08. CASE ITEM
   ========================================================= */

.agr-kc-case-item {
    position: relative;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(26, 48, 26, 0.09);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 247, 247, 0.96) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 12px 26px rgba(0, 0, 0, 0.04),
        0 30px 74px rgba(0, 0, 0, 0.075);
    transition:
        transform 0.45s cubic-bezier(0.19, 1, 0.22, 1),
        box-shadow 0.45s cubic-bezier(0.19, 1, 0.22, 1),
        border-color 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.agr-kc-case-list--grid .agr-kc-case-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.agr-kc-case-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 5;
    width: 4px;
    background: transparent;
    transition: background 0.25s ease;
}

.agr-kc-case-item:hover {
    border-color: rgba(74, 138, 74, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 16px 34px rgba(0, 0, 0, 0.055),
        0 38px 86px rgba(0, 0, 0, 0.1),
        0 0 42px rgba(74, 138, 74, 0.11);
    transform: translateY(-4px);
}

.agr-kc-case-item:hover::before,
.agr-kc-case-item--featured::before {
    background: var(--kc-green-accent, #26ad21);
}

.agr-kc-case-item--featured {
    grid-template-columns: minmax(380px, 0.72fr) minmax(0, 1fr);
    min-height: 460px;
    border-radius: 12px;
}


/* =========================================================
   09. CASE ITEM MEDIA
   ========================================================= */

.agr-kc-case-item__media {
    position: relative;
    z-index: 2;
    display: block;
    min-height: 100%;
    padding: 22px;
    color: inherit;
    background:
        radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.76) 0%, transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-right: 1px solid rgba(26, 48, 26, 0.08);
    text-decoration: none;
}

.agr-kc-case-list--grid .agr-kc-case-item__media {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(26, 48, 26, 0.08);
}

.agr-kc-case-item__media-inner {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 300px;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(26, 48, 26, 0.08);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.78), transparent 42%),
        linear-gradient(135deg, #ffffff, #eef3ee);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 14px 30px rgba(26, 48, 26, 0.07);
}

.agr-kc-case-list--grid .agr-kc-case-item__media-inner {
    min-height: 250px;
}

.agr-kc-case-item__image {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    object-position: center;
    transition:
        transform 0.65s cubic-bezier(0.19, 1, 0.22, 1),
        filter 0.65s cubic-bezier(0.19, 1, 0.22, 1);
}

.agr-kc-case-list--grid .agr-kc-case-item__image {
    min-height: 250px;
}

.agr-kc-case-item:hover .agr-kc-case-item__image {
    transform: scale(1.035);
    filter: saturate(1.04) contrast(1.02);
}

.agr-kc-case-item__placeholder {
    position: relative;
    z-index: 3;
    display: grid;
    align-content: end;
    width: 100%;
    height: 100%;
    min-height: 300px;
    padding: 30px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 74% 18%, rgba(38, 173, 33, 0.18), transparent 28%),
        radial-gradient(circle at 18% 78%, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(145deg, #1a301a 0%, #213b21 100%);
}

.agr-kc-case-list--grid .agr-kc-case-item__placeholder {
    min-height: 250px;
}

.agr-kc-case-item__placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0 54%, rgba(255, 255, 255, 0.1) 54% 72%, transparent 72%);
}

.agr-kc-case-item__placeholder-label,
.agr-kc-case-item__placeholder-title,
.agr-kc-case-item__placeholder-line {
    position: relative;
    z-index: 2;
}

.agr-kc-case-item__placeholder-label {
    display: block;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.64);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.agr-kc-case-item__placeholder-title {
    display: block;
    max-width: 250px;
    color: #ffffff;
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 32px;
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.agr-kc-case-item__placeholder-line {
    display: block;
    width: 84px;
    height: 3px;
    margin-top: 26px;
    background: var(--kc-green-accent, #26ad21);
}

.agr-kc-case-item__status {
    position: absolute;
    left: 26px;
    top: 26px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 38px;
    padding: 0 17px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: linear-gradient(135deg, #26ad21 0%, #4a8a4a 52%, #1a301a 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 12px 24px rgba(0, 0, 0, 0.16);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}


/* =========================================================
   10. CASE ITEM BODY
   ========================================================= */

.agr-kc-case-item__body {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 36px;
}

.agr-kc-case-item--featured .agr-kc-case-item__body {
    padding: clamp(38px, 5vw, 58px);
}

.agr-kc-case-list--grid .agr-kc-case-item__body {
    flex: 1;
    padding: 30px 28px;
}

.agr-kc-case-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.agr-kc-case-item__meta-value {
    display: inline-flex;
    flex-direction: column;
    gap: 7px;
    min-width: 122px;
    padding: 12px 14px;
    border: 1px solid rgba(26, 48, 26, 0.08);
    border-radius: 6px;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.92), transparent 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(240, 240, 240, 0.62));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 10px 22px rgba(26, 48, 26, 0.04);
}

.agr-kc-case-item__meta-value span,
.agr-kc-case-item__detail span,
.agr-kc-case-item__author span,
.agr-kc-case-item__metric span {
    color: rgba(0, 0, 0, 0.52);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.agr-kc-case-item__meta-value strong,
.agr-kc-case-item__detail strong,
.agr-kc-case-item__author strong {
    color: var(--kc-green-dark, #1a301a);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.agr-kc-case-item__title {
    max-width: 760px;
    margin: 0;
    color: #000000;
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.agr-kc-case-item--standard .agr-kc-case-item__title {
    font-size: clamp(24px, 2.5vw, 32px);
}

.agr-kc-case-list--grid .agr-kc-case-item__title {
    font-size: clamp(22px, 2vw, 28px);
}

.agr-kc-case-item__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.22s ease;
}

.agr-kc-case-item__title a:hover {
    color: var(--kc-green-main, #4a8a4a);
}

.agr-kc-case-item__description {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(0, 0, 0, 0.64);
    font-size: 16px;
    line-height: 1.66;
}


/* Metrics added for rebuilt Case Study structure */

.agr-kc-case-item__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

/*
 * In archive grid cards metrics form the bottom data rail. It is pushed to
 * the bottom of the flexible body and stays directly above the CTA footer.
 */
.agr-kc-case-list--grid .agr-kc-case-item__metrics {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 26px;
}

.agr-kc-case-item__metric {
    display: grid;
    gap: 8px;
    min-height: 86px;
    padding: 16px;
    border: 1px solid rgba(74, 138, 74, 0.18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 90% 12%, rgba(38, 173, 33, 0.08), transparent 8rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 248, 0.76));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 12px 24px rgba(26, 48, 26, 0.045);
}

.agr-kc-case-list--grid .agr-kc-case-item__metric {
    flex: 1 1 0;
    min-width: 0;
}

.agr-kc-case-item__metric strong {
    color: var(--kc-green-dark, #1a301a);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: clamp(24px, 3vw, 26px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.agr-kc-case-list--grid .agr-kc-case-item__metric strong {
    font-size: 28px;
}

.agr-kc-case-item__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.agr-kc-case-list--grid .agr-kc-case-item__details {
    grid-template-columns: 1fr;
}

.agr-kc-case-item__detail {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(26, 48, 26, 0.08);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.62);
}

.agr-kc-case-item__detail--result {
    grid-column: 1 / -1;
    border-color: rgba(74, 138, 74, 0.18);
    background:
        radial-gradient(circle at 88% 12%, rgba(38, 173, 33, 0.08), transparent 12rem),
        rgba(255, 255, 255, 0.74);
}

.agr-kc-case-item__detail--result strong {
    font-size: 16px;
}

.agr-kc-case-item__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-top: auto;
    padding-top: 34px;
}

.agr-kc-case-list--grid .agr-kc-case-item__footer {
    grid-template-columns: 1fr;
    align-items: start;
}

.agr-kc-case-list--grid .agr-kc-case-item--has-metrics .agr-kc-case-item__footer {
    margin-top: 0;
    padding-top: 14px;
}

.agr-kc-case-list--grid .agr-kc-case-item--no-metrics .agr-kc-case-item__footer {
    margin-top: auto;
    padding-top: 26px;
}

.agr-kc-case-item__author {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.agr-kc-case-item__author strong {
    font-size: 15px;
}

.agr-kc-case-item__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 13px 18px;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid rgba(26, 48, 26, 0.14);
    border-radius: 4px;
    background: linear-gradient(135deg, #4a8a4a 0%, #3f7a3f 52%, #1a301a 100%);
    box-shadow:
        0 12px 24px rgba(26, 48, 26, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.agr-kc-case-item__button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    background: linear-gradient(135deg, #26ad21 0%, #4a8a4a 52%, #1a301a 100%);
    box-shadow:
        0 16px 30px rgba(26, 48, 26, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}


/* =========================================================
   11. PAGINATION
   ========================================================= */

.agr-kc-case-pagination {
    margin-top: 52px;
}

.agr-kc-case-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.agr-kc-case-pagination a,
.agr-kc-case-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 10px 14px;
    color: var(--kc-green-dark, #1a301a);
    border: 1px solid rgba(26, 48, 26, 0.12);
    border-radius: 4px;
    background: #ffffff;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.agr-kc-case-pagination .current,
.agr-kc-case-pagination a:hover {
    color: #ffffff;
    border-color: var(--kc-green-main, #4a8a4a);
    background: var(--kc-green-main, #4a8a4a);
}


/* =========================================================
   12. EMPTY
   ========================================================= */

.agr-kc-case-empty {
    max-width: 760px;
    padding: 46px;
    border: 1px solid rgba(26, 48, 26, 0.12);
    border-radius: 10px;
    background: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 18px 42px rgba(0, 0, 0, 0.06);
}

.agr-kc-case-empty__eyebrow {
    display: block;
    margin: 0 0 14px;
    color: var(--kc-green-main, #4a8a4a);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.agr-kc-case-empty__title {
    margin: 0;
    color: #000000;
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.agr-kc-case-empty__description {
    max-width: 540px;
    margin: 18px 0 0;
    color: rgba(0, 0, 0, 0.62);
    font-size: 16px;
    line-height: 1.66;
}

.agr-kc-case-empty__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 24px;
    padding: 0 20px;
    color: #ffffff;
    border-radius: 4px;
    background: var(--kc-green-main, #4a8a4a);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.agr-kc-case-empty__button:hover {
    color: #ffffff;
    background: var(--kc-green-dark, #1a301a);
}


/* =========================================================
   13. FINAL CTA — SHARED WITH NEWSLETTER
   ========================================================= */

.agr-kc-newsletter-final-cta {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0 42px;
    overflow: hidden;
    border-top: 1px solid var(--kc-border);
    background:
        radial-gradient(circle at 78% 46%, rgba(255, 255, 255, 0.72) 0%, transparent 26%),
        radial-gradient(circle at 38% 40%, rgba(255, 255, 255, 0.42) 0%, transparent 24%),
        linear-gradient(180deg, #f4f4f4 0%, #f0f0f0 100%);
    border: 0;
}

.agr-kc-newsletter-final-cta__line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    width: 100%;
    height: 56px;
    color: rgba(74, 138, 74, 0.92);
    pointer-events: none;
}

.agr-kc-newsletter-final-cta__line-svg {
    display: block;
    width: 100%;
    height: 56px;
    overflow: visible;
}

.agr-kc-newsletter-final-cta__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 68px;
    align-items: end;
    max-width: var(--kc-container-max-width, 1180px);
    min-height: 255px;
    margin: 0 auto;
    padding: 62px 0 42px;
    background: transparent;
    border: 0;
    overflow: visible;
}

.agr-kc-newsletter-final-cta__content {
    position: relative;
    z-index: 2;
    max-width: 585px;
}

.agr-kc-newsletter-final-cta__label {
    display: block;
    margin: 0 0 18px;
    padding: 0;
    color: var(--kc-green-main, #4a8a4a);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.agr-kc-newsletter-final-cta__title {
    margin: 0 0 28px;
    color: var(--kc-black, #000000);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: clamp(34px, 4.2vw, 50px);
    font-weight: 700;
    line-height: 1.10;
}

.agr-kc-newsletter-final-cta__description {
    max-width: 500px;
    margin: 0;
    color: rgba(0, 0, 0, 0.62);
    font-size: 16px;
    line-height: 1.625;
}

.agr-kc-newsletter-final-cta__actions {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    padding-bottom: 8px;
}

.agr-kc-newsletter-final-cta__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    min-width: 265px;
    min-height: 66px;
    padding: 0 30px;
    overflow: hidden;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.agr-kc-newsletter-final-cta__button:hover {
    transform: translateY(-3px);
}

.agr-kc-newsletter-final-cta__button--primary {
    color: #ffffff;
    border: 1px solid rgba(74, 138, 74, 0.72);
    background: linear-gradient(135deg, #4a8a4a 0%, #3f7d3f 58%, #1a301a 100%);
    box-shadow:
        0 16px 30px rgba(74, 138, 74, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.agr-kc-newsletter-final-cta__button--primary:hover {
    color: #ffffff;
    border-color: rgba(38, 173, 33, 0.72);
    background: linear-gradient(135deg, #26ad21 0%, #4a8a4a 54%, #1a301a 100%);
    box-shadow:
        0 20px 36px rgba(38, 173, 33, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.agr-kc-newsletter-final-cta__button--secondary {
    color: #24313f;
    border: 1px solid rgba(36, 49, 63, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(244, 244, 244, 0.86) 100%);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.agr-kc-newsletter-final-cta__button--secondary:hover {
    color: #24313f;
    border-color: rgba(74, 138, 74, 0.36);
    box-shadow:
        0 16px 30px rgba(26, 48, 26, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.agr-kc-newsletter-final-cta__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-1px);
}

.agr-kc-newsletter-final-cta__watermark {
    position: absolute;
    right: 20px;
    top: 50px;
    z-index: 1;
    color: rgba(26, 48, 26, 0.045);
    font-family: var(--kc-font-heading, Inter, Arial, sans-serif);
    font-size: clamp(78px, 10vw, 138px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.08em;
    text-transform: lowercase;
    pointer-events: none;
    user-select: none;
}


/* =========================================================
   14. ANIMATIONS
   ========================================================= */

@keyframes agrKcCaseHeroSweep {
    0% {
        left: -38%;
        opacity: 0;
    }

    18% {
        opacity: 0.65;
    }

    48% {
        opacity: 0.24;
    }

    64% {
        left: 112%;
        opacity: 0;
    }

    100% {
        left: 112%;
        opacity: 0;
    }
}


/* =========================================================
   15. RESPONSIVE
   ========================================================= */

@media (max-width: 1320px) {
    .agr-kc-case-filters {
        padding: 26px;
    }
}

@media (max-width: 1240px) {
    .agr-kc-case-hero__layout {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(360px, 0.68fr);
        gap: 54px;
    }

    .agr-kc-case-item {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .agr-kc-case-item--featured {
        grid-template-columns: minmax(330px, 0.68fr) minmax(0, 1fr);
    }

    .agr-kc-case-list--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .agr-kc-newsletter-final-cta__inner {
        grid-template-columns: 1fr;
        gap: 36px;
        align-items: start;
        min-height: auto;
        padding-top: 70px;
    }

    .agr-kc-newsletter-final-cta__actions {
        justify-content: flex-start;
        padding-bottom: 0;
    }

    .agr-kc-newsletter-final-cta__watermark {
        top: 60px;
        right: 20px;
        font-size: 86px;
    }
}

@media (max-width: 1024px) {
    .agr-kc-case-hero {
        min-height: auto;
        padding: 28px 28px 0;
    }

    .agr-kc-case-hero__inner {
        min-height: auto;
        padding: 0 36px 82px;
    }

    .agr-kc-case-hero__topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px;
        min-height: 96px;
    }

    .agr-kc-case-hero__topbar::after {
        right: -36px;
        left: -36px;
    }

    .agr-kc-case-hero__label {
        display: none;
    }

    .agr-kc-case-hero__badges {
        justify-self: end;
    }

    .agr-kc-case-hero__layout {
        grid-template-columns: 1fr;
        gap: 54px;
        padding-top: 46px;
    }

    .agr-kc-case-hero__content {
        max-width: 800px;
    }

    .agr-kc-case-hero__visual {
        min-height: 440px;
    }

    .agr-kc-case-hero__dashboard-stack {
        width: min(100%, 580px);
        transform: none;
    }

    .agr-kc-case-section {
        padding: 78px 28px;
    }

    .agr-kc-case-section--filters {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .agr-kc-case-section__heading--split {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .agr-kc-case-filters {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "fields"
            "actions";
    }

    .agr-kc-case-filters__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agr-kc-case-filters__actions {
        justify-content: flex-end;
    }

    .agr-kc-case-item,
    .agr-kc-case-item--featured {
        grid-template-columns: 1fr;
    }

    .agr-kc-case-item__media {
        border-right: 0;
        border-bottom: 1px solid rgba(26, 48, 26, 0.08);
    }

    .agr-kc-case-item__media-inner,
    .agr-kc-case-item__image,
    .agr-kc-case-item__placeholder {
        min-height: 320px;
    }

    .agr-kc-case-item__metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .agr-kc-case-item__metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .agr-kc-newsletter-final-cta {
        padding-right: 18px;
        padding-left: 18px;
    }

    .agr-kc-newsletter-final-cta__line,
    .agr-kc-newsletter-final-cta__line-svg {
        height: 44px;
    }

    .agr-kc-newsletter-final-cta__inner {
        padding-top: 58px;
        padding-bottom: 42px;
    }

    .agr-kc-newsletter-final-cta__title {
        font-size: 34px;
    }

    .agr-kc-newsletter-final-cta__actions {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .agr-kc-newsletter-final-cta__button {
        width: 100%;
        min-width: 0;
        min-height: 68px;
    }

    .agr-kc-newsletter-final-cta__watermark {
        top: 56px;
        right: 10px;
        font-size: 68px;
    }
}

@media (max-width: 767px) {
    .agr-kc-case-hero {
        min-height: auto;
        padding: 22px 18px 0;
    }

    .agr-kc-case-hero__inner {
        padding: 0 24px 72px;
    }

    .agr-kc-case-hero__topbar {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
        min-height: auto;
        padding: 26px 0;
    }

    .agr-kc-case-hero__topbar::after {
        right: -24px;
        left: -24px;
    }

    .agr-kc-case-hero__back {
        font-size: 13px;
    }

    .agr-kc-case-hero__badges {
        justify-self: start;
        justify-content: flex-start;
    }

    .agr-kc-case-hero__badge {
        min-width: 150px;
        min-height: 44px;
        padding: 0 24px;
        font-size: 10px;
    }

    .agr-kc-case-hero__layout {
        gap: 44px;
        padding-top: 36px;
    }

    .agr-kc-case-hero__title {
        font-size: clamp(40px, 11vw, 58px);
    }

    .agr-kc-case-hero__description {
        font-size: 15px;
    }

    .agr-kc-case-hero__stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agr-kc-case-hero__stat {
        min-width: 0;
    }

    .agr-kc-case-hero__visual {
        min-height: 390px;
    }

    .agr-kc-case-hero__dashboard-stack {
        width: min(100%, 400px);
        min-height: 390px;
    }

    .agr-kc-case-hero__dashboard {
        min-height: 390px;
    }

    .agr-kc-case-hero__dashboard-body {
        padding: 20px;
    }

    .agr-kc-case-hero__metrics {
        grid-template-columns: 1fr;
    }

    .agr-kc-case-hero__flow {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .agr-kc-case-hero__flow i {
        width: 2px;
        height: 24px;
        margin-left: 12px;
        background:
            linear-gradient(
                180deg,
                rgba(38, 173, 33, 0.9),
                rgba(255, 255, 255, 0.16)
            );
    }

    .agr-kc-case-section {
        padding: 64px 18px;
    }

    .agr-kc-case-section--filters {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .agr-kc-case-filters {
        row-gap: 18px;
        padding: 22px;
        border-radius: 10px;
    }

    .agr-kc-case-filters__header {
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: start;
        padding-bottom: 16px;
    }

    .agr-kc-case-filters__header strong {
        max-width: none;
        font-size: 20px;
    }

    .agr-kc-case-filters__fields {
        grid-template-columns: 1fr;
    }

    .agr-kc-case-filters__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .agr-kc-case-filters__button,
    .agr-kc-case-filters__reset {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .agr-kc-case-list--grid {
        grid-template-columns: 1fr;
    }

    .agr-kc-case-item {
        border-radius: 8px;
    }

    .agr-kc-case-item__media {
        padding: 16px;
    }

    .agr-kc-case-item__media-inner,
    .agr-kc-case-item__image,
    .agr-kc-case-item__placeholder,
    .agr-kc-case-list--grid .agr-kc-case-item__media-inner,
    .agr-kc-case-list--grid .agr-kc-case-item__image,
    .agr-kc-case-list--grid .agr-kc-case-item__placeholder {
        min-height: 260px;
    }

    .agr-kc-case-item__body,
    .agr-kc-case-item--featured .agr-kc-case-item__body,
    .agr-kc-case-list--grid .agr-kc-case-item__body {
        padding: 28px 24px 30px;
    }

    .agr-kc-case-item__meta,
    .agr-kc-case-item__details,
    .agr-kc-case-item__metrics {
        display: grid;
        grid-template-columns: 1fr;
    }

    .agr-kc-case-item__footer {
        grid-template-columns: 1fr;
        gap: 22px;
        align-items: start;
    }

    .agr-kc-case-item__button {
        width: 100%;
    }

    .agr-kc-case-empty {
        padding: 34px 26px;
    }
}

@media (max-width: 560px) {
    .agr-kc-case-hero--has-image {
        background-image:
            linear-gradient(
                90deg,
                rgba(10, 16, 11, 0.94) 0%,
                rgba(26, 48, 26, 0.88) 48%,
                rgba(10, 16, 11, 0.82) 100%
            ),
            var(
                --agr-kc-case-banner-mobile-image,
                var(--agr-kc-case-banner-image)
            ),
            linear-gradient(135deg, #111811 0%, #1a301a 100%);
    }

    .agr-kc-case-hero__inner {
        padding: 0 20px 66px;
    }

    .agr-kc-case-hero__topbar::after {
        right: -20px;
        left: -20px;
    }

    .agr-kc-case-hero__badges {
        width: 100%;
    }

    .agr-kc-case-hero__badge {
        flex: 1 1 145px;
        min-width: 0;
        padding: 0 18px;
    }

    .agr-kc-case-hero__title {
        font-size: 38px;
        line-height: 1;
    }

    .agr-kc-case-hero__stats {
        grid-template-columns: 1fr;
    }

    .agr-kc-case-hero__visual {
        min-height: 350px;
    }

    .agr-kc-case-hero__dashboard-stack {
        width: min(100%, 320px);
        min-height: 330px;
    }

    .agr-kc-case-hero__dashboard-layer--back {
        transform: translate(20px, -24px) rotate(6deg);
    }

    .agr-kc-case-hero__dashboard-layer--middle {
        transform: translate(10px, -12px) rotate(2deg);
    }

    .agr-kc-case-hero__dashboard {
        min-height: 330px;
    }

    .agr-kc-case-hero__dashboard-top {
        height: 44px;
        padding: 15px 17px;
    }

    .agr-kc-case-hero__dashboard-body {
        gap: 12px;
        padding: 16px;
    }

    .agr-kc-case-hero__panel {
        padding: 18px 20px;
    }

    .agr-kc-case-hero__panel strong {
        font-size: 23px;
    }

    .agr-kc-case-hero__metrics > div {
        min-height: 90px;
        padding: 16px 18px;
    }

    .agr-kc-newsletter-final-cta__inner {
        padding-top: 52px;
        padding-bottom: 36px;
    }

    .agr-kc-newsletter-final-cta__label {
        font-size: 12px;
    }

    .agr-kc-newsletter-final-cta__title {
        font-size: 30px;
        line-height: 1.1;
    }

    .agr-kc-newsletter-final-cta__button {
        min-height: 64px;
        padding: 0 22px;
        font-size: 15px;
    }

    .agr-kc-newsletter-final-cta__button-icon {
        font-size: 24px;
    }

    .agr-kc-newsletter-final-cta__watermark {
        display: none;
    }
}

@media (max-width: 480px) {
    .agr-kc-case-item__media-inner,
    .agr-kc-case-item__image,
    .agr-kc-case-item__placeholder {
        min-height: 230px;
    }

    .agr-kc-case-item__placeholder-title {
        font-size: 27px;
    }

    .agr-kc-case-item__status {
        top: 20px;
        left: 20px;
        min-height: 34px;
    }

    .agr-kc-case-item__body,
    .agr-kc-case-item--featured .agr-kc-case-item__body {
        padding: 26px 20px 28px;
    }
}


/* =========================================================
   16. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .agr-kc-case-archive *,
    .agr-kc-case-archive *::before,
    .agr-kc-case-archive *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

    .agr-kc-case-hero__dashboard-stack,
    .agr-kc-case-hero__dashboard,
    .agr-kc-case-item,
    .agr-kc-case-item:hover,
    .agr-kc-case-item__image,
    .agr-kc-case-item:hover .agr-kc-case-item__image,
    .agr-kc-case-item__button,
    .agr-kc-case-item__button:hover,
    .agr-kc-case-filters__button,
    .agr-kc-case-filters__button:hover,
    .agr-kc-newsletter-final-cta__button,
    .agr-kc-newsletter-final-cta__button:hover {
        transform: none !important;
    }
}
