/* JCB Case Study Card Slider Style */

.jcb-case-study-slider-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
}

.jcb-case-study-slider {
    width: 100%;
    height: 100%;
}

.jcb-case-study-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000; /* Fallback */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    box-sizing: border-box;
}

.jcb-case-study-card .jcb-csc-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 0;
}

.jcb-case-study-card .jcb-csc-bg img,
.jcb-case-study-card .jcb-csc-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jcb-case-study-card .jcb-csc-overlay {
    position: absolute;
    width: 100%;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.jcb-case-study-card .jcb-csc-overlay-top {
    height: 221px;
    top: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 11.73%, rgba(0, 0, 0, 0) 90.76%);
    transform: rotate(180deg);
}

.jcb-case-study-card .jcb-csc-overlay-bottom {
    height: 273px;
    bottom: 0;
    background: linear-gradient(356.99deg, rgba(0, 0, 0, 0.55) 4.31%, rgba(0, 0, 0, 0) 77.99%);
}

.jcb-case-study-card .jcb-csc-title {
    position: relative;
    z-index: 2;
    font-family: 'Manrope', Sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #FFFFFF;
}

.jcb-case-study-card .jcb-csc-footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: fit-content;
    height: 31px;
    text-decoration: none !important;
}

.jcb-case-study-card .jcb-csc-play-icon {
    width: 14px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jcb-case-study-card .jcb-csc-play-icon svg {
    width: 14px;
    height: 14px;
}

.jcb-case-study-card .jcb-csc-button-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    height: 31px;
}

.jcb-case-study-card .jcb-csc-button-text {
    font-family: 'JCB Euro Roman', Sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #FFFFFF;
    text-transform: uppercase;
}

.jcb-case-study-card .jcb-csc-underline-wrapper {
    position: relative;
    width: 100%;
    min-width: 45px;
    height: 1px;
}

.jcb-case-study-card .jcb-csc-underline-bg {
    position: absolute;
    width: 100%;
    height: 1px;
    left: 0;
    top: 0;
    background: #FFFFFF;
    border-radius: 100px;
    transition: background 0.3s ease;
}

/* Hover Effect: Turn underline yellow */
.jcb-case-study-card .jcb-csc-footer:hover .jcb-csc-underline-bg {
    background: #F9B104;
}

/* Remove progress bar related styles */
.jcb-case-study-card .jcb-csc-underline-progress {
    display: none;
}

/* Custom Navigation Buttons */
.jcb-csc-button-prev,
.jcb-csc-button-next {
    width: 40px;
    height: 40px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='40' height='40' rx='20' fill='white'/%3E%3Cpath d='M26.8086 20.2148L22.2148 24.8086C21.9688 25.0547 21.5586 25.0547 21.2852 24.8086C21.0391 24.5625 21.0391 24.125 21.2852 23.8789L24.7578 20.4062H13.6562C13.3008 20.4062 13 20.1055 13 19.75C13 19.3945 13.3008 19.0938 13.6562 19.0938H24.7578L21.2852 15.6211C21.0391 15.375 21.0391 14.9375 21.2852 14.6914C21.5312 14.4453 21.9688 14.4453 22.2148 14.6914L26.8086 19.2852C27.0547 19.5312 27.0547 19.9688 26.8086 20.2148Z' fill='black'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
}

.jcb-csc-button-prev::after,
.jcb-csc-button-next::after {
    display: none; /* Hide default Swiper icons */
}

.jcb-csc-button-prev {
    left: 20px;
    transform: translateY(-50%) rotate(180deg);
}

.jcb-csc-button-next {
    right: 20px;
}

.jcb-csc-button-prev:hover,
.jcb-csc-button-next:hover {
    opacity: 0.8;
}

/* Hide disabled buttons */
.jcb-csc-button-prev.swiper-button-disabled,
.jcb-csc-button-next.swiper-button-disabled {
    display: none;
}
