
#hospital {
    width: 100%;
    padding: 70px 0;
    box-sizing: border-box;
    font-family: 'iranSans', serif;
    direction: rtl;
    background: var(--background);
    overflow-x: hidden;
    --background-color: #3FB6D6; /* #262d42*/
    --trim-color: #313a56;
    --background-color-alt: #18c6ff;
    --text-color: #111;
    --white-color: rgb(255, 255, 255);
    --background: #ffffff;
    --background-color-btn: #274b57;
}
.hospital-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 20px;

}

.hospital-title  {
    font-size: 22px;
    color: var(--background-color-btn);
    text-align: center;
    margin-bottom: 10px;
}

.hospital-title .line-service {
    width: 0;
    height: 4px;
    display: inline-block;
    background: var(--background-color-btn);
    animation: lineText 3s linear infinite forwards;
}

.hospital-title p {
    margin-top: 15px;
    max-width: 500px;
    line-height: 1.5;
}

#hospital .why-hospital {
    flex-direction: column;
}

#hospital .tabButton {
    width: 100%;
    display: flex;
    background-color: var(--background-color);
    color: var(--white-color);
    /*border-radius: 30px 30px 0 0;*/
    overflow: hidden;
}

#hospital .tabButton ul {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
}

#hospital .tabButton ul li {
    padding: 0px 10px;
    box-sizing: border-box;
    text-align: center;
    border-left: 3px solid var(--background);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    transition: all .3s linear;
}

#hospital .tabButton ul li:hover {
    background: var(--background-color-alt);
    color: var(--trim-color);
}

#hospital .tabButton ul li:last-child {
    border-left: none;
}

#hospital .tabButton ul li svg {
    font-size: 25px;
    margin-right: 10px;
}

#hospital .tabContent {
    display: flex;
    position: relative;
    overflow: hidden;
}

#hospital .tabContent .tab {
    display: flex;
    width: 100%;
    flex-direction: column;
    animation: showWhyHospital .7s ease-in-out forwards;
}

@keyframes showWhyHospital {
    0% {
        transform: translateY(-90%);
    }
    100% {
        transform: translateY(0%);
    }
}

#hospital .tabContent .hide {
    display: none;
}

#hospital .active {
    display: block;
    background-color: var(--background-color-alt);
    color: var(--trim-color);
}

#hospital .tabContent .tab .content {
    background-color: var(--background);
    display: flex;
    padding: 10px 0;
    box-sizing: border-box;
}

#hospital .tabContent .tab .content .content-title {

    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;

}

#hospital .tabContent .tab .content .content-title h3 {
    text-align: right;
    margin-bottom: 20px;
    color: var(--trim-color);
}

#hospital .tabContent .tab .content .content-title p {
    line-height: 25px;
    padding: 5px 0 10px;
    overflow-y: auto;
    color: var(--trim-color);
}

#hospital .tabContent .tab .content .content-title p::-webkit-scrollbar {
    width: 5px;
    border-radius: 50px;
}

#hospital .tabContent .tab .content .content-title p::-webkit-scrollbar-thumb {
    background: var(--background-color-btn);
    border-radius: 50px;
}

#hospital .tabContent .tab .content .content-title p::-webkit-scrollbar-track {
    background: var(--text-color);
    border-radius: 50px;
}

#hospital .tabContent .tab .content .content-img {
    width: 30%;
    text-align: center;
}

#hospital .tabContent .tab .content .content-img img {
    width: 90%;
    object-fit: cover;
}

#hospital .tabContent .tab .tab-content-link {
    background-color: var(--background-color);
    text-align: center;
    transition: all .5s linear;
    /*border-radius: 0 0 30px 30px;*/
}

#hospital .tabContent .tab .tab-content-link:hover {
    background-color: var(--background-color-alt);
}

#hospital .tabContent .tab .tab-content-link a {
    color: var(--white-color);
    display: block;
    cursor: pointer;
    padding: 10px;
    transition: all .5s linear;
    font-weight: 800;
    font-size: 17px;
}

#hospital .tabContent .tab .tab-content-link:hover a {
    color: var(--background-color);
}
