/* Slider and Case Studies extracted CSS
   Only the necessary blocks for slider and case studies are included here.
*/

.banner.banner-v2-slider {
    min-height: 600px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    position: relative;
    width: 100%;
    z-index: 1;
}
.banner-v2-slider .slick-slider {
    z-index: 11111111 !important;
}
.banner-v2-slider .bannerImg {
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: overlay;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0.8;
}
.banner-v2-slider .bannerImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Case Studies V2 – Redesigned
   ========================================================================== */
.cs-section {
    padding: 100px 0 60px;
    background: #fff;
}

/* Header */
.cs-header {
    margin-bottom: 30px;
    text-align: left;
}

.cs-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #1aa4f1;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding: 6px 16px;
    background: rgba(26, 164, 241, 0.08);
    border-radius: 50px;
    border: 1px solid rgba(26, 164, 241, 0.15);
}

.cs-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
    max-width: 700px;
}

.cs-subtitle {
    font-family: 'Lato', sans-serif;
    color: #64748b;
    font-size: 16px;
    line-height: 1.75;
    max-width: 580px;
    margin: 0;
}

/* Filter Tabs */
.cs-filter-tabs {
    margin-bottom: 60px;
}

.cs-filter-tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cs-tab {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    padding: 12px 28px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.cs-tab:hover {
    color: #1aa4f1;
    border-color: #1aa4f1;
    background: rgba(26, 164, 241, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 164, 241, 0.12);
}

.cs-tab.active {
    background: #1aa4f1;
    color: #fff;
    border-color: #1aa4f1;
    box-shadow: 0 6px 20px rgba(26, 164, 241, 0.3);
    transform: translateY(-2px);
}

/* Index strip */
.cs-index {
    position: relative;
    margin-bottom: 60px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cs-index-viewport {
    position: relative;
    flex: 1;
    overflow: visible;
    padding: 0 8px;
}

.cs-index-line {
    position: absolute;
    top: 21px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1, #e2e8f0);
    border-radius: 2px;
    z-index: 1;
}

.cs-index-items {
    position: relative;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    z-index: 1;
    transform: translateX(0);
    will-change: transform;
}

.cs-index-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    min-width: 0;
    padding: 12px 8px;
    flex: 0 0 25%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-index-arrow {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #1aa4f1;
    color: #1aa4f1;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.cs-index-arrow:hover {
    background: #1aa4f1;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(26, 164, 241, 0.3);
}

.cs-index-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    background: #fff;
    color: #1aa4f1;
}

.cs-index-item:hover {
    transform: translateY(-4px);
}

.cs-index-item .cs-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.cs-index-item .cs-node-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #1aa4f1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px rgba(26, 164, 241, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
    /* Neutralise the generic timeline .cs-node-circle rule (absolute
       top/left + translate), which otherwise offsets the strip circles
       and makes them jump on hover. */
    top: auto;
    left: auto;
    transform: none;
}

.cs-index-item:hover .cs-node-circle {
    background: rgba(26, 164, 241, 0.1);
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(26, 164, 241, 0.15);
}

.cs-index-item .cs-node-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1aa4f1;
    display: block;
}

.cs-index-item .cs-node-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1aa4f1;
    line-height: 1;
    position: static;
    transform: none;
    left: auto;
    top: auto;
}

.cs-index-item.active .cs-node-circle {
    background: #1aa4f1;
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(26, 164, 241, 0.2);
}

.cs-index-item.active .cs-node-dot {
    background: #fff;
}

.cs-index-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-top: 16px;
    line-height: 1.4;
    white-space: nowrap;
    transition: color 0.3s;
}

.cs-index-item:hover .cs-index-name,
.cs-index-item.active .cs-index-name {
    color: #1aa4f1;
}

/* Timeline */
.cs-timeline {
    position: relative;
    padding: 0 15px;
}

.cs-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #e2e8f0 0%, #1aa4f1 50%, #e2e8f0 100%);
    transform: translateX(-50%);
    z-index: 0;
    border-radius: 2px;
}

/* Case Item */
.cs-item {
    position: relative;
    margin-bottom: 80px;
    z-index: 1;
}

.cs-item:last-child {
    margin-bottom: 0;
}

.cs-row {
    position: relative;
    align-items: center;
    display: flex;
}

.cs-row > div {
    min-width: 0;
}

.cs-text-col,
.cs-image-col {
    flex: 1 1 0;
    min-width: 0;
}

/* Timeline Node (centered absolutely) */
.cs-timeline-col {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/* Node: circle is locked to the TRUE centre of the row so the dot sits
   exactly ON the axis line; the ghost number hangs below (absolute),
   so the 68px stack can never push the dot off-centre again. */
.cs-node {
    position: static;
    z-index: 2;
}

.cs-node-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #1aa4f1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px rgba(26, 164, 241, 0.1);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.cs-item:hover .cs-node-circle {
    background: #1aa4f1;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 0 8px rgba(26, 164, 241, 0.15);
}

.cs-node-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1aa4f1;
    display: block;
    transition: background 0.3s ease;
}

.cs-item:hover .cs-node-dot {
    background: #fff;
}

.cs-node-number {
    position: absolute;
    top: calc(50% + 22px);
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    transition: color 0.3s ease;
}

.cs-item:hover .cs-node-number {
    color: rgba(26, 164, 241, 0.3);
}

/* Project Card (text side) */
.cs-card {
    padding: 30px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-card:hover {
    background: #fff;
    border-color: rgba(26, 164, 241, 0.2);
    box-shadow: 0 20px 50px rgba(10, 45, 95, 0.08);
    transform: translateY(-4px);
}

.cs-card .cs-tag,
.cs-text-col .cs-tag {
    display: inline-block !important;
    align-self: flex-start;
    flex: 0 0 auto;
    width: auto !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: #1aa4f1;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 5px 14px;
    background: rgba(26, 164, 241, 0.08);
    border-radius: 50px;
}

.cs-project-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-project-desc {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #64748b;
    line-height: 1.75;
    margin: 0 0 24px;
}

.cs-meta {
    margin-bottom: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.cs-meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    align-items: baseline;
}

.cs-meta-row:last-child {
    margin-bottom: 0;
}

.cs-meta-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 70px;
}

.cs-meta-value {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    color: #334155;
    font-weight: 600;
}

.cs-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1aa4f1;
    text-decoration: none;
    padding: 10px 22px;
    background: rgba(26, 164, 241, 0.06);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    align-self: flex-start;
}

.cs-link:hover {
    color: #fff;
    background: #1aa4f1;
    gap: 14px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(26, 164, 241, 0.3);
    transform: translateY(-2px);
}

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

.cs-link:hover i {
    transform: translateX(4px);
}

/* Project Image */
.cs-project-img {
    border-radius: 18px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-project-img:hover {
    transform: translateY(-6px);
}

.cs-project-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-project-img:hover img {
    transform: scale(1.05);
}

/* Right-side items: text on left, image on right */
.cs-item-right .cs-text-col {
    padding-right: 80px;
}

.cs-item-right .cs-image-col {
    padding-left: 80px;
    overflow: hidden;
}

/* Left-side items: image on left, text on right */
.cs-item-left .cs-image-col {
    padding-right: 80px;
    overflow: hidden;
}

.cs-item-left .cs-text-col {
    padding-left: 80px;
}

/* Load more */
.cs-load-more-wrap {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 80px;
}

.cs-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #1aa4f1;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 2px solid #1aa4f1;
    border-radius: 50px;
    padding: 14px 36px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-load-more:hover {
    background: #1aa4f1;
    color: #fff;
    gap: 14px;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 164, 241, 0.35);
}

.cs-load-more i {
    font-size: 12px;
    transition: transform 0.3s;
}

.cs-load-more:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   Responsive - Case Studies
   ========================================================================== */
@media (max-width: 991px) {
    .cs-title {
        font-size: 34px;
    }

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

    .cs-timeline::before {
        display: none;
    }

    .cs-row {
        display: flex;
        flex-direction: column;
    }

    .cs-item-right .cs-row {
        flex-direction: column-reverse;
    }

    .cs-item-right .cs-text-col,
    .cs-item-left .cs-text-col,
    .cs-item-right .cs-image-col,
    .cs-item-left .cs-image-col {
        padding: 15px 0;
    }

    .cs-timeline-col {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        display: none;
    }

    .cs-image-col {
        margin-bottom: 20px;
    }

    .cs-card {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    .cs-section {
        padding: 60px 0 0;
    }

    .cs-title {
        font-size: 28px;
    }

    .cs-subtitle {
        font-size: 14px;
    }

    .cs-filter-tabs ul {
        gap: 8px;
        flex-wrap: wrap;
    }

    .cs-tab {
        padding: 10px 16px;
        font-size: 12px;
        flex: 1 1 calc(50% - 4px);
    }

    .cs-index-item {
        flex: 0 0 25%;
        padding: 10px 4px;
    }

    .cs-index-name {
        font-size: 10px;
        max-width: 100%;
        line-height: 1.3;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .cs-index {
        gap: 8px;
        margin-bottom: 30px;
    }

    .cs-index-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .cs-card {
        padding: 20px;
        border-radius: 12px;
    }

    .cs-project-title {
        font-size: 22px;
        white-space: normal;
        overflow: visible;
    }

    .cs-project-desc {
        font-size: 14px;
    }

    .cs-project-img {
        border-radius: 14px;
    }

    .cs-item {
        margin-bottom: 50px;
    }

    .cs-load-more {
        padding: 12px 28px;
        font-size: 12px;
    }
}
