/* Team Page Styles */

.team-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-alt));
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.team-card {
    background: linear-gradient(145deg, rgba(14, 28, 48, 0.8), rgba(8, 17, 31, 0.9));
    border: 1px solid rgba(197, 160, 68, 0.2);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(20px);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.team-card:hover {
    transform: translateY(-12px);
    border-color: rgba(197, 160, 68, 0.5);
    box-shadow: 0 25px 45px rgba(10, 22, 40, 0.8), 0 0 20px rgba(197, 160, 68, 0.15);
}

.team-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    background: var(--color-bg-alt);
    border: 2px solid rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.team-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-card:hover .team-card__image {
    transform: scale(1.06);
}

.team-card__content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 5px 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.team-card__name {
    font-size: 1.55rem;
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-align: center !important;
}

.team-card__role {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center !important;
}

.team-card__qualification {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-align: center !important;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    line-height: 1.4;
    width: 100%;
}

.team-card__desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center !important;
    width: 100%;
}

.team-card__socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}

.team-card__email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 22px;
    background: rgba(197, 160, 68, 0.08);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(197, 160, 68, 0.2);
}

.team-card__email:hover {
    background: var(--color-gold);
    color: var(--color-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(197,160,68,0.25);
}

.team-card__email svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
