/* =========================================================
   Support services slider
========================================================= */

.support-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 35px;
}

.support-slider {
    width: 100%;
    overflow: hidden;
}

.support-slider-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.55s ease-in-out;
    will-change: transform;
}

.support-slider-track .support-card {
    flex: 0 0 25%;
    width: 25%;
    padding: 15px 28px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

/* Vertical separator between desktop cards */
.support-slider-track .support-card::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 0;
    width: 1px;
    height: calc(100% - 36px);
    background: rgba(218, 154, 41, 0.65);
}

.support-slider-track .support-card:last-child::after {
    display: none;
}

/* Previous and next buttons */
.support-slider-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 1px solid #d99b2b;
    border-radius: 50%;
    background: #072f68;
    color: #d99b2b;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.support-slider-control:hover {
    background: #d99b2b;
    color: #072f68;
    transform: translateY(-50%) scale(1.06);
}

.support-slider-control:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

.support-slider-prev {
    left: -58px;
}

.support-slider-next {
    right: -58px;
}

/* Navigation dots */
.support-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
}

.support-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid #d99b2b;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition:
        width 0.3s ease,
        border-radius 0.3s ease,
        background-color 0.3s ease;
}

.support-slider-dot.active {
    width: 28px;
    border-radius: 10px;
    background: #d99b2b;
}

/* Tablet: show three cards */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .support-slider-track .support-card {
        flex-basis: 33.333333%;
        width: 33.333333%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .support-slider-prev {
        left: -20px;
    }

    .support-slider-next {
        right: -20px;
    }
}

/* Mobile: disable sliding and display two cards per row */
@media (max-width: 767.98px) {
    .support-slider-wrapper {
        display: block;
        margin-top: 25px;
    }

    .support-slider {
        width: 100%;
        overflow: visible;
    }

    .support-slider-track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        transform: none !important;
        transition: none !important;
    }

    .support-slider-track .support-card {
        position: relative;
        width: 100%;
        min-width: 0;
        padding: 22px 15px;
        box-sizing: border-box;
        text-align: center;
    }

    /*
     * Add the dividing line to the first card
     * in each two-column row.
     */
    .support-slider-track .support-card:nth-child(odd)::after {
        content: "";
        position: absolute;
        top: 18px;
        right: 0;
        width: 1px;
        height: calc(100% - 36px);
        background: rgba(218, 154, 41, 0.75);
        display: block;
    }

    /*
     * Remove the divider from the second card
     * in each row.
     */
    .support-slider-track .support-card:nth-child(even)::after {
        display: none;
    }

    .support-slider-track .support-card:last-child::after {
        display: none;
    }

    .support-slider-control,
    .support-slider-dots {
        display: none;
    }

    .support-slider-track .support-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .support-slider-track .support-card h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin-top: 12px;
    }

    .support-slider-track .support-card p {
        font-size: 0.82rem;
        line-height: 1.5;
        margin-bottom: 0;
    }
}


@media (max-width: 767.98px) {
    .support-slider-track .support-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: 50%;
        justify-self: center;
    }
}