/* =========================================================
   About — Our Panel of Doctors
   Content-fit cards + responsive carousel widths
========================================================= */

.vh-team-section {
    width: 100%;
    padding: 96px 0 88px;
    background: #fff;
    overflow: hidden;
}

.vh-team-section > .container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.vh-team-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin: 0 0 36px;
}

.vh-team-heading {
    flex: 1 1 auto;
    max-width: 700px;
    min-width: 0;
}

.vh-team-heading > .vh-team-label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px !important;
    padding: 0 !important;
    min-height: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--label-color, #43992a) !important;
    font-family: var(--accent-font, "Sora", sans-serif);
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

.vh-team-heading > .vh-team-label .label-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--label-color, #43992a) !important;
}

.vh-team-heading h2 {
    margin: 0 0 14px;
    color: var(--heading-color, #123A5C) !important;
    font-family: var(--accent-font, "Sora", sans-serif);
    font-size: clamp(28px, 3.8vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.vh-team-heading h2 span {
    color: var(--label-color, #43992a) !important;
}

.vh-team-lead {
    margin: 0;
    max-width: 560px;
    color: var(--text-color, #5A6573);
    font-size: 16px;
    line-height: 1.7;
}

.vh-team-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-bottom: 2px;
}

.vh-team-nav {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(2, 95, 190, 0.16);
    border-radius: 50%;
    background: #fff;
    color: var(--heading-color, #123A5C);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.vh-team-nav:hover {
    background: var(--primary-color, #025fbe);
    border-color: var(--primary-color, #025fbe);
    color: #fff;
    box-shadow: 0 10px 22px rgba(2, 95, 190, 0.18);
}

.vh-team-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 6px 0 14px;
}

.vh-team-carousel .vhTeamSwiper {
    overflow: hidden;
    width: 100%;
}

/* Stable track height (no autoHeight) — next section does not jump */
.vh-team-carousel .vhTeamSwiper .swiper-wrapper {
    align-items: flex-start !important;
}

.vh-team-carousel .swiper-slide {
    height: auto !important;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
}

.vh-team-carousel .swiper-slide > .vh-dept-card {
    width: 100%;
    height: auto;
    align-self: flex-start;
}

/* ---------- Department cards — equal width, height from content ---------- */
.vh-team-section .vh-dept-card {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 22px 20px 20px;
    background: #fff;
    border: 1px solid rgba(18, 58, 92, 0.1);
    border-radius: 18px;
    box-shadow:
        0 4px 10px rgba(18, 58, 92, 0.04),
        0 14px 28px rgba(18, 58, 92, 0.07);
    box-sizing: border-box;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.vh-team-section .vh-dept-card:hover {
    transform: translateY(-3px);
    border-color: rgba(2, 95, 190, 0.22);
    box-shadow:
        0 8px 16px rgba(18, 58, 92, 0.06),
        0 20px 36px rgba(18, 58, 92, 0.1);
}

.vh-team-section .vh-dept-title {
    margin: 0 0 14px !important;
    padding: 0 0 12px !important;
    border-bottom: 2px solid rgba(254, 109, 2, 0.28) !important;
    color: var(--heading-color, #123A5C) !important;
    font-family: var(--accent-font, "Sora", sans-serif) !important;
    font-size: clamp(14px, 1.2vw, 16px) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vh-team-section .vh-dept-doctors {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 0 0 auto;
}

.vh-team-section .vh-dept-doctors li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(18, 58, 92, 0.08);
}

.vh-team-section .vh-dept-doctors li:first-child {
    padding-top: 2px;
}

.vh-team-section .vh-dept-doctors li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.vh-team-section .vh-dept-doctors strong {
    color: var(--brand-secondary, #fe6d02) !important;
    font-family: var(--accent-font, "Sora", sans-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vh-team-section .vh-dept-doctors span {
    color: var(--text-color, #5A6573) !important;
    font-family: var(--default-font, "Lato", sans-serif);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Laptop */
@media (max-width: 1199px) {
    .vh-team-section .vh-dept-card {
        padding: 20px 18px 18px;
        border-radius: 16px;
    }

    .vh-team-section .vh-dept-title {
        font-size: 14px !important;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .vh-team-section {
        padding: 72px 0 64px;
    }

    .vh-team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 28px;
    }

    .vh-team-controls {
        align-self: flex-end;
    }

    .vh-team-section .vh-dept-card {
        padding: 18px 16px 16px;
    }

    .vh-team-section .vh-dept-doctors strong {
        font-size: 14.5px;
    }

    .vh-team-section .vh-dept-doctors span {
        font-size: 12.5px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .vh-team-section {
        padding: 56px 0 52px;
    }

    .vh-team-section > .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .vh-team-lead {
        font-size: 15px;
    }

    .vh-team-nav {
        width: 42px;
        height: 42px;
    }

    .vh-team-carousel {
        padding: 4px 2px 10px;
    }

    .vh-team-section .vh-dept-card {
        padding: 16px 14px 14px;
        border-radius: 14px;
    }

    .vh-team-section .vh-dept-title {
        font-size: 13.5px !important;
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
    }

    .vh-team-section .vh-dept-doctors li {
        padding: 10px 0;
        gap: 3px;
    }

    .vh-team-section .vh-dept-doctors strong {
        font-size: 14px;
    }

    .vh-team-section .vh-dept-doctors span {
        font-size: 12px;
        line-height: 1.45;
    }
}

@media (max-width: 480px) {
    .vh-team-heading h2 {
        font-size: clamp(24px, 7vw, 30px);
    }

    .vh-team-section .vh-dept-card {
        padding: 15px 13px 13px;
    }
}
