/* ================= TEAM PAGE ENHANCED STYLES ================= */

/* ================= ABOUT SECTION (TEAM INTRO) ================= */
.about-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-container h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--medical-navy);
    margin-bottom: 24px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

/* Decorative underline */
.about-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--clinical-blue) 0%, var(--sterile-sky) 100%);
    border-radius: 2px;
}

.about-container p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--charcoal-ink);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-container p strong {
    color: var(--medical-navy);
    font-weight: 600;
}

.about-container .btn-primary {
    margin-top: 32px;
    display: inline-block;
    background: linear-gradient(135deg, var(--clinical-blue) 0%, var(--medical-navy) 100%);
    color: #ffffff;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    box-shadow: 0 4px 12px rgba(47, 94, 155, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
}

.about-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 94, 155, 0.35);
    background: linear-gradient(135deg, var(--medical-navy) 0%, var(--clinical-blue) 100%);
}

/* ================= TEAM GRID ================= */
.team-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #fafcfd 0%, #ffffff 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

/* ================= TEAM CARDS ================= */
.team-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(118, 179, 218, 0.2);
    box-shadow:
        0 8px 24px rgba(11, 42, 74, 0.06),
        0 2px 8px rgba(11, 42, 74, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Gradient accent bar */
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--clinical-blue) 0%, var(--sterile-sky) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(11, 42, 74, 0.1),
        0 4px 12px rgba(11, 42, 74, 0.08);
    border-color: var(--sterile-sky);
}

.team-card:hover::before {
    opacity: 1;
}

/* ================= TEAM AVATAR ================= */
.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sterile-sky) 0%, var(--clinical-blue) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 8px 20px rgba(47, 94, 155, 0.15);
    transition: transform 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
}

/* Avatar placeholder icon (if no image) */
.team-avatar::after {
    content: '👤';
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
}

/* If you have actual images, this will override the placeholder */
.team-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ================= TEAM INFO ================= */
.team-name {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--medical-navy);
    margin-bottom: 6px;
    font-weight: 600;
}

.team-title {
    font-size: 15px;
    color: var(--clinical-blue);
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.team-bio {
    font-size: 15px;
    line-height: 1.6;
    color: var(--cool-slate);
    margin-bottom: 0;
}

/* ================= TEAM SECTION HEADER ================= */
.team-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.team-section-header h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--medical-navy);
    margin-bottom: 16px;
    font-weight: 700;
}

.team-section-header p {
    font-size: 17px;
    color: var(--charcoal-ink);
    max-width: 700px;
    margin: 0 auto;
}

/* ================= CONTAINER ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= RESPONSIVE DESIGN ================= */

/* Tablet (900px and below) */
@media (max-width: 900px) {
    .about-section {
        padding: 60px 0;
    }

    .about-container h2 {
        font-size: 32px;
    }

    .team-section {
        padding: 50px 0 60px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .team-section-header h2 {
        font-size: 32px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .about-section {
        padding: 50px 0;
    }

    .about-container h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .about-container p {
        font-size: 16px;
    }

    .about-container .btn-primary {
        width: 100%;
        text-align: center;
    }

    .team-section {
        padding: 40px 0 50px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-card {
        padding: 28px 20px;
    }

    .team-section-header {
        margin-bottom: 36px;
    }

    .team-section-header h2 {
        font-size: 28px;
    }

    .team-section-header p {
        font-size: 16px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .about-section {
        padding: 40px 0;
    }

    .about-container h2 {
        font-size: 24px;
    }

    .about-container p {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .team-section {
        padding: 30px 0 40px;
    }

    .team-card {
        padding: 24px 18px;
    }

    .team-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 16px;
    }

    .team-avatar::after {
        font-size: 40px;
    }

    .team-name {
        font-size: 20px;
    }

    .team-title {
        font-size: 14px;
    }

    .team-bio {
        font-size: 14px;
    }

    .team-section-header h2 {
        font-size: 24px;
    }

    .team-section-header p {
        font-size: 15px;
    }
}

/* ================= PRINT STYLES ================= */
@media print {
    .about-section,
    .team-section {
        background: #ffffff;
    }

    .team-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dddddd;
    }

    .about-container .btn-primary {
        background: #0b2a4a;
        box-shadow: none;
    }

    .team-avatar {
        box-shadow: none;
    }
}