/* 
 * Clear Enterprise Website - Enhanced Team Section
 * Improved visibility and layout for team members
 */

/* ====================
   Team Section
   ==================== */
.team-section {
    padding: var(--space-3xl) 0;
    background-color: var(--pure-white);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
    font-size: 2.25rem;
    color: var(--deep-charcoal);
}

.section-subtitle {
    text-align: center;
    margin-bottom: var(--space-2xl);
    font-size: 1.1rem;
    color: var(--swiss-silver);
    font-weight: 400;
}

/* Team Grid Layout */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Team Member Card */
.team-member {
    display: flex;
    background-color: var(--pure-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Team Member Image */
.team-member-image {
    width: 250px;
    height: 350px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Team Member Information */
.team-member-info {
    padding: 1.5rem;
    flex: 1;
}

.team-member-name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--deep-charcoal);
}

.team-member-position {
    color: var(--trust-blue);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.team-member-description {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.team-member-info p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.team-member-info strong {
    color: var(--deep-charcoal);
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        max-width: 650px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .team-member {
        flex-direction: column;
    }
    
    .team-member-image {
        width: 100%;
        height: 350px;
    }
}

@media (max-width: 576px) {
    .team-member-image {
        height: 300px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}