/* General styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    color: var(--main-text);
    background-color: var(--body-back-color);
}

:root{
    --dark-purple:#31178f;
    --soft-purple:#7226b0;
    --back-color-main:#ffffff;
    --body-back-color:rgb(248, 246, 254);
    --main-text:black;
    --light-color:white;
    --secondary-text:#777;
}

/* Team Section Styles */
.team-section {
    padding: 0;
    padding-top: 90px;
}

.team-group {
    margin-bottom: 40px;
}

.team-group h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--dark-purple);
    text-align: center;
    padding-bottom: 10px;
}

.team-members {
    padding: 20px 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.team-member {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 280px;
    text-align: center;
    overflow: hidden;
    background-color: var(--back-color-main);
    border-radius: 20px;
    padding-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}
.team-member .bg-ils{
    position: absolute;
    background-color: var(--dark-purple);
    width: 100%;
    height: 0%;
    bottom: 0;
    z-index: -1;
    transition: height .3s ease-in-out;
    -webkit-transition: height .3s ease-in-out;
    -moz-transition: height .3s ease-in-out;
    -ms-transition: height .3s ease-in-out;
    -o-transition: height .3s ease-in-out;
}
.team-member:hover .bg-ils{
    height: 40%;
}
.team-member:hover h3,
.team-member:hover p{
    color: var(--light-color);
}
.team-member:hover {
    transform: scale(1.005);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.593);
    -webkit-transform: scale(1.005);
    -moz-transform: scale(1.005);
    -ms-transform: scale(1.005);
    -o-transform: scale(1.005);
}

.team-member img {
    width: 100%;
    height: 280px !important;
    object-fit: cover;
    height: auto;
    margin-bottom: 10px;
}

.team-member h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-purple);
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
}

.team-member p {
    margin: 0;
    font-size: 16px;
    color: var(--secondary-text);
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
}

@media (max-width: 768px) {
    .team-members {
        flex-direction: column;
        align-items: center;
    }
}
