
/* Slider Window Wrap */
.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Individual Slide Logic */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

/* Text Captions styling */
.caption {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.slide.active .caption {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.caption h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.caption p {
    font-size: 1rem;
    line-height: 1.4;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, scale 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-btn:hover {
    background: #ffffff;
    scale: 1.05;
}

.prev { left: 20px; }
.next { right: 20px; transform: translateY(-50%) rotate(180deg); } /* Rotates default arrow icon */

/* Pagination Dots */
.dots-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .slider-container {
        height: 400px;
        width: 95%;
    }
    .caption {
        bottom: 50px;
        left: 20px;
        right: 20px;
        padding: 15px;
    }
    .caption h2 { font-size: 1.4rem; }
    .caption p { font-size: 0.9rem; }
    .nav-btn { width: 35px; height: 35px; font-size: 1rem; }
}
