
:root {
	--thumb-item-height: clamp(8.75rem, 15vw, 10.625rem);
} 

.bdt-rubix-slider {
	overflow: hidden;
	position: relative;
	// Main Slider Area Scss
	.bdt-main-slider {
		position: relative;
		overflow: hidden;
        .bdt-item {
            display: inline-block;
            background: #f3f6fb;
            align-items: center;
            position: relative;
            overflow: hidden;
            opacity: .2;
            pointer-events: none;
            // transition: opacity .2s ease;
            .bdt-slider-progress {
                position: absolute;
                top: 0;
                width: 0;
                left: 0;
                height: 3px;
                background: transparent;
                // content: '';
                z-index: 1;
            }   
            &.swiper-slide-active {
                opacity: 1;
                pointer-events: auto;
                .bdt-slider-progress{
                    background: #D90429;
                }
            }
        }
        .bdt-img-wrap {
            position: relative;
            height: 100%;
            width: 100%;
            &::before {
                content: '';
                position: absolute;
                width: 100%;
                height: 100%;
                background: linear-gradient(
                180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.57) 100%);
            }
            .bdt-img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
        .bdt-read-more {
            position: absolute;
            bottom: 0;
            left: 0;
            margin: clamp(1.25rem, 4vw, 2.5rem);
            a {
                font-size: 15px;
                text-transform: uppercase;
                color: #fff;
                display: inline-flex;
                align-items: center;
                grid-column-gap: 12px;
                text-decoration: none;
                transition: all .3s ease;
                font-weight: 600;
                i {
                    color: #2b2d42;
                    font-size: 14px;
                    background: #f3f6fb;
                    padding: 18px 16.25px;
                    border-radius: 100%;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    transform: scale(1) rotate(0);
                    transition: transform .3s ease;
                    &:after {
                        content: '';
                        position: absolute;
                        background-color: #D90429;
                        transition: all 300ms ease;
                        left: 50%;
                        top: 50%;
                        transform: translate(-50%, -50%) scale(0);
                        width: ~'calc(100% + 1px)';
                        height: ~'calc(100% + 1px)';
                        border-radius: 50%;
                    }
                    &::before {
                        z-index: 1;
                    }
                }
                &:hover {
                    color: #D90429;
                    i {
                        color: #fff;
                        transform: scale(1) rotate(-190deg);
                        &::after {
                            transform: translate(-50%, -50%) scale(1);
                        }
                    }
                }
            }
        }
        .bdt-content {
            width: 100%;
            padding: clamp(1.25rem, 3vw, 1.875rem);
        }
		.bdt-title {
			font-size: clamp(1.25rem, 3vw, 1.625rem);
			text-transform: capitalize;
			line-height: 1.2;
            margin: 0;
			margin-bottom: 15px;
			a {
				color: #2B2D42;
				text-decoration: none;
				transition: all .3s ease-in-out;
				&:hover {
					color: #D90429;
				}
			}
		}
        .bdt-category {
            margin-bottom: 15px;
            display: inline-flex;
            a {
                color: #49525e;
                font-size: clamp(0.75rem, 1.5vw, 0.875rem);
                font-weight: 600;
                text-transform: uppercase;
                transition: all .3s ease;
                &:hover {
                    color: #D90429;
                }
            }
            a + a {
                margin-left: 8px;
            }
        }
        .bdt-text {
            font-size: clamp(0.813rem, 1.5vw, 0.938rem);
            color: #6d6e72;
            margin-bottom: 20px;
            p {
                margin: 0;
            }
        }
        .bdt-meta {
            .bdt-date-time {
                display: flex;
                align-items: center;
                line-height: 1;
                font-size: 14px;
                color: #2b2d42;
                i.ps-wi-calendar {
                    background: #2b2d42;
                    padding: 10px;
                    border-radius: 40px;
                    font-size: 12px;
                    margin-right: 8px;
                    color: #fff;
                }
            }
            .bdt-post-time {
                margin-left: 5px;
                i {
                    margin-right: 2px;
                }
            }
        }
	}
   // Thumb Slider Area Scss
	.bdt-thumb-slider {
        position: absolute;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: var(--thumb-item-height);
        // height: 140px;
        .bdt-item {
            padding: 30px;
            border-radius: 5px;
            overflow: hidden;
            cursor: pointer;
            &.swiper-slide-thumb-active,
            &:hover  {
                background: #f3f6fb;
                .bdt-content {
                    &:before {
                        width: 100%;
                        background: #D90429;
                    }
                }
            }
        }
		.bdt-content {
            height: 100%;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            &:before,
            &:after {
                content: '';
                position: absolute;
                height: 2px;
                top: 0;
                transition: all .5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
            }
            &:before {
                width: 0;
                z-index: 1;
            }
            &:after {
                width: 100%;
                background: #dcdcdc;
            }
		}
		.bdt-title {
			font-size: clamp(0.875rem, 1.5vw, 1rem);
			text-transform: capitalize;
            margin: 0;
            padding-top: 10px;
			a {
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2; /* number of lines to show */
                line-clamp: 2;
				color: #2b2d42;
				text-decoration: none;
				transition: all .3s ease-in-out;
				&:hover {
					color: #D90429;
				}
			}
		}
        .bdt-meta {
            display: flex;
            align-items: center;
            font-size: clamp(0.688rem, 1vw, 0.813rem);
            text-transform: uppercase;
            font-weight: 500;
            color: #5b6272;
            .bdt-author {
                a {
                    color: #5b6272;
                    line-height: 1;
                    transition: all .3s ease-in-out;

                    i {
                        color: inherit;
                        font-size: inherit;
                    }
                    &:hover {
                        color: #D90429;
                    }
                }
            }
            .bdt-meta-separator {
                padding: 0 0;
            }
            .bdt-date {
                span {
                    padding-left: 4px;
                }
            }
        }
	}

    &.bdt-slide-style-1 {
        padding-top: var(--thumb-item-height);
        .bdt-main-slider {
            margin-top: 30px;
        }
        .bdt-thumb-slider {
            top: 0;
        }
    }
    &.bdt-slide-style-2 {
        padding-bottom: var(--thumb-item-height);
        .bdt-main-slider {
            margin-bottom: 30px;
        }
        .bdt-thumb-slider {
            bottom: 0;
        }
    }
}

// Responsive Scss Here
@media  (min-width:768px)  {
    .bdt-rubix-slider {
        .bdt-main-slider {
            height: clamp(21.875rem, 40vw, 28.125rem);
            .bdt-item {
                display: flex;
            }
            .bdt-img-wrap,
            .bdt-content {
                width: 50%;
            }
        }
        .bdt-thumb-slider {
            max-width: 80%;
        }
    }
    .bdt-ps-reverese--yes .bdt-rubix-slider .bdt-main-slider .bdt-item {
        flex-direction: row-reverse;
    }
}