/* =========================================================
   Directory Slider
   ========================================================= */

.ds-directory-slider {
    position: relative;
    width: 100%;
    direction: rtl;
    padding: 10px 0 45px;
    overflow: hidden;
}

.ds-directory-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ds-directory-slider-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #172554;
}

.ds-directory-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 5px 3px 15px;
}

.ds-directory-slider-track::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   Card
   ========================================================= */

.ds-directory-card {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .07);
    transition:
            transform .3s ease,
            box-shadow .3s ease;
}

.ds-directory-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .13);
}


/* =========================================================
   Image
   ========================================================= */

.ds-directory-card-image {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: linear-gradient(
            135deg,
            #eff6ff,
            #dbeafe
    );
}

.ds-directory-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.ds-directory-card:hover
.ds-directory-card-image img {
    transform: scale(1.06);
}

.ds-directory-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
}


/* =========================================================
   Content
   ========================================================= */

.ds-directory-card-content {
    padding: 20px;
}

.ds-directory-card-content h3 {
    margin: 0 0 14px;
    font-size: 19px;
    line-height: 1.7;
    font-weight: 800;
    color: #172554;
}

.ds-directory-city,
.ds-directory-type,
.ds-directory-specialty {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    font-size: 14px;
    color: #64748b;
}

.ds-directory-type {
    color: #2563eb;
    font-weight: 700;
}

.ds-directory-specialty {
    color: #475569;
}


/* =========================================================
   Button
   ========================================================= */

.ds-directory-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 18px;
    border-radius: 12px;
    background: linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
    );
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    transition: all .3s ease;
}

.ds-directory-button:hover {
    background: linear-gradient(
            135deg,
            #1d4ed8,
            #1e40af
    );
    transform: translateY(-2px);
}


/* =========================================================
   Arrows
   ========================================================= */

.ds-directory-prev,
.ds-directory-next {
    position: absolute;
    top: 50%;
    z-index: 10;

    width: 44px;
    height: 44px;

    border: 1px solid #e2e8f0;
    border-radius: 50%;

    background: rgba(255,255,255,.96);
    color: #1e3a8a;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 8px 25px rgba(15,23,42,.12);

    transform: translateY(-50%);

    transition: all .25s ease;
}

.ds-directory-prev:hover,
.ds-directory-next:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.ds-directory-prev {
    right: 8px;
}

.ds-directory-next {
    left: 8px;
}


/* =========================================================
   Empty
   ========================================================= */

.ds-directory-slider-empty {
    padding: 30px;
    text-align: center;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1024px) {

    .ds-directory-card {
        flex-basis: calc((100% - 20px) / 2);
    }

    .ds-directory-card-image {
        height: 200px;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .ds-directory-slider {
        padding-bottom: 35px;
    }

    .ds-directory-slider-header h2 {
        font-size: 21px;
    }

    .ds-directory-card {
        flex-basis: 85%;
    }

    .ds-directory-card-image {
        height: 210px;
    }

    .ds-directory-prev,
    .ds-directory-next {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

}