/* team page */
.elementor-teambox-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .elementor-teambox-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .elementor-teambox-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

.elementor-teambox-wrapper-inner {
    position: relative;
    width: 100%;
}

.elementor-teambox-item {
    position: relative;
    cursor: pointer;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.elementor-teambox-item .teambox-item-inner {
    position: relative;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.elementor-teambox-item .team-image {
    position: relative;
}

.elementor-teambox-item .team-image .team-image-inner {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 7 / 8;
}

.elementor-teambox-item .team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    ;
    display: block;
    z-index: 1;
    position: relative;
}



.elementor-teambox-item .button-popup-detail {
    position: absolute;
    justify-items: center;
    width: 100px;
    height: 30px;
    bottom: 0;
    right: 20px;
    z-index: 2;
}

.elementor-teambox-item .button-popup-detail .popup-icon:before {
    margin: 10px auto 0;
    width: 60px;
    height: 60px;
    background: var(--e-global-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    color: white;
    font-size: 32px;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.elementor-teambox-item:hover .button-popup-detail .popup-icon:before {
    background-color: var(--e-global-color-secondary);
}

.elementor-teambox-item:hover .team-name {
    color: var(--e-global-color-secondary);
}

.elementor-teambox-item .button-popup-detail .popup-icon:before {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    vertical-align: middle;
    content: "+";
}

.elementor-teambox-item .button-popup-detail:after {
    content: "";
    width: 100px;
    height: 30px;
    clip-path: path("M0 30H100C90.8 30 83.68 22.88 79.26 15.62C73.6 6.31 62.62 0 50 0C37.38 0 26.4 6.31 20.74 15.62C16.32 22.88 9.2 30 0 30Z");
    background-color: #ffffff;
    position: absolute;
    left: 0;
    bottom: -1px;
    display: block;
    z-index: -1;
}

.elementor-teambox-item .team-content {
    position: relative;
    padding-top: 25px;
}

.elementor-teambox-item .team-job {
    font-size: 15px;
    font-weight: 700;
    color: var(--e-global-color-primary);
    border: 2px solid var(--e-global-color-eeb27ea);
    border-radius: 30px;
    display: inline-block;
    padding: 5px 20px;
    text-transform: capitalize;
    margin-bottom: 10px;
}

.elementor-teambox-item .team-name {
    font-weight: 700;
    font-size: 28px;
    line-height: 1em;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.team-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease;
}

.team-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-modal-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(0, 0, 0, 0.75);
    transition: opacity 0.3s ease-out;
}

.team-modal.active .team-modal-overlay {
    opacity: 1;
}

.team-modal-dialog {
    width: min(1200px, calc(100% - 20px));
    max-height: calc(100vh - 40px);
    min-height: 500px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    z-index: 2;
    border-radius: 12px;
    box-sizing: border-box;
    pointer-events: auto;
    position: relative;
    opacity: 0;
}

.team-modal.active .team-modal-dialog {
    opacity: 1;
}

.team-modal-close {
    position: absolute;
    right: 30px;
    top: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    padding: 0;
    border: 0;
    cursor: pointer;
    font-size: 30px !important;
    font-weight: 400;
    transition: all 0.3s;
}

.team-popup-layout {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 1290px;
    background: white;
    padding: 80px;
    border-radius: 20px;
    gap: 70px;
}

.team-popup-image {
    width: 70vw;
    margin: auto;
}

.team-popup-image img {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.team-popup-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--e-global-color-eeb27ea);

}

.team-popup-position {
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--e-global-color-secondary) !important;
}

.team-popup-name {
    font-weight: 700;
    font-size: 32px;
    line-height: 1em;
    margin: 0 0 20px;
}

@media (max-width: 1024px) {
    .team-modal-dialog {
        top: 10px;
        width: calc(100% - 25px);
        max-height: calc(100vh - 25px);
        padding: 22px 16px;
        border-radius: 10px;
    }

    .team-popup-layout {
        flex-direction: column;
        padding: 30px 25px;
        gap: 30px;
    }
}

@media (min-width: 1025px) {
    .team-popup-image {
        min-width: 360px;
        width:100%;
        margin:0;
    }
}