.carousel {
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
}

.carousel video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.carousel .slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.carousel .slide {
    min-width: 100%;
    padding: 20px;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
}

.slide img {
    width: 50%;
    margin: 30px;
    border-radius: 10px;
}

.slide-content {
    text-align: start; 
}


.tag h2 {
    display: inline-block;
    background-color: #fff;
    padding: 10px;
    margin: 15px 0px;
    border-radius: 5px;
    color: #000;
    font-size: 0.9rem;
}

.slide-content h3 {
    font-size: 30px;
    margin-bottom: 20px;
    text-align: start;
    text-transform: uppercase
}

.slide-content p {
    margin-right: 30px;
    font-size: 18px;
    text-align: justify;
}

.carousel .nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 3;
    transform: translateY(-50%);
}

.carousel .nav button {
    background: transparent;
    border: none;
    color: #fff;
    padding: 28px;
    cursor: pointer;
    font-size: 18px;
}

.carousel .radio-buttons {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
    background-color: #444;
    padding: 4px;
    border-radius: 5px;
}

.carousel .radio-buttons input[type="radio"] {
    display: none;
}

.carousel .radio-buttons label {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.carousel .radio-buttons input[type="radio"]:checked + label {
    background: #fff;
}

#pause-button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pause-button:hover {
    color: #ccc;
}

.carousel .fa-chevron-down {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 24px;
    z-index: 3;
    margin-bottom: 20px;
}

.image-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

@media screen and (max-width: 1170px) {
    .carousel {
        display: none;
    }

    .mobile {
        position: relative;
        display: flex;
        max-width: 100%;
        min-height: 100vh;
        text-align: center;
        margin: 0 auto;
        align-items: center; 
        justify-content: center;
    }

    .mobile-carrousel {
        position: absolute;
        text-align: center;
        left: 50%;
        width: 405px;
        transform: translateX(-50%);
        color: #000;
        z-index: 9;
        margin-bottom: 20px;
    }

    .mobile-carrousel p {
        font-size: 16px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .mobile-carrousel h2 {
        font-size: 2.3rem;
        margin: 0 auto;
        padding: 0 20px;
    }

    .mobile-carrousel h2 {
        opacity: 0;
        animation: fadeInUp 1s forwards;
    }

    .typewriter {
        font-size: 1em;
        font-family: Arial, sans-serif;
        color: #333;
        display: inline-block;
        overflow: hidden;
        white-space: nowrap;
        border-right: 0.5px solid transparent;
    }
    
    .cursor {
        display: inline-block;
        animation: blink 0.8s infinite;
    }
    
    
    .mobile-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile .fa-chevron-down {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        color: #000;
        font-size: 24px;
        z-index: 9;
    }
    

    .mobile-buttons .btn-default {
        position: absolute;
        bottom: 40px;
        left: 50%;
        
        font-size: 0.8em;
        transform: translateX(-50%);
        background-color: #000;
        color: #fff;
        text-align: center;
    }
    

    .mobile .btn-default:hover {
        background-color: #333;
    }

}

@media screen and (min-width: 1171px) {
    .mobile {
        display: none;
    }
    
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    50.01%, 100% {
        opacity: 0;
    }
}
