/* Team Preview Section Styles */
/* Warm Medical Color Scheme with Teal Accents */

:root {
    /* Primary Brand Colors */
    --brand-green: #009244;
    --brand-yellow: #fcc300;
    --brand-red: #EB1C24;
    
    /* Green Variations (Primary) */
    --green-primary: #009244;
    --green-light: #00B050;
    --green-dark: #007A3D;
    --green-lighter: rgba(0, 146, 68, 0.1);
    --green-lightest: rgba(0, 146, 68, 0.05);
    
    /* Yellow Variations (Accent) */
    --yellow-primary: #fcc300;
    --yellow-light: #FFD700;
    --yellow-dark: #D4A300;
    --yellow-lighter: rgba(252, 195, 0, 0.1);
    --yellow-lightest: rgba(252, 195, 0, 0.05);
    
    /* Red Variations (Emphasis/CTA) */
    --red-primary: #EB1C24;
    --red-light: #FF4D56;
    --red-dark: #C41017;
    --red-lighter: rgba(235, 28, 36, 0.1);
    --red-lightest: rgba(235, 28, 36, 0.05);
    
    /* Legacy Support - Yellow as Primary */
    --primary-teal: var(--yellow-primary);
    --primary-teal-light: var(--yellow-light);
    --primary-teal-dark: var(--yellow-dark);
    
    /* Neutral Colors */
    --warm-cream: #fef9f3;
    --soft-peach: #fff5ed;
    --warm-white: #fefefe;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    
    /* Shadows with Brand Colors */
    --shadow-soft: rgba(0, 146, 68, 0.08);
    --shadow-medium: rgba(0, 146, 68, 0.12);
    --shadow-hover: rgba(0, 146, 68, 0.16);
    
    /* Gradients - Yellow as Primary */
    --gradient-primary: linear-gradient(135deg, var(--yellow-primary) 0%, var(--yellow-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--green-primary) 0%, var(--green-light) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--warm-white);
}

/* Team Preview Section */
.team-preview-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--warm-cream) 0%, var(--soft-peach) 100%);
    position: relative;
    overflow: hidden;
}

.team-preview-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 146, 68, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.team-preview-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 176, 80, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    border-radius: 2px;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 30px auto 0;
    line-height: 1.8;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

/* Team Card */
.team-card {
    background: var(--warm-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out backwards;
    position: relative;
}

.team-card:nth-child(1) {
    animation-delay: 0.1s;
}

.team-card:nth-child(2) {
    animation-delay: 0.2s;
}

.team-card:nth-child(3) {
    animation-delay: 0.3s;
}

.team-card:nth-child(4) {
    animation-delay: 0.4s;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-hover);
}

/* Team Image */
.team-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-teal-light) 0%, var(--primary-teal) 100%);
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-image {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 146, 68, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover .image-overlay {
    opacity: 1;
}

/* Team Info */
.team-info {
    padding: 30px 25px;
}

.team-grid a {
    text-decoration: none;
}

.profile-link {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.team-qualification {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA Section */
.team-cta-wrapper {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.cta-arrow {
    transition: transform 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .team-preview-section {
        padding: 4rem 2rem;
    }

    .section-header {
        margin-bottom: 45px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-intro {
        font-size: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .team-image-wrapper {
        height: 280px;
    }

    .team-info {
        padding: 25px 20px;
    }

    .team-name {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .team-preview-section {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-intro {
        font-size: 0.95rem;
    }
}