.slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

/* Hide radio buttons */
.slider input {
    display: none;
}

.slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: 0.8s;
}

.slide {
    width: 100%;

    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

/* Overlay */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 7, 0.233);
    top: 0;
}


.contents {
    color: white;
    max-width: 100%;
    animation: fadeUp 1s ease;    text-align:center;        margin-bottom: 320px;
}

.line {
    width: 102px;
    height: 1px;
    background: #ffffff;
    margin-bottom: 4px;
}

.contents h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.contents h1 {
    color: white;
    font-size: 55px;
    font-weight: 700;
    margin: 10px 0;
}

.contents h4 {
    color: white;
    font-size: 20px;
    font-weight: 300;
}

/* ===== Slide Controls ===== */

#slide1:checked~.slides {
    margin-left: 0;
}

#slide2:checked~.slides {
    margin-left: -100%;
}

#slide3:checked~.slides {
    margin-left: -200%;
}

/* ===== Navigation Buttons ===== */

.navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.navigation label {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.3s;
}

.navigation label:hover {
    opacity: 1;
}

/* ===== Arrow Buttons ===== */

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 12px 16px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* ===== Text Animation ===== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */

@media(max-width:768px) {
    .slider {
        height: 70vh !important;
    }

    .contents h1 {
        font-size: 28px;
    }

    .contents h2 {
        font-size: 18px;
    }

    .contents h4 {
        font-size: 14px;
    }

    .contents {
        margin-top: -21px;
        color: white;
        max-width: 1000px;
        animation: fadeUp 1s ease;
    }
}