/* ================================================= */
/* BANNER */
/* ================================================= */

.custom-carousel {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 50px 20px;
    aspect-ratio: 2.5 / 1;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    width: 100%;
    box-sizing: border-box;

    padding: 0 20px 60px;
}

/* hlavný text */
.custom-carousel h2 {
    margin-bottom: 15px;
    color: white;
    font-family: Arial !important;
    font-size: 100px;
    text-shadow: 2px 2px 5px #323232;
    max-width: 80%;
}

/* vedľajší text */
.custom-carousel p {
    margin-bottom: 15px;
    color: white;
    font-family: Arial !important;
    font-size: 30px;
    text-shadow: 2px 2px 3px #323232;
    max-width: 80%;
}

/* ======================= */
/* TLAČIDLÁ */
/* ======================= */

.banner-buttons {
    display: flex !important;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* ❗ HLAVNÝ FIX – aby sa nezlomili */
.banner-buttons a {
    display: inline-flex !important;
    width: auto !important;
    white-space: nowrap;
}

.banner-buttons .btn-primary {
    background: white;
    color: black;
}

.banner-buttons .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

/* ======================= */
/* RESPONSIVE */
/* ======================= */

@media (max-width: 767px) {
    .custom-carousel {
        background-size: contain;
        background-position: top;
        align-items: flex-end;
        height: 500px;
    }

    .custom-carousel h2 {
        font-size: 40px;
        max-width: 100%;
    }

    .custom-carousel p {
        font-size: 22px;
        max-width: 100%;
    }

    .banner-buttons {
        flex-direction: column;
        width: 100%;
    }

    .banner-buttons a {
        width: 100% !important;
        justify-content: center;
    }
}

/* ======================= */
/* CAROUSEL */
/* ======================= */

#carousel {
    position: relative;
    overflow: hidden;
}

/* ======================= */
/* DOTS */
/* ======================= */

#carousel .carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 10px;

    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0,0,0,0.25);

    z-index: 9999;
}

#carousel .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;

    background: rgba(255,255,255,0.5);
    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

#carousel .dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ======================= */
/* ŠÍPKY */
/* ======================= */

#carousel .carousel-control {
    opacity: 0;
    pointer-events: auto;
}

#carousel:hover .carousel-control {
    opacity: 1;
}

.carousel-control:before {
    display: none;
}

/* ======================= */
/* FIX PREKRYTIA */
/* ======================= */

.next-to-carousel-banners {
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.banner-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 14px 28px;
    min-width: 150px;
    height: 30px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;

    color: black;
    background: white;

    border: 1px solid black;
    border-radius: 4px;

    text-decoration: none;
    cursor: pointer;

    transition: all 0.2s ease;
}

.banner-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}