/* KBK Team Slider - High Specificity for Breakdance Override */

.kbk-team-slider-wrapper {
    overflow: hidden !important;
    font-family: "Roboto", serif !important;
    background: transparent !important;
    position: relative !important;
    width: 100% !important;
    height: 70vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

.kbk-team-slider-wrapper .carousel {
    position: relative !important;
    z-index: 1 !important;
    height: 70vh !important;
    overflow: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.kbk-team-slider-wrapper .carousel .carousel-item {
    --items: 10;
    --width: clamp(150px, 30vw, 300px);
    --height: clamp(200px, 40vw, 400px);
    --x: calc(var(--active) * 800%);
    --y: calc(var(--active) * 80%);
    --rot: calc(var(--active) * 120deg);
    --opacity: calc(var(--zIndex) / var(--items) * 3 - 2);
    overflow: hidden !important;
    position: absolute !important;
    z-index: var(--zIndex) !important;
    width: var(--width) !important;
    height: var(--height) !important;
    margin: calc(var(--height) * -0.5) 0 0 calc(var(--width) * -0.5) !important;
    border-radius: 10px !important;
    top: 50% !important;
    left: 50% !important;
    -webkit-user-select: none !important;
       -moz-user-select: none !important;
        -ms-user-select: none !important;
            user-select: none !important;
    transform-origin: 0% 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: all !important;
    transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(0.9) !important;
    transition: transform 0.8s cubic-bezier(0, 0.02, 0, 1) !important;
    padding: 0 !important;
}

.kbk-team-slider-wrapper .carousel .carousel-item.is-active {
    transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(1.15) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.kbk-team-slider-wrapper .carousel .carousel-item .carousel-box {
    position: absolute !important;
    z-index: 1 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1) !important;
    opacity: var(--opacity) !important;
    font-family: "Orelo-sw-db", serif !important;
    margin: 0 !important;
    padding: 0 !important;
}

.kbk-team-slider-wrapper .carousel .carousel-item .carousel-box:before {
    content: "" !important;
    position: absolute !important;
    z-index: 1 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.kbk-team-slider-wrapper .carousel .carousel-item .carousel-box .title {
    position: absolute !important;
    z-index: 1 !important;
    color: #fff !important;
    bottom: 65px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(0) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-size: 1.5rem !important;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
    padding: 0 20px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: normal !important;
    font-family: var(--bde-heading-font-family) !important;
    opacity: 0 !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.kbk-team-slider-wrapper .carousel .carousel-item.is-active .carousel-box .title {
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards !important;
    opacity: 1 !important;
}

.kbk-team-slider-wrapper .carousel .carousel-item .carousel-box .carousel-more-info {
    position: absolute !important;
    z-index: 1 !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(0) !important;
    background: transparent !important;
    border: 1px solid var(--bde-palette-red-ee7ce7c3-c723-4e0f-bd31-fabb6b4cf79c-3) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: var(--bde-heading-font-family) !important;
    pointer-events: none !important;
}

.kbk-team-slider-wrapper .carousel .carousel-item.is-active .carousel-box .carousel-more-info {
    opacity: 1 !important;
    pointer-events: all !important;
}

.kbk-team-slider-wrapper .carousel .carousel-item.is-active:hover .carousel-box .carousel-more-info {
    background: var(--bde-palette-red-ee7ce7c3-c723-4e0f-bd31-fabb6b4cf79c-3) !important;
    box-shadow: 0 4px 15px rgba(185, 24, 24, 0.4) !important;
}

.kbk-team-slider-wrapper .carousel .carousel-item .carousel-box .num {
    position: absolute !important;
    z-index: 1 !important;
    color: #fff !important;
    top: 15px !important;
    left: 15px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
    font-family: var(--bde-heading-font-family) !important;
    /*background: var(--bde-palette-red-ee7ce7c3-c723-4e0f-bd31-fabb6b4cf79c-3) !important;*/
    border-radius: 50% !important;
	border: 1px solid var(--bde-palette-red-ee7ce7c3-c723-4e0f-bd31-fabb6b4cf79c-3) !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: scale(1) translateY(0) !important;
    filter: grayscale(100%) !important;
    opacity: 0 !important;
}

.kbk-team-slider-wrapper .carousel .carousel-item.is-active .carousel-box .num {
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards !important;
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

.kbk-team-slider-wrapper .carousel .carousel-item .carousel-box img {
    width: calc(100% - 6rem) !important;
    height: calc(100% - 6rem) !important;
    -o-object-fit: contain !important;
       object-fit: contain !important;
    pointer-events: none !important;
    display: block !important;
    margin: 2rem auto !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
    position: relative !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    filter: grayscale(100%) blur(4px) !important;
}

.kbk-team-slider-wrapper .carousel .carousel-item.is-active .carousel-box img {
    filter: grayscale(0%) blur(0px) !important;
}

.kbk-team-slider-wrapper .cursor {
    position: fixed !important;
    z-index: 10 !important;
    top: 0 !important;
    left: 0 !important;
    --size: 40px;
    width: var(--size) !important;
    height: var(--size) !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin: calc(var(--size) * -0.5) 0 0 calc(var(--size) * -0.5) !important;
    transition: transform 0.85s cubic-bezier(0, 0.02, 0, 1), width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease !important;
    display: none !important;
    pointer-events: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.kbk-team-slider-wrapper .cursor.cursor-active {
    --size: 30px;
    background: var(--bde-palette-red-ee7ce7c3-c723-4e0f-bd31-fabb6b4cf79c-3) !important;
    border-color: var(--bde-palette-red-ee7ce7c3-c723-4e0f-bd31-fabb6b4cf79c-3) !important;
}

@media (pointer: fine) {
    .kbk-team-slider-wrapper .cursor {
        display: block !important;
    }
}

.kbk-team-slider-wrapper .cursor.cursor2 {
    --size: 2px;
    transition-duration: 0.7s !important;
}

.kbk-team-slider-wrapper .cursor.cursor2.cursor-active {
    --size: 4px;
    background: var(--bde-palette-red-ee7ce7c3-c723-4e0f-bd31-fabb6b4cf79c-3) !important;
}

/* Micro-animations Keyframes */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Arrow Controls */
.kbk-team-slider-wrapper .slider-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10001 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: var(--bde-palette-red-ee7ce7c3-c723-4e0f-bd31-fabb6b4cf79c-3) !important;
    border: 1px solid var(--bde-palette-red-ee7ce7c3-c723-4e0f-bd31-fabb6b4cf79c-3) !important;
    padding: 1rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    pointer-events: all !important;
	color: #fff;
}

.kbk-team-slider-wrapper .slider-arrow:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--bde-palette-red-ee7ce7c3-c723-4e0f-bd31-fabb6b4cf79c-3) !important;
}

.kbk-team-slider-wrapper .slider-arrow-prev {
    left: 5vw !important;
}

.kbk-team-slider-wrapper .slider-arrow-next {
    right: 5vw !important;
}

.kbk-team-slider-wrapper .slider-arrow svg {
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: white !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* Team Modal */
.kbk-team-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kbk-team-modal.is-active {
    display: block;
    opacity: 1;
}

.kbk-team-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.kbk-team-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kbk-team-modal.is-active .kbk-team-modal-content {
    animation: modalSlideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.kbk-team-modal-content.modal-refresh {
    animation: modalSlideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.kbk-team-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.kbk-team-modal-close:hover {
    background: transparent;
    border-color: var(--bde-palette-red-ee7ce7c3-c723-4e0f-bd31-fabb6b4cf79c-3);
    transform: rotate(90deg);
}

.kbk-team-modal-close svg {
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
}

.kbk-team-modal-header {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kbk-team-modal-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    filter: grayscale(0%);
}

.kbk-team-modal-title {
    color: #ffffff !important;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    font-family: var(--bde-heading-font-family);
    letter-spacing: 1px;
    text-align: left;
    flex: 1;
}

.kbk-team-modal-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

/* Dark UI Scrollbar */
.kbk-team-modal-body::-webkit-scrollbar {
    width: 10px;
}

.kbk-team-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.kbk-team-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.kbk-team-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Firefox scrollbar */
.kbk-team-modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.3);
}

.kbk-team-modal-table {
    width: 100%;
}

.kbk-team-modal-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 10px 20px;
    background: var(--bde-palette-red-ee7ce7c3-c723-4e0f-bd31-fabb6b4cf79c-3);
    border-radius: 8px;
    margin-bottom: 10px;
}

.kbk-team-modal-table-header .kbk-team-modal-table-cell {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-family: var(--bde-heading-font-family);
    text-align: center;
}

.kbk-team-modal-table-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kbk-team-modal-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.kbk-team-modal-table-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.kbk-team-modal-table-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.kbk-team-modal-table-row:nth-child(even):hover {
    background: rgba(255, 255, 255, 0.08);
}

.kbk-team-modal-table-cell {
    color: #fff;
    font-size: 1rem;
    text-align: center;
    font-family: "Roboto", sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
    .kbk-team-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .kbk-team-modal-header {
        padding: 20px;
        gap: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .kbk-team-modal-image {
        width: 100px;
        height: 100px;
    }
    
    .kbk-team-modal-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .kbk-team-modal-body {
        padding: 20px;
    }
    
    .kbk-team-modal-table-header,
    .kbk-team-modal-table-row {
        gap: 10px;
        padding: 12px 15px;
    }
    
    .kbk-team-modal-table-header .kbk-team-modal-table-cell {
        font-size: 0.8rem;
    }
    
    .kbk-team-modal-table-cell {
        font-size: 0.9rem;
    }
    
    /* Carousel Mobile Optimizations */
    .kbk-team-slider-wrapper .carousel .carousel-item {
        --width: 280px;
        --height: 380px;
        --x: calc(var(--active) * 450%);
        --y: 0%;
        --rot: 0deg;
    }
    
    .kbk-team-slider-wrapper .carousel .carousel-item.is-active {
        transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(1) !important;
    }
    
    .kbk-team-slider-wrapper .carousel .carousel-item .carousel-box img {
        width: calc(100% - 2rem) !important;
        height: calc(100% - 8rem) !important;
        margin: 1rem !important;
    }
    
    .kbk-team-slider-wrapper .carousel .carousel-item .carousel-box .title {
        font-size: 1.2rem !important;
        bottom: 55px !important;
        padding: 0 15px !important;
        line-height: 1.2 !important;
    }
    
    .kbk-team-slider-wrapper .carousel .carousel-item .carousel-box .carousel-more-info {
        bottom: 15px !important;
        padding: 6px 16px !important;
        font-size: 0.8rem !important;
    }
    
    .kbk-team-slider-wrapper .carousel .carousel-item .carousel-box .num {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
		font-weight: 600 !important;
        top: 10px !important;
        left: 10px !important;
    }
    
    /* Arrows repositioning for mobile */
    .kbk-team-slider-wrapper .slider-arrow {
        top: auto !important;
        bottom: 30px !important;
        transform: translateY(0) !important;
        width: 40px !important;
        height: 40px !important;
        padding: 0.75rem !important;
    }
    
    .kbk-team-slider-wrapper .slider-arrow-prev {
        left: 50% !important;
        margin-left: -55px !important;
    }
    
    .kbk-team-slider-wrapper .slider-arrow-next {
        right: auto !important;
        left: 50% !important;
        margin-left: 15px !important;
    }
    
    .kbk-team-slider-wrapper .slider-arrow svg {
        width: 16px !important;
        height: 16px !important;
    }
}
