/* Tola Team Tab Widget Styles */
.tola-team-tab-wrapper {
    margin: 0 auto;
}

/* Tab Navigation */
.tola-team-tab-navigation__wrapper {
    background-color: #F8FAFF;
    padding: 16px 20px 0;
}

.tola-team-tab-navigation {
    max-width: 1260px;
    display: flex;
    gap: 0;
    margin-inline: auto;
    padding: 0;
}

.tola-team-tab-item {
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: left;
}

.tola-team-tab-item:hover,
.tola-team-tab-item.active {
    background-color: #ffffff;
}

.tola-team-tab-name {
    font-size: 16px;
    font-weight: 600;
    color: #062548;
    margin-bottom: 5px;
    line-height: 1.3;
}

.tola-team-tab-position {
    font-size: 14px;
    color: #A1A6BA;
    line-height: 1.4;
    font-weight: 600;
}

.tola-team-tab-profile__wrapper {
    padding-top: 60px;
    padding-inline: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 71.58%, #0F519A 450.15%);
}

.tola-team-tab-profile__inner {
    max-width: 1030px;
    height: 336px;
    margin-inline: auto;
    position: relative;
}

/* Tab Content */
.tola-team-tab-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 0;
}

.tola-team-tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tola-team-tab-panel.active {
    display: block;
    opacity: 1;
}

.tola-team-tab-profile {
    padding-top: 60px;
    position: relative;
    z-index: 2;
}


/* Member Photo */
.tola-team-member-photo {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 411px;
    height: auto;
    overflow: hidden;
}

.tola-team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tola-team-tab-profile-name {
    margin-bottom: 16px;
    font-size: 48px;
    font-weight: 700;
    color: #2F445D;
    line-height: 1.08em;
}

.tola-team-tab-profile-position {
    font-weight: 500;
    font-size: 30px;
}

.tola-team-member-description__wrapper {
    padding-inline: 20px;
}

.tola-team-member-description {
    max-width: 1030px;
    margin-inline: auto;
    padding-block: 60px;
}

.tola-team-member-description>*:not(:last-child) {
    margin-bottom: 1.5em;
}


/* Animation for smooth transitions */
.tola-team-tab-panel {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Arrow Navigation */
.tola-team-tab-arrows {
    display: flex;
    gap: 10px;
    z-index: 10;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    left: 0;
    top: 0;
}

/* Hide arrows in inactive panels */
.tola-team-tab-panel:not(.active) .tola-team-tab-arrows {
    display: none;
}

.tola-team-tab-arrows button.tola-team-tab-prev,
.tola-team-tab-arrows button.tola-team-tab-next {
    width: 48px !important;
    height: 48px !important;
    padding: 0;
    border: 1.2px solid #E4E4E7;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
}

.tola-team-tab-prev:hover:not(:disabled),
.tola-team-tab-next:hover:not(:disabled) {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.tola-team-tab-prev:disabled,
.tola-team-tab-next:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background-color: #f5f5f5;
}

.tola-team-tab-prev svg,
.tola-team-tab-next svg {
    width: 20px;
    height: 20px;
}

/* Loading state */
.tola-team-tab-wrapper.loading .tola-team-tab-panel {
    opacity: 0.5;
    pointer-events: none;
}

@media screen and (max-width: 767px) {
    .tola-team-tab-profile__wrapper {
        padding-top: 20px;
    }

    .tola-team-tab-name {
        margin-bottom: 0;
    }

    .tola-team-tab-position {
        display: none;
    }

    .tola-team-tab-arrows {
        margin-top: 16px;
    }

    .tola-team-member-photo {
        max-width: 224px;
        right: -50px;
    }

    .tola-team-tab-profile__inner {
        height: 220px;
    }
    
    .tola-team-tab-profile{
        padding-top: 80px;
    }
}