/* TEAM PAGE SPECIFIC STYLES */

.page-header {
    background: linear-gradient(135deg, #0a3d2e 0%, #1a7d5e 100%);
    color: white;
    padding: 150px 0 80px;
    text-align: center;
    margin-top: -100px;
}

.page-header h1 {
    font-size: 3.5rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #2ecc71, #ffd700);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.2rem;
    color: #c8f7c5;
}

.team-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.team-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(46, 204, 113, 0.3);
}

.team-img-container {
    position: relative;
    padding-top: 30px;
    margin-bottom: 20px;
}

.team-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
    border: 4px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.team-card:hover .team-img {
    border-color: #2ecc71;
    transform: scale(1.05);
}

.team-social {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    gap: 15px;
}

.team-card:hover .team-social {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: #0a3d2e;
    transform: scale(1.1);
}

.team-info {
    padding: 0 20px 30px;
}

.team-info h3 {
    font-size: 1.15rem;
    color: #0a3d2e;
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
}

.team-info .role {
    color: #2ecc71;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.team-info .university {
    color: #777;
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 500;
}

/* TEAM FILTERS STYLES */
.team-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #2ecc71;
    color: #0a3d2e;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2ecc71;
    color: white;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .team-filters {
        gap: 10px;
        padding: 0 10px;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

/* Specific Centered Layout (Centers the last row, 5 columns by default) */
.team-grid.centered-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.team-grid.centered-layout .team-card {
    flex: 0 1 240px; /* Standard 5-column width */
}

/* Specific 4-Column Force (Secretariat and IT) */
.team-grid.force-4-col {
    max-width: 1300px; /* Constrain grid to ensure 5 cards cannot fit */
}

.team-grid.force-4-col .team-card {
    flex: 0 1 300px; /* Wider cards to enforce the 4-column wrap */
}

/* Specific Image Adjustments */
.sajia-img {
    object-position: 50% 10% !important; /* Move crop UP to show more of the head */
}