/* Team Page */
.team-page {
    background-color: #f5f7fa;
    min-height: 100vh;
    padding: 80px 60px;
}

.team-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 70px;
}

/* Hero */
.team-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-hero.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.team-label {
    color: #4169b3;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 14px;
}

.team-title {
    font-size: 50px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.15;
    margin: 18px 0;
}

.team-summary {
    font-size: 16px;
    line-height: 1.8;
    color: #5f6368;
    margin-bottom: 30px;
}

.team-hero-stats {
    display: flex;
    gap: 30px;
}

.team-stat-card {
    background: linear-gradient(135deg, #4169b3 0%, #5a87d6 100%);
    color: white;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 14px 40px rgba(65, 105, 179, 0.25);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-stat-card span {
    font-size: 36px;
    font-weight: 700;
}

.team-stat-card small {
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.team-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.team-photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.1);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
}

.team-card {
    background-color: white;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(65, 105, 179, 0.08), transparent 70%);
    pointer-events: none;
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(65, 105, 179, 0.2);
    box-shadow: 0 8px 20px rgba(65, 105, 179, 0.25);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.team-role {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #4169b3;
}

.team-bio {
    margin: 0;
    color: #5f6368;
    line-height: 1.7;
    font-size: 15px;
}

.team-contact {
    display: flex;
    gap: 12px;
}

.team-contact a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(65, 105, 179, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4169b3;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.team-contact a:hover {
    background-color: #4169b3;
    color: white;
    transform: translateY(-3px);
}

/* CTA Banner */
.team-cta {
    background: linear-gradient(135deg, #ff5722 0%, #ff784e 100%);
    color: white;
    border-radius: 16px;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 18px 45px rgba(255, 87, 34, 0.25);
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-cta.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.team-cta h3 {
    font-size: 32px;
    margin: 0 0 12px 0;
}

.team-cta p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.team-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: white;
    color: #ff5722;
    padding: 16px 26px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media (max-width: 1200px) {
    .team-hero {
        grid-template-columns: 1fr;
    }

    .team-photo-grid {
        order: -1;
        grid-template-columns: repeat(2, 1fr);
    }

    .team-hero-stats {
        flex-wrap: wrap;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-page {
        padding: 60px 25px;
    }

    .team-container {
        gap: 50px;
    }

    .team-title {
        font-size: 36px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-photo-grid {
        grid-template-columns: 1fr;
    }

    .team-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .team-page {
        padding: 50px 20px;
    }

    .team-title {
        font-size: 32px;
    }
}
