.slider {
    position: relative;
    width: 100%;
    height: 589px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

/* Hiệu ứng laser */
.laser-cut-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    background: inherit;
    clip-path: inset(0 100% 0 0);
    animation: laserCut 2s forwards;
}

/* Keyframes cho hiệu ứng laser */
@keyframes laserCut {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    50% {
        clip-path: inset(0 0% 0 0);
    }
    100% {
        clip-path: inset(0 0% 0 0);
    }
}

/* Các hiệu ứng khác */
.slide-in-left {
    animation: slideInLeft 1s forwards;
}

.slide-in-right {
    animation: slideInRight 1s forwards;
}

.slide-in-bottom-left {
    animation: slideInBottomLeft 1s forwards;
}

.fade-in {
    animation: fadeIn 2s forwards;
}

.wave-effect {
    animation: waveEffect 2s forwards;
}

.rectangular-effect {
    animation: rectangularEffect 2s forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInBottomLeft {
    from {
        transform: translate(-100%, 100%);
    }
    to {
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes waveEffect {
    0% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 0.5; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes rectangularEffect {
    0% { clip-path: inset(0% 100% 0% 0%); }
    50% { clip-path: inset(0% 0% 100% 0%); }
    100% { clip-path: inset(0% 0% 0% 0%); opacity: 1; }
}

@media screen and (max-width: 768px) {
    .slider {
        height: auto;
        min-height: 258px;
    }
    .slide {
        height: auto;
        min-height: 300px;
    }
}