﻿/* Video Slider */
.home-video-slider {
    padding: 60px 0;
    background: #121534;
    overflow: hidden;
}

.home-video-slider .container {
    position: relative;
}

.home-video-slider .carousel-inner {
    border-radius: 24px;
}

.home-video-slider__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 16px 10px 30px;
}

.home-video-slider__player {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    background: #172033;
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.10);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .home-video-slider__player:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 35px rgba(79, 70, 229, 0.18);
    }

.home-video-slider__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-video-slider__player:hover .home-video-slider__poster {
    transform: scale(1.06);
}

.home-video-slider__play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #4f46e5;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

    .home-video-slider__play .icon-play {
        font-size: 22px;
    }

.home-video-slider__player:hover .home-video-slider__play {
    background: #4f46e5;
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Carousel Controls */
#homeVideoSlider .carousel-control-prev,
#homeVideoSlider .carousel-control-next {
    z-index: 5;
    top: 50%;
    bottom: auto;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #4f46e5;
    opacity: 0.95;
    box-shadow: 0 5px 16px rgba(79, 70, 229, 0.25);
    transition: background 0.2s ease, opacity 0.2s ease;
}

#homeVideoSlider .carousel-control-prev {
    right: 0;
    left: auto;
}

#homeVideoSlider .carousel-control-next {
    right: auto;
    left: 0;
}

    #homeVideoSlider .carousel-control-prev:hover,
    #homeVideoSlider .carousel-control-next:hover {
        background: #3730a3;
        opacity: 1;
    }

#homeVideoSlider .carousel-indicators {
    position: static;
    margin-top: 12px;
    margin-bottom: 0;
    gap: 8px;
}

    #homeVideoSlider .carousel-indicators [data-bs-target] {
        width: 9px;
        height: 9px;
        margin: 0;
        border: 0;
        border-radius: 50%;
        background-color: #a5b4fc;
        opacity: 1;
        transition: width 0.25s ease, background-color 0.25s ease;
    }

    #homeVideoSlider .carousel-indicators .active {
        width: 28px;
        border-radius: 10px;
        background-color: #4f46e5;
    }

/* Video Modal */
#homeVideoModal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #0f172a;
}

#homeVideoModal .modal-header {
    padding: 12px 16px;
}

.home-video-slider__modal-video {
    display: block;
    width: 100%;
    max-height: 75vh;
    background: #000;
}

/* Responsive */
@media (max-width: 991.98px) {
    .home-video-slider__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .home-video-slider {
        padding: 45px 0;
    }
}

@media (max-width: 575.98px) {
    .home-video-slider__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 12px 18px 28px;
    }

    .home-video-slider__player {
        border-radius: 16px;
    }

    #homeVideoSlider .carousel-control-prev,
    #homeVideoSlider .carousel-control-next {
        width: 36px;
        height: 36px;
    }

    .home-video-slider__play {
        width: 52px;
        height: 52px;
    }
}
/* Homepage Slider */
.home-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    .home-slider #homeSliderCarousel {
        width: 100%;
    }

    .home-slider .carousel-inner {
        width: 100%;
        height: 500px;
    }

    .home-slider .carousel-item {
        position: relative;
        width: 100%;
        height: 500px;
        overflow: hidden;
        background-color: #777;
    }

/* Image container */
.home-slider__media {
    display: block;
    width: 100%;
    height: 100%;
}

.home-slider__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark overlay for text readability */
.home-slider__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 90deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.30) 50%, rgba(0, 0, 0, 0.08) 100% );
    pointer-events: none;
}

/* Caption */
.home-slider .carousel-caption {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 10%;
    bottom: auto;
    left: 10%;
    width: auto;
    padding: 0;
    transform: translateY(-50%);
    text-align: right;
    color: #fff;
}

.home-slider__caption h2 {
    max-width: 800px;
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}

.home-slider__caption p {
    max-width: 650px;
    margin: 0 0 24px;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #fff;
}

.home-slider__caption .eduact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Carousel indicators */
.home-slider .carousel-indicators {
    z-index: 3;
    margin-bottom: 18px;
}

    .home-slider .carousel-indicators button {
        width: 28px;
        height: 4px;
        margin: 0 4px;
    }

/* Previous / next controls */
.home-slider .carousel-control-prev,
.home-slider .carousel-control-next {
    z-index: 3;
    width: 7%;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    .home-slider .carousel-inner,
    .home-slider .carousel-item {
        height: 440px;
    }

    .home-slider .carousel-caption {
        right: 8%;
        left: 8%;
    }

    .home-slider__caption h2 {
        font-size: 2rem;
    }

    .home-slider__caption p {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .home-slider .carousel-inner,
    .home-slider .carousel-item {
        height: 420px;
        min-height: 420px;
    }

    .home-slider__media {
        height: 100%;
    }

    .home-slider__image {
        object-position: center center;
    }

    .home-slider__shade {
        background: linear-gradient( 0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.40) 55%, rgba(0, 0, 0, 0.08) 100% );
    }

    .home-slider .carousel-caption {
        top: auto;
        right: 7%;
        bottom: 55px;
        left: 7%;
        transform: none;
        text-align: right;
    }

    .home-slider__caption h2 {
        margin-bottom: 12px;
        font-size: 1.5rem;
        line-height: 1.6;
    }

    .home-slider__caption p {
        margin-bottom: 16px;
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .home-slider__caption .eduact-btn {
        font-size: 0.85rem;
    }

    .home-slider .carousel-indicators {
        margin-bottom: 12px;
    }

    .home-slider .carousel-control-prev,
    .home-slider .carousel-control-next {
        width: 9%;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .home-slider .carousel-inner,
    .home-slider .carousel-item {
        height: 380px;
        min-height: 380px;
    }

    .home-slider__caption h2 {
        font-size: 1.3rem;
    }

    .home-slider__caption p {
        font-size: 0.85rem;
    }
}

