/* Team Plugin Frontend Styles */
.cic-team-wrap {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    color: #061646;
}

.cic-team-grid {
    display: grid;
    grid-template-columns: repeat(var(--cic-team-columns, 3), minmax(0, 1fr));
    gap: 54px;
    align-items: stretch;
}

.cic-team-card {
    position: relative;
    min-height: var(--cic-team-card-min-height, 268px);
    padding: 8px 24px 20px;
    background: #ffffff;
    border: 1px solid #c9f0ff;
    border-radius: 20px;
    box-shadow: 7px 7px 0 #d8f5ff;
    text-align: center;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    outline: none;
}


.cic-team-card.cic-team-no-popup {
    cursor: default;
}

.cic-team-card.cic-team-no-popup:hover {
    transform: none;
}

.cic-team-card:hover,
.cic-team-card:focus-visible {
    transform: translateY(-4px);
    border-color: #9bdfff;
    box-shadow: 10px 10px 0 #c8f1ff;
}

.cic-team-image-wrap {
    width: var(--cic-team-image-size, 150px);
    height: var(--cic-team-image-size, 150px);
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #d9f3ff;
}

.cic-team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.cic-team-placeholder {
    width: calc(var(--cic-team-image-size, 150px) - 6px);
    height: calc(var(--cic-team-image-size, 150px) - 6px);
    border-radius: 50%;
    background: #e7e7e7;
    color: #8d8d8d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: Arial, Helvetica, sans-serif;
}

.cic-team-placeholder-icon {
    width: 52px;
    height: 52px;
    position: relative;
    margin-bottom: 6px;
    transform: rotate(11deg);
}

.cic-team-placeholder-icon:before,
.cic-team-placeholder-icon:after {
    content: "";
    position: absolute;
    border: 5px solid #ffffff;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    opacity: .9;
}

.cic-team-placeholder-icon:before { left: 0; top: 10px; opacity: .45; }
.cic-team-placeholder-icon:after { right: 0; top: 0; }
.cic-team-placeholder-icon span {
    position: absolute;
    z-index: 1;
    right: 10px;
    top: 18px;
    width: 22px;
    height: 13px;
    background: #ffffff;
    clip-path: polygon(0 80%, 28% 45%, 45% 65%, 70% 20%, 100% 80%, 100% 100%, 0 100%);
}

.cic-team-placeholder strong,
.cic-team-placeholder em {
    display: block;
    font-size: 16px;
    font-weight: 800;
    font-style: normal;
    letter-spacing: -.5px;
}

.cic-team-name {
    margin: 0 0 4px;
    color: #071646;
    font-size: 23px;
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -.35px;
}

.cic-team-name-highlight {
    background: #ff9d12;
    color: #000000;
    padding: 0 2px;
    border-radius: 2px;
}

.cic-team-role,
.cic-team-qualification {
    margin: 0;
    color: #0056a6;
    font-size: 16px;
    line-height: 1.52;
    font-weight: 400;
}

.cic-team-modal-content { display: none !important; }

.cic-team-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cic-team-popup.is-open { display: flex; }

.cic-team-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
}

.cic-team-popup-box {
    position: relative;
    z-index: 1;
    width: min(598px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #ffffff;
    color: #14224d;
    padding: 36px 38px 34px;
    border-radius: 0;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.cic-team-popup-close {
    all: unset;
    position: absolute;
    top: 16px;
    right: 17px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
    color: #111111;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    font-size: 0;
    line-height: 1;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    outline: none;
}

.cic-team-popup-close::before,
.cic-team-popup-close::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    left: 50%;
    top: 50%;
    margin-left: -8px;
    margin-top: -1px;
}

.cic-team-popup-close::before { transform: rotate(45deg); }
.cic-team-popup-close::after { transform: rotate(-45deg); }

.cic-team-popup-close:hover,
.cic-team-popup-close:focus,
.cic-team-popup-close:focus-visible,
.cic-team-popup-close:active {
    background: transparent;
    color: #111111;
    border: 0;
    box-shadow: none;
    outline: none;
}

.cic-team-popup-inner h2 {
    margin: 0 34px 24px 0;
    color: #142052;
    font-size: clamp(34px, 4.4vw, 47px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: .2px;
}

.cic-team-modal-lines {
    margin-bottom: 18px;
}

.cic-team-modal-lines p,
.cic-team-modal-bio p,
.cic-team-modal-note p {
    margin: 0;
    color: #14224d;
    font-size: 16px;
    line-height: 1.42;
}

.cic-team-modal-bio p { margin-bottom: 15px; }
.cic-team-modal-note p { margin-top: 17px; }

.cic-team-empty {
    color: #061646;
    font-size: 16px;
}

body.cic-team-popup-lock { overflow: hidden; }

@media (max-width: 1024px) {
    .cic-team-grid {
        grid-template-columns: repeat(var(--cic-team-columns-tablet, 2), minmax(0, 1fr));
        gap: 38px 34px;
    }
}

@media (max-width: 767px) {
    .cic-team-grid {
        grid-template-columns: repeat(var(--cic-team-columns-mobile, 1), minmax(0, 1fr));
        gap: 30px;
    }

    .cic-team-card {
        min-height: auto;
        padding: 14px 18px 22px;
        border-radius: 18px;
        box-shadow: 5px 6px 0 #d8f5ff;
    }

    .cic-team-image-wrap {
        width: min(var(--cic-team-image-size, 132px), 132px);
        height: min(var(--cic-team-image-size, 132px), 132px);
        margin-bottom: 12px;
    }

    .cic-team-placeholder {
        width: min(calc(var(--cic-team-image-size, 132px) - 4px), 128px);
        height: min(calc(var(--cic-team-image-size, 132px) - 4px), 128px);
    }

    .cic-team-name { font-size: 22px; }
    .cic-team-role, .cic-team-qualification { font-size: 15px; }

    .cic-team-popup {
        padding: 16px;
        align-items: flex-start;
        padding-top: 42px;
    }

    .cic-team-popup-box {
        padding: 32px 24px 28px;
        max-height: calc(100vh - 80px);
    }

    .cic-team-popup-inner h2 {
        font-size: 34px;
        line-height: 1.08;
        margin-bottom: 22px;
    }
}
