.t888-leader-category {
    gap: 2px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    color: #1E1E1E;
    font-weight: 600;
    line-height: 22px;
}

.t888-header-leaderTab {
    display: flex;
    margin-bottom: 60px;
}

.t888-leader-category .t888-leader-header {
    max-width: 57.376%;
}

.t888-leader-tabs {
    padding: 53px 8px 0 140px;
}

.t888-leader-tabs-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.t888-leader-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid #00377B;
    background: #ffffff;
    color: #00377B;
    font-size: 18px;
    font-weight: 700;
    line-height: 25px;
    cursor: pointer;
    letter-spacing: 0;
    font-family: var(--font-family);
}

.t888-leader-tab:hover {
    background: rgba(0, 55, 123, 0.08);
}

.t888-leader-tab.active {
    background: #E90380;
    border-color: #E90380;
    color: #ffffff;
}


.t888-leader-eyebrow {
    margin: 0;
}

.t888-leader-heading {
    margin: 0;
    font-weight: 700;
    font-size: 48px;
    line-height: 60px;
    letter-spacing: 0px;
    font-family: 'Open Sans', sans-serif;
    color: #00377B;
    margin-top: 5px;
}

.t888-leader-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0;
    margin: 0;
    margin-top: 10px;
    white-space: normal;
}

.t888-people-section {
    margin-bottom: 60px;
}


/* -------------School Leadership Team */


.t888-people-sections .t888-people-section .t888-people-section-title,
.t888-people-sections .t888-dynamic-role-title {
    color: #00377B;
    display: flex;
    justify-content: center;
}

/* .t888-leader-list.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
} */
.t888-leader-list.columns-4 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px;
}

.t888-leader-list.columns-4>.leader-item {
    flex: 0 0 330px;
    max-width: 330px;
    display: flex;
    flex-direction: column;
}


.t888-leader-list .leader-item {

    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow:
        0px 2px 16px rgba(0, 0, 0, 0.15);
}

.t888-leader-list .leader-photo {
    width: 270px;
    height: 360px;
    border-radius: 148px;
    overflow: hidden;
    /* margin-bottom: 20px;
  background: #f2f4f7; */
}

.t888-leader-list .leader-photo img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
}

.t888-leader-list .leader-item .leader-card {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.t888-leader-list .leader-item .leader-card .leader-content {
    /* display: flex;
    flex-wrap: wrap;
    gap: 3px; */
    max-width: 77.78%;
    width: 77.78%;
}

.t888-leader-list .leader-item .leader-card .leader-name {
    margin: 0;
    margin-bottom: 3px;
}

.t888-leader-list .leader-item .leader-card .leader-content .leader-position {
    font-size: 14px;
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0;
    color: #757575;
}

.leader-content-boxpopup {
    position: relative;
    display: flex;
    gap: 10px;
    width: 100%;
}

.leader-boxpopup {
    /* position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%); */

    width: 50px;
    height: 50px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.leader-boxpopup svg {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: 50% 50%;
}

.leader-boxpopup svg circle {
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.leader-item:hover .leader-boxpopup svg {
    transform: rotate(45deg);
}

.leader-item:hover {
    cursor: pointer;
}

.leader-item:hover .leader-boxpopup svg circle {
    fill: #E90380;
    fill-opacity: 1;
}


/* popup */
.t888-leader-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.t888-leader-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.t888-leader-popup-inner {
    position: relative;
    background: #fff;
    max-width: 928px;
    margin: 5vh auto;
    border-radius: 20px;
    padding: 50px 60px;
    background: #ffffff;
    box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.15);
}

.t888-leader-popup-grid {
    display: flex;
    gap: 60px;
    padding: 0;
    background: #fff;
    min-height: 570px;
    max-width: 900px;
    margin: 0 auto;
}

.popup-image {
    flex: 0 0 390px;
    position: relative;
}

.popup-image img {
    width: 100%;
    border-radius: 10px;

}

.popup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 570px;
}

.popup-name-title {
    max-width: 305px;
    margin-bottom: 30px;
}

.popup-name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 38px;
    letter-spacing: 0;
    color: #00377B;
    margin: 0 0 10px 0;
}

.popup-title {
    font-family: 'Open Sans', sans-serif;
    color: #E90380;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0;
    line-height: 27px;
    margin: 0;
}

.popup-desc p {
    line-height: 1;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    letter-spacing: 0;
    text-align: justify;
    color: #1E1E1E;
    margin: 0;
    overflow-y: auto;
}

/* .t888-leader-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    width: 26px;
    height: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    background-color: #E90380;
} */

.t888-leader-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #E90380;
    border: none;
    border-radius: 0;
    padding: 0;

    cursor: pointer;
}

.t888-leader-popup-close svg {
    display: block;
    margin-right: -2px;

}

.t888-leader-popup-close:hover {
    opacity: 1;
    background: #E90380;
}


.t888-leader-popup-close:hover {
    background: E90380;
}


body.popup-open {
    overflow: hidden;
}

/* =================================================
   T888 LEADER – SKELETON + LOADING (FULL)
   Dùng cho: Tab Category + Popup AJAX
   ================================================= */

/* ========== SHIMMER ANIMATION (GLOBAL) ========== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* =================================================
   1. LEADER LIST SKELETON (TAB CATEGORY)
   ================================================= */

.t888-leader-list.skeleton {
    width: 100%;
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

    min-height: 420px;
}

/* Card */
.t888-leader-list.skeleton .leader-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

/* Avatar */
.t888-leader-list.skeleton .leader-card .avatar {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background: linear-gradient(100deg,
            #eeeeee 30%,
            #f5f5f5 50%,
            #eeeeee 70%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
}

/* Text lines */
.t888-leader-list.skeleton .leader-card .line {
    height: 12px;
    margin-top: 12px;
    border-radius: 6px;
    background: linear-gradient(100deg,
            #eeeeee 30%,
            #f5f5f5 50%,
            #eeeeee 70%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
}

.t888-leader-list.skeleton .leader-card .line.short {
    width: 60%;
}

/* =================================================
   2. POPUP LOADING STATE
   ================================================= */

.t888-leader-popup.loading {
    pointer-events: none;
    user-select: none;
}

/* Hide real content while loading */
.t888-leader-popup.loading .popup-image img,
.t888-leader-popup.loading .popup-name,
.t888-leader-popup.loading .popup-title,
.t888-leader-popup.loading .popup-desc {
    opacity: 0;
}

/* Popup avatar skeleton */
.t888-leader-popup.loading .popup-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: linear-gradient(100deg,
            #eeeeee 30%,
            #f5f5f5 50%,
            #eeeeee 70%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
}

/* Popup text skeleton */
.t888-leader-popup.loading .popup-name::before,
.t888-leader-popup.loading .popup-title::before,
.t888-leader-popup.loading .popup-desc::before {
    content: '';
    display: block;
    height: 14px;
    width: 70%;
    margin-bottom: 10px;
    border-radius: 6px;
    background: linear-gradient(100deg,
            #eeeeee 30%,
            #f5f5f5 50%,
            #eeeeee 70%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
}

.t888-leader-popup.loading .popup-desc::before {
    width: 100%;
    height: 80px;
}

/* =================================================
   3. DISABLE INTERACTION WHEN LOADING
   ================================================= */

.t888-leader-list.skeleton {
    pointer-events: none;
    user-select: none;
}

/* =================================================
   4. RESPONSIVE
   ================================================= */
@media (max-width: 1599px) {
    .t888-leader-tabs {
        padding: 53px 8px 0 50px;
    }
}

@media (max-width: 1024px) {
    .t888-leader-list.skeleton {
        grid-template-columns: repeat(2, 1fr);
    }
    .t888-leader-popup-inner{
        max-width: 90%;
        padding: 30px;
    }
    .t888-leader-popup-grid{
        gap: 30px;
        min-height: auto;
    }
    .popup-image{
            flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
    }
    .popup-content{
            flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
    }
}

/* @media (max-width: 640px) {
    .t888-leader-list.skeleton {
        grid-template-columns: 1fr;
    }
} */


@media (max-width: 768px) {
    .t888-leader-list.skeleton {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .t888-header-leaderTab {
        margin-bottom: 30px;
        flex-direction: column;
    }

    .t888-leader-category .t888-leader-header {
        max-width: 100%;
    }

    .t888-leader-tabs {
        max-width: 100%;
        padding: 30px 0 0 0;
    }
    .t888-leader-eyebrow{
        text-align: center;
    }
    .t888-leader-heading{
        font-size: 28px;
        line-height: 38px;
        text-align: center;
    }
    .t888-leader-description{
        text-align: center;
    }
    .t888-leader-tab{
        width: calc(50% - 10px);
    }
    
}

@media (max-width: 575px) {
.popup-image{
        flex: 0 0 50%;
    max-width: 50%;
    }
    .popup-image img{
        /* max-height: 250px; */
        object-fit: contain;
    }
    .popup-content{
        flex: 0 0 100%;
    max-width: 100%;
    }
    .t888-leader-popup-grid{
        flex-direction: column;
        align-items: center;
    }
    .popup-name-title{
        margin-top: 0px;
        margin-bottom: 20px;
    }
}