/* ==========================================================================
   Doctors listing + single profile — medturbota
   ========================================================================== */

.doctors-page {
    padding: 40px 0 70px;
}

.doctors-page__title {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 25px;
}

.doctors-page__desc {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 18px;
    line-height: 28px;
    color: #6b6b6b;
}

.doctors-page__desc p {
    margin: 0 0 14px;
}

/* --- Grid of cards --- */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.doctor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform .35s ease;
}

.doctor-card:hover {
    transform: translateY(-6px);
}

.doctor-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background: #EBF3FF;
    box-shadow: 0 16px 24px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .04), 0 0 1px rgba(0, 0, 0, .04);
}

.doctor-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform .5s ease;
}

.doctor-card:hover .doctor-card__img img {
    transform: scale(1.04);
}

.doctor-card__name {
    font-weight: bold;
    font-size: 20px;
    line-height: 25px;
    margin: 20px 0 8px;
}

.doctor-card:hover .doctor-card__name {
    color: #055EDD;
}

.doctor-card__position {
    font-size: 16px;
    line-height: 22px;
    color: #909090;
}

/* ==========================================================================
   Single doctor
   ========================================================================== */

.doctor-breadcrumbs {
    margin: 30px 0 25px;
    font-size: 15px;
    color: #909090;
}

.doctor-breadcrumbs a {
    color: #055EDD;
}

.doctor-single {
    padding-bottom: 70px;
}

.doctor-single__top {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 24px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .04), 0 0 1px rgba(0, 0, 0, .04);
    padding: 40px;
}

.doctor-single__photo {
    flex: 0 0 340px;
    max-width: 340px;
    border-radius: 20px;
    overflow: hidden;
    background: #EBF3FF;
}

.doctor-single__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doctor-single__info {
    flex: 1 1 auto;
}

.doctor-single__name {
    margin: 0 0 14px;
}

.doctor-single__spec {
    display: inline-block;
    font-weight: bold;
    font-size: 18px;
    color: #055EDD;
    background: #EBF3FF;
    border-radius: 30px;
    padding: 8px 18px;
    margin-bottom: 14px;
}

.doctor-single__city {
    font-size: 17px;
    color: #909090;
    margin-bottom: 18px;
}

.doctor-single__city:before {
    content: '📍 ';
}

.doctor-single__lead {
    font-size: 18px;
    line-height: 28px;
    color: #4a4a4a;
    margin: 0 0 26px;
}

.doctor-single__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 34px;
    background: #055EDD;
    color: #fff;
    font-weight: bold;
    font-size: 17px;
    border-radius: 50px;
    transition: .4s;
    box-shadow: 0 16px 24px rgba(5, 94, 221, .18);
}

.doctor-single__btn:hover {
    background: #094EB1;
}

/* --- Info rows --- */
.doctor-single__rows {
    margin-top: 40px;
}

.doctor-row {
    display: flex;
    gap: 30px;
    padding: 22px 0;
    border-bottom: 1px solid #E6EEF9;
}

.doctor-row:first-child {
    border-top: 1px solid #E6EEF9;
}

.doctor-row__label {
    flex: 0 0 260px;
    max-width: 260px;
    font-weight: bold;
    font-size: 18px;
    color: #1c1c1c;
}

.doctor-row__value {
    flex: 1 1 auto;
    font-size: 17px;
    line-height: 27px;
    color: #4a4a4a;
}

.doctor-single__content {
    margin-top: 35px;
    font-size: 17px;
    line-height: 27px;
    color: #4a4a4a;
}

.doctor-single__back {
    margin-top: 40px;
}

.doctor-single__back a {
    color: #055EDD;
    font-weight: bold;
    font-size: 17px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 25px;
    }

    .doctor-single__top {
        gap: 35px;
        padding: 30px;
    }

    .doctor-single__photo {
        flex-basis: 280px;
        max-width: 280px;
    }
}

@media (max-width: 767px) {
    .doctors-page,
    .doctor-breadcrumbs,
    .doctor-single {
        padding-left: 20px;
        padding-right: 20px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        max-width: 360px;
        margin: 0 auto;
    }

    .doctor-single__top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
    }

    .doctor-single__photo {
        flex-basis: auto;
        max-width: 260px;
        width: 100%;
    }

    .doctor-single__spec {
        margin-left: auto;
        margin-right: auto;
    }

    .doctor-row {
        flex-direction: column;
        gap: 6px;
    }

    .doctor-row__label {
        flex-basis: auto;
        max-width: none;
    }
}
