/* Add this to your CSS */
html,
body {
  overflow-x: hidden !important;
}

.navbar-nav {
  white-space: nowrap;
  overflow: visible !important;
}
.navbar-nav {
  margin: 0 !important;
}
.dropdown-menu {
  position: absolute;
  z-index: 1000 !important;
  display: none;
  float: left;
  min-width: 220px;
  padding: 0;
  margin: 2px 0 0;
  font-size: 14px;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
} /* Scrollable dropdown with hidden scrollbar */
.dropdown-menu {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
} /* Hide scrollbar but keep functionality */
.dropdown-menu::-webkit-scrollbar {
  width: 0;
  background: transparent;
}
.dropdown-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
} /* Show scrollbar on hover */
.dropdown-menu:hover::-webkit-scrollbar {
  width: 6px;
}
.dropdown-menu:hover::-webkit-scrollbar-track {
  background: #f5f5f5;
}
.dropdown-menu:hover::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.dropdown-menu > li > a {
  display: block;
  padding: 10px 20px;
  max-width: 200px;
  color: #333;
  white-space: normal; /* ✅ allow wrapping */
  word-break: break-word; /* ✅ break long words if needed */
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.2s;
}
.dropdown-menu > li:last-child > a {
  border-bottom: none;
}
.dropdown-menu > li > a:hover {
  background-color: #f8f9fa;
  color: #007bff; /* padding-left: 20px; */
}
.dropdown-menu > li > a {
  text-align: left;
} /* Default caret */
.dropdown-toggle .caret {
  display: inline-block;
  transition: transform 0.3s ease;
} /* Rotated caret when open */
.dropdown.open .caret {
  transform: rotate(180deg);
} /* Make sure parent containers don't hide overflow */
.navbar,
.navbar-collapse,
.container {
  overflow: visible !important;
}

/* =========================== */
/* GENERAL PRODUCT & HERO STYLES */
/* =========================== */

/* Product grid */
.custom_d_flex {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 60px;
  width: 100%;
  margin: 20px 0;
}

.custom_div_flex {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s ease;
  border: 1px solid #eee;
}

.custom_div_flex:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.custome_image_class {
  width: 100%;
  /* height: 360px; */
  border-radius: 8px;
  margin-bottom: 10px;
}

.custom_div_flex a:last-child {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-top: 8px;
  text-decoration: none;
}

.custom_div_flex a:last-child:hover {
  color: #204c37;
}

/* Hero Banner */
.hero-banner {
  background-color: #204c37;
  padding: 40px 20px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
  box-sizing: border-box;
}

.hero-banner h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-banner h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-banner p {
  font-size: 1.4rem;
  line-height: 1.6;
  max-width: 850px;
  margin: 0 auto;
}

/* =========================== */
/* MOBILE / TABLET STYLES <=768px */
/* =========================== */
@media (max-width: 768px) {
  .nets {
    display: none !important;
  }
  /* Product grid */
  .custom_d_flex {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
    gap: 15px;
  }

  .custome_image_class {
    height: 200px;
  }

  .custom_div_flex a:last-child {
    font-size: 1rem;
  }

  /* Hero banner */
  .hero-banner {
    padding: 30px 15px;
  }

  .hero-banner h1 {
    font-size: 1.8rem !important;
  }

  .hero-banner h2 {
    font-size: 1.5rem !important;
  }

  .hero-banner p {
    font-size: 1.2rem !important;
  }

  /* Footer */
  #footer {
    padding-top: 20px !important;
    text-align: center;
  }

  #menu_footer > ul {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px !important;
    padding: 0 20px;
  }

  #menu_footer > ul > li {
    flex: 1 1 30%;
    min-width: 180px;
    text-align: center;
  }

  #menu_footer b {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 14px;
    padding-bottom: 4px;
    border-bottom: 2px solid #204c37;
  }

  #menu_footer a {
    font-size: 1.3rem;
    line-height: 1.8;
  }

  /* DOCUMENTOS section */
  .documentos-columns {
    width: 100%;
    margin-top: 20px;
  }

  .documentos-columns .row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .documentos-columns .col-sm-6 {
    width: 100%;
    text-align: center;
  }

  .documentos-columns li {
    margin-bottom: 8px;
  }

  /* Footer logo */
  .assinatura img {
    width: 160px;
    display: block;
    margin: 30px auto 0;
  }

  #footer .assinatura {
    padding-top: 0 !important;
  }
}

/* =========================== */
/* SMALL PHONES <=480px */
/* =========================== */
@media (max-width: 480px) {
  #menu_footer b {
    font-size: 1.4rem;
    border-bottom: 2px solid #204c37;
    padding-bottom: 3px;
  }

  #menu_footer a {
    font-size: 1.2rem;
  }

  .assinatura img {
    width: 130px;
  }

  .custom_d_flex {
    /* grid-template-columns: 1fr; */
    padding: 15px;
    gap: 10px;
  }

  .custome_image_class {
    height: 180px;
  }

  .custom_div_flex a:last-child {
    font-size: 0.95rem;
  }

  .hero-banner h1 {
    font-size: 1.8rem;
  }

  .hero-banner h2 {
    font-size: 1.5rem;
  }

  .hero-banner p {
    font-size: 1rem;
  }
}
