/* =========================================================
   Department Doctors Section
   ========================================================= */

.department-doctors-section {
    width: 100%;
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
    box-sizing: border-box;
}


/* =========================================================
   Heading
   ========================================================= */

.department-doctors-heading {
    text-align: center;
    margin-bottom: 35px;
}

.department-doctors-heading h2 {
    margin: 0 0 12px;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    color: #383387;
}

.department-doctors-heading p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}


/* =========================================================
   Swiper Main Container
   ========================================================= */

.departmentDoctorsSwiper {
    width: 100%;
    position: relative;
    overflow: hidden;
}


/* =========================================================
   Swiper Wrapper
   ========================================================= */

.departmentDoctorsSwiper .swiper-wrapper {
    align-items: stretch;
}


/* =========================================================
   Normal Swiper Slides
   ========================================================= */

.departmentDoctorsSwiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}


/* =========================================================
   FEW DOCTORS
   1 - 3 Doctors
   ========================================================= */

.departmentDoctorsSwiper.few-doctors {
    overflow: visible;
    padding: 0;
}


/*
 * Important:
 * When there are only 1-3 doctors,
 * Swiper is NOT initialized by JS.
 *
 * Therefore we turn the wrapper into
 * a normal centered flex row.
 */

.departmentDoctorsSwiper.few-doctors .swiper-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    transform: none !important;
}


/*
 * Card width for 1-3 doctors
 */

.departmentDoctorsSwiper.few-doctors .swiper-slide {
    width: 300px !important;
    max-width: 300px;
    flex: 0 0 300px;
}


/* =========================================================
   MANY DOCTORS
   4+ Doctors
   ========================================================= */

.departmentDoctorsSwiper.many-doctors {
    overflow: hidden;
}


/*
 * Normal Swiper cards
 */

.departmentDoctorsSwiper.many-doctors .swiper-slide {
    height: auto;
}


/* =========================================================
   Doctor Card
   ========================================================= */

.department-doctor-card {
    width: 100%;
    max-width: 340px;

    background: #fff;

    border: 1px solid #e8e8e8;

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;

    height: 100%;

    box-sizing: border-box;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.department-doctor-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   Doctor Image
   ========================================================= */

.department-doctor-image {
    width: 100%;

    height: 260px;

    overflow: hidden;

    background: #f5f5f5;
}


.department-doctor-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center top;

    display: block;

    transition: transform 0.4s ease;
}


.department-doctor-card:hover
.department-doctor-image img {
    transform: scale(1.04);
}


/* =========================================================
   No Image
   ========================================================= */

.department-doctor-no-image {
    width: 100%;
    height: 260px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f5f5f5;

    color: #777;

    font-size: 16px;
}


/* =========================================================
   Content
   ========================================================= */

.department-doctor-content {
    padding: 20px;

    display: flex;
    flex-direction: column;

    flex: 1;

    text-align: center;
    align-items: center;

    box-sizing: border-box;
}


/* =========================================================
   Doctor Name
   ========================================================= */

.department-doctor-content h3 {
    width: 100%;

    margin: 0 0 8px;

    font-size: 21px;

    line-height: 1.3;

    font-weight: 700;

    color: #383387;
}


/* =========================================================
   Department
   ========================================================= */

.department-doctor-department {
    width: 100%;

    margin-bottom: 10px;

    font-size: 16px;

    line-height: 1.4;

    font-weight: 600;

    color: #383387;
}


/* =========================================================
   Qualification
   ========================================================= */

.department-doctor-qualification {
    width: 100%;

    margin: 0 0 10px;

    font-size: 14px;

    line-height: 1.5;

    color: #666;
}


.department-doctor-qualification strong {
    color: #383387;

    font-weight: 700;
}


/* =========================================================
   Designation
   ========================================================= */

.department-doctor-designation {
width: 100%;

    margin: 0 0 10px;

    font-size: 14px;

    line-height: 1.5;

    color: #666;
}

.department-doctor-designation strong {
    color: #383387;

    font-weight: 700;
}



/* =========================================================
   Location
   ========================================================= */

.department-doctor-location {
    width: 100%;

    margin: 0 0 18px;

    font-size: 14px;

    line-height: 1.5;

    color: #666;
}


.department-doctor-location .location-icon {
    margin-right: 4px;
}


/* =========================================================
   Buttons
   ========================================================= */

.department-doctor-buttons {
    width: 100%;

    margin-top: auto;

    display: flex;

    justify-content: center;

    gap: 10px;
}


.department-doctor-book,
.department-doctor-call {
    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 44px;

    padding: 9px 8px;

    border-radius: 8px;

    text-decoration: none !important;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.2;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;

    box-sizing: border-box;
}


/* =========================================================
   Book Appointment
   ========================================================= */

.department-doctor-book {
    background: #383387;

    color: #fff !important;

    border: 2px solid #383387;
}


.department-doctor-book:hover {
    background: #2d296f;

    border-color: #2d296f;

    color: #fff !important;

    transform: translateY(-2px);
}


/* =========================================================
   Call Now
   ========================================================= */

.department-doctor-call {
    background: #fff;

    color: #383387 !important;

    border: 2px solid #383387;
}


.department-doctor-call:hover {
    background: #383387;

    color: #fff !important;

    transform: translateY(-2px);
}


/* =========================================================
   Slider Navigation
   ========================================================= */

.departmentDoctorsSwiper
.department-doctors-prev,
.departmentDoctorsSwiper
.department-doctors-next {

    width: 46px !important;

    height: 46px !important;

    margin-top: -23px !important;

    top: 50% !important;

    border-radius: 50% !important;

    background: #383387 !important;

    color: #fff !important;

    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.15);

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


/* =========================================================
   Previous Arrow
   ========================================================= */

.departmentDoctorsSwiper
.department-doctors-prev {

    left: 5px !important;

}


/* =========================================================
   Next Arrow
   ========================================================= */

.departmentDoctorsSwiper
.department-doctors-next {

    right: 5px !important;

}


/* =========================================================
   Arrow Icon
   ========================================================= */

.departmentDoctorsSwiper
.department-doctors-prev::after,

.departmentDoctorsSwiper
.department-doctors-next::after {

    font-size: 18px !important;

    font-weight: 700;

}


/* =========================================================
   Navigation Hover
   ========================================================= */

.departmentDoctorsSwiper
.department-doctors-prev:hover,

.departmentDoctorsSwiper
.department-doctors-next:hover {

    background: #2d296f !important;

    transform: scale(1.06);
}


/* =========================================================
   Disabled Navigation
   ========================================================= */

.departmentDoctorsSwiper
.swiper-button-disabled {

    opacity: 0.35 !important;

    pointer-events: none;
}


/* =========================================================
   Empty
   ========================================================= */

.department-doctors-empty {

    width: 100%;

    padding: 50px 20px;

    text-align: center;

    background: #f8f8f8;

    border-radius: 15px;

    box-sizing: border-box;
}


.department-doctors-empty p {

    margin: 0;

    font-size: 20px;

    font-weight: 600;

    color: #383387;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991px) {

    .department-doctors-section {

        margin: 50px auto;

        padding: 0 20px;
    }


    .department-doctors-heading {

        margin-bottom: 30px;
    }


    .department-doctors-heading h2 {

        font-size: 34px;
    }


    .department-doctors-heading p {

        font-size: 15px;
    }


    /*
     * IMPORTANT:
     * Don't use large left/right padding here.
     * It was causing the cards to appear
     * pushed toward the center/right.
     */

    .departmentDoctorsSwiper {

        padding-left: 0;

        padding-right: 0;
    }


    /*
     * Few doctors
     */

    .departmentDoctorsSwiper.few-doctors
    .swiper-wrapper {

        gap: 20px;
    }


    .departmentDoctorsSwiper.few-doctors
    .swiper-slide {

        width: 280px !important;

        max-width: 280px;

        flex: 0 0 280px;
    }


    .department-doctor-image img,

    .department-doctor-no-image {

        height: 240px;
    }


    .department-doctor-content h3 {

        font-size: 21px;
    }


    /*
     * Navigation
     */

    .departmentDoctorsSwiper
    .department-doctors-prev,

    .departmentDoctorsSwiper
    .department-doctors-next {

        width: 44px !important;

        height: 44px !important;

        margin-top: -22px !important;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .department-doctors-section {

        margin: 40px auto;

        padding: 0 15px;
    }


    .department-doctors-heading {

        margin-bottom: 25px;
    }


    .department-doctors-heading h2 {

        font-size: 30px;

        margin-bottom: 10px;
    }


    .department-doctors-heading p {

        font-size: 14px;

        line-height: 1.6;
    }


    /*
     * Normal mobile slider
     */

    .departmentDoctorsSwiper {

        padding: 0 5px 10px;

        overflow: hidden;
    }


    /*
     * Few doctors:
     * Stack vertically on mobile.
     */

    .departmentDoctorsSwiper.few-doctors {

        overflow: visible;

        padding: 0;
    }


    .departmentDoctorsSwiper.few-doctors
    .swiper-wrapper {

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 20px;

        transform: none !important;
    }


    .departmentDoctorsSwiper.few-doctors
    .swiper-slide {

        width: 100% !important;

        max-width: 320px;

        flex: 0 0 auto;
    }


    /*
     * Doctor Image
     */

    .department-doctor-image img,

    .department-doctor-no-image {

        height: 250px;
    }


    /*
     * Content
     */

    .department-doctor-content {

        padding: 18px;
    }


    .department-doctor-content h3 {

        font-size: 21px;
    }


    .department-doctor-department {

        font-size: 16px;
    }


    .department-doctor-buttons {

        flex-direction: column;

        gap: 8px;
    }


    .department-doctor-book,

    .department-doctor-call {

        width: 100%;

        flex: none;
    }


    /*
     * Hide arrows on mobile
     */

    .departmentDoctorsSwiper
    .department-doctors-prev,

    .departmentDoctorsSwiper
    .department-doctors-next {

        display: none !important;
    }

}