/* ===== TEAM PAGE SPECIFIC STYLES ===== */
.team-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.team-intro h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.team-intro p {
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-member {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.member-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.member-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-direction: column;
    gap: 1rem;
}

.member-content {
    padding: 2rem 1.5rem;
    text-align: center;
}

.member-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.member-role {
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.member-bio {
    margin-bottom: 1.5rem;
}

.member-bio p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ecf0f1;
    border-radius: 50%;
    color: #7f8c8d;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.member-social a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* Volunteer Section */
.volunteer-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    border-radius: 12px;
    margin-top: 4rem;
}

.volunteer-section h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.volunteer-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.join-btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
}

.join-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE STYLES FOR TEAM PAGE ===== */

/* Medium devices (tablets, 768px to 991px) */
@media (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .member-image-container {
        height: 250px;
    }
    
    .member-content {
        padding: 1.5rem 1rem;
    }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (max-width: 767px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .member-image-container {
        height: 300px;
    }
    
    .member-content {
        padding: 2rem 1.5rem;
    }
    
    .volunteer-section {
        padding: 3rem 1.5rem;
        margin-top: 3rem;
    }
    
    .volunteer-section h2 {
        font-size: 1.8rem;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .member-image-container {
        height: 250px;
    }
    
    .member-content {
        padding: 1.5rem 1rem;
    }
    
    .member-content h3 {
        font-size: 1.2rem;
    }
    
    .volunteer-section {
        padding: 2.5rem 1rem;
        margin-top: 2.5rem;
    }
    
    .volunteer-section h2 {
        font-size: 1.6rem;
    }
    
    .volunteer-section p {
        font-size: 1rem;
    }
}