/* KB Carousel Styles */

/* Ensure carousel takes full width */
.kb-carousel {
    width: 100%;
    position: relative;
    padding-top: 60px;
    margin-top: -60px;
}

/* Carousel Container Styles */
.kb-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Add padding to ensure box-shadows are visible */
    padding: 20px 0;
    margin: 0 -20px;
    width: calc(100% + 20px);
    margin-top: 10px;
}

.kb-carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 25px; /* 25px gap between items */
    padding: 0 20px; /* Match wrapper padding */
}

/* Fallback for browsers that don't support gap */
@supports not (gap: 25px) {
    .kb-carousel-container > * {
        margin-right: 25px;
    }
    .kb-carousel-container > *:last-child {
        margin-right: 0;
    }
}

/* Make sure items have defined widths */
.kb-carousel-container > * {
    flex: 0 0 auto;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

/* For images inside carousel items */
.kb-carousel-container img {
    max-width: 100%;
    height: auto;
}

/* Navigation Button Styles */
.kbc-arrow {
    top: 0; /* Position at top of carousel */
    border-radius: 50%;
    border: 1px solid #444c8e;
    width: 50px;
    height: 50px;
    background-color: white !important;
    min-width: inherit !important;
    position: absolute;
    z-index: 11;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    font-size: 0;
    line-height: 0;
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kbc-arrow:hover {
    background-color: #444c8e !important;
    transform: scale(1.1);
}

.kbc-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.kbc-arrow:disabled:hover {
    background-color: white !important;
    transform: scale(1);
}

.kbc-prev {
    right: 70px;
}

.kbc-next {
    right: 10px;
}

/* Arrow Icons */
.kbc-arrow::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #444c8e;
    border-right: 2px solid #444c8e;
    transition: border-color 0.3s ease;
}

.kbc-arrow:hover::before {
    border-color: white;
}

.kbc-arrow:disabled::before {
    border-color: #444c8e;
}

.kbc-prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.kbc-next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kb-carousel {
        padding-top: 60px;
    }

    .kbc-arrow {
        width: 40px;
        height: 40px;
    }

    .kbc-prev {
        right: 55px;
    }

    .kbc-next {
        right: 10px;
    }

    .kbc-arrow::before {
        width: 8px;
        height: 8px;
    }
}

/* For client logos or specific styling */
.kb-carousel.client-grid-na .kb-carousel-container > * {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 120px;
    flex-direction: column;
}

.framework-container {
    background: linear-gradient(90deg, rgb(103, 111, 177) 0%, rgb(68, 76, 142) 100%) !important;
    color: white;
}

.framework-container h4 {
    color: white;
}

/* For featured products carousel - based on screenshot */
.kb-carousel .kb-carousel-container > * {
    position: relative;
}

/* Ensure figure elements work well in carousel */
.kb-carousel-container > figure {
    margin: 0;
    box-shadow: none; /* Remove default shadow from figure */
}
