.carousel {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    position: relative;
    z-index: 0;
}

.carousel-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 720px;
    margin: 0 auto;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}

.carousel-slide:not(.active) {
    opacity: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.textik {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
}

.overlay button a {
    text-decoration: none;
    color: white;
}

.overlay h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: normal;
    text-transform: uppercase;
    margin: 0;
    color: white;
}

.overlay p {
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(1.5rem, 3vw, 3rem);
    color: white;
    margin: 1rem 0;
}

.overlay button {
    padding: 1.3rem 2.5rem;
    font-size: 28px;
    font-family: 'Exo 2', sans-serif;
    background-color: #DA1715;
    color: white;
    cursor: pointer;
    border: none;
    width: auto;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.overlay button:hover {
    background-color: white;
    color: #DA1715;
    transform: translateY(-3px);
}

.overlay button:active {
    transform: translateY(1px);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 10px;
}

.dot {
    padding: 0;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    border: 1px solid black;
    background-color: white;
}

.carousel-dots .dot.active {
    background-color: #C61214;
    border: 1px solid #920E0F;
}

/* Specifické stylování pro mobilní verzi */
@media (max-width: 480px) {
    .carousel-slide {
        height: auto;
        aspect-ratio: 16/9;
        width: 100%;
    }
    
    .carousel-slide img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .textik {
        padding: 0.5rem;
        width: 100%;
        max-width: 95%;
        margin: 0 auto;
    }

    .overlay h2 {
        font-size: clamp(2.2rem, 6vw, 3rem);
        margin: 0;
        line-height: 1.2;
    }

    .overlay p {
        font-size: clamp(1.4rem, 4vw, 2rem);
        margin: 0.5rem 0;
        line-height: 1.2;
    }

    .overlay button {
        padding: 0.8rem 1.5rem;
        font-size: 18px;
    }
}

/* Pro tablety */
@media (min-width: 481px) and (max-width: 768px) {
    .carousel-slide {
        height: auto;
        aspect-ratio: 16/9;
        width: 100%;
    }
}

/* Pro větší obrazovky */
@media (min-width: 769px) {
    .carousel-slide {
        height: 720px;
        width: 100%;
    }
}

#carousel-banner {
    position: relative;
    z-index: 0;
}

#carousel-banner .carousel-slide {
    position: relative;
    z-index: 0;
}

#carousel-banner .carousel-slide .overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#carousel-banner .carousel-slide .overlay .textik {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
}

.carousel-dots button {
    width: 18px;
    height: 18px;
    border-radius: 50%;
} 