@media (max-width: 1199px) {

    .navbar-nav {
        gap: 15px;
    }

  .navbar-toggler {
    top: 0;
    bottom: 0;
    margin-left: 1rem;
}

    .header-bottom {
        display: flex;
        align-items: center;
        flex-direction: row-reverse;
        width: 100%;
        background: var(--black);
        justify-content: space-between;
        padding: 0 3rem;
    }

    .logo-row {
        display: none;
    }


    .header-bottom.header-scroll .logo {
        display: block;
    }

    #main-navbar-collapse {
        position: absolute;
        top: 85px;
        right: 0;
        background-color: var(--green);
        z-index: 100;
        padding: 1rem;
    }

    .nav-item-level-1 > .dropdown-menu {
        padding: 1rem;
    }

    #main-navbar {
        height: 100%;
    }

    .search-wrapper .search-results {
        width: 500px;
        top: 78px;
        right: 0;
        left: auto;
    }

    #main-navbar-collapse .nav-item-level-1.active .dropdown-toggle::after, .despre-noi-2  #main-navbar-collapse .nav-item-level-1:nth-child(1) .nav-link::after {
        content: none;
    }
}

@media (max-width: 799px) {
    #featured_posts_hp_row {
        height: 100%;
    }

    #featured_posts_hp_row .categories-grid {
        height: 100%;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    #featured_posts_hp_row .news-item:first-child {
        max-width: 100%;
    }

    #featured_posts_hp_row .news-item {
            display: flex;
            flex-direction: column-reverse;
            min-height: 250px;
    }

    .bulk-news-hp-row .news-item {
        height: 100%;
    }

    .bulk-news-hp-row .news-item .news-info {
        overflow: hidden;
        padding: 1rem;
        background-color: #ececec;
        margin: 0;
        width: 100%;
    }

    .bulk-news-hp-row .news-item_inner {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .bulk-news-hp-row .news-item .news_image {
        width: 100%;
        background: #f7f7f7;
        overflow: hidden;
        position: relative;
        padding-top: 100%;
    }
    .bulk-news-hp-row .news-item .news_image img {
        object-fit: cover;
        position: absolute;
        top: 0;
        height: 100%;
        width: 100%;
    }
}

@media (max-width: 599px) {

    .bulk-news-hp-row .categories-grid {
        margin-left: 0;
        width: 100%;
    }


    .product-gallery-2 {
        display: flex;
        flex-direction: column;
    }

    .product-gallery-main-image img {
        height: 300px;
    }

    .product-gallery-2 .col-8,
    .product-gallery-2 .col-md-4 {
        max-width: 100%;
    }


    .product-gallery-2 .col-4 .product-gallery-other-images {
        flex-direction: row;
        max-width: 100%;
        margin: 0;
        margin-top: 5px;
    }

    .product-gallery-other-images img {
        width: 95px;
        height: 100%;
        max-height: 95px;
        max-width: 95px;
        object-fit: contain;
        border: 1px solid black;
    }

    .title-area,
    .descript_news {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #main-navbar .search-wrapper {
        width: 150px;
    }

    .header-bottom {
        padding: 0 1rem;
    }

    #main-navbar .search-wrapper::after {
        right: 10px;
    }

    .search-wrapper .search-results ul li {
        display: flex;
    }
    
    .search-wrapper .search-results ul li img {
        width: 50px;
    }
    

    .title-bg {
        margin-left: 0;
    }    

    .slick-dots li {
        width: 15px;
        margin: 0;
    }


}

@media (max-width: 449px) {

    body {
        font-size: 14px;
    }

    a {
        font-size: 16px;
    }

    P {
        font-size: 14px;
    }

    .nav-link {
        padding: 0.5rem 0.5rem;
    }
    
    .logo {
        max-height: 25px;
    }

  #main-navbar {
      padding: 0;
  }

  .navbar-brand {
    margin-left: 1rem;
}

#main-navbar-collapse {
    top: 67px;
}

.search-wrapper .search-results ul li {
    display: flex;
}

.search-wrapper .search-results ul li img {
    width: 50px;
}



    #featured_posts_hp_row .news-item {
        min-height: 200px;
    }

    #featured_posts_hp_row .news-info {
        padding: 5px 10px;
    }

    .header-bottom {
        padding: 0 5px;
    }

    .product-gallery-2 .col-4 .product-gallery-other-images {
        overflow-y: visible;
    }


    .product-gallery-other-images img {
        width: 80px;
    }

    .form-control {
        font-size: 14px;
    }
    
    #main-navbar .search-wrapper::after {
        font-size: 19px;
        right: 17px;
        top: 20px;
    }

    .search-wrapper .search-results {
        top: 67px !important;
    }

    .news-info_details {
        flex-wrap: wrap;
        gap: 10px;
    }

    .news-info_details .track-container {
        max-width: 100%;
        flex: 0 0 100%;
    }

    #featured_posts_hp_row .col-lg-12,
    #featured_posts_hp_row .categories-grid {
        overflow: visible;
    }
    
    .section-1-home .slick-prev:before,
    .section-1-home .slick-next:before {
        content: '\f054';
        font-family: 'FontAwesome';
        color: var(--yellow);
        font-size: 28px;
    }

    .section-1-home .slick-prev:before {
        content: '\f053';
    }

    #featured_posts_hp_row {
        overflow: visible;
    }

    .slick-prev {
        left: 0;
        z-index: 1;
    }

    .slick-next {
        right: 0;
        z-index: 1;
    }
}