/* Body offset for fixed top sections */
body {
  padding-top: 120px;
}

/* Top Bar */
.top-bar {
  background-color: #161c52;
  color: white;
  padding: 12px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1040;
}

.logo-text {
  font-size: 30px;
  font-weight: 700;
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  padding-right: 9px;
  margin-right: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.logo-subtext {
  font-size: 9px;
  line-height: 1.1;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}



/* Button */
.quote-btn {
  border: 1px solid #f9b233;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  background: #f9b233;
  white-space: nowrap;
}

/* Main Navbar */
.main-nav {
  background-color: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin-top: 55px;
}

.nav-link {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: black !important;
  padding: 16px 18px !important;
}

.nav-link:hover,
.nav-item {
  color: #f9b233 !important;
}

.dropdown-menu a:hover {
  color: #000 !important;
}

/* Dropdown Menu */
.dropdown-menu {
  background: #fff;
  border-radius: 0;
  padding: 1.2rem 1rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  min-width: 1000px;
  border-top: 4px solid #f9b233;
  border: none;
  margin-top: 0;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
}

.dropdown-menu h5,
.dropdown-menu .fw-bold {
  font-size: 14px;
  text-transform: uppercase;
  color: #161c52;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.dropdown-item {
  padding: 10px 10px;
  color: #333;
  font-size: 14px;
  position: relative;
  transition: all 0.2s ease-in-out;
  font-weight: 600;
  text-transform: uppercase;
}

.dropdown-item::after {
  content: "›";
  position: absolute;
  right: 10px;
  opacity: 0;
  transition: 0.3s ease;
}

.dropdown-item:hover {
  background-color: #f9b233;
  color: white;
}

.dropdown-item:hover::after {
  opacity: 1;
  right: 6px;
}

/* Optional animation */
.dropdown-menu {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Controls */
.form-control {
  font-size: 14px;
  padding: 10px;
}

.btn-warning {
  background-color: #f9b233;
  border: none;
}

/* Navbar Fixed */
.fixed-top {
  z-index: 1030;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Responsive CSS */
@media (max-width: 767.98px) {
  .main-nav {
    margin-top: 105px;
    border-top: none;
  }

  .navbar-nav {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 1rem;
  }

  .nav-link {
    padding: 10px 0 !important;
    font-size: 14px;
    width: 100%;
  }

  .dropdown-menu {
    padding: 1.5rem 1rem;
    min-width: 100% !important;
    position: static !important;
    box-shadow: none !important;
    border-radius: 0;
  }

  .dropdown-menu h5,
  .dropdown-menu .fw-bold {
    font-size: 1.1rem;
    border-bottom: 1px solid #ddd;
  }

  .dropdown-item {
    padding-left: 0 !important;
    font-size: 14px;
  }

  .dropdown-item::after {
    display: none;
  }

  .navbar-toggler {
    border: none;
    padding: 0.5rem;
  }
}
