body {
    position: relative;
}

html:has(.popup.show),
body:has(.popup.show) {
    overflow-y: hidden;
}

html[dir='rtl'] .card_director p,
html[dir='rtl'] .card_director h5 {
    text-align: center !important;
}


html[dir='ltr'] .card_director p,
html[dir='ltr'] .card_director h5 {
    text-align: center !important;
}

.card_director h5 {
    font-size: 26px;
    font-weight: 600;
    line-height: 39px;
    color: #04005F !important;
    text-transform: capitalize;
    margin-bottom: 0;
    text-wrap: pretty
}

.card_director p {
    font-size: 22px;
    font-weight: 400;
    line-height: 33px;
    color: #04005F;
}

.card_sharia {
    max-width: 331px;
    min-width: 300px;
    flex: 1;
    background-color: #EBE2C099;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    -ms-border-radius: 16px;
    -o-border-radius: 16px;
    position: relative;
    text-align: center;
}

.card_sharia::before {
    position: absolute;
    content: "";
    width: 317px;
    height: 128px;
    max-width: 80%;
    max-height: 128px;
    top: -2px;

}

html[dir="ltr"] .card_sharia::before {
    border: 4px solid #BB9B15;
    right: -2px;
    border-bottom: transparent;
    border-left: transparent;
    border-top-right-radius: 24px;
}

html[dir="rtl"] .card_sharia::before {
    border: 4px solid #BB9B15;
    border-bottom: transparent;
    border-right: transparent;
    left: -2px;
    border-top-left-radius: 24px;
}

.card_sharia .name_sharia {
    font-size: 26px;
    font-weight: 700;
    line-height: 39px;
    color: var(--main-blue);
}

.card_sharia .description_sharia {
    font-size: 20px;
    font-weight: 400;
    line-height: 33px;
    color: var(--secondary-black);
    margin: 0;
}

@media (min-width:987px) {
    html[dir="rtl"] .card_director:first-child .containerCard {
        margin-right: auto;
        margin-left: 0;
    }

    html[dir="rtl"] .card_director:nth-child(2) .containerCard {
        margin-left: auto;
        margin-right: 0;

    }

    html[dir="ltr"] .card_director:first-child .containerCard {
        margin-left: auto;
        margin-right: 0;

    }

    html[dir="ltr"] .card_director:nth-child(2) .containerCard {
        margin-right: auto;
        margin-left: 0;
    }

}

.containerCard {
    width: 100%;
    max-width: 331px;
    margin-inline: auto;
    transition: .5s all ease;
    -webkit-transition: .5s all ease;
    -moz-transition: .5s all ease;
    -ms-transition: .5s all ease;
    -o-transition: .5s all ease;
    border-radius: 24px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    -ms-border-radius: 24px;
    -o-border-radius: 24px;
    cursor: pointer;
    position: relative;
}

.popup {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    height: 100vh;
    width: 100%;
    top: 0;
    left: 0;
    padding: 10px;
    z-index: 100000;
    display: none;
    position: fixed;
    align-items: center;
    justify-content: center;
    transition: .5s opacity, display .5s allow-discrete;
    -webkit-transition: .5s opacity, display .5s allow-discrete;
    -moz-transition: .5s opacity, display .5s allow-discrete;
    -ms-transition: .5s opacity, display .5s allow-discrete;
    -o-transition: .5s opacity, display .5s allow-discrete;

    @starting-style {
        opacity: 0;
    }
}

.popup.show {
    display: flex;
}

.popup .popup_card {
    max-height: 760px;
    overflow-y: auto;
    width: 100%;
    max-width: 600px;
    height: 100%;
    border-radius: 24px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    -ms-border-radius: 24px;
    -o-border-radius: 24px;
    padding: 32px 24px;
    overflow-y: auto;

    &::-webkit-scrollbar {
        width: 10px;
        
    }

    &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 12px;
        -webkit-border-radius: 12px;
        -moz-border-radius: 12px;
        -ms-border-radius: 12px;
        -o-border-radius: 12px;
    }

    &::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 12px;
        -webkit-border-radius: 12px;
        -moz-border-radius: 12px;
        -ms-border-radius: 12px;
        -o-border-radius: 12px;
    }

    @media (max-width:778px) {
        & {
            padding: 20px 12px;
        }
    }

    @media (max-width:558px) {
        & {
            padding: 20px 12px 0;
        }
    }
}

.popup .img_qutes img {
    max-width: 27px;

    @media (max-width:778px) {
        & {
            max-width: 20px;
        }
    }
}

.popup .btn_close {
    outline: none;
    border: none;
    transition: .5s all ease;
    -webkit-transition: .5s all ease;
    -moz-transition: .5s all ease;
    -ms-transition: .5s all ease;
    -o-transition: .5s all ease;
}

.popup .btn_close:hover {
    scale: 1.1;
}

.popup .btn_close img {
    width: 18px;
    height: 18px;
}

.popup .containerImage {
    max-width: 300px;
    max-height: 400px;
    overflow: hidden;
    border-radius: 24px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    -ms-border-radius: 24px;
    -o-border-radius: 24px;
    margin-inline: auto;
}

.popup .header_card {
    line-height: 42px;
}

.popup .containerImage img {
    width: 100%;
    object-fit: cover;
    object-position: center 20%;

}

.popup .containerDetails .nameMember {
    font-size: 24px;
    font-weight: 700;
    line-height: 39.6px;
    text-align: center;
    color: #04005F;
    margin-top: 24px;
    margin-bottom: 0;
    text-transform: capitalize;
}

.popup .containerDetails .positionMember {
    font-size: 18px;
    font-weight: 700;
    line-height: 29.7px;
    text-align: center;
    color: #BB9B15;
}

.popup .containerDetails .expertise {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.popup .containerDetails :is(.expertise, .background) h5 {
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    color: #04005F;
    margin: 0;
}

.bottom_card {
    margin-top: 20px;
}

.popup .containerDetails :is(.expertise, .background) p {
    font-family: DIN Next LT W23;
    font-size: 18px;
    font-weight: 400;
    line-height: 29.7px;
    color: #4C4C4C;
    /* display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; */

}

.img_director {
    overflow: hidden;
    border-radius: 24px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    -ms-border-radius: 24px;
    -o-border-radius: 24px;
    max-width: 331px;
    height: 417px;
    margin-inline: auto;
}

.img_director img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media (max-width:558px) {
    .popup .containerDetails .nameMember {
        font-size: 20px;
        margin-top: 12px;
    }

    .popup .containerDetails .positionMember {
        font-size: 16px;
    }

    .popup .containerDetails :is(.expertise, .background) h5 {
        font-size: 18px;
    }

    .popup .containerDetails :is(.expertise, .background) p {
        font-size: 16px;
    }

    .header_card h2 {
        font-size: 20px;
    }
}