.team-section {
    padding: 3rem 0;
}

.team-section .social-icons i{
    font-size:30px;
}

.team-section .social-icons i:hover {
    color:#FFD700;
}



.team-members-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    margin:0 auto;
}

.team-member {
    box-sizing: border-box;
    margin: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.member-photo {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin:50px;
}

.member-photo img {
    max-width:300px;
    max-height:300px;
}

p.member-position {
    line-height: 1;
    color:#fff;
    text-align:center!important;
    font-size:0.8rem;
    margin-bottom: 0px;
}

.team-section  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:rgba(128, 61, 151, 0.58); /* Green overlay with 70% opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.team-section  .social-icons {
    display: flex;
    gap: 10px;
}

.team-section  .social-icon img {
    width: 30px;
    height: 30px;
}

.member-photo:hover .overlay {
    opacity: 1;
}

.member-info {
    background: #632398;
    padding: 13px;
    width: 200px;
    box-sizing: border-box;
    position: absolute;
    bottom: 90px;
    height: auto;
}

.member-name {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

.member-title {
    font-size: 1rem;
    color: #666;
}

/* Modal body layout */
.modal-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
}

/* Image on the left */
.modal-image img {
    max-width: 350px; /* Set the desired width of the image */
    height: auto;
    margin-right: 20px; /* Space between image and content */
}

/* Content on the right */
.modal-content {
    flex: 1;
    border:none;
}

a.social-icon {
    color: #8331A7;
    padding: 5px;
    font-size: 25px;
}
a.social-icon:hover {
    color:#E6E6E6;
}
.modal-header {
    background-color: #8331A7;
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
        padding:20px;
    }
    
    .grid-item {
        margin:0 auto;
    }
    
    .items-list li::before {
        top:30px;
    }

    .modal-image {
       display: none; 
    }
}
