/* ═══════════════════════════════════════════════════════
   V2 Case Study Slider — Styles
   Covers two variants: image-outcomes & text-metric
   ═══════════════════════════════════════════════════════ */

/* ───── Section ───── */
.v2-case-study-slider-section {
    padding: 60px 0 70px;
}

/* ───── Heading ───── */
.v2cs-heading {
    font-family: var(--heading-font);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 0 0 12px;
    line-height: 1.3;
}

.v2cs-heading-divider {
    display: block;
    width: 35px;
    height: 6px;
    background-color: var(--secondary-clr);
    margin: 0 auto 50px;
    border-radius: 6px;
}

/* ───── Slider wrapper ───── */
.v2cs-slider {
    position: relative;
    margin: 0 -12px;
}

.v2cs-slide {
    padding: 0 12px;
    outline: none;
    height: inherit;
}

/* make all slides equal height within a row */
.v2cs-slider .slick-track {
    display: flex !important;
}
.v2cs-slider .slick-slide {
    height: auto;
    display: flex !important;
}
.v2cs-slider .slick-slide > div {
    display: flex;
    width: 100%;
}

/* ───── Card (shared) ───── */
.v2cs-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: box-shadow 0.3s ease;
    padding: 20px;
    margin-bottom: 20px;
}


/* ───── Card Image (image-outcomes) ───── */
.v2cs-card-image {
    width: 100%;
    overflow: hidden;
    border-bottom: 10px solid #0083b0;
}

.v2cs-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ───── Card Title ───── */
.v2cs-card-title {
    font-family: var(--heading-font);
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.45;
    padding: 18px 20px 10px;
    background: rgb(236, 236, 236);
    padding: 14px 20px 24px;
    position: relative;
    min-height: 260px;
}

.v2cs-card-title::after {
    position: absolute;
    content: '';
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    border: solid rgb(236, 236, 236);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 12px;
    bottom: -6px;
    left: 16px;
    z-index: 9;
    background: rgb(236, 236, 236);
}
/* ═══════════════════════════════════════
   VARIANT: image-outcomes
   ═══════════════════════════════════════ */
.variant-image-outcomes .v2cs-card-title {
    min-height: 130px;
}

.variant-image-outcomes .v2cs-card-outcomes {
    background: var(--primary-color);
    color: #fff;
    padding: 25px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.v2cs-outcomes-heading {
    font-family: var(--body-font);
    font-size: 14px;
    color: #fff;
    padding-bottom: 14px;
    font-weight: 400;
}

/* Metrics list */
.v2cs-metrics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.variant-image-outcomes .v2cs-metric-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    /* flex-wrap: wrap; */
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.7;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.variant-image-outcomes .v2cs-metric-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-clr);
}

.variant-image-outcomes .v2cs-metric-arrow {
    font-size: 20px;
    color: var(--secondary-clr);
}

.variant-image-outcomes .v2cs-metric-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-transform: capitalize;
    top: -4px;
    position: relative;
    padding-left: 5px;
}

/* Card link */
.v2cs-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 14px 20px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-clr);
    text-decoration: none;
    transition: color 0.3s;
}
.v2cs-card-link:hover {
    color: var(--primary-color);
}

.v2cs-card-link i {
    font-size: 11px;
    transition: transform 0.3s;
}

.v2cs-card-link:hover i {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════
   VARIANT: text-metric
   ═══════════════════════════════════════ */
.variant-text-metric .v2cs-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.variant-text-metric .v2cs-card-title {
    font-size: 17px;
    padding: 22px 22px 16px;
    min-height: 80px;
    border-bottom: 3px solid var(--secondary-clr);
}

.variant-text-metric .v2cs-card-description {
    display: none;
}

.variant-text-metric .v2cs-card-outcomes {
    background: linear-gradient(160deg, #002e5b 0%, #001a36 100%);
    color: #fff;
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 8px 8px;
}

.variant-text-metric .v2cs-metrics-list {
    display: flex;
    flex-direction: column;
}

.variant-text-metric .v2cs-metric-item {
    margin-bottom: 4px;
}

.variant-text-metric .v2cs-metric-item:last-child {
    margin-bottom: 0;
}

.variant-text-metric .v2cs-card-description {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px;
    padding: 0 22px;
    background: linear-gradient(160deg, #002e5b 0%, #001a36 100%);
}

/* Override — description sits inside outcomes wrapper in text-metric */
.variant-text-metric .v2cs-card-outcomes .v2cs-metric-item {
    display: flex;
    flex-direction: column;
}

.variant-text-metric .v2cs-metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-clr);
    line-height: 1.2;
}

.variant-text-metric .v2cs-metric-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-clr);
    margin-top: 2px;
}

.variant-text-metric .v2cs-metric-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    display: block;
    margin-top: 2px;
}

.variant-text-metric .v2cs-metric-arrow.down {
    color: #f87171;
}

.variant-text-metric .v2cs-metric-arrow.up {
    color: #34d399;
}

/* ───── Slick Arrows (custom) ───── */
.v2cs-slider .slick-prev,
.v2cs-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 2px solid #cbd5e1;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0;
    transition: border-color 0.3s, background 0.3s;
    padding: 0;
}

.v2cs-slider .slick-prev:hover,
.v2cs-slider .slick-next:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.v2cs-slider .slick-prev:hover::before,
.v2cs-slider .slick-next:hover::before {
    color: #fff;
}

.v2cs-slider .slick-prev {
    left: -55px;
}

.v2cs-slider .slick-next {
    right: -55px;
}

.v2cs-slider .slick-prev::before,
.v2cs-slider .slick-next::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 16px;
    color: #64748b;
    transition: color 0.3s;
}

.v2cs-slider .slick-prev::before {
    content: '\f053';
}

.v2cs-slider .slick-next::before {
    content: '\f054';
}

/* ───── Slick Dots ───── */
.v2cs-slider .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 0px;
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.v2cs-slider .slick-dots li {
    margin: 0;
}

.v2cs-slider .slick-dots li.slick-active button {
    width: 12px;
    height: 12px;
    top: 0;
}

.v2cs-slider .slick-dots li button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    font-size: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    top: 2px;
}

.v2cs-slider .slick-dots li button::after, .v2cs-slider .slick-dots li button::before {
    display: none;
}

.v2cs-slider .slick-dots li.slick-active button {
    background: var(--primary-color);
}

/* ═══════════════════════════════════════
   Guarantee Banner
   ═══════════════════════════════════════ */
.v2cs-guarantee-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 750px;
    margin: 50px auto 0;
    background: #f8f8f8;
    border: 3px solid #494949;
    border-radius: 10px;
    padding: 12px 30px;
    color: #1a1a1a;
    box-shadow: 4px 3px 10px 0px rgba(0,0,0,.5);
}

.v2cs-guarantee-title {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    color: #1a1a1a;
}

.v2cs-guarantee-text {
    font-size: 14px;
    margin: 0;
    color: #333;
    line-height: 1.5;
}

.v2cs-guarantee-icon {
    line-height: 0;
}

/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */

/* arrows inside on smaller containers */
@media (max-width: 1400px) {
    .v2cs-slider .slick-prev {
        left: -10px;
    }
    .v2cs-slider .slick-next {
        right: -10px;
    }
}

@media (max-width: 1199px) {
    .v2-case-study-slider-section {
        padding: 50px 0 60px;
    }

    .v2cs-heading {
        font-size: 36px;
    }

    .v2cs-slider .slick-prev {
        left: 0;
    }
    .v2cs-slider .slick-next {
        right: 0;
    }
}

@media (max-width: 991px) {
    .v2cs-heading {
        font-size: 30px;
    }

    .v2cs-heading-divider {
        margin-bottom: 35px;
    }

    .variant-image-outcomes .v2cs-card-title {
        min-height: auto;
    }

    .variant-text-metric .v2cs-card-title {
        min-height: auto;
    }

    .v2cs-slider .slick-prev,
    .v2cs-slider .slick-next {
        width: 36px;
        height: 36px;
    }

    .v2cs-slider .slick-prev::before,
    .v2cs-slider .slick-next::before {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .v2-case-study-slider-section {
        padding: 40px 0 45px;
    }

    .v2cs-heading {
        font-size: 26px;
    }

    .v2cs-heading-divider {
        margin-bottom: 28px;
    }

    .v2cs-card-image img {
        height: 180px;
    }

    .v2cs-slider .slick-prev,
    .v2cs-slider .slick-next {
        display: none !important;
    }

    .v2cs-guarantee-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 12px;
    }

    .variant-text-metric .v2cs-metric-value {
        font-size: 26px;
    }
}

@media (max-width: 479px) {
    .v2cs-heading {
        font-size: 22px;
    }

    .v2cs-card-image img {
        height: 160px;
    }

    .variant-image-outcomes .v2cs-metric-value {
        font-size: 18px;
    }
}
