.hero-mid {
    width: 100%;
    min-height: 100vh;
    height: auto;
}

.hero-mid-top {
    /* background:linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/kolacici.jpg');
    background-size: cover;
    background-position: center; */
    height:550px;
    display: flex;
    align-items: end;
    justify-content: center;
}

.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

.cookies-image{
    position: relative;
    width: 100%;
    height: 100%;
}

.cookies-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cookies-image h1{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.hero-mid-top h1 {
    font-size: 64px;
    font-weight: 400;
    color: #fff;
}


@media (max-width: 1200px) 
{
    .hero-mid-top h1 {
        font-size: 32px;
    }
}

.container {
    display: flex;
    height: auto;

}

.sidebar {
    width: 20%;
    background-color: #f5f5f5;
    padding:5vh 20px 5vh 5%;
    position: relative;
}

.menu-item {
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
}



.menu-item h3 {
    font-size: 26px;
    text-align: left;
    font-weight: 300;
    margin-bottom: 3vh;
    font-family: "Montserrat";
}

.sticky-list {
position: sticky;
    top: 115px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

body:has(.sticky-list) {
    overflow-x: visible;
}



.content {
    width: 80%;
    text-align: end;
    padding: 5vh 5% 5vh 20px;
}
.menu-item.active h3 {
    font-weight: 500; /* Makes the font bold for the active item */
    position: relative;
}

.menu-item.active h3::before{
content: "";
position: absolute;
left: -9vw;
top: 50%;
transform: translateY(-50%);
width: 110px;
height: 1px;
background-color: #000;
}


@media only screen and (min-width: 768px) and (max-width: 1024px) 
{
    .hero-mid {
        width: 100%;
        min-height: 30vh;
        height: auto;
    }
    
    .hero-mid-top {
        background:linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/kolacici.jpg');
        background-size: cover;
        background-position: center;
        height: 250px;
        display: flex;
        align-items: end;
        justify-content: center;
    }
    
    .hero-mid-top h1 {
        font-size: 45px;
        font-weight: 400;
        color: #fff;
    }
    
    .container {
        display: flex;

    }
    
    .sidebar {
        width: 30%;
        background-color: #f5f5f5;
            padding:5vh 20px 5vh 5%;
        overflow-y: auto; /* Makes sidebar scrollable */

    }
    
    .menu-item {
        margin-bottom: 20px;
        cursor: pointer;
        position: relative;
    }
    

    
    .menu-item h3 {
        font-size: 26px;
        text-align: left;
        font-weight: 300;
        margin-bottom: 3vh;
    }
    
    .content {
        width: 70%;
        text-align: end;
        padding: 5vh 5% 5vh 20px;
        overflow-y: auto;
        height: 70vh; /* Adjust based on your total viewport height needs */
    }
    .menu-item.active h3 {
        font-weight: 500; /* Makes the font bold for the active item */
    } 

    .sticky-list {
        top: 0;
    }
}

@media (max-width: 768px) 
{
    .hero-mid {
        width: 100%;
        min-height: 90vh;
        height: auto;
    }
    
    .hero-mid-top {
        background:linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/kolacici.jpg');
        background-size: cover;
        background-position: center;
        height: 250px;
        display: flex;
        align-items: end;
        justify-content: center;
    }
    
    .hero-mid-top h1 {
        font-size: 35px;
        text-align: center;
        font-weight: 400;
        color: #fff;
    }
    
    .container {
        display: flex;
        height: auto;
    }
    
    .sidebar {
        text-align: center;
        width: 35%;
        background-color: #f5f5f5;
            padding:5vh 20px 5vh 5%;
        overflow-y: auto; /* Makes sidebar scrollable */
    }
    
    .menu-item {
        margin-bottom: 20px;
        cursor: pointer;
        position: relative;
    }
    
    
    .menu-item h3 {
        font-size: 18px;
        text-align: left;
        font-weight: 300;
        margin-bottom: 3vh;
    }
    
    .content {
        width: 65%;
        text-align: end;
        padding: 5vh 5% 5vh 20px;
        overflow-y: auto;
        height: 70vh; /* Adjust based on your total viewport height needs */
    }
    .menu-item.active h3 {
        font-weight: 500; /* Makes the font bold for the active item */
    } 

      .sticky-list {
        top: 0;
    }
}