.ebcsw-case-studies {
    --ebcsw-primary: #153f78;
    --ebcsw-accent: #55c5d1;
    --ebcsw-title-color: #173f77;
    --ebcsw-title-size: 48px;
    --ebcsw-title-weight: 800;
    --ebcsw-subtitle-color: #55c5d1;
    --ebcsw-subtitle-size: 13px;
    --ebcsw-subtitle-weight: 800;
    --ebcsw-description-color: #66768b;
    --ebcsw-description-size: 21px;
    --ebcsw-description-weight: 400;
    --ebcsw-case-name-color: #ffffff;
    --ebcsw-case-name-size: 27px;
    --ebcsw-case-name-weight: 800;
    --ebcsw-body-color: #5c6f86;
    --ebcsw-body-size: 16px;
    --ebcsw-intro-align: left;
    color: var(--ebcsw-body-color);
    font-family: inherit;
    margin: 0 auto;
    max-width: 1480px;
}

.ebcsw-case-studies *,
.ebcsw-case-studies *::before,
.ebcsw-case-studies *::after {
    box-sizing: border-box;
}

.ebcsw-case-studies__top {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 26px;
}

.ebcsw-case-studies__intro {
    max-width: 650px;
    text-align: var(--ebcsw-intro-align);
}

.ebcsw-case-studies__subtitle {
    color: var(--ebcsw-subtitle-color);
    font-size: var(--ebcsw-subtitle-size);
    font-weight: var(--ebcsw-subtitle-weight);
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ebcsw-case-studies__title {
    color: var(--ebcsw-title-color);
    font-size: var(--ebcsw-title-size);
    font-weight: var(--ebcsw-title-weight);
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 20px;
}

.ebcsw-case-studies__description {
    color: var(--ebcsw-description-color);
    font-size: var(--ebcsw-description-size);
    font-weight: var(--ebcsw-description-weight);
    line-height: 1.45;
    margin: 0;
}

.ebcsw-case-studies__nav {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
    margin-bottom: 25px;
}

.ebcsw-case-studies__count {
    color: #607289;
    font-size: 14px;
    font-weight: 800;
    margin-right: 4px;
}

.ebcsw-case-studies__arrow {
    align-items: center;
    background: #fff;
    border: 2px solid #dce6ef;
    border-radius: 999px;
    color: var(--ebcsw-primary);
    cursor: pointer;
    display: inline-flex;
    font-size: 26px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 44px;
}

.ebcsw-case-studies__arrow:hover,
.ebcsw-case-studies__arrow:focus {
    border-color: var(--ebcsw-primary);
    outline: 0;
}

.ebcsw-case-studies__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.ebcsw-case-studies__tab {
    background: #fff;
    border: 2px solid #dce6ef;
    border-radius: 999px;
    color: #607289;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    min-height: 44px;
    padding: 11px 22px;
}

.ebcsw-case-studies__tab.is-active,
.ebcsw-case-studies__tab:hover,
.ebcsw-case-studies__tab:focus {
    background: var(--ebcsw-primary);
    border-color: var(--ebcsw-primary);
    color: #fff;
    outline: 0;
}

.ebcsw-case-studies__viewport {
    overflow: hidden;
}

.ebcsw-case-studies__slide {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
}

.ebcsw-case-studies__slide[hidden] {
    display: none;
}

.ebcsw-case-studies__media {
    background: #d7e1ea;
    border-radius: 0 0 0 16px;
    min-height: 405px;
    overflow: hidden;
    position: relative;
}

.ebcsw-case-studies__media::after {
    background: linear-gradient(180deg, rgba(12, 38, 72, 0) 38%, rgba(12, 38, 72, 0.76) 100%);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.ebcsw-case-studies__media img {
    display: block;
    height: 100%;
    min-height: 405px;
    object-fit: cover;
    width: 100%;
}

.ebcsw-case-studies__badge {
    background: var(--ebcsw-accent);
    color: #12335f;
    font-size: 13px;
    font-weight: 900;
    left: 24px;
    letter-spacing: 2px;
    line-height: 1.2;
    padding: 10px 16px;
    position: absolute;
    text-transform: uppercase;
    top: 24px;
    z-index: 2;
}

.ebcsw-case-studies__overlay {
    bottom: 26px;
    left: 26px;
    position: absolute;
    right: 26px;
    z-index: 2;
}

.ebcsw-case-studies__case-name {
    color: var(--ebcsw-case-name-color);
    font-size: var(--ebcsw-case-name-size);
    font-weight: var(--ebcsw-case-name-weight);
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0 0 8px;
}

.ebcsw-case-studies__location {
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.25;
    margin: 0;
    padding-left: 18px;
    position: relative;
}

.ebcsw-case-studies__location::before {
    background: #ef4b45;
    border-radius: 999px;
    content: "";
    height: 7px;
    left: 4px;
    position: absolute;
    top: 0.48em;
    width: 7px;
}

.ebcsw-case-studies__details {
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 12px 28px rgba(19, 54, 90, 0.08);
    padding: 28px 32px 12px;
}

.ebcsw-case-studies__metrics {
    border-bottom: 1px solid #e0e7ee;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px;
    padding-bottom: 18px;
}

.ebcsw-case-studies__metric {
    min-width: 0;
    padding: 0 16px;
    text-align: center;
}

.ebcsw-case-studies__metric + .ebcsw-case-studies__metric {
    border-left: 1px solid #e0e7ee;
}

.ebcsw-case-studies__metric strong,
.ebcsw-case-studies__metric span {
    display: block;
}

.ebcsw-case-studies__metric strong {
    color: var(--ebcsw-accent);
    font-size: 27px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 6px;
}

.ebcsw-case-studies__metric span {
    color: #61738a;
    font-size: 14px;
    line-height: 1.25;
}

.ebcsw-case-studies__copy {
    color: var(--ebcsw-body-color);
    font-size: var(--ebcsw-body-size);
    line-height: 1.5;
}

.ebcsw-case-studies__text-block {
    margin-bottom: 16px;
}

.ebcsw-case-studies__text-block h4,
.ebcsw-case-studies__outcome h4 {
    color: var(--ebcsw-accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.6px;
    line-height: 1.2;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ebcsw-case-studies__text-block p,
.ebcsw-case-studies__outcome p {
    margin: 0;
}

.ebcsw-case-studies__outcome {
    background: #e8f8fa;
    border-radius: 8px;
    margin-top: 14px;
    padding: 15px 16px 17px;
}

.ebcsw-case-studies__outcome h4 {
    color: var(--ebcsw-primary);
}

.ebcsw-case-studies__bottom {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 18px;
}

.ebcsw-case-studies__note {
    color: #61738a;
    font-size: 15px;
    font-style: italic;
    line-height: 1.35;
    margin: 0;
}

.ebcsw-case-studies__pips {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.ebcsw-case-studies__pips button {
    background: #dbe5ee;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 8px;
    padding: 0;
    width: 8px;
}

.ebcsw-case-studies__pips button.is-active {
    background: var(--ebcsw-primary);
    width: 28px;
}

@media (max-width: 900px) {
    .ebcsw-case-studies__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .ebcsw-case-studies__nav {
        margin-bottom: 0;
    }

    .ebcsw-case-studies__slide {
        grid-template-columns: 1fr;
    }

    .ebcsw-case-studies__media {
        border-radius: 14px 14px 0 0;
    }

    .ebcsw-case-studies__details {
        border-radius: 0 0 14px 14px;
    }
}

@media (max-width: 640px) {
    .ebcsw-case-studies__title {
        font-size: min(var(--ebcsw-title-size), 34px);
    }

    .ebcsw-case-studies__description {
        font-size: min(var(--ebcsw-description-size), 18px);
    }

    .ebcsw-case-studies__tabs {
        flex-direction: column;
    }

    .ebcsw-case-studies__tab {
        width: 100%;
    }

    .ebcsw-case-studies__media,
    .ebcsw-case-studies__media img {
        min-height: 330px;
    }

    .ebcsw-case-studies__details {
        padding: 24px 18px 18px;
    }

    .ebcsw-case-studies__metrics {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ebcsw-case-studies__metric {
        padding: 0;
    }

    .ebcsw-case-studies__metric + .ebcsw-case-studies__metric {
        border-left: 0;
        border-top: 1px solid #e0e7ee;
        padding-top: 14px;
    }

    .ebcsw-case-studies__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
