/* ====== About Management template CSS — start ====== */

.iec_management_member_category_heading {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.017915rem;
    line-height: 142%;
    margin-bottom: 1.174518rem;
    color: var(--color-text);
    text-transform: uppercase;
}

.iec_management_member_grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(9.787647rem, 1fr));
    gap: 1.174518rem;
    padding: 0.783012rem 0;
    position: relative;
}

.iec_management_member_box {
    width: 100%;
    height: 100%;
    min-height: 16.521548rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #f8f9fa;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

button.iec_management_member_box {
    border: 0;
    padding: 0;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
    appearance: none;
}

.iec_management_member_image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.9;
    position: relative;
    overflow: hidden;
}

.iec_management_member_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.iec_management_member_content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0.978765rem 0.783012rem;
}

.iec_management_member_name {
    font-family: var(--font-primary);
    font-weight: 650;
    font-size: 0.66556rem;
    line-height: 175%;
    color: var(--color-text);
    text-transform: uppercase;
    margin: 0;
}

.iec_management_member_role {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.626409rem;
    line-height: 156%;
    margin-bottom: 0.078301rem;
    color: grey;
}

.iec_management_member_details {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.234903rem;
    margin-bottom: 0.587259rem;
}

.iec_management_member_item {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.508958rem;
    line-height: 156%;
    min-height: 0.822162rem;
    color: #495057;
    display: flex;
    align-items: center;
}

.iec_management_member_links {
    width: auto;
    min-width: 0.548108rem;
    height: 0.548108rem;
    flex-shrink: 0;
}

.iec_management_member_links > * {
    display: block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

.iec_management_member_icon_popup {
    opacity: 0.5;
    background-image: url("../../img/popup.png");
}

.iec_management_member_icon_linkedin {
    background-image: url(../../img/linkedin-grey.svg);
}

@media (hover: hover) {
    .iec_management_member_box:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgb(0 0 0 / 0.15);
    }
}

.iec_member_dialog {
    background: #fff;
    max-width: 27.405412rem;
    width: calc(100% - 2rem);
    border: 0;
    border-radius: 0.313205rem;
    padding: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    overflow-y: auto;
    margin: 0;
    z-index: 9999;
    /* ====== Smooth open animation ====== */
    animation: bioPopupOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bioPopupOpen {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ====== Backdrop — covers full viewport ====== */
.iec_member_dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
    position: fixed;
    inset: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ====== Body scroll lock when popup open (modern browsers) ====== */
body:has(.iec_member_dialog[open]) {
    overflow: hidden;
}

.iec_member_dialog_close {
    position: absolute;
    top: 0.783012rem;
    right: 0.783012rem;
    width: 1.566024rem;
    height: 1.566024rem;
    font-size: 0.783012rem;
    border-radius: 50%;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
    background-color: #4a5568;
    z-index: 10;
}

.iec_member_dialog_close:hover {
    background: #2d3748;
    transform: rotate(90deg);
}

.iec_member_dialog_close::before {
    content: "×";
}

.iec_member_dialog_header {
    padding: 1.174518rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.783012rem;
}

.iec_member_dialog_image {
    width: 4.698071rem;
    height: 4.698071rem;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.iec_member_dialog_name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.704711rem;
    color: var(--color-text);
    text-transform: uppercase;
}

.iec_member_dialog_position {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.626409rem;
    margin-bottom: 0.078301rem;
    line-height: 1.56;
    color: grey;
}

.iec_member_dialog_company {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.548108rem;
    line-height: 1.56;
    color: var(--color-text);
}

.iec_member_dialog_bio_warpper {
    padding: 1.174518rem;
}

.iec_member_dialog_bio {
    max-height: 60vh;
    overflow-y: auto;
    line-height: 175%;
    font-size: 0.626409rem;
    padding-right: 0.391506rem;
    scrollbar-color: #d4d6df transparent;
}

/* ====== About Management template CSS — end ====== */
