body {
  font-family: 'Inter', sans-serif;
}

/* Navbar base */
.navbar {
  background-color: #217BD1 !important;
  font-family: "Inter", sans-serif;
  min-height: 60px;
}

/* White line divider after logo */
.logo-with-divider {
  padding-right: 1rem;
  margin-right: 1rem;
  border-right: 3px solid #ffffff; /* white line */
}

/*Navbar*/

/* Logo positioning */
.navbar-brand {
  margin-right: 1rem;   /* space between logo and nav links */
  margin-left: 0;       /* flush to the left edge */
}

.navbar-logo {
  max-height: 30px;
  width: auto;
  object-fit: contain;
  margin-left: 0;       /* remove negative margin */
}

/* Nav links (desktop) */
.navbar .nav-item {
  margin: 0 20px;       /* spacing between links */
  color: #ffffff; 
  font-weight: bold; 
  letter-spacing: 1px; 
  transition: color 0.3s ease;
}

/* Mobile dropdown */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0 0 6px 6px;
  }
  
    .navbar{
        
        justify-content: center;
    }
    
    .navbar .navbar-brand {
    margin: 0 auto;          /* push to center */
    justify-content: center; /* centers flex items inside */
  }

  .logo-with-divider {
    padding-right: 0;
    margin-right: 0;
    border-right: none;  /* remove white line */
  }

  .navbar-collapse .nav-link {
    color: #217BD1 !important;
    font-weight: 600;
    display: block;
    padding: 0.5rem 0;
  }

  .navbar-collapse .nav-link i {
    font-size: 1.2rem;
  }

  .navbar-collapse .navbar-nav:last-child {
    border-top: 1px solid #ddd;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  /* Override nav-item spacing on mobile */
  .navbar .nav-item {
    margin: 0;  /* no side spacing in dropdown */
  }
}



/* About Section */
#about h3 {
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-size: 3rem;
  font-weight: bold;
  color: #217BD1;
}


#about p {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px; 
  margin-left: auto;
  margin-right: auto;
}


/* ===========================
   CONTACT SECTION STYLING
   =========================== */
#contact {
  background-color: #217BD1; /* Blue background */
  color: white;
  padding: 3rem 0;
}

#contact .contact-top {
  display: block;
  font-size: 3rem;
  font-weight: bold;
  font-family: 'Anton', sans-serif;
  letter-spacing: 1px;
  color: white;
  margin-bottom: 1rem;
}

/* Intro paragraph on desktop */
#contact .col-lg-6 > p {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  line-height: 1.25;
  max-width: 90%;
  padding-left: 100px; /* desktop offset */
  margin-top: -20px;
}

/* Contact info on desktop */
#contact .contact-info {
  padding-left: 150px; /* desktop offset */
}

#contact .contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
  text-align: left;
}

#contact .contact-info i {
  font-size: 1.2rem;
  margin-right: 10px;
  color: white;
}

/* Form inputs */
#contact form input,
#contact form textarea {
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
}

/* ===========================
   MOBILE RESPONSIVE FIX
   =========================== */
@media (max-width: 768px) {


  #contact .contact-top{
    text-align: center;

  }
  #contact .col-lg-6 > p {
    padding-left: 0;
    text-align: center;  /* center text */
  }

  #contact .contact-info {
    padding-left: 0;
    text-align: center;  /* center block */
  }
}


    /* Footer */
      footer {
        font-size: 0.9rem;
          letter-spacing: 0.5px;
}

      footer img {
        max-width: 150px;
          height: auto;
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
}

#hero img {
  max-width: 900px; /* big logo */
  width: 85%;
  height: auto;
}

#hero .hero-tagline {
  font-size: 1.4rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 1.5rem auto;
}

#hero .hero-tagline span.red {
  color: #E92E0F; /* Medical */
  font-weight: 700;
}
#hero .hero-tagline span.green {
  color: #70C281; /* Agricultural */
  font-weight: 700;
}

#hero .btn {
  background-color: #fff;
  border: 2px solid #217BD1;
  padding: 12px 30px;
  font-weight: bold;
  border-radius: 30px;
  color: #217BD1;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
#hero .btn:hover {
  background-color: #217BD1;
  color: #fff;
}


/* Partners Section */

.partners-section {
  background-color: #EDF9FF;
  padding: 40px 0;
}

#partners h3{
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-size: 5rem;
  font-weight: bold;
  color: #217BD1;
}

.partners-heading {
  font-size: 3.8rem;
  letter-spacing: -6px;
  font-weight: 700;
  color: #217BD1;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

@media(max-width: 991px){
    
    #partners h3 {
        font-size: 3.5rem;
    }
    .partner-logo{
        margin-top:-15px;
    }
    
}

/* Partner Logos */
.partner-logo {
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: -15px;
}

.partner-logo:hover {
  transform: scale(1.1);
}


/* Layout */
.product-section {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
  margin-bottom: 4rem;
  max-width: 1400px;
  padding: 0 2rem;
  width: 100%;
}

/* Sidebar (desktop default) */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: white;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 6px;
  height: fit-content;
}

.sidebar-title {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar ul li {
  margin: 0; /* reset old margin */
  border-bottom: 1px solid #ddd;
}
.sidebar ul li:last-child{
  border-bottom:none;

}
.sidebar ul li a {
  display: block;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.sidebar ul li a:hover {
  background: #f5f5f5;
  color: #217BD1;
}

.sidebar ul li a.active {
  color: #217BD1;
  font-weight: 600;
  background: none;
}


/* Toggle bar (mobile only) */
.sidebar-toggle-bar {
  display: none;
  justify-content: space-between;
  align-items: center;
  background: #217BD1;
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  margin-bottom: 0;
  cursor: pointer;
}
.sidebar-label {
  font-size: 1rem;
  font-weight: 600;
}

/* Hide label when dropdown is open */
.sidebar-toggle-bar.active .sidebar-label {
  display: none;
}
.hamburger {
  font-size: 1.2rem;
}

/* Products grid */
.products-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* Product Card */
.product-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  background: #fff;
}
.img-wrapper {
  overflow: hidden;
}
.img-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.img-wrapper:hover img {
  transform: scale(1.08);
}
.card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body .btn {
  display: inline-block;
  text-align: center;
  padding: 0.6rem;
  background: #217BD1;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  margin-top: auto;      /* pushes it to the bottom of the card */
  align-self: center;    /* centers it horizontally */
  width: 90%;
  max-width: 400px;
}
.card-body .btn:hover {
  background: #fff;
  color: #217BD1;
  border: 1px solid #217BD1;
}

/* Responsive behavior */
@media (max-width: 900px) {
  .product-section {
    flex-direction: column;
  }

  /* Sidebar becomes dropdown */
  .sidebar {
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 0;
    width: 100%;


      /* animation states */
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.4s ease, opacity 0.3s ease;
  }
  .sidebar.open {
    max-height: 600px; /* adjust if menu is taller */
  opacity: 1;
}


@keyframes slideDown {
    from {
      max-height: 0;
      opacity: 0;
    }
    to {
      max-height: 500px; /* big enough to fit menu */
      opacity: 1;
    }
  }
  .sidebar-title {
    display: none;
  }
  /* Show toggle bar */
  .sidebar-toggle-bar {
    display: flex;
    width: 100%;
    background: #217BD1;
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
  }
}


.card-title{
  text-align: center;
}
.card-text{
  text-align: center;
}