#pk_flex_content .flex_layout.team_carousel {
  padding: 0px 0px 0px 0px;
  max-width: 100%;
}

#pk_flex_content .flex_layout.team_carousel .flex_container_inner {
  padding-inline: max(40px, calc((100vw - 1350px) / 2));
  padding-block: 100px;
  position: relative;
  background-color: #E5E5F0;
}

/* Top content */
#pk_flex_content .flex_layout.team_carousel .team_carousel_wrapper {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Top content */
#pk_flex_content .flex_layout.team_carousel .team_carousel_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    max-width: 60%;
}

#pk_flex_content .flex_layout.team_carousel .team_carousel_top h3 {
    margin-bottom: 0;
}

/* Two-column layout */
#pk_flex_content .flex_layout.team_carousel .team_carousel_content {
    display: flex;
    flex-direction: row;
    gap: 100px;
}

#pk_flex_content .flex_layout.team_carousel .team_list {
    width: calc(50% - 40px);
    display: flex;
    flex-direction: column;
    max-height: 500px;
    overflow-y: scroll;
    padding-right: 40px;
}

#pk_flex_content .flex_layout.team_carousel .team_list::-webkit-scrollbar {
    width: 3px;
}

#pk_flex_content .flex_layout.team_carousel .team_list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

#pk_flex_content .flex_layout.team_carousel .team_list::-webkit-scrollbar-thumb {
    background-color: #1B203C;
    border-radius: 10px;
}

/* Team item */
#pk_flex_content .flex_layout.team_carousel .team_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    position: relative;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

#pk_flex_content .flex_layout.team_carousel .team_item::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.40) 35.58%, rgba(255, 255, 255, 0.30) 63.94%, rgba(255, 255, 255, 0.15) 100%);
    pointer-events: none;
    transition: all 0.7s cubic-bezier(0.2, 1, 0.22, 1);
    z-index: 0;
}

#pk_flex_content .flex_layout.team_carousel .team_item.active,
#pk_flex_content .flex_layout.team_carousel .team_item:hover {
  border-top: 1px solid white;
  border-bottom: 1px solid white;
}

#pk_flex_content .flex_layout.team_carousel .team_item.active::before,
#pk_flex_content .flex_layout.team_carousel .team_item:hover::before {
    opacity: 1;
}

#pk_flex_content .flex_layout.team_carousel .team_item > * {
    position: relative;
    z-index: 1;
}

#pk_flex_content .flex_layout.team_carousel .team_detail .avatar.mobile_only {
    display: none;
}

#pk_flex_content .flex_layout.team_carousel .team_item .avatar {
    width: 110px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

#pk_flex_content .flex_layout.team_carousel .team_item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#pk_flex_content .flex_layout.team_carousel .team_item .team_item_info {
    flex-grow: 1;
    color: #1A213D;
}

#pk_flex_content .flex_layout.team_carousel .team_item .name {
    margin: 0;
    font-size: clamp(20px, 1.87vw, 24px);
    font-weight: 700;
    line-height: 1;
}

#pk_flex_content .flex_layout.team_carousel .team_item .functie {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    margin-top: 8px;
    display: block;
    text-transform: capitalize;
}

#pk_flex_content .flex_layout.team_carousel .team_item .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

#pk_flex_content .flex_layout.team_carousel .team_item .arrow svg rect {
    transition: all 0.3s;
}

/* Detail panel */
#pk_flex_content .flex_layout.team_carousel .team_detail_wrapper {
    width: 50%;
    position: relative;
}

#pk_flex_content .flex_layout.team_carousel .team_detail_swiper {
    overflow: visible;
}

#pk_flex_content .flex_layout.team_carousel .team_detail_swiper .swiper-slide {
  overflow: visible;
}

#pk_flex_content .flex_layout.team_carousel .team_detail_swiper,
#pk_flex_content .flex_layout.team_carousel .team_detail_swiper .swiper-wrapper,
#pk_flex_content .flex_layout.team_carousel .team_detail_swiper .swiper-slide {
    height: 500px;
}

#pk_flex_content .flex_layout.team_carousel .team_detail {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #fff;
    border-radius: 1rem;
    padding: 100px 56px;
    max-height: 500px;
    height: 100%;
    overflow: visible;
}

#pk_flex_content .flex_layout.team_carousel .team_detail .team_detail_scroll {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-right: 40px;
}

#pk_flex_content .flex_layout.team_carousel .team_detail .team_detail_scroll::-webkit-scrollbar {
    width: 3px;
}

#pk_flex_content .flex_layout.team_carousel .team_detail .team_detail_scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

#pk_flex_content .flex_layout.team_carousel .team_detail .team_detail_scroll::-webkit-scrollbar-thumb {
    background-color: #1B203C;
    border-radius: 10px;
}

.flex_layout.team_carousel .team_detail::before {
    content: "";
    position: absolute;
    top: -40px;
    right: 45px;
    width: 35%;
    min-width: 120px;
    height: auto;
    aspect-ratio: 225/125;
background-image: url("data:image/svg+xml,%3Csvg width='225' height='125' viewBox='0 0 225 125' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_2887_14009)'%3E%3Cpath d='M89.2635 1.30766L1.30859 0L0.000933315 87.9549L87.9559 89.2626L89.2635 1.30766Z' fill='%23C2473B'/%3E%3C/g%3E%3Cg clip-path='url(%23clip1_2887_14009)'%3E%3Cpath d='M126.662 81.2351C133.471 104.978 158.239 118.704 181.982 111.894C205.724 105.085 219.451 80.317 212.641 56.5745C205.831 32.8321 181.063 19.1054 157.321 25.9152C133.578 32.725 119.852 57.4926 126.662 81.2351Z' fill='%234D634F'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_2887_14009'%3E%3Crect width='87.9646' height='87.9646' fill='white' transform='translate(1.30859) rotate(0.851776)'/%3E%3C/clipPath%3E%3CclipPath id='clip1_2887_14009'%3E%3Crect width='89.4458' height='89.4458' fill='white' transform='translate(200.311 13.585) rotate(73.9961)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
}

#pk_flex_content .flex_layout.team_carousel .team_detail .top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#pk_flex_content .flex_layout.team_carousel .team_detail .name {
    color: #000;
    margin: 0;
    font-weight: 500;
}

#pk_flex_content .flex_layout.team_carousel .team_detail .functie {
    color: #04082d;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

#pk_flex_content .flex_layout.team_carousel .team_detail .tekst {
    color: #04082d;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

@media screen and (max-width: 1400px) {
  
  #pk_flex_content .flex_layout.team_carousel .team_carousel_content {
    display: flex;
    flex-direction: row;
    gap: 60px;
  }
  
}

@media screen and (max-width: 1400px) {
  
  #pk_flex_content .flex_layout.team_carousel .team_carousel_content {
    display: flex;
    flex-direction: row;
    gap: 40px;
  }
  
  #pk_flex_content .flex_layout.team_carousel .team_list {
    gap: 40px;
  }
  
}


@media screen and (max-width: 1200px) {

  #pk_flex_content .flex_layout.team_carousel .team_detail {
    padding: 60px;
  }
  
}

@media screen and (min-width: 993px) {
  
  .mobile_only {
    display: none;
  }
  
}


@media screen and (max-width: 992px) {
    
    #pk_flex_content .flex_layout.team_carousel .team_carousel_top {
        max-width: 100%;
    }
  
    #pk_flex_content .flex_layout.team_carousel .team_list {
        display: none;
    }
    
    #pk_flex_content .flex_layout.team_carousel .team_detail_wrapper {
        width: 100%;
    }
    
    #pk_flex_content .flex_layout.team_carousel .team_detail { 
      padding: 2rem 1rem;
    }
  
    #pk_flex_content .flex_layout.team_carousel .team_detail_swiper {
        overflow: unset;
        scroll-snap-type: x mandatory;
        display: flex;
    }

    #pk_flex_content .flex_layout.team_carousel .team_detail_swiper .swiper-wrapper {
        display: flex;
        flex-wrap: nowrap;
    }

    #pk_flex_content .flex_layout.team_carousel .team_detail_swiper .swiper-slide {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 100%;
    }
    
    #pk_flex_content .flex_layout.team_carousel .team_detail_wrapper .swiper-scrollbar.zgem-scrollbar  {
      height: 3px;
      border-radius: 10px;
      background: rgba(0, 0, 0, 0.05);
    }
    
    #pk_flex_content .flex_layout.team_carousel .team_detail_wrapper .swiper-scrollbar.zgem-scrollbar .swiper-scrollbar-drag {
       background: #1B203C;
    }
    
    #pk_flex_content .flex_layout.team_carousel .team_detail .avatar.mobile_only {
        display: block;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    #pk_flex_content .flex_layout.team_carousel .team_detail .avatar.mobile_only img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #pk_flex_content .flex_layout.team_carousel .team_detail_swiper::-webkit-scrollbar {
        height: 3px;
    }

    #pk_flex_content .flex_layout.team_carousel .team_detail_swiper::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    #pk_flex_content .flex_layout.team_carousel .team_detail_swiper::-webkit-scrollbar-thumb {
        background-color: #1B203C;
        border-radius: 10px;
    }
    
}

@media screen and (max-width: 767px) {
  
  #pk_flex_content .flex_layout.team_carousel .flex_container_inner {
    padding-inline: 20px;
  }
  
}