@media (min-width: 1200px) {
    .main-header .nav-item.mega-menu {
        position: static;
    }

    .main-header .navbar .nav-item.mega-menu .dropdown-menu {
        width: 98.2%;
        left: 12px;
    }

    .main-header .navbar .dropdown-menu.fade-down {
        top: 90%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .main-header .navbar .nav-item .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
        margin-top: 0;
        border: none;
        left: -15px;
        border-radius: 15px;
        padding: 15px 12px;
        background: #FFFFFF;
        width: 220px;
        box-shadow: 0 0 40px 5px rgb(0 0 0 / 5%);
    }

    .main-header .navbar .nav-item:hover .dropdown-menu {
        transition: .3s;
        opacity: 1;
        visibility: visible;
        top: 100%;
        transform: rotateX(0deg);
    }

    .megamenu .nav {
        width: 25%;
    }

    .megamenu .tab-content {
        border-left: 1px solid gray;
    }

    .submenu-button {
        display: none;
    }
}

@media (max-width: 1600px) {
    .director-bg {
        width: 350px;
    }

    .main-header .navbar-nav {
        gap: 30px;
    }

    .category-wrapper .product-img {
        width: 160px;
    }
}

@media (max-width: 1399px) {
    .top-header {
        padding: 5px;
    }

    .blog-item .blog-img {
        height: 160px;
    }

    .brand-item {
        gap: 15px;
    }

    .brand-tag-wrapper {
        height: 115px;
    }

    .main-header .navbar-nav {
        gap: 25px;
    }

    .category-nav {
        padding: 0;
    }

    .banner-side-img {
        width: 300px;
        height: 300px;
    }

    .welcome-image {
        max-height: 350px;
    }
}

@media (max-width: 1300px) and (min-width:1200px) {
    .testimonial-overlay {
        width: 665px;
    }

    .testimonial-slider {
        width: 640px;
    }

    .category-wrapper .product-img {
        width: 110px;
    }
}

@media (max-width: 1199px) {
    .submenu-button {
        position: absolute;
        z-index: 99;
        right: 0;
        display: block;
        border-left: 1px solid rgba(223, 229, 237, 0.9);
        height: 46px;
        width: 46px;
        cursor: pointer;
    }

    .submenu-button::before {
        position: absolute;
        top: 19px;
        right: 22px;
        display: block;
        width: 2px;
        height: 8px;
        background: #399E47;
        content: '';
    }

    .submenu-button::after {
        position: absolute;
        top: 22px;
        right: 19px;
        width: 8px;
        height: 2px;
        display: block;
        background: #399E47;
        content: '';
    }

    .checklist-wrapper {
        gap: 2rem;
    }

    .brand-checklist-wrapper {
        gap: 1.2rem;
    }

    .banner {
        height: 100%;
    }
}

@media (max-width: 992px) {
    .certification-section .grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 991px) {
    .welcome-image {
        max-height: none;
    }

}

@media (max-width:830px) {
    .testimonial-overlay {
        width: 677px;
    }

    .testimonial-slider {
        width: 650px;
    }
}

@media (min-width: 992px) {
    .collapse.dont-collapse-sm {
        display: block;
        height: auto !important;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .certification-section .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }

    .gallery-item {
        height: 100%;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4,
    .item-5 {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
    }
}

@media (max-width:767px) {
    .banner {
        height: 100%;
    }

    .banner-img {
        width: 300px;
    }

    .slideshow .item p {
        width: 100% !important;
    }

    .brand-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-btns img {
        height: auto;
    }

    .product-card img {
        height: auto;
    }

    .product-specification-wrapper ul {
        gap: 82px;
    }

    .blog-details .post-img {
        height: auto;
    }

    .banner-side-img {
        top: 47%;
    }

    .brand-tag-wrapper {
        height: auto;
    }

    .brand-checklist-wrapper {
        gap: .5rem;
    }
}

@media (max-width:700px) {
    .testimonial-overlay {
        width: 425px;
    }

    .testimonial-slider {
        width: 400px;
    }

    .testimonial-card .testimonial-desc {
        height: 100%;
    }
}

@media (max-width:575px) {
    .category-wrapper .product-img {
        width: 100%;
    }

    .brand-checklist-wrapper .brand-checklist-item {
        margin-bottom: 0;
    }
}

@media (max-width:538px) {
    .product-specification-wrapper ul {
        gap: 7px;
    }

    .category-nav ul {
        gap: 0;
    }
}

@media (max-width: 480px) {
    .certification-section .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-header {
        flex-direction: column;
        text-align: center;
    }

}

@media (max-width:450px) {
    .director-bg {
        height: 330px;
    }
}

@media (max-width:395px) {

    .testimonial-wrapper .slick-prev,
    .testimonial-wrapper .slick-next {
        display: none;
    }

    .brand-row {
        grid-template-columns: repeat(1, 1fr);
    }

}