/* ===== Đội ngũ bác sĩ (danh sách + chi tiết) ===== */
:root {
    --doc-green: #1ba14f;
    --doc-green-dark: #157a3c;
    --doc-green-soft: #eaf7ef;
    --doc-border: #e6eae7;
}

/* Tiêu đề khối */
.team-heading {
    background: linear-gradient(135deg, #1ba14f, #14964a);
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 14px 15px;
    margin: 0 0 30px;
    border-radius: 6px;
}

/* ----- Danh sách (team grid) ----- */
.team__item {
    text-align: center;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #eef1ef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(20, 40, 30, .05);
    transition: box-shadow .25s ease, transform .25s ease;
}
.team__item:hover {
    box-shadow: 0 14px 30px rgba(27, 161, 79, .18);
    transform: translateY(-6px);
}
.team__item-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;          /* ảnh vuông */
    background: var(--doc-green-soft);
}
.team__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* không méo, tự cắt cho vừa khung vuông */
    object-position: top center;
    transition: transform .45s ease;
}
.team__item:hover .team__item-thumb img {
    transform: scale(1.06);
}
.team__item-body {
    padding: 16px 12px 20px;
}
.team__item-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px;
    padding-bottom: 8px;
    position: relative;
}
.team__item-title:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: var(--doc-green);
    transform: translateX(-50%);
}
.team__item-title a {
    color: #1ba14f;
}
.team__item-title a:hover {
    color: #157a3c;
}
.team__item-role {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.55;
    min-height: 40px;
}

/* aspect-ratio đã tự co giãn theo chiều rộng nên không cần set height riêng cho mobile */

/* =================================================================== */
/* ----- CHI TIẾT BÁC SĨ (redesign) ----- */
/* =================================================================== */
.doctor-profile {
    background: #fff;
    border: 1px solid var(--doc-border);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(20, 40, 30, .06);
    padding: 30px;
    overflow: hidden;
}

.doctor-profile__top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Ảnh */
.doctor-profile__photo {
    flex: 0 0 280px;
    max-width: 280px;
}
.doctor-profile__photo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--doc-border), 0 12px 26px rgba(20, 40, 30, .12);
}
.doctor-profile__photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 320px;
    border-radius: 10px;
    background: var(--doc-green-soft);
    color: var(--doc-green);
    font-size: 84px;
}

/* Thông tin */
.doctor-profile__info {
    flex: 1 1 360px;
    min-width: 280px;
}
.doctor-profile__name {
    color: var(--doc-green);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 30px;
    line-height: 1.15;
    margin: 4px 0 12px;
}
.doctor-profile__role {
    display: inline-block;
    background: var(--doc-green-soft);
    color: var(--doc-green-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .3px;
    padding: 7px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

/* Danh sách thuộc tính */
.doctor-profile__attrs {
    list-style: none;
    padding: 0;
    margin: 0;
}
.doctor-profile__attrs li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed #eaeae6;
    line-height: 1.6;
}
.doctor-profile__attrs li:last-child {
    border-bottom: 0;
}
.doctor-profile__attrs-ico {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--doc-green);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.doctor-profile__attrs-txt {
    flex: 1;
    color: #444;
}
.doctor-profile__attrs-txt strong {
    color: var(--doc-green-dark);
    font-weight: 700;
}

/* Lịch làm việc */
.doctor-schedule {
    margin-top: 28px;
    border: 1px solid var(--doc-border);
    border-radius: 10px;
    overflow: hidden;
}
.doctor-schedule__head {
    background: linear-gradient(135deg, #1ba14f, #14964a);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 12px 18px;
    font-size: 15px;
}
.doctor-schedule__head .fa {
    margin-right: 8px;
}
.doctor-schedule__table {
    width: 100%;
    border-collapse: collapse;
}
.doctor-schedule__table tr {
    transition: background .15s ease;
}
.doctor-schedule__table tr:nth-child(even) {
    background: #fafbfa;
}
.doctor-schedule__table tr:hover {
    background: var(--doc-green-soft);
}
.doctor-schedule__table th,
.doctor-schedule__table td {
    padding: 11px 18px;
    border-top: 1px solid #eef1ef;
    line-height: 1.5;
}
.doctor-schedule__table th {
    width: 38%;
    text-align: left;
    font-weight: 700;
    color: #2b2b2b;
}
.doctor-schedule__table td {
    color: #555;
}

/* Giới thiệu */
.doctor-profile__bio {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--doc-border);
}
.doctor-profile__bio-title {
    position: relative;
    font-size: 18px;
    font-weight: 700;
    color: var(--doc-green);
    text-transform: uppercase;
    margin: 0 0 14px;
    padding-left: 14px;
}
.doctor-profile__bio-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 3px;
    background: var(--doc-green);
}
.doctor-profile__bio-content {
    line-height: 1.75;
    color: #444;
}

/* Responsive */
@media (max-width: 767px) {
    .doctor-profile {
        padding: 18px 16px;
    }
    .doctor-profile__top {
        gap: 18px;
        text-align: center;
    }
    .doctor-profile__photo {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .doctor-profile__photo img {
        max-width: 240px;
    }
    .doctor-profile__info {
        min-width: 0;
    }
    .doctor-profile__name {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 10px;
    }
    .doctor-profile__role {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 16px;
        white-space: normal;
    }

    /* Thuộc tính: căn trái lại cho dễ đọc, icon nhỏ gọn hơn */
    .doctor-profile__attrs {
        text-align: left;
    }
    .doctor-profile__attrs li {
        gap: 10px;
        padding: 9px 0;
        font-size: 14px;
        line-height: 1.55;
    }
    .doctor-profile__attrs-ico {
        flex: 0 0 20px;
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-top: 3px;
    }

    /* Lịch làm việc: gọn lại, thu nhỏ chữ, cho phép xuống dòng */
    .doctor-schedule {
        margin-top: 22px;
    }
    .doctor-schedule__head {
        font-size: 14px;
        padding: 11px 14px;
    }
    .doctor-schedule__table th,
    .doctor-schedule__table td {
        padding: 10px 12px;
        font-size: 13.5px;
    }
    .doctor-schedule__table th {
        width: 42%;
    }

    /* Giới thiệu */
    .doctor-profile__bio {
        margin-top: 24px;
        padding-top: 20px;
        text-align: left;
    }
    .doctor-profile__bio-title {
        font-size: 16px;
    }
    .doctor-profile__bio-content {
        font-size: 14.5px;
        line-height: 1.7;
    }
}

/* Màn hình rất nhỏ: lịch làm việc xếp dọc cho dễ đọc */
@media (max-width: 420px) {
    .doctor-schedule__table tr {
        display: flex;
        flex-direction: column;
    }
    .doctor-schedule__table th,
    .doctor-schedule__table td {
        width: 100%;
        border-top: 0;
    }
    .doctor-schedule__table th {
        padding-bottom: 2px;
        color: var(--doc-green-dark);
    }
    .doctor-schedule__table td {
        padding-top: 0;
        padding-bottom: 12px;
    }
    .doctor-schedule__table tr + tr th {
        border-top: 1px solid #eef1ef;
        padding-top: 10px;
    }
}
