/* ============================================================
   Teachers Grid 2026
   ============================================================ */

.teachers_grid_2026 .padding_setting {
    padding-bottom: 60px;
}


/*** Next Sibling CSS Rules ***/
.teachers_grid_2026 .container-fluid {
    background-color: var(--white);
}
.spacer_heading_2024__gutenburg_block.white_background:has(+ .teachers_grid_2026) + .teachers_grid_2026 .container-fluid {
    background-color: white;
}
.spacer_heading_2024__gutenburg_block.light-grey_background:has(+ .teachers_grid_2026) + .teachers_grid_2026 .container-fluid,
.spacer_heading_2024__gutenburg_block.light_grey:has(+ .teachers_grid_2026) + .teachers_grid_2026 .container-fluid {
    background-color: var(--light-grey);
}


.banner_full_image.block:has(+ .teachers_grid_2026) + .teachers_grid_2026 .container-fluid {
    padding-top: 100px;
}

    /* ----- Grid ----- */
.teachers_grid_2026__grid {
    display: flex;
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 30px;
    align-items: flex-start;
    justify-content: flex-start;
}

.teachers_grid_2026__grid.less_than_6 {
    justify-content: center;
}

/* ----- Card ----- */
.teachers_grid_2026__card {
    display: flex;
    flex-direction: column;
    width: calc((100% - 5 * 18px) / 6);
}

.teachers_grid_2026__name {
    color: var(--text-black);
    font-weight: 500;
}
.teachers_grid_2026__role {
    line-height: 1.2;
}

/* ----- Image wrap ----- */
.teachers_grid_2026__image-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--light-grey, #e8e8e8);
    aspect-ratio: 3 / 4;
    opacity: 1;
    transition: ease all .3s;
}
.teachers_grid_2026__image-wrap:hover {
    opacity: 0.9;
}

.teachers_grid_2026__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.teachers_grid_2026__image--placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--light-grey, #e8e8e8);
}

/* ----- "+" trigger button ----- */
.teachers_grid_2026__modal-trigger {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
    padding: 0;
    background-image: url('assets/buttons/plus.svg');
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}
.teachers_grid_2026__card:hover .teachers_grid_2026__modal-trigger,
.teachers_grid_2026__card:hover .teachers_grid_2026__modal-trigger:focus-visible {
    background-color: #19365b;
    background-image: url('assets/buttons/plus_white.svg');
    color: #ffffff;
    transform: scale(1.08);
    outline: none;
}

/* ----- Card text info ----- */
.teachers_grid_2026__info {
    margin-top: 10px;
}

/* ============================================================
   Modal
   ============================================================ */

/* Modal wrapper - for structure like slider-5 */
.teachers_grid_2026__modal-wrapper {
    /* wrapper for modal structure */
}

/* Main modal container - fixed position, centered */
.teachers_grid_2026__modal {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: white;
    border-radius: var(--global-border-radius);
    z-index: 100000001;
    width: 750px;
    max-width: 90%;
    box-shadow: 0px 0px 140px rgba(1, 1, 1, 0.25);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: ease all 0.3s;
    -o-transition: ease all 0.3s;
    transition: ease all 0.3s;
}

.teachers_grid_2026__modal[hidden] {
    display: none;
}

.teachers_grid_2026__modal .button.primary-button.teachers_grid_2026__modal-close-btn {
    text-decoration: none !important;
}

/* Show modal state */
.teachers_grid_2026__modal.open {
    opacity: 1;
    visibility: visible;
}

/* Modal inner wrapper */
.teachers_grid_2026__modal-inner {
    position: relative;
    width: 100%;
}

/* Top row - header with close button */
.teachers_grid_2026__modal-top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 25px 45px;
}

.teachers_grid_2026__modal-top h4 {
    margin: 0;
}

/* Close button in top row */
.teachers_grid_2026__modal-close,
.teachers_grid_2026__modal-close:hover,
.teachers_grid_2026__modal-close:focus {
    font-size: 0;
    border: none;
    outline: none;
    background-color: transparent;
    background-size: contain;
    background-position: center;
    background-image: url('assets/close.svg');
    cursor: pointer;
    height: 20px;
    width: 20px;
}

.teachers_grid_2026__modal-close:hover,
.teachers_grid_2026__modal-close:focus-visible {
    opacity: 0.7;
}

/* Middle row - content area */
.teachers_grid_2026__modal-middle {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 25px 45px;
    padding-bottom: 60px;
    border-bottom: 1px solid #cccccc;
    border-top: 1px #cccccc solid;
    max-height: 60vh;
    height: 470px;
    overflow: auto;
}

/* Left column - image */
.teachers_grid_2026__modal-left {
    width: 40%;
}

.teachers_grid_2026__modal-image {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

/* Right column - content */
.teachers_grid_2026__modal-right {
    width: 60%;
    padding-left: 40px;
}

.teachers_grid_2026__modal-right > *:last-child {
    margin-bottom: 0;
}

/* Bottom row - actions */
.teachers_grid_2026__modal-bottom {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 25px 45px;
    position: relative;
}

.teachers_grid_2026__modal-bottom::after {
    content: '';
    display: block;
    height: 60px;
    width: 100%;
    position: absolute;
    left: 0;
    top: -61px;
    background: rgb(255,255,255);
    background: -o-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,0)), to(rgba(255,255,255,1)));
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#ffffff",GradientType=1);
}

.teachers_grid_2026__modal-close-btn {
    margin-bottom: 0;
}

/* ----- Backdrop ----- */
.teachers_grid_2026__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.69);
    height: 100%;
    width: 100%;
    z-index: 100000000;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: ease all 0.3s;
    -o-transition: ease all 0.3s;
    transition: ease all 0.3s;
}

.teachers_grid_2026__backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199.98px) {
    .teachers_grid_2026__card {
        width: calc((100% - 3 * 18px) / 4);
    }
    .teachers_grid_2026__modal-top,
    .teachers_grid_2026__modal-middle,
    .teachers_grid_2026__modal-bottom {
        padding: 15px 30px;
    }
    .teachers_grid_2026__modal-right {
        padding-left: 25px;
    }
}

@media (max-width: 575.98px) {
    /* Grid to Slick Slider */
    .teachers_grid_2026__grid {
        display: block;
    }

    .teachers_grid_2026__card {
        width: auto;
    }

    /* Slick specific mobile styles */
    .teachers_grid_2026__grid.slick-initialized {
        display: flex;
    }

    .teachers_grid_2026__grid .slick-slide > div {
        width: 100%;
    }

    .teachers_grid_2026__card {
        width: 100%;
        margin: 0 7px;
    }

    .teachers_grid_2026 .padding_setting {
        padding-bottom: 40px;
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
    }
    .teachers_grid_2026__modal-middle {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .teachers_grid_2026__modal-left {
        width: 100%;
        padding-bottom: 20px;
    }
    .teachers_grid_2026__modal-right {
        width: 100%;
        padding-left: 0;
        text-align: center;
    }
    .teachers_grid_2026__modal-image {
        width: 25%;
        margin: 0 auto;
        aspect-ratio: 3 / 4;
    }
    .teachers_grid_2026__modal-top,
    .teachers_grid_2026__modal-middle,
    .teachers_grid_2026__modal-bottom {
        padding-right: 15px;
        padding-left: 15px;
    }
    .teachers_grid_2026__modal-middle {
        padding-top: 30px;
    }
}

