/* Base styles for the custom slider */
.custom-slider {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    float: left;
}
.slider-container {
    position: relative;
    overflow: visible; /* Ensure that arrows are not hidden */
}

/* Slider controls (arrows + counter) */
.slider-controls {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-bottom: 10px;
}

.slider-counter {
    font-size: 16px;
    line-height: 50px;
    font-weight: bold;
    color: #333;
}

.slider-navigation {
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    width: 100%;
    max-width: 200px;
    float: right;
}

.slick-prev, .slick-next {
    position: relative;
    top: 25px;
    background-color: transparent;
    border-radius: 0;
    width: 40px;
    height: 40px;
    color: #000;
    text-align: center;
    line-height: 40px;
    z-index: 1000;
    border: 1px solid #000;
    cursor: pointer;
    display: block;
    visibility: visible;
    opacity: 1;
}
.slick-prev, .slick-next {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 24px;
}

.slick-prev {
    left: 10px; /* Position to the left */
}

.slick-next {
    right: 10px; /* Position to the right */
}
.slick-prev:before, .slick-next:before{ display:none; }

.slick-prev:hover, .slick-prev:focus, .slick-next:hover, .slick-next:focus {
    background-color: transparent;
    color: #000;
}


/* Slide item default layout */
.slide-item {
    display: flex;
    flex-direction: column;
    /*background: #f9f9f9;
    border: 1px solid #ddd;*/
    border-radius: 5px;
    overflow: hidden;
    margin-right: 20px;
}

.slide-img {
    width: 100%;
    max-height: 250px;
    overflow: hidden;
}

.two-column .slide-img {
    max-height: 350px;
}

.slide-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.slide-content {
    padding: 20px;
/*    background: #fff;*/
}

.slide-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.slide-title a{
    color: #333;
}

.slide-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.slide-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

.slide-btn:hover {
    background-color: #005a87;
}

/* Two-column layout styles */
.custom-slider.two-column .slide-item {
    flex-direction: row;
}

.slide-row {
    display: flex;
    flex-direction: row;
	align-items: center;
    width: 100%;
}

.custom-slider.two-column .slide-img {
    flex: 1;
    max-width: 50%;
}

.custom-slider.two-column .slide-content {
    flex: 1;
    align-items: center;
    display: flex;
    max-width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

/* Responsive styling */
@media (max-width: 1200px) {
    .slide-row{ align-items: center;}

}

@media (max-width: 1024px) {
    .custom-slider.two-column .slide-item {
        flex-direction: column;
    }

    .custom-slider.two-column .slide-img,
    .custom-slider.two-column .slide-content {
        max-width: 100%;
        flex: 1;
    }
}
@media (max-width: 990px) {
    .slide-row{ display:block; }
    .custom-slider.two-column .slide-img,
    .custom-slider.two-column .slide-content {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .slide-title {
        font-size: 20px;
    }

    .slide-description {
        font-size: 14px;
    }
}
