* {
    box-sizing: border-box;
}



body {
    margin: 0;
    background: #fff;
    color: #0D5641;
    font-family: var(--font-primary);
}

.container {
    padding: 0 20px;
}

.doctor-detail {
    padding: 75px 0;
    background: #fff;
}

.doctor-detail__wrapper {
    display: grid;
    grid-template-columns: 352px 1fr;
    gap: 60px;
    align-items: start;
}

.doctor-card {
    display: flex;
    flex-direction: column;
}

.doctor-card__content {
    background: #CFE38B;
    border-radius: 24px;
    padding: 21px;
}

.doctor-card__image {
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 18px;
    aspect-ratio: 1 / 1.35;
    background: #e9edf2;
}

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

.doctor-card__body {
    padding: 0;
}

.doctor-card__name {
    margin: 0;
    color: #0D5641;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.doctor-card__position {
    margin: 6px 0 27px;
    color: #0D5641;
    font-size: 13px;
    line-height: 1.6;
}

.doctor-card__item {
    padding: 14px 0;
    border-top: 1px solid rgba(11, 91, 73, .15);
}

.doctor-card__item:first-of-type {
    border-top: none;
}

.doctor-card__item span {
    display: block;
    margin-bottom: 8px;
    color: #0D5641;
    font-size: 11px;
    font-weight: 400;
}

.doctor-card__item a,
.doctor-card__item p {
    margin: 0;
    color: #0D5641;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
}

.doctor-card__item a:hover {
    color: #084939;
}

.doctor-card__button {
    margin-top: 12px;
    height: 39px;
    padding: 0 5px 0 21px;
    border-radius: 999px;
    background: #0D5641;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: .25s ease;
}

.doctor-card__button:hover {
    background: #0a4f40;
}

.doctor-card__button span:first-child {
    font-size: 16px !important;
    font-weight: 500;
}

.doctor-card__button-icon {
    width: 31px;
    height: 31px;
    background: #fff;
    color: #0D5641;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
}

.doctor-card__button:hover .doctor-card__button-icon {
    transform: translateX(3px);
}

.doctor-card__button-icon svg {
    width: 18px;
    height: 18px;
}

.doctor-content {
    min-width: 0;
}

.doctor-section+.doctor-section {
    margin-top: 66px;
}

.doctor-section__title {
    margin: 0;
    color: #0D5641;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.doctor-section__title::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    margin-top: 14px;
    margin-bottom: 24px;
    background: #d5ea68;
}

.doctor-section__description {
    margin: 0 0 34px;
    color: #6f7471;
    font-size: 13px;
    line-height: 1.9;
}

.doctor-info {
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}

.doctor-info li {
    position: relative;
    padding-left: 0;
    margin-bottom: 10px;
    color: #626b67;
    font-size: 16px !important;
    line-height: 1.8;
}

.doctor-info li:last-child {
    margin-bottom: 0;
}

.doctor-info li::before {
    display: none;
}

.doctor-info strong {
    color: #0D5641;
    font-weight: 700;
}

.doctor-section p {
    margin: 0 0 18px;
    color: #6f7471;
    font-size: 16px !important;
    line-height: 1.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.doctor-description ul,
.doctor-description ol {
    list-style: none;
    padding-left: 0;
}
.doctor-description li {
    font-size: 16px !important;
    line-height: 1.8;
    color: #6f7471;
    margin-bottom: 10px;
}

.doctor-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    width: 100%;
    max-width: 100%;
}

.doctor-section p:last-child {
    margin-bottom: 0;
}

.doctor-education-list {
    margin: 0 0 34px;
    padding: 0 0 0 24px;
    list-style: disc;
}

.doctor-education-list li {
    font-size: 16px !important;
    line-height: 1.8;
    color: #626b67;
    margin-bottom: 15px;
}

.doctor-speciality {
    margin: 0;
    padding: 0;
    list-style: none;
}

.doctor-speciality li {
    position: relative;
    padding-left: 0;
    margin-bottom: 10px;
    color: #626b67;
    font-size: 16px !important;
    line-height: 1.8;
}

.doctor-speciality li:last-child {
    margin-bottom: 0;
}

.doctor-speciality li::before {
    display: none;
}

@media screen and (max-width: 768px) {
    .container {
        width: min(720px, calc(100% - 40px));
    }
    .doctor-detail {
        padding: 56px 0 64px;
    }
    .doctor-detail__wrapper {
        grid-template-columns: 1fr;
        gap: 52px;
    }
    .doctor-card {
        max-width: 440px;
        width: 100%;
        margin: 0 auto;
    }
    .doctor-card__name {
        font-size: 21px;
    }
    .doctor-card__position {
        margin-bottom: 28px;
    }
    .doctor-content {
        width: 100%;
    }
    .doctor-section+.doctor-section {
        margin-top: 50px;
    }
    .doctor-section__title {
        font-size: 24px;
    }
    .doctor-section__title::after {
        margin-bottom: 22px;
    }
    .doctor-education {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media screen and (max-width: 576px) {
    .container {
        width: min(100% - 28px, 540px);
    }
    .doctor-detail {
        padding: 36px 0 46px;
    }
    .doctor-detail__wrapper {
        gap: 42px;
    }
    .doctor-card {
        max-width: 100%;
    }
    .doctor-card__content {
        padding: 14px;
        border-radius: 18px;
    }
    .doctor-card__image {
        border-radius: 15px;
        margin-bottom: 18px;
    }
    .doctor-card__name {
        font-size: 20px;
    }
    .doctor-card__item {
        padding: 14px 0;
    }
    .doctor-card__button {
        height: 52px;
        padding-left: 20px;
    }
    .doctor-card__button span:first-child {
        font-size: 12px;
    }
    .doctor-card__button-icon {
        width: 36px;
        height: 36px;
    }
    .doctor-section__title {
        font-size: 22px;
    }
    .doctor-info li,
    .doctor-speciality li {
        font-size: 14px;
        line-height: 1.7;
    }
    .doctor-section p,
    .doctor-section__description {
        font-size: 14px;
        line-height: 1.8;
    }
    .doctor-education {
        gap: 22px;
    }
    .doctor-education__item {
        gap: 14px;
    }
    .doctor-education__number {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .doctor-education__content h3 {
        font-size: 16px;
    }
    .doctor-education__content p {
        font-size: 14px;
    }
}
