.departments {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
    width: 100%;
    max-width: 1300px;
    padding: 2rem 10px;
    color: #fff;
    min-height: 50vh;
    padding-bottom: 3rem;
    padding-top: 0px;
}

.bg-depthome {
    background-color: #f1f1f1;
}

.departments h2 {
    color: #b0190c;
    justify-content: flex-start;
    padding-top: 3rem;
}

.departments .content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.departments .left {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
}

.departments .quicklinks {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    position: sticky;
    top: 140px;
}

.departments .quicklinks h3 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #2B5971;
    margin: 2rem auto;
    margin-left: 0px;
}

.departments .quicklinks a {
    display: block;
    padding: 8px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    flex-wrap: nowrap;
    text-decoration: none;
    background-color: #202529;
    color: #fff;
    width: 100%;
}

.departments .quicklinks a.appointment {
    background-color: #403F44;
}

.departments .quicklinks a.telemedicine {
    background-color: #2BBEA5;
}

.departments .quicklinks a.homecare {
    background-color: #D0D0D0;
    color: #202529;
}

.departments .quicklinks .info {
    background-color: #fff;
    color: #202529;
    border-radius: 10px;
    padding: 8px 20px;
    width: 100%;
    min-height: 150px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    flex-direction: column;
}

.departments .banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0px 0px 20px 20px;
}

.departments .banner img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.departments .container {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    width: 100%;
}

.departments .content .wrapper {
    padding: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 33%;
    /* flex-grow: 1; */
    background-color: #fff;
    color: #202529;
    min-height: 120px;
    min-width: 280px;
    transition: 0.3s;
    border-radius: 5px;
    text-decoration: none;
    position: relative;
    word-break: break-word;
    font-size: 17px;
}

.departments .content .dept-list-wrap {
    padding: 4px;
    padding-right: 10px;
}

.departments .content .wrapper .icon-image {
    width: 100%;
    max-width: 112px;
    height: 100%;
    border-radius: 5px 0px 0px 5px;
    object-fit: cover;
    border: none;
}

.departments .content .wrapper:hover {
    transform: translateY(-5px);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transition: 0.3s;
}

.departments .scroller {
    display: flex;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-behavior: smooth;
    align-items: stretch;
    position: relative;
    overflow: auto;
    width: 100%;
    padding: 10px;
    padding-right: 0px;
}

.departments .scroller::-webkit-scrollbar {
    height: 0px;
    display: none;
}

.departments .scroller .wrapper {
    flex: 0 0 auto;
    width: 260px;
    height: auto;
    margin-right: 20px;
    background-color: transparent;
    border-radius: 10px;
}

.departments .scroller .wrapper img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    opacity: 0.8;
    transition: 0.3s;
}

.departments .scroller .wrapper:hover img {
    opacity: 1;
    transform: translateY(5px);
    transition: 0.3s;
}

.departments .scroller .wrapper p {
    color: #202529;
    text-align: center;
    width: 100%;
    padding-top: 10px;
    cursor: pointer;
}

.departments .scroller button {
    position: sticky;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    background: #b0190c;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0px;
    min-width: 90px;
    height: 90px;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: 0.3s;
}

.departments .scroller button:hover {
    transition: 0.3s;
    scale: 1.1;
}

.departments .scroller button i {
    transition: 0.3s;
}


.departments .scroller button:hover i {
    scale: 0.8;
    transition: 0.3s;
}

.departments .scroller .fade-out {
    position: sticky;
    top: 0;
    right: -2px;
    min-width: 60px;
    max-width: 15%;
    min-height: 100%;
    background-image: linear-gradient(to right, #f1f1f13d, #f1f1f1);
    z-index: 1;
}

.departments .scroller button i {
    font-size: inherit;
}

/* .departments .scroller .scroll-left {
    left: 10px;
} */

.departments .scroller .scroll-right {
    right: 40px;
}

.departments .about {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
}

.departments .about .para {
    max-width: 470px;
    width: 100%;
    color: #202529;
}

.departments .about .para p {
    padding-bottom: 15px;
    font-size: 16px;
    font-weight: 300;
}

.departments .about img {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
}

.departments .doctors {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
}

.departments .doctors h2 {
    width: 100%;
}

.departments .doctors .wrapper {
    position: relative;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: 0.3s;
    flex-direction: column;
    padding: 0px;
    background-color: transparent;
    max-width: 260px;
    width: 100%;
}

.departments .doctors .wrapper:hover {
    border: 2px solid #b0190c;
    transition: 0.3s;
}

.departments .doctors .wrapper:hover .doc {
    border: 1px solid transparent;
    transition: 0.3s;
}

.departments .doctors .wrapper:hover .hover {
    height: 24px;
    transition: 0.3s;
}

.departments .doctors .wrapper:hover .image img {
    scale: 1.2;
    transition: 0.3s;
}

.departments .doctors .wrapper .image {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    margin: 0px;
    transition: 0.3s;
    overflow: hidden;
}

.departments .doctors .wrapper .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.departments .doctors .wrapper .doc {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    flex-direction: column;
    color: #202529;
    padding: 20px;
    border: 1px solid #b0190c;
    background-color: #f1f1f1;
    border-radius: 10px;
    transition: 0.3s;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    width: 100%;
}

.departments .doctors .wrapper .hover {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    font-size: 12px;
    background-color: #b0190c;
    padding: 4px 15px;
    border-radius: 10px;
    width: 80%;
    text-align: center;
    overflow: hidden;
    height: 8px;
    transition: 0.3s;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.departments .doctors .wrapper .doc h4 {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.4rem;
    text-align: center;
}

.departments .doctors .wrapper .doc p {
    font-size: 14px;
    text-align: center;
}

.departments .quicklinks .quicknav {
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    flex-direction: row;
    flex-wrap: nowrap;
    border-radius: 10px;
    overflow: hidden;
}

.departments .quicklinks .quicknav .items {
    background-color: #202529;
    border-radius: 10px;
    flex-grow: 1;
    padding: 2rem 10px;
}

.departments .quicklinks .quicknav .items a {
    text-align: left;
    justify-content: flex-start;
}

.departments .quicklinks .quicknav .title {
    width: 54px;
}

.departments .quicklinks .quicknav .title p {
    color: #2B5971;
    font-size: 1.4rem;
    transform: rotate(90deg) translateX(-100%);
}

.hidden {
    display: none;
}

@media screen and (max-width: 880px) {
    .departments .scroller .wrapper {
        width: 180px;
    }

    .departments .scroller .wrapper img {
        height: 180px;
    }

    .departments .scroller .scroll-right {
        display: none;
    }

    .departments .scroller .fade-out {
        min-width: 15px;
    }

    .departments h2 {
        padding-top: 2rem;
    }

    .departments .about {
        justify-content: center;
    }

    .departments .doctors {
        justify-content: center;
    }

    .departments .content {
        justify-content: center;
    }

    .departments .quicklinks {
        position: relative;
        top: 0;
    }

    .departments .content .dept-list-wrap {
        width: 100%;
        max-width: 400px;
    }
}