/* Team Page Specific Styles */

/* Team Introduction */
.team-intro {
    padding: 3rem 0;
    background-color: var(--bg-light);
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Team Members Section */
.team-members {
    padding: 4rem 0;
}

.team-members h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.team-member {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.member-photo {
    position: relative;
    height: 220px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.member-photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;  /* Makes them circular */
    border: 3px solid #5A8A9F;  /* Adds border matching site colors */
}

.member-photo::before {
    display: none;  /* Hide the placeholder icon when we have real images */
}

.member-info {
    padding: 1.25rem;
}

.member-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.bio {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.member-contact {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.member-contact a {
    color: var(--accent-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.member-contact a:last-child {
    margin-bottom: 0;
}

/* Departments Section */
.team-departments {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.team-departments h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.department-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.department-card:hover {
    transform: translateY(-3px);
}

.department-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.department-card p:first-of-type {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.department-card p:last-of-type {
    color: var(--text-light);
}

/* Certifications Section */
.certifications {
    padding: 4rem 0;
}

.certifications h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.cert-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.cert-item:hover {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
}

.cert-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cert-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cert-item::before {
    content: "🏆";
    display: block;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Join Team Section */
.join-team {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white);
    text-align: center;
}

.join-content h2 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.join-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.join-content .btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.join-content .btn-primary:hover {
    background-color: var(--bg-light);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .member-photo {
        height: 180px;
    }
    
    .member-photo img {
        width: 150px;
        height: 150px;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .member-photo {
        height: 180px;
    }
    
    .member-photo img {
        width: 150px;
        height: 150px;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .department-card {
        padding: 1.5rem;
    }
}