/* ========================================
   STAFF ROLES
   ======================================== */

.xio-staff-roles {
    margin: 3em 0;
}

.xio-staff-roles__title {
    font-size: 25px;
    font-weight: bold;
    color: var(--e-global-color-primary);
    margin: 0;
}

/* ========================================
   WRAPPER & GROUP
   ======================================== */

.xio-staff-roles__wrapper {
    display: block;
    width: 100%;
    position: relative;
}

.xio-staff-roles__group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2em;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.xio-staff-roles__group--blurred {
    filter: blur(3px);
    opacity: 0.4;
    pointer-events: none;
}

/* ========================================
   MEMBER
   ======================================== */

.xio-staff-roles__member {
    display: flex;
    flex-direction: column;
    width: calc(100% / 4 - 20px);
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.xio-staff-roles__member:hover {
    transform: translateY(-5px);
}

.xio-staff-roles__member--active {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.xio-staff-roles__member--active .xio-staff-roles__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--e-global-color-primary);
    border-radius: 10px;
    pointer-events: none;
}

/* ========================================
   IMAGE
   ======================================== */

.xio-staff-roles__image {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.xio-staff-roles__image img {
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    height: 350px;
    transition: transform 0.3s ease;
}

.xio-staff-roles__member:hover .xio-staff-roles__image img {
    transform: scale(1.05);
}

/* ========================================
   POSITION & NAME
   ======================================== */

.xio-staff-roles__position {
    font-size: 14px;
    font-weight: bold;
    color: var(--e-global-color-642d59f);
    margin: 0;
}

.xio-staff-roles__name {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xio-staff-roles__toggle {
    color: var(--e-global-color-primary);
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    width: 100%;
}

.xio-staff-roles__toggle:hover {
    color: var(--e-global-color-primary);
    text-decoration: none;
}

.xio-staff-roles__toggle::after {
    content: '\f078';
    font-family: 'FontAwesome';
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.xio-staff-roles__member--active .xio-staff-roles__toggle::after {
    transform: rotate(180deg);
}

/* ========================================
   COLLAPSE
   ======================================== */

.xio-staff-roles__collapse {
    margin-top: 16px;
    margin-bottom: 2em;
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.xio-staff-roles__collapse--active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   COLLAPSE ROW
   ======================================== */

.xio-staff-roles__collapse-row {
    width: 100%;
    background: rgba(8, 31, 89, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 40px 50px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.xio-staff-roles__collapse-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 18px;
    z-index: 10;
}

.xio-staff-roles__collapse-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ========================================
   COLLAPSE LEFT (60%)
   ======================================== */

.xio-staff-roles__collapse-left {
    width: 60%;
    padding-right: 40px;
    color: #fff;
}

.xio-staff-roles__description {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   SOCIALS
   ======================================== */

.xio-staff-roles__socials {
    display: flex;
    gap: 12px;
}

.xio-staff-roles__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.xio-staff-roles__social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.1);
}

/* ========================================
   COLLAPSE RIGHT (40%)
   ======================================== */

.xio-staff-roles__collapse-right {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xio-staff-roles__quote {
    font-size: 19px;
    font-style: italic;
    color: #ffffff;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    border-left: 4px solid rgba(255, 255, 255, 0.4);
}

.xio-staff-roles__quote::after,
.xio-staff-roles__quote::before {
    content: url("/wp-content/themes/uaeteamadq/assets/image/quote-uae.svg");
    width: 100%;
    opacity: .4;
    display: inline-block;
}

.xio-staff-roles__quote::after {
    transform: rotate(180deg);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .xio-staff-roles__member {
        width: calc(100% / 2 - 20px);
    }

    .xio-staff-roles__collapse-left,
    .xio-staff-roles__collapse-right {
        width: 100%;
        padding-right: 0;
    }

    .xio-staff-roles__collapse-row {
        flex-direction: column;
        padding: 30px 25px;
    }

    .xio-staff-roles__collapse-left {
        margin-bottom: 20px;
    }
    
    .xio-staff-roles__description {
        font-size: 15px;
        padding: 15px;
    }
    
    .xio-staff-roles__quote {
        font-size: 16px;
        padding: 20px;
    }
    
    .xio-staff-roles__collapse-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .xio-staff-roles__member {
        width: 100%;
    }
    
    .xio-staff-roles__image img {
        height: 300px;
    }
    
    .xio-staff-roles__collapse-row {
        padding: 25px 20px;
    }
    
    .xio-staff-roles__description {
        font-size: 14px;
    }
    
    .xio-staff-roles__quote {
        font-size: 15px;
    }
}

