/* team page */
.elementor-teambox-wrapper {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 30px;
}

@media (min-width: 768px) {
    .elementor-teambox-wrapper {
        flex-direction: row;
    }
}

.elementor-teambox-wrapper-inner {
    position: relative;
    width: 100%;
}

.elementor-teambox-item {
    position: relative;
    flex:1;
    flex: 0 0 calc(50% - 15px);
    box-sizing: border-box;
    max-width: 395px;
    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: 0 100px 0 0;
    width: 100%;
    aspect-ratio: 7 / 8;
}

.elementor-teambox-item .team-image .team-image-inner::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 2;
}

.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;
    bottom: 16px;
    right: 16px;
    z-index: 2;
}

.button-popup-detail .popup-icon {
    background: var(--blue);
    border-radius: 50%;
    fill: #fff;
    padding: 10px;
    line-height: 0;
}

.button-popup-detail .popup-icon svg {
    height: 24px;
    width: 24px;
    transition: all 300ms ease-in;
}

.elementor-teambox-item:hover .popup-icon {
    background-color: var(--rust);
}

.elementor-teambox-item:hover .popup-icon svg {
    transform: rotate(45deg);
}

.elementor-teambox-item .team-content {
    position: relative;
    padding-top: 25px;
}

.elementor-teambox-item .team-job {
    font-size: 18px;
    color: #ffffff;
    text-transform: capitalize;
    margin-top: 10px;
}

.elementor-teambox-item .team-name {
    color:#ffffff;
    font-size: 32px;
    line-height: 1em;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.team-modal-open {
    overflow: hidden;
    height:100vh;
}
.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;
    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: 12px;
    top: 12px;
    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;
    max-width: 1290px;
    background: white;
    gap: 70px;
}

.team-popup-content {
    display: flex;
    flex-direction: column;
    background: var(--blue);
}

.team-popup-image {
    height: 450px;
}

.team-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.team-popup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding:20px 0;
    min-height: 225px;
}

.team-popup-description {
    padding: 50px 100px 50px 0;
    font-size: 14px;
}

.team-popup-position {
    margin-bottom: 0;
    font-size: 24px;
    color: #fff;
}

.team-popup-name {
    font-size: 32px;
    line-height: 1em;
    margin: 30px 0 10px;
    color: #fff;
}

.team-popup-social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
    padding-top: 25px;
    border-top: 1px solid var(--e-global-color-d3ea036);
    width: 80%;
}

.team-popup-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    color: #fff;
    background: transparent;
    box-sizing: border-box;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.team-popup-social-link svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.team-popup-social-link:hover,
.team-popup-social-link:focus-visible {
    color: var(--e-global-color-accent);
    background: #fff;
    transform: translateY(-2px);
}

.team-popup-social-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.team-popup-section+.team-popup-section {
    margin-top: 38px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.team-popup-section>h3 {
    margin: 0 0 25px;
    font-size: 2.5em;
}

@media (max-width: 699px) {
    .team-modal-dialog {
        max-height: calc(100vh 742px - 25px);
        padding: 0;
    }

    .team-popup-layout {
        flex-direction: column;
        gap: 30px;
    }

    .team-popup-content, 
    .team-popup-description {
        flex:1;
    }
    .team-popup-description {
        padding:35px;
    }
}

@media (max-width: 1024px) {

    .team-popup-content,
    .team-popup-description {
        flex: 1;
    }
}


@media (min-width: 1025px) {
    .team-popup-image {
        min-width: 360px;
        max-width: 400px;
        width: 100%;
        margin: 0;
    }
}