.doctors {
    padding-top: clamp(2.5rem, 2.072rem + 1.4vw, 3.75rem);
    padding-bottom: clamp(3.75rem, 1.608rem + 6.99vw, 10rem);
}

.doctors .doctors__header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: clamp(1.875rem, 1.447rem + 1.4vw, 3.125rem);
}


.doctors .doctors__locations {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    max-width: 470px;
    width: 100%;
    border: 2px solid var(--accent);
    border-radius: 50px;
}

.doctors .doctors__location {
    padding: 16px 37px;
    font-size: clamp(0.875rem, 0.832rem + 0.14vw, 1rem);
    font-weight: 700;
    line-height: clamp(1.125rem, 1.061rem + 0.21vw, 1.313rem);
    border-radius: 50px;
    text-wrap: nowrap;
    text-align: center;
    cursor: pointer;
}

.doctors .doctors__location--active {
    background-color: var(--accent);
    color: white;
}

.doctors .doctors__categories {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border: 2px solid var(--accent);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: clamp(1.875rem, 1.447rem + 1.4vw, 3.125rem);
}

.doctors .doctors__category {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    text-align: center;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 21px;
    text-decoration: none;
    color: black;
    border-radius: 100px;
}

.doctors .doctors__category--active {
    background-color: var(--accent);
    color: white;
}

.doctors .doctors__list {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.doctors .doctors__card.card {
    display: block;
    max-width: 487px;
    min-width: 343px;
    width: 100%;
    height: auto;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding-bottom: 60px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
.doctors .doctors__card.card:hover {
    .card__image-cloud,.card__info{
        display: none;
    }
    .card__hover{
        display: block;
    }
}

.doctors .doctors__card.card .card__image-wrapper {
    position: relative;
}
.doctors .doctors__card.card .card__image-wrapper .card__image {
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
}
.doctors .doctors__card.card .card__image-wrapper .card__image-cloud {
    position: absolute;
    bottom: 0;
    left: 0;
}


.doctors .doctors__card.card .card__info {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    position: absolute;
    bottom: 30px;
    left: 20px;
}

.doctors .doctors__card.card .card__title {
    font-family: "Montserrat Alternates", Sans-serif;
    font-size: clamp(1.063rem, 0.977rem + 0.28vw, 1.313rem);
    font-weight: 700;
    line-height: clamp(1.375rem, 1.268rem + 0.35vw, 1.688rem);
    color: black;
    margin-bottom: 14px;
}

.doctors .doctors__card.card .card__desc {
    font-family: "Montserrat Alternates", Sans-serif;
    font-size: clamp(0.875rem, 0.832rem + 0.14vw, 1rem);
    line-height: clamp(1.125rem, 1.061rem + 0.21vw, 1.313rem);
    font-weight: 400;
    color: black;
}

.doctors .doctors__card.card .card__hover {
    display: none;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
}


.doctors .doctors__card.card .card__hover-link {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    background-color: var(--lightBlue);
    padding: 15px;
    color: #fff;
}

.doctors .doctors__card.card .card__hover-book {
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    background-color: var(--accent);
    padding: 15px;
    color: #fff;
    cursor: pointer;
}
a.cust_author,a.cust_author:hover {
    color: #000;
    font-size: 20px;
    line-height: 22px;
}

@media (max-width: 1155px) {
    .doctors .doctors__list {
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 998px) {
    a.cust_author {
        font-size: 18px;
    }
    .doctors .doctors__categories {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        border-radius: 33px;
    }

    .doctors .doctors__category {
        border-radius: 0px;
    }
    .doctors .doctors__categories {
        border: 0.5px solid var(--accent);
    }
}

@media (max-width: 770px) {
    .doctors .doctors__header {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        gap: 20px;
    }

    .doctors .doctors__list {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 410px) {
    .doctors .doctors__location {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 395px) {
    .doctors .doctors__card.card {
        min-width: 290px;
    }
}

@media (hover: hover) {
    .doctors .doctors__card.card:hover {
        -webkit-transform: scale(1.002);
        -ms-transform: scale(1.025);
        transform: scale(1.025);
        -webkit-box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
        box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    }
}

