@media (min-width: 768px) and (max-width: 991px) {
    /* Navbar container adjustments */
    nav.navbar.bootsnav {
        position: relative;
    }

    /* Header and brand positioning */
    nav.navbar.bootsnav .navbar-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse; /* This will swap positions */
    }
    
    /* Hamburger menu styling */
    .navbar-light .navbar-toggler {
        border-color: #b0b435;
        color: #010101;
        border-radius: 0px;
        padding: 6px 10px;
        margin-left: 15px;
        order: -1; /* Move to the left */
    }
    
    /* Hamburger icon */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
        width: 1.5em;
        height: 1.5em;
    }
    
    /* Menu positioning */
    nav.navbar.bootsnav .navbar-collapse {
        position: absolute;
        left: 0;
        top: 100%;
        width: 250px;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    /* Menu items styling */
    nav.navbar.bootsnav ul.nav > li > a {
        padding: 10px 15px;
        display: block;
    }
    
    /* Brand logo/text positioning */
    .navbar-brand {
        margin-right: 0;
        padding: 15px 0;
    }
    
    /* Dropdown menu adjustments */
    nav.navbar.bootsnav ul.nav li.dropdown ul.dropdown-menu {
        position: static !important;
        background: #f8f9fa;
        box-shadow: none;
        padding-left: 15px;
    }
    
    /* Hide other elements */
    .custom-select-box, .attr-nav {
        display: none;
    }
    
    /* Megamenu adjustments */
    nav.bootsnav .megamenu-content .col-menu {
        flex: 0 0 100%;
        max-width: 100%;
    }
}@media (min-width: 768px) and (max-width: 991px) {
    /* Navbar container adjustments */
    nav.navbar.bootsnav {
        position: relative;
    }
    
    /* Header and brand positioning */
    nav.navbar.bootsnav .navbar-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse; /* This will swap positions */
    }
    
    /* Hamburger menu styling */
    .navbar-light .navbar-toggler {
        border-color: #b0b435;
        color: #010101;
        border-radius: 0px;
        padding: 6px 10px;
        margin-left: 15px;
        order: -1; /* Move to the left */
    }
    
    /* Hamburger icon */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
        width: 1.5em;
        height: 1.5em;
    }
    
    /* Menu positioning */
    nav.navbar.bootsnav .navbar-collapse {
        position: absolute;
        left: 0;
        top: 100%;
        width: 250px;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    /* Menu items styling */@media (min-width: 768px) and (max-width: 991px) {
    /* Navbar container adjustments */
    nav.navbar.bootsnav {
        position: relative;
    }
    
    /* Header and brand positioning */
    nav.navbar.bootsnav .navbar-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse; /* This will swap positions */
    }
    
    /* Hamburger menu styling */
    .navbar-light .navbar-toggler {
        border-color: #b0b435;
        color: #010101;
        border-radius: 0px;
        padding: 6px 10px;
        margin-left: 15px;
        order: -1; /* Move to the left */
    }
    
    /* Hamburger icon */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
        width: 1.5em;
        height: 1.5em;
    }
    
    /* Menu positioning */
    nav.navbar.bootsnav .navbar-collapse {
        position: absolute;
        left: 0;
        top: 100%;
        width: 250px;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    /* Menu items styling */
    nav.navbar.bootsnav ul.nav > li > a {
        padding: 10px 15px;
        display: block;
    }
    
    /* Brand logo/text positioning */
    .navbar-brand {
        margin-right: 0;
        padding: 15px 0;
    }
    
    /* Dropdown menu adjustments */
    nav.navbar.bootsnav ul.nav li.dropdown ul.dropdown-menu {
        position: static !important;
        background: #f8f9fa;
        box-shadow: none;
        padding-left: 15px;
    }
    
    /* Hide other elements */
    .custom-select-box, .attr-nav {
        display: none;
    }
    
    /* Megamenu adjustments */
    nav.bootsnav .megamenu-content .col-menu {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
    nav.navbar.bootsnav ul.nav > li > a {
        padding: 10px 15px;
        display: block;
    }
    
    /* Brand logo/text positioning */
    .navbar-brand {
        margin-right: 0;
        padding: 15px 0;
    }
    
    /* Dropdown menu adjustments */
    nav.navbar.bootsnav ul.nav li.dropdown ul.dropdown-menu {
        position: static !important;
        background: #f8f9fa;
        box-shadow: none;
        padding-left: 15px;
    }
    
    /* Hide other elements */
    .custom-select-box, .attr-nav {
        display: none;
    }
    
    /* Megamenu adjustments */
    nav.bootsnav .megamenu-content .col-menu {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
*, ::after, ::before {
    box-sizing: border-box;
}


@media only screen and (max-width:768px) {
        .navbar-container {
    display: flex
;
    justify-content: space-between;
    flex-direction: column;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.navbar-header{
    width: 100%;
}
.section-title {
    font-size: 27px;
    font-weight: 600;
    color: #333;
    position: relative;
    margin: 0 auto 2rem auto;
    text-align: center;
    display: inline-block;
    padding-bottom: 10px;
    padding-left: 5px;
}
.top-category-card img {
    max-height: 140px;
    object-fit: contain;
    margin-left: 106px;
}
.top-categories-title {
    font-size: 28px;
    font-weight: bold;
    color: #1a1a1a;
    position: relative;
    text-align: center;
    display: inline-block;
    padding-bottom: 44px;
    margin-left: 85px;
}
.sliderwrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    width: 100%;
    position: relative;
    background-color: rgb(4, 1, 16); /* Added a background for better visibility */
}
}
@media screen and (max-width: 1250px) {
    #pdtViewer img {
        padding: 40px 0;
        margin-left: 4px;
       
    }
    /* styles.css */
}
@media (max-width: 768px) {
  .crop-heading {
    font-size: 26px;
    margin-top: 30px;
  }

  .pdf-iframe {
    height: 500px; /* Reduce height for tablets */
  }
  .navbar-header{
    width: 18%;
}
}

@media (max-width: 480px) {
  .crop-heading {
    font-size: 22px;
    margin-top: 20px;
  }

  .pdf-iframe {
    width: 100%;
    height: 400px; /* Reduce height for smaller phones */
    margin: 0 auto;
  }
 .navbar-header{
    width: 100%;
}
.video-caroousel-container{
width: 80%;
margin-left: auto;
margin-right: auto  ;
}
.video-caroousel-container h2{
/* display: none; */
font-size: 18px !important;
}
.carousel-item video{
    width: 50%;
}
.video-wrapper{
    width: 50%;
}
.card-container {
    display: grid
;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 100px;
    margin-left: 24px;
}
}
@media (min-width: 992px) and (max-width:1250px) {
    .nav.navbar.bootsnav ul.nav>li>a{
        font-size: 9px;
    }
    .top-category-card h6 {
    font-weight: 600;
    font-size: 0.95rem;
    align-content: center;
}
.about-video-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px; /* Adjust as needed */
  margin: 20px auto;
  padding: 10px;
  box-sizing: border-box;
}

.about-video-carousel video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .category-card img.img-fluid.mb-3 {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    height: auto !important; /* Override fixed height */
    max-width: 80% !important; /* Optional: scale down on mobile */
  }
}
.about-video-carousel {
    display: flex
;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 10px;
    box-sizing: border-box;
}
.biostimulants-view-more-btn {
    background-color: #007bff;
    color: white;
    padding: 6px 12px;
    margin-left: 249px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    /* margin-bottom: -7px; */
    /* margin-top: 8%; */
    column-gap: 15%;
    transition: background-color 0.3s ease;
}

}
/* Adjust carousel item to ensure visibility on mobile */
@media (max-width: 767.98px) {
  .carousel-item {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
  }

  .carousel-item .cert-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .cert-image {
    max-height: 200px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
  }

  .cert-heading {
    font-size: 1.8rem;
  }

  .cert-subheading {
    font-size: 0.95rem;
  }

  .cert-card {
    padding: 10px;
  }

  .cert-body h5 {
    font-size: 1rem;
  }

  .cert-body p {
    font-size: 0.85rem;
  }
  /* Show dropdown when parent has .open (for mobile view) */


}
/* ========== Desktop (hover) ========== */
@media (min-width: 992px) {
  .product-dropdown:hover .dropdown-menu,
  .crop-dropdown:hover .dropdown-menu {
    display: block;
    position: absolute;
    animation: fadeIn 0.3s ease;
  }
}

/* ========== Mobile (click/toggle) ========== */
@media (max-width: 991px) {
  .product-dropdown .dropdown-menu,
  .crop-dropdown .dropdown-menu {
    display: none; /* hidden by default */
    position: relative;
    box-shadow: none;
    margin-left: 15px;
  }

  .product-dropdown.open .dropdown-menu,
  .crop-dropdown.open .dropdown-menu {
    display: block; /* show when .open is added by JS */
  }
}

/* Active state */
.product-link.active,
.crop-link.active {
  color: #72e605 !important;
  background: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .product-dropdown:hover .dropdown-menu,
  .crop-dropdown:hover .dropdown-menu {
    display: block;
    position: absolute;
    animation: fadeIn 0.3s ease;
  }
}
