/* ========================================
   CONTAINER
   ======================================== */

.xio-staff-roles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 30px;
    width: 100%;
}

/* ========================================
   SECTION BASE
   ======================================== */

.xio-staff-roles {
    width: 100%;
}

.xio-staff-roles--hero {
    flex: 0 0 100%;
    width: 50%;
}

/* ========================================
   TITLE
   ======================================== */

.xio-staff-roles__title {
    font-size: 34px;
    font-weight: 800;
    color: var(--e-global-color-primary);
    margin: 0 0 15px;
    letter-spacing: -0.02em;
}

/* ========================================
   DESCRIPTION
   ======================================== */

.xio-staff-roles__description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--e-global-color-primary);
    margin: 0;
}

.xio-staff-roles__description p {
    margin: 0 0 10px;
}

.xio-staff-roles__description p:last-child {
    margin-bottom: 0;
}

/* ========================================
   FIGURE & PHOTO
   ======================================== */

.xio-staff-roles__figure {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 0;
    width: 100%;
    height: 350px;
}

.xio-staff-roles__photo {
    width: 100%;
    height: 100%!important;
    object-fit: contain;
    object-position: bottom center;
    border-radius: 10px;
    display: block;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.xio-staff-roles__photo--secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    opacity: 0;
    z-index: 2;
}

.xio-staff-roles__figure--has-swap:hover .xio-staff-roles__photo--primary {
    opacity: 0;
}

.xio-staff-roles__figure--has-swap:hover .xio-staff-roles__photo--secondary {
    opacity: 1;
}

.xio-staff-roles__figure:hover .xio-staff-roles__photo--primary {
    transform: scale(1.03);
}

.xio-staff-roles__figure--has-swap:hover .xio-staff-roles__photo--primary {
    transform: scale(1);
}

/* ========================================
   MEMBER BASE
   ======================================== */

.xio-staff-roles__member {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ========================================
   POSITION & NAME
   ======================================== */

.xio-staff-roles__position {
    font-size: 13px;
    font-weight: 600;
    color: var(--e-global-color-642d59f);
    margin: 0;
    line-height: 1.4;
}

.xio-staff-roles__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--e-global-color-primary);
    margin: 0;
    text-transform: uppercase;
    line-height: 1.3;
}

/* ========================================
   HERO TEMPLATE
   ======================================== */

.xio-staff-roles__hero-members {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.xio-staff-roles__member--hero {
    width: calc(50% - 10px);
}

.xio-staff-roles__member--hero .xio-staff-roles__figure {
    height: 450px;
}

.xio-staff-roles__member--hero .xio-staff-roles__name {
    font-size: 18px;
}

/* ========================================
   SLIDER TEMPLATE
   ======================================== */

.xio-staff-roles__slider-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.xio-staff-roles__slider-aside {
    flex: 0 0 28%;
    max-width: 28%;
}

.xio-staff-roles__slider-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.xio-staff-roles__slider-swiper {
    overflow: hidden;
    padding-bottom: 40px;
}

.xio-staff-roles__slider-swiper .swiper-pagination {
    bottom: 0;
}

/* ========================================
   CAROUSEL TEMPLATE
   ======================================== */

.xio-staff-roles__carousel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
}

.xio-staff-roles--carousel .xio-staff-roles__title {
    flex-shrink: 0;
    margin-bottom: 0;
}

.xio-staff-roles--carousel .xio-staff-roles__description {
    max-width: 55%;
    text-align: right;
}

.xio-staff-roles__carousel-content {
    position: relative;
}

.xio-staff-roles__carousel-swiper {
    overflow: hidden;
    padding-bottom: 50px;
}

.xio-staff-roles__carousel-swiper .swiper-pagination {
    bottom: 0;
}

.xio-staff-roles__carousel-swiper .swiper-button-prev,
.xio-staff-roles__carousel-swiper .swiper-button-next {
    color: var(--e-global-color-primary);
    top: calc(50% - 25px);
}

.xio-staff-roles__carousel-swiper .swiper-button-prev::after,
.xio-staff-roles__carousel-swiper .swiper-button-next::after {
    font-size: 18px;
}

/* ========================================
   GRID TEMPLATE
   ======================================== */

.xio-staff-roles__grid-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.xio-staff-roles__grid-aside {
    flex: 0 0 28%;
    max-width: 28%;
}

.xio-staff-roles__grid-content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    min-width: 0;
}

/* ========================================
   RESPONSIVE — TABLET (max-width: 991px)
   ======================================== */

@media (max-width: 991px) {
    .xio-staff-roles--hero {
        flex: 0 0 100%;
        width: 100%;
    }

    .xio-staff-roles__member--hero .xio-staff-roles__figure {
        height: 380px;
    }

    .xio-staff-roles__slider-layout,
    .xio-staff-roles__grid-layout {
        flex-direction: column;
    }

    .xio-staff-roles__slider-aside,
    .xio-staff-roles__grid-aside {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .xio-staff-roles__grid-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .xio-staff-roles__carousel-header {
        flex-direction: column;
        gap: 15px;
    }

    .xio-staff-roles--carousel .xio-staff-roles__description {
        max-width: 100%;
        text-align: left;
    }
}

/* ========================================
   RESPONSIVE — MOBILE (max-width: 767px)
   ======================================== */

@media (max-width: 767px) {
    .xio-staff-roles-container {
        gap: 30px 0;
    }

    .xio-staff-roles--hero {
        flex: 0 0 100%;
        width: 100%;
    }

    .xio-staff-roles__member--hero .xio-staff-roles__figure {
        height: 350px;
    }

    .xio-staff-roles__grid-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .xio-staff-roles__figure {
        height: 280px;
    }

    .xio-staff-roles__carousel-swiper .swiper-button-prev,
    .xio-staff-roles__carousel-swiper .swiper-button-next {
        display: none;
    }
}

/* ========================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    .xio-staff-roles__grid-content {
        grid-template-columns: 1fr;
    }

    .xio-staff-roles__figure {
        height: 300px;
    }

    .xio-staff-roles__member--hero .xio-staff-roles__figure {
        height: 320px;
    }
}
