/* Team Page Styles */

.team-header {
    background: var(--gradient-primary);
    position: relative;
    color: white;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}

.team-header-container {
    position: relative;
    z-index: 2;
}

.team-header-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.team-header-desc {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.team-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--bg-white);
    padding: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-image-wrapper {
    width: 100%;
    height: 300px;
    background: var(--bg-accent);
    overflow: hidden;
    position: relative;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.05);
}

.team-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-light);
    background: var(--bg-accent);
}

.team-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-role {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.team-contact {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light, #eee);
}

.team-contact p {
    margin-bottom: 0.3rem;
    color: var(--text-medium);
    transition: color 0.2s;
}

.team-contact p:hover {
    color: var(--primary);
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .team-header-title {
        font-size: 2.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}