/* About Page Specific Styles */

/* Team Section */
.team-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
    justify-content: center;
}

.team-member {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

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

.member-image {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
}

.image-wrapper {
    position: relative;
    padding-top: 100%; /* Square aspect ratio */
    overflow: hidden;
    margin: 0 auto;
    width: 80%;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .image-wrapper img {
    transform: scale(1.05);
}

.member-info {
    padding: 15px 15px 20px;
    text-align: center;
    margin-top: 10px;
}

.member-info h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin: 10px 0 5px;
    font-weight: 600;
    line-height: 1.3;
}

.position {
    color: var(--primary-color);
    font-weight: 500;
    margin: 5px 0 10px;
    font-size: 0.9rem;
    min-height: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Team Member Specific Styles */
.team-member:nth-child(1) .member-info h3 {
    color: #1e40af;
}

.team-member:nth-child(2) .member-info h3 {
    color: #9f1239;
}

.team-member:nth-child(3) .member-info h3 {
    color: #166534;
}

.team-member:nth-child(4) .member-info h3 {
    color: #7e22ce;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .team-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .member-info {
        padding: 20px 15px;
    }
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .member-info h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 15px;
        padding: 0 10px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }
