/* Team Hero Section */
.team-hero {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 160px 0 80px;
    color: #fff;
}

    .team-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    }

.team-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.team-hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.team-hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00B79B;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Team Intro Section */
.team-intro {
    padding: 100px 0;
    background: #fff;
}

.team-intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 183, 155, 0.1);
    color: #00B79B;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #1E293B;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-description {
    color: #64748B;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Provider Section */
/* Provider Section - Improved & Mobile Optimized */
.team-provider {
    padding: 80px 0;
    background: #f8fafc;
}

.provider-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    margin-bottom: 4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .provider-card:last-child {
        margin-bottom: 0;
    }

    .provider-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    }

.provider-card-inner {
    display: flex;
    flex-direction: row;
}

.provider-image-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.provider-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 3/4;
    min-height: 400px;
    transition: transform 0.5s ease;
}

.provider-card:hover .provider-image {
    transform: scale(1.03);
}

.provider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.provider-content-wrapper {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.provider-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

    .provider-credentials span {
        background: rgba(0, 183, 155, 0.1);
        padding: 0.4rem 0.9rem;
        border-radius: 50px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #1E293B;
        transition: all 0.3s ease;
    }

        .provider-credentials span:hover {
            background: rgba(0, 183, 155, 0.15);
            transform: translateY(-2px);
        }

.provider-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.provider-header {
    margin-bottom: 2rem;
    position: relative;
}

    .provider-header::after {
        content: '';
        position: absolute;
        bottom: -1rem;
        left: 0;
        width: 60px;
        height: 3px;
        background: #00B79B;
        border-radius: 10px;
    }

.provider-name {
    font-size: 2.5rem;
    color: #1E293B;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.provider-title {
    color: #00B79B;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.provider-specialties {
    margin-bottom: 2rem;
    position: relative;
}

    .provider-specialties h4 {
        color: #1E293B;
        font-size: 1.25rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

    .specialty-tags span {
        background: rgba(0, 183, 155, 0.1);
        color: #00B79B;
        padding: 0.65rem 1.25rem;
        border-radius: 50px;
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.3s ease;
        display: inline-block;
        margin-bottom: 0.5rem;
    }

        .specialty-tags span:hover {
            background: rgba(0, 183, 155, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 183, 155, 0.1);
        }

.provider-bio {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    flex-grow: 1;
}

    .provider-bio p {
        margin-bottom: 1.25rem;
    }

        .provider-bio p:last-child {
            margin-bottom: 0;
        }

.provider-cta {
    margin-top: auto;
    width: 100%;
}

.btn-schedule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #00B79B;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 183, 155, 0.2);
    width: 100%;
    max-width: 400px;
}

    .btn-schedule:hover {
        background: #009B83;
        transform: translateY(-3px);
        box-shadow: 0 15px 25px rgba(0, 183, 155, 0.3);
    }

    .btn-schedule .btn-icon {
        transition: transform 0.3s ease;
    }

    .btn-schedule:hover .btn-icon {
        transform: translateY(-2px);
    }













/* Staff Section */
.team-staff {
    padding: 80px 0;
    background: #fff;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.staff-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .staff-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

.staff-image-container {
    position: relative;
    height: 300px;
}

.staff-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

    .staff-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.staff-card:hover .staff-image img {
    transform: scale(1.05);
}

.staff-connect {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.connect-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00B79B;
    transition: all 0.3s ease;
}

    .connect-icon:hover {
        background: #00B79B;
        color: #fff;
        transform: translateY(-2px);
    }

.staff-content {
    padding: 2rem;
}

.staff-name {
    font-size: 1.5rem;
    color: #1E293B;
    margin-bottom: 0.5rem;
}

.staff-title {
    color: #00B79B;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.staff-bio {
    color: #64748B;
    font-size: 0.975rem;
    line-height: 1.7;
}

/* Join Team Section */
.join-team {
    padding: 100px 0;
    background: linear-gradient(120deg, #00B79B, #008B76);
    color: #fff;
    text-align: center;
}

.join-content {
    max-width: 600px;
    margin: 0 auto;
}

    .join-content h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    /* Join Team Section (continued) */
    .join-content p {
        font-size: 1.125rem;
        line-height: 1.8;
        opacity: 0.9;
        margin-bottom: 2rem;
    }

.btn-careers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #00B79B;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-careers:hover {
        background: rgba(255,255,255,0.9);
        transform: translateY(-2px);
    }

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-hero-content,
.team-intro-content,
.staff-card {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.staff-card {
    animation-delay: calc(var(--item-index) * 0.1s);
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .stats-container {
        gap: 2rem;
    }

    .provider-content {
        padding: 2rem;
    }
}

@media screen and (max-width: 992px) {
    .team-hero {
        min-height: 500px;
        padding: 120px 0 60px;
    }

    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-item {
        padding: 1rem;
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .team-hero {
        min-height: 400px;
    }

    .team-hero-title {
        font-size: 2.5rem;
    }

    .team-hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .specialty-tags {
        flex-wrap: nowrap;
        width: max-content;
    }

    .staff-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .join-content h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .team-hero {
        min-height: 350px;
        padding: 100px 0 40px;
    }

    .team-hero-title {
        font-size: 2rem;
    }

    .section-badge {
        font-size: 0.75rem;
    }

    .staff-image-container {
        height: 250px;
    }

    .staff-content {
        padding: 1.5rem;
    }

    .btn-schedule,
    .btn-careers {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .team-hero {
        min-height: auto;
        padding: 2cm 0;
        background: none !important;
        color: #000;
    }

        .team-hero::before {
            display: none;
        }

    .stats-container {
        display: none;
    }

    .staff-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .staff-connect,
    .join-team {
        display: none;
    }
}

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.text-gradient {
    background: linear-gradient(120deg, #1E293B, #00B79B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}




/* Media Queries for .team-provider */

@media screen and (min-width: 992px) {
    .provider-card-inner {
        flex-direction: row;
    }

    .provider-image-wrapper {
        flex: 1;
    }

    .provider-content-wrapper {
        flex: 2;
    }
}

@media screen and (max-width: 991px) {
    .provider-card-inner {
        flex-direction: column;
    }

    .provider-image {
        min-height: 350px;
        aspect-ratio: auto;
    }

    .provider-name {
        font-size: 2.25rem;
    }
}

@media screen and (max-width: 768px) {
    .team-provider {
        padding: 60px 0;
    }

    .provider-card {
        margin-bottom: 3rem;
    }

    .provider-image {
        min-height: 300px;
    }

    .provider-content {
        padding: 2rem;
    }

    .provider-name {
        font-size: 2rem;
    }

    .provider-header::after {
        width: 50px;
    }

    .provider-title {
        font-size: 1.1rem;
    }

    .specialty-tags {
        margin-bottom: -0.5rem;
    }

        .specialty-tags span {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }
}

@media screen and (max-width: 576px) {
    .team-provider {
        padding: 40px 0;
    }

    .provider-card {
        margin-bottom: 2.5rem;
    }

    .provider-image {
        min-height: 250px;
    }

    .provider-content {
        padding: 1.5rem;
    }

    .provider-name {
        font-size: 1.75rem;
    }

    .provider-header::after {
        width: 40px;
        height: 2px;
    }

    .provider-title {
        font-size: 1rem;
    }

    .provider-credentials {
        margin: 0.5rem 0;
    }

        .provider-credentials span {
            font-size: 0.8rem;
            padding: 0.35rem 0.7rem;
        }

    .provider-specialties h4 {
        font-size: 1.1rem;
    }

    .specialty-tags span {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .provider-bio {
        font-size: 0.95rem;
    }

    .btn-schedule {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}