/* ================= SLIDER ================= */
.slider {
    width: 100%;
    height: 50vh;
    min-height: 260px;
    max-height: 480px;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* SLIDE */
.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1.2s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

/* OVERLAY */
.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.6)
    );
    z-index: 1;
}

/* CONTENT */
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.slide-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
}

/* MOBILE */
@media (max-width: 768px) {
    .slider {
        height: 38vh;
    }
}