/* Team Cards Styling */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #f0f2f5;
    font-family: 'Montserrat', sans-serif;
}

.teams {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    min-height: auto;
    font-family: 'Montserrat', sans-serif;
}

.card {
    width: 320px;
    background: white !important;
    border-radius: 15px !important;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease !important;
    border: 1px solid #eaeaea !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    max-height: 500px;
}

.card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
    border-color: #ddd !important;
}

.card-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #e87532;
    padding: 3px;
    margin-bottom: 20px;
    object-fit: cover;
    background: white;
    transition: transform 0.3s ease;
}

.card:hover .card-logo {
    transform: scale(1.05);
}

.card h2 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 22px;
    color: #2c3e50;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

.card p {
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 14px;
    color: #555;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
}

.card .role {
    color: #e87532;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
    font-family: 'Montserrat', sans-serif;
}

.card-socials {
    margin-top: 15px;
    margin-bottom: 5px;
    display: flex;
    gap: 15px;
}

.card-socials a {
    color: #555 !important;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    background: white;
}

.card-socials a:hover {
    color: white !important;
    background: #e87532;
    border-color: #e87532;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .teams {
        gap: 25px;
        padding: 35px 15px;
    }
    
    .card {
        width: 290px;
        min-height: 430px;
        max-height: 480px;
    }
}

@media (max-width: 992px) {
    .teams {
        gap: 25px;
    }
    
    .card {
        width: 280px;
        min-height: 420px;
        max-height: 470px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .teams {
        padding: 30px 15px;
        gap: 20px;
    }
    
    .card {
        width: 100%;
        max-width: 350px;
        min-height: 400px;
        max-height: 450px;
        padding: 20px;
        margin-bottom: 0;
    }
    
    .card:hover {
        transform: translateY(-5px) !important;
    }
}

@media (max-width: 576px) {
    .teams {
        padding: 25px 10px;
        gap: 15px;
    }
    
    .card {
        padding: 18px;
        border-radius: 12px !important;
        min-height: 380px;
        max-height: 420px;
    }
    
    .card-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .card h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .card p {
        font-size: 13px;
        line-height: 1.4;
        -webkit-line-clamp: 3;
        margin-bottom: 15px;
    }
    
    .card p small {
        font-size: 14px;
    }
    
    .card-socials {
        margin-top: 10px;
        gap: 12px;
    }
    
    .card-socials a {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 1s ease-out forwards;
}

/* Stagger animation for cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.1s; }
.card:nth-child(5) { animation-delay: 0.1s; }

/* Fix for mobile to remove orange line and border */
@media (max-width: 800px) {
    .card {
        border: none !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important;
        min-height: auto;
        max-height: none;
    }
    
    .card:hover {
        transform: none !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important;
    }
    
    .card p {
        -webkit-line-clamp: none;
        overflow: visible;
    }
}