.middle-tabs {

    box-sizing: border-box;

    margin: auto;

    /* horná polovica biela */
    min-height: 500px;
    position: relative;
    overflow: hidden;

}

/* taby presne v strede obrazovky */
.middle-tabs .center-line {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    top: 35%;
}

.middle-tabs .tabs {
    display: flex;
    gap: 20px;
    width: 70%;
    transition: 0.3s ease;
}

.middle-tabs .tab {
    flex: 1;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: flex 0.3s ease, background 0.3s ease;
    cursor: pointer;
    height: 307px;
    display: flex;
    flex-direction: column;
    /* umožní zarovnanie buttonu */
    background: #C6DBF14D;
    /* tvoje RGBA hex */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px)
}

.middle-tabs .btn {
    margin-top: auto;
    /* posunie button na spodok tabu */
    align-self: flex-end;
    /* zarovná doprava */
    background: none;
    border: none;
    color: black;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
}

.middle-tabs .circle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: white;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 15px;
}


p.more-details {
    width: 100%;
}

.middle-tabs .arrow {
    font-size: 18px;
}


/* spodná polovica s obrázkom + overlay + zaoblené hrany */
.middle-tabs::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;

    background:
        linear-gradient(#3e26dcaa, #d44ce7aa),
        url("../assets/cf00713083103e22fbaca96a129c983283eb141f.jpg");

    background-size: cover;
    background-position: center;

    border-radius: 40px;
    z-index: -1;
}


@media (min-width: 1200px) {

    .middle-tabs .tab .circle-btn img {
        width: 20px;
        height: 20px;
        transition: filter .2s;
        filter: brightness(0) saturate(100%);
        /* základ – čierna */
    }

    .middle-tabs .tab:hover .circle-btn img {
        padding-left: 6px;
        filter: invert(1) brightness(200%);
    }

    .middle-tabs .tab:hover .circle-btn {
        background: var(--accent01);
        border: 1px solid rgba(59, 130, 246, 0.1);
        width: auto;
        border-radius: 9999px;
        padding: 12px 24px;
        color: var(--text-primary-dark);
    }

    .middle-tabs .more-button,
    .middle-tabs .more-details {
        opacity: 0;

        transition: opacity 0.25s ease;
    }


    .middle-tabs .tab:hover .more-button,
    .middle-tabs .tab:hover .more-details {
        opacity: 1;
        display: block;
    }

    .middle-tabs .desktop-only {
        display: block;

    }


    .middle-tabs .tabs:hover .tab {
        flex: 1;
    }
.tab .bottom-text {
  bottom: 15px;
  position: absolute;
  width: 90%;
}

    .tab:hover {
        flex: 2.2;
        background: rgba(0, 0, 0, 0.12);
        background: linear-gradient(#8FAEC9, #DFEBF6);
    }

    .middle-tabs .tabs:hover .tab:not(:hover) {
        flex: 0.8;
    }

    .middle-tabs h3 {
        color: var(--text-primary);
    }

    .middle-tabs .tab:hover h3,
    .middle-tabs .tab:hover p.more-details {
        color: var(--text-primary-dark) !important;
    }

}

@media (max-width: 1200px) {

    .middle-tabs .tabs {
        display: flex;
        flex-wrap: wrap;
        /* toto je kľúčové */
        width: 100%;
    }


    .middle-tabs .tab {
        width: 50%;
        width: calc(50% - 20px);
        /* odporúčam, aby gap neovplyvnil layout */
        height: auto;

    }

    .middle-tabs .center-line {
        position: relative;
        top: 20%;
        transform: none;
        left: 0;
        padding: 10vh
    }


    .more-button {
        display: none;
    }

    .middle-tabs h3 {
        color: var(--text-primary);
    }

    p.more-details {
        color: var(--text-secondary);
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 800px) {
    .middle-tabs .tabs {
        display: inline;
        width: 100%;
    }

    .middle-tabs .tab {
        width: 100%;
        margin-bottom: 20px;
        height: auto;
        background: #91A5F4C4;
        gap: 20px;
    }
    .middle-tabs .tab p {
        color: white!important;
    }

    .middle-tabs .center-line {
        padding: 4vh 5px 8vh 5px
    }

    .middle-tabs::after{
        height: 550px;
        border-radius: 0;
    }

    .middle-tabs .center-line{
        top: 0px;
    }
      .middle-tabs {
    min-height: 650px;
  }

}