/**
 * ============================================================================
 * HOSPITAL ERP — PUBLIC WEBSITE: TEAM & LEADERSHIP STYLES
 * Path: front/assets/css/team.css
 * Matched with exact vidyapranali.com team image card specifications
 * ============================================================================
 */

/* -----------------------------------------------------------------------------
   1. Team Hero Banner & Floating Bubbles
   ----------------------------------------------------------------------------- */
#page-banner.team-banner {
    background: 
        linear-gradient(135deg, rgba(11, 43, 53, 0.88) 0%, rgba(6, 64, 77, 0.82) 50%, rgba(11, 139, 122, 0.88) 100%),
        url('../images/heroes/team.jpg') center center / cover no-repeat;
    position: relative;
    padding: 165px 0 85px;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
}

#page-banner.team-banner .container {
    width: min(1360px, calc(100% - 48px));
    max-width: 1360px;
}

#page-banner.team-banner .breadcrumb-wrapper {
    position: relative;
    z-index: 2;
}

#page-banner.team-banner .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 18px;
    list-style: none;
}

#page-banner.team-banner .breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

#page-banner.team-banner .breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

#page-banner.team-banner .breadcrumb .active {
    color: #42e8cf;
    font-weight: 600;
}

#page-banner.team-banner h1 {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.team-banner-sub {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15.5px;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

#page-banner.team-banner .team-bubbles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#page-banner.team-banner .bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05) 60%, rgba(255, 255, 255, 0.02) 100%);
    opacity: 0.6;
    filter: blur(0.2px);
    animation: floatBubble 8s ease-in-out infinite alternate;
}

#page-banner.team-banner .bubble.b1 { width: 140px; height: 140px; top: 10%; left: 6%; animation-duration: 9s; }
#page-banner.team-banner .bubble.b2 { width: 220px; height: 220px; top: -30px; right: 8%; animation-duration: 11s; }
#page-banner.team-banner .bubble.b3 { width: 90px; height: 90px; bottom: 15%; left: 28%; animation-duration: 7s; }
#page-banner.team-banner .bubble.b4 { width: 160px; height: 160px; bottom: -40px; right: 22%; animation-duration: 10s; }
#page-banner.team-banner .bubble.b5 { width: 70px; height: 70px; top: 28%; right: 45%; animation-duration: 8s; }

@keyframes floatBubble {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-18px) scale(1.05); }
}

/* -----------------------------------------------------------------------------
   2. Team Metrics Strip
   ----------------------------------------------------------------------------- */
.team-metrics-strip {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 32px 0;
}

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.team-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-stat-card:hover {
    transform: translateY(-2px);
    border-color: #0b8b7a;
    box-shadow: 0 10px 25px -5px rgba(11, 139, 122, 0.12);
}

.team-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(11, 139, 122, 0.12) 0%, rgba(11, 139, 122, 0.04) 100%);
    color: #0b8b7a;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.team-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #0b2b35;
    line-height: 1.1;
}

.team-stat-label {
    display: block;
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

/* -----------------------------------------------------------------------------
   3. Team Section & Titles
   ----------------------------------------------------------------------------- */
section.team.section-bg {
    background: #f8fbfd;
    padding: 60px 0 80px;
}

.section-title {
    margin-bottom: 35px;
}

.section-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0b8b7a;
    margin-bottom: 8px;
    font-weight: 700;
}

.section-title h2 {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
    font-size: clamp(28px, 3.2vw, 42px);
    margin: 0 0 12px;
}

.section-title h2::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    background: #0b8b7a;
    margin: 12px auto 0;
    border-radius: 999px;
}

.section-subtext {
    max-width: 680px;
    margin: 0 auto;
    color: #64748b;
    font-size: 15.5px;
    line-height: 1.6;
}

/* Filter Controls */
.team-filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.team-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.team-filter-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.team-filter-btn.active {
    background: #0b2b35;
    color: #ffffff;
    border-color: #0b2b35;
    box-shadow: 0 6px 18px rgba(11, 43, 53, 0.22);
}

/* -----------------------------------------------------------------------------
   4. STRICT 4 PHOTOS PER LINE GRID SYSTEM (EK LINE ME 4 PHOTO)
   ----------------------------------------------------------------------------- */
#teamCardsRow {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
    row-gap: 28px;
}

#teamCardsRow > [data-team-item] {
    padding-right: 12px;
    padding-left: 12px;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
}

/* Desktop (>= 992px): STRICTLY 4 PHOTOS IN ONE LINE */
@media (min-width: 992px) {
    #teamCardsRow > [data-team-item] {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
    }
}

/* Tablet (576px - 991.98px): 2 photos per line */
@media (min-width: 576px) and (max-width: 991.98px) {
    #teamCardsRow > [data-team-item] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

/* Mobile (< 576px): 1 photo per line */
@media (max-width: 575.98px) {
    #teamCardsRow > [data-team-item] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* -----------------------------------------------------------------------------
   5. EXACT VIDYAPRANALI TEAM MEMBER IMAGE CARD DESIGN
   ----------------------------------------------------------------------------- */
.team .member {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.team .member:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
    border-color: rgba(11, 139, 122, 0.3);
}

.team .member-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #062e3f;
}

.team .member-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.team .member:hover .member-img img {
    transform: scale(1.04);
}

.team .member::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(11, 139, 122, 0.07), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 24px;
}

.team .member:hover::after {
    opacity: 1;
}

/* Floating Circular Social Icons (Top-Left on Image) */
.team .member .social {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.team .member .social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    font-size: 12.5px;
    backdrop-filter: blur(6px);
}

.team .member .social a:hover {
    background: #0b8b7a;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Quick Bio Trigger Pill (Top-Right on Image) */
.member-bio-chip {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(11, 43, 53, 0.88);
    backdrop-filter: blur(8px);
    color: #42e8cf;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    transition: all 0.2s ease;
}

.member-bio-chip:hover {
    background: #0b8b7a;
    color: #ffffff;
    transform: scale(1.05);
}

/* Member Info (Vidyapranali Typography) */
.team .member-info {
    padding: 22px 18px 24px;
    text-align: center;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.team .member-info h4 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.team .member-info span.designation {
    display: block;
    font-size: 13px;
    color: #0b8b7a;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.team .member-info span.experience {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.35;
}

/* -----------------------------------------------------------------------------
   6. Healthcare Journey Timeline
   ----------------------------------------------------------------------------- */
.team-timeline-section {
    background: #ffffff;
    padding: 70px 0 80px;
    border-top: 1px solid #e2e8f0;
}

.timeline-track {
    position: relative;
    max-width: 920px;
    margin: 40px auto 0;
    padding: 10px 0;
}

.timeline-track::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(180deg, #0b8b7a 0%, #0b2b35 100%);
    transform: translateX(-50%);
    border-radius: 999px;
}

.timeline-step {
    position: relative;
    margin-bottom: 35px;
    display: flex;
}

.timeline-step:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-step:nth-child(even) {
    justify-content: flex-end;
}

.timeline-step-content {
    width: 44%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-step-content:hover {
    transform: translateY(-2px);
    border-color: #0b8b7a;
}

.timeline-badge {
    display: inline-block;
    background: #0b2b35;
    color: #42e8cf;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.timeline-step-content h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}

.timeline-step-content p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #0b8b7a;
    box-shadow: 0 0 0 4px rgba(11, 139, 122, 0.2);
    z-index: 2;
}

@media (max-width: 768px) {
    .timeline-track::before {
        left: 20px;
    }
    .timeline-step {
        justify-content: flex-start !important;
        margin-left: 45px;
    }
    .timeline-step-content {
        width: 100%;
    }
    .timeline-dot {
        left: 20px;
    }
}

/* -----------------------------------------------------------------------------
   7. Careers & Clinical CTA
   ----------------------------------------------------------------------------- */
.team-cta-section {
    background: linear-gradient(135deg, #0b2b35 0%, #06404d 100%);
    padding: 60px 0;
    color: #ffffff;
    text-align: center;
}

.team-cta-content {
    max-width: 680px;
    margin: 0 auto;
}

.team-cta-content h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    margin: 0 0 12px;
    color: #ffffff;
}

.team-cta-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    line-height: 1.6;
}

.team-cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.team-btn-primary {
    background: #0b8b7a;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(11, 139, 122, 0.35);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.team-btn-primary:hover {
    background: #097566;
    color: #ffffff;
    transform: translateY(-2px);
}

.team-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.team-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

/* -----------------------------------------------------------------------------
   8. Interactive Member Bio Modal
   ----------------------------------------------------------------------------- */
.team-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.team-modal-backdrop[hidden] {
    display: none !important;
}

.team-modal-card {
    background: #ffffff;
    border-radius: 24px;
    max-width: 680px;
    width: 100%;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
    animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 16px;
    z-index: 10;
    transition: background 0.2s ease, color 0.2s ease;
}

.team-modal-close:hover {
    background: #0f172a;
    color: #ffffff;
}

.team-modal-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 280px;
}

.team-modal-sidebar {
    background: #f8fafc;
    padding: 24px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-modal-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    margin-bottom: 14px;
}

.team-modal-exp {
    font-size: 12px;
    color: #0b8b7a;
    font-weight: 700;
}

.team-modal-cred {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 4px;
}

.team-modal-content {
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-modal-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.team-modal-role {
    font-size: 13.5px;
    color: #0b8b7a;
    font-weight: 700;
    margin-bottom: 14px;
    display: block;
}

.team-modal-bio {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

.team-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.team-tag {
    background: #e6f6f4;
    color: #0b6b5e;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.team-tag i {
    font-size: 9px;
    color: #0b8b7a;
}

@media (max-width: 600px) {
    .team-modal-body {
        grid-template-columns: 1fr;
    }
    .team-modal-sidebar {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
        padding: 20px;
    }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
