﻿
.team-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1300px; /* Optional: limit total width */
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 20%; /* 100 / 5 cards = 20%, minus some for gap */
    min-width: 220px; /* Prevent it from shrinking too much */
    text-align: center;
    position: relative;
    /*padding-top: 60px;*/
}

/* Responsive: stack below 1200px */
@media (max-width: 1200px) {
    .card {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .card {
        width: 45%;
    }
}

@media (max-width: 500px) {
    .card {
        width: 90%;
    }
}

.profile-img {
    border-radius: 8px !important;
   /* object-fit: cover;
    margin-top: -60px;
    height: 230px !important;*/
}

.name {
    font-weight: 600;
    font-size: 15px;
    margin: 5px 0 0px;
}

.desc {
    font-size: 13px;
    color: #6d6d6d;
    padding: 0 10px 0px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-bottom: 15px;
}

    .socials i {
        margin: 8px 5px 0px 0px;
        color: #4a4a7a;
        font-size: 14px;
        cursor: pointer;
        transition: color 0.3s;
        border: 1px solid #d4cedf;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        line-height: 28px;
        text-align: center;
        display: inline-block;
    }

        .socials i:hover {
            background: #a531eb;
            color: #fff;
        }


.socialicons i {
    margin: 8px 5px 0px 0px;
    color: #4a4a7a;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
    border: 1px solid #d4cedf;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    display: inline-block;
}

    .socialicons i:hover {
        background: #a531eb;
        color: #fff;
    }



.view-btn {
    top: 5px;
    position: absolute;
    right: 5px;
}

.btnview {
    display: inline-block;
    color: #5b5de2;
  /*  color: #fff;
    padding: 1px 11px;
    font-size: 12px;
    border-radius: 25px;*/
    text-decoration: none;
    transition: background 0.3s;
    font-weight: 500;
}

    .btnview:hover {
        color: #a03cd2;
       /* color: #fff;*/
    }

/* Responsive */
@media (max-width: 600px) {
    .card {
        width: 90%;
    }
}




.profile-popup {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100%;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    z-index: 999;
    padding: 0px;
    overflow-y: auto;
}

    .profile-popup.active {
        right: -10px;
    }

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding: 6px 10px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 23px;
    cursor: pointer;
    color: #888;
    padding: 1px 5px;
}

.popupcontent {
    padding: 0px;
}


    .popupcontent ul {
        list-style: none;
        padding: 0;
    }

    .popupcontent li {
        margin-bottom: 10px;
        font-size: 14px;
    }


@media (max-width: 768px) {
    .profile-popup {
        width: 95%;
        right: -95%;
    }

        .profile-popup.active {
            right: 0;
        }

    .popup-header {
        font-size: 13px;
        padding: 8px 12px;
    }

    .popupcontent {
        padding: 12px;
    }

        .popupcontent li {
            font-size: 13px;
            margin-bottom: 8px;
        }

    .close-btn {
        font-size: 20px;
    }
}

.profilecard {
    background: #fff;
    width: 100%;
    overflow: hidden;
    /* text-align: center; */
    padding: 5px 15px;
}

    .profilecard img.profileimg {
        width: 85px;
        height: 85px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 0px;
        border: 4px solid #f5f3ff;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    }

    .profilecard h2 {
        font-size: 24px;
        font-weight: 700;
        color: #1f2937;
    }

.title {
    color: #858585 !important;
    font-size: 13px !important;
    /* margin: 2px 0px 4px; */
}

.CompanyName {
    color: #a530eb;
    font-weight: 500;
    margin-bottom: 10px;
}

.bio {
    font-size: 14px;
    color: #4b5563;
    /* padding: 0 15px; */
    /* margin-bottom: 20px; */
}

.contactinfo {
    margin-bottom: 20px;
    font-size: 14px;
    color: #374151;
}

    .contactinfo div {
        margin: 5px 0;
    }

.socialicons a {
    margin-right: 7px;
    text-decoration: none;
    font-size: 13px;
    color: #5d5de2;
    transition: color 0.3s ease;
}

    .socialicons a:hover {
        color: #1d4ed8;
    }

.bio, .contactinfo, .skills, .languages, .certifications {
    /* font-size: 14px; */
    /* color: #374151; */
    text-align: left;
    margin: 8px 0px;
}

    .contactinfo div,
    .skills ul li,
    .languages ul li,
    .certifications ul li {
        margin: 6px 0;
    }

    .skills ul,
    .languages ul,
    .certifications ul {
        list-style: disc inside;
        padding-left: 10px;
    }

.socialicons a {
    text-decoration: none;
    /* margin-right: 4px; */
    /* color: #5d5de2; */
}

    .socialicons a:hover {
        color: #1d4ed8;
    }


.profilecard-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 0px;
    padding: 2px 0px 8px;
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.06); */
    /* max-width: 500px; */
    /* font-family: 'Inter', sans-serif; */
    gap: 20px;
    border-bottom: 1px solid #f2ecfb;
    margin-bottom: 8px;
}

.profileimg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-info h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.title {
    font-size: 14px;
    color: #6b7280;
    /* margin-top: 4px; */
    margin-bottom: 0px;
}

.company-link {
    display: inline-block;
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    margin-bottom: 12px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
