/* =========================================================
   TEAM SECTION
========================================================= */

.team-section {
    width: 100%;
    padding: 70px 0;
    background: #f8fafc;
    overflow: hidden;
}

.team-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.team-heading {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 45px;
}

.team-section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(22, 163, 74, 0.15);
    border-radius: 999px;
    color: #15803d;
    background: #f0fdf4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.team-heading h2 {
    margin: 16px 0 10px;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
}

.team-heading p {
    margin: 0 auto;
    max-width: 700px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   TEAM GRID
========================================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
}


/* =========================================================
   TEAM CARD
========================================================= */

.team-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dbe4ea;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.team-card-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 220px;
    height: 220px;
    background: rgba(34, 197, 94, 0.12);
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
}


/* =========================================================
   MEMBER TOP
========================================================= */

.team-member-top {
    position: relative;
    min-height: 190px;
    /*padding: 30px 24px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecfdf5, #dcfce7);
    border-bottom: 1px solid #dbe4ea;
}

.team-avatar {
    width: 100%;
   /*  width: 126px;
    height: 126px;
    padding: 5px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #15803d);
    box-shadow: 0 10px 25px rgba(21, 128, 61, 0.22); */
}

.team-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /*border-radius: 50%;*/
    /*background: #dcfce7;*/
}

.team-position {
    position: absolute;
    right: 20px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    color: #15803d;
    background: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   MEMBER INFO
========================================================= */

.team-member-info {
    padding: 22px 24px 12px;
    text-align: center;
}

.team-member-info h3 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.team-member-role {
    margin: 6px 0 0;
    color: #16a34a;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   DETAILS
========================================================= */

.team-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 22px 22px;
}

.team-detail {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 62px;
    padding: 10px 13px;
    background: #f8fafc;
    border: 1px solid #e5edf2;
    border-radius: 15px;
    text-decoration: none;
}

.team-detail-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #15803d;
    background: #dcfce7;
    border-radius: 12px;
}

.team-detail-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.team-detail-content span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.team-detail-content strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   CARD FOOTER
========================================================= */

.team-card-footer {
    min-height: 48px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e5edf2;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.team-card-footer span:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-card-footer i {
    color: #22c55e;
}


/* =========================================================
   MODAL
========================================================= */

.team-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.team-modal.active {
    display: flex;
}

.team-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
}

.team-modal-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.25);
    animation: teamModalShow 0.3s ease;
}

@keyframes teamModalShow {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.team-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #334155;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: 0.25s ease;
}

.team-modal-close:hover {
    color: #ffffff;
    background: #15803d;
    transform: rotate(90deg);
}


/* =========================================================
   MODAL HEADER
========================================================= */

.team-modal-header {
    padding: 40px 35px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(135deg, #ecfdf5, #dcfce7);
    border-bottom: 1px solid #dbe4ea;
}

.team-modal-avatar {
    width: 125px;
    height: 125px;
    flex: 0 0 125px;
    padding: 5px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #15803d);
    box-shadow: 0 12px 30px rgba(21, 128, 61, 0.2);
}

.team-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-modal-heading {
    min-width: 0;
}

.team-modal-heading span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
}

.team-modal-heading h3 {
    margin: 7px 0 4px;
    color: #111827;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.team-modal-heading p {
    margin: 0;
    color: #16a34a;
    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   MODAL BODY
========================================================= */

.team-modal-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 30px;
}

.modal-info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e5edf2;
    border-radius: 16px;
}

.modal-info-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #15803d;
    background: #dcfce7;
    border-radius: 13px;
}

.modal-info-box span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modal-info-box strong {
    color: #1e293b;
    font-size: 14px;
    font-weight: 800;
}


/* =========================================================
   MODAL FOOTER
========================================================= */

.team-modal-footer {
    padding: 18px 30px;
    border-top: 1px solid #e5edf2;
    text-align: center;
}

.team-modal-footer span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.team-modal-footer i {
    color: #16a34a;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .team-container {
        padding-left: 28px;
        padding-right: 28px;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .team-section {
        padding: 50px 0;
    }

    .team-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .team-heading {
        margin-bottom: 30px;
    }

    .team-heading p {
        font-size: 14px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-member-top {
        min-height: 175px;
    }

    .team-member-info h3 {
        font-size: 20px;
    }

    .team-details {
        padding-left: 16px;
        padding-right: 16px;
    }

    .team-card-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .team-modal {
        padding: 12px;
    }

    .team-modal-box {
        border-radius: 22px;
        max-height: calc(100vh - 24px);
    }

    .team-modal-header {
        padding: 35px 20px 25px;
        flex-direction: column;
        text-align: center;
    }

    .team-modal-avatar {
        width: 105px;
        height: 105px;
        flex-basis: 105px;
    }

    .team-modal-heading h3 {
        font-size: 23px;
    }

    .team-modal-body {
        padding: 20px 16px;
    }

    .team-modal-footer {
        padding: 16px;
    }

}