/* Loader for home slider */
.home-slider-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.home-slider-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid black;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.home-main-slider.slider-loaded .home-slider-loader {
    display: none;
}

/* Swiper Slider Custom Styles */
.home-slider-section {
    padding: 60px 0 10px;
    position: relative;
    overflow: hidden;
}

.home-slider-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
    font-family: 'Merriweather', serif;
}

/* .home-main-slider{
    overflow: visible;
} */

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    height: auto;
    background: transparent;
}

.instructor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.instructor-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.instructor-image-wrapper .iiw-s-img {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 15px;
    object-fit: contain;
    object-position: bottom left;
    background-color: rgba(0, 0, 0, 0.4);
}

.instructor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instructor-card:hover .instructor-image-wrapper img:first-child {
    transform: scale(1.05);
}

.instructor-info h5 {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
    font-family: 'Work Sans', sans-serif;
}

/* Navigation Buttons */
.home-slider-section .swiper-button-next,
.home-slider-section .swiper-button-prev {
    top: var(--swiper-navigation-top-offset, 30%);
    background-color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #333;
    transition: all 0.3s ease;
}

.home-slider-section .swiper-button-next:hover,
.home-slider-section .swiper-button-prev:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.home-slider-section .swiper-button-next:after,
.home-slider-section .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

.home-slider-section .swiper-button-next:after {
    left: 1px;
}

.home-slider-section .swiper-button-prev:after {
    right: 1px;
}

.home-slider-section .swiper-button-prev {
    left: 10px;
}

.home-slider-section .swiper-button-next {
    right: 10px;
}

.home-slider-section .swiper-pagination {
    position: static;
    margin-top: 15px;
}

.home-slider-section .swiper-pagination-bullet-active {
    background: #333;
}


@media screen and (max-width:768px) {
    .home-slider-title{
        text-align: left;
        margin-bottom: 25px;
    }

    .home-main-slider {
        overflow: visible;
    }

    .home-slider-section .swiper-button-prev,
    .home-slider-section .swiper-button-next{
       top: -58px;
       transform: inherit;
       margin: 0;
       width: 36px;
       height: 36px;
    }

    .home-slider-section .swiper-button-prev{
        right: 45px;
        left: inherit;
    }
    .home-slider-section .swiper-button-next{
        right: 0px;
    }
}

@media screen and (max-width: 500px) {
    .home-slider-section .swiper-button-prev,
    .home-slider-section .swiper-button-next{
       top: -58px;
    }
}

@media screen and (max-width: 370px) {
    .home-slider-section .swiper-button-prev,
    .home-slider-section .swiper-button-next{
        display: none;
    }
}