/* Custom Styling and overrides for bottom loans slick slider */

/* Active Slider override */
.bottom-loans-grid.slick-initialized {
    display: block !important;
    position: relative;
    width: 100%;
    padding: 0 0.5vw;
}

/* Slick Track layout override */
.bottom-loans-grid.slick-initialized .slick-track {
    display: flex !important;
    align-items: stretch !important;
}

/* Slick Slide styling */
.bottom-loans-grid.slick-initialized .slick-slide {
    height: auto !important;
    display: flex !important;
    outline: none;
}

/* Ensure each bottom-loan-card has flex behavior inside slick and proper spacing */
.bottom-loans-grid.slick-initialized .bottom-loan-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 0.5vw !important;
    /* Spacing between columns */
    box-sizing: border-box !important;
}

/* Override image container & image widths inside slick */
.bottom-loans-grid.slick-initialized .bottom-loan-image-box {
    width: 100% !important;
}

.bottom-loans-grid.slick-initialized .bottom-loan-image-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.bottom-loans-grid .bottom-loan-yellow-bar,
.bottom-loans-grid.slick-initialized .bottom-loan-yellow-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-evenly !important;
    gap: 1.5vw !important;
}

.bottom-loans-grid .bottom-loan-bar-item,
.bottom-loans-grid.slick-initialized .bottom-loan-bar-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.8vw !important;
    flex: 0 0 auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.bottom-loans-grid .bottom-loan-bar-item img,
.bottom-loans-grid.slick-initialized .bottom-loan-bar-item img {
    width: 1.8vw !important;
    height: auto !important;
    max-width: 1.8vw !important;
    flex-shrink: 0 !important;
    display: block !important;
    object-fit: contain !important;
}

.bottom-loans-grid .bottom-loan-bar-item span,
.bottom-loans-grid.slick-initialized .bottom-loan-bar-item span {
    white-space: nowrap !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

/* Styling for Slick Prev & Next Arrows */
.bottom-loans-grid .slick-prev,
.bottom-loans-grid .slick-next {
    position: absolute;
    top: 20vw;
    transform: translateY(-50%);
    width: 2.5vw;
    height: 2.5vw;
    background-color: #B83445;
    /* Veritas theme red */
    border: none;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0px !important;
    /* Hide slick default text */
}

/* Custom chevron icons using CSS pseudo-elements for premium look */
.bottom-loans-grid .slick-prev::before {
    content: '';
    width: 11px;
    height: 11px;
    border-left: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(45deg);
    display: block;
    margin-left: 4px;
    font-size: 0px !important;
}

.bottom-loans-grid .slick-next::before {
    content: '';
    width: 11px;
    height: 11px;
    border-right: 3px solid #ffffff;
    border-top: 3px solid #ffffff;
    transform: rotate(45deg);
    display: block;
    margin-right: 4px;
    font-size: 0px !important;
}

.bottom-loans-grid .slick-prev {
    left: -5px;
}

.bottom-loans-grid .slick-next {
    right: -5px;
}

.bottom-loans-grid .slick-prev:hover,
.bottom-loans-grid .slick-next:hover {
    background-color: #9d2636;
    /* Darker red */
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.bottom-loans-grid .slick-prev:active,
.bottom-loans-grid .slick-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Responsive adjustment for small screens */
@media (max-width: 991px) {
    .bottom-loans-grid.slick-initialized {
        padding: 0 35px;
    }

    .bottom-loans-grid .bottom-loan-card {
        margin: 0 8px !important;
    }

    .bottom-loans-grid .slick-prev,
    .bottom-loans-grid .slick-next {
        width: 35px;
        height: 35px;
    }

    .bottom-loans-grid .slick-prev::before {
        width: 8px;
        height: 8px;
        border-width: 2px;
        margin-left: 3px;
    }

    .bottom-loans-grid .slick-next::before {
        width: 8px;
        height: 8px;
        border-width: 2px;
        margin-right: 3px;
    }

    .bottom-loans-grid .slick-prev {
        left: 10px;
    }

    .bottom-loans-grid .slick-next {
        right: 10px;
    }

    .bottom-loans-grid .bottom-loan-bar-item img,
    .bottom-loans-grid.slick-initialized .bottom-loan-bar-item img {
        width: 17px !important;
        height: 17px !important;
        max-width: 17px !important;
    }

    .bottom-loans-grid .bottom-loan-bar-item,
    .bottom-loans-grid.slick-initialized .bottom-loan-bar-item {
        gap: 6px !important;
    }
}

@media (max-width: 767px) {
    .bottom-loans-grid.slick-initialized {
        padding: 0 10px;
    }

    .bottom-loans-grid .slick-prev,
    .bottom-loans-grid .slick-next {
        width: 35px;
        height: 35px;
    }

    .bottom-loans-grid .slick-prev::before {
        width: 8px;
        height: 8px;
        border-width: 2px;
        margin-left: 3px;
    }

    .bottom-loans-grid .slick-next::before {
        width: 8px;
        height: 8px;
        border-width: 2px;
        margin-right: 3px;
    }

    .bottom-loans-grid .slick-prev {
        left: -15px;
    }

    .bottom-loans-grid .slick-next {
        right: -15px;
    }

    .bottom-loans-grid .bottom-loan-bar-item img,
    .bottom-loans-grid.slick-initialized .bottom-loan-bar-item img {
        width: 17px !important;
        height: 17px !important;
        max-width: 17px !important;
    }

    .bottom-loans-grid .bottom-loan-bar-item,
    .bottom-loans-grid.slick-initialized .bottom-loan-bar-item {
        gap: 6px !important;
    }
}