/* ===== PREMIUM HEADER STYLES ===== */

/* Navbar Container */
.navbar {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-family: "Poppins", sans-serif;
  padding: 12px 0;
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

/* Logo Styling */
.navbar-brand {
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  height: 40px;
  transition: all 0.3s ease;
}

/* Navigation Links */
.navbar-nav .nav-link {
  color: #1f2937 !important;
  font-weight: 600;
  padding: 10px 18px;
  font-size: 15px;
  text-transform: capitalize;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
}

/* Gradient Underline Effect */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #d946ef);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-link:hover {
  color: #2563eb !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
  color: #2563eb !important;
  font-weight: 700;
}

/* Dropdown Styling */
@media (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu {
  background: white;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 8px;
  margin-top: 8px;
}

.dropdown-item {
  color: #1f2937;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  transform: translateX(5px);
}

/* Mobile Toggler */
.navbar-toggler {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  border-color: #2563eb;
  background-color: rgba(37, 99, 235, 0.05);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.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%2831, 41, 55, 1%29' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  width: 24px;
  height: 24px;
}

/* Close Button */
.navbar-toggler-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2rem;
  display: none;
  color: #1f2937;
  background: none;
  border: none;
  z-index: 1051;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.navbar-toggler-close:hover {
  color: #ef4444;
  transform: rotate(90deg);
}

.navbar-toggler-close.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Google Translate Styling */
#google_translate_element {
  display: inline-block;
}

#google_translate_element select {
  padding: 6px 12px;
  font-size: 0.875rem;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background: white;
  color: #1f2937;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

#google_translate_element select:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

#google_translate_element select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.google-translate-icon {
  color: #2563eb;
  margin-right: 6px;
}

/* Hide Google branding and 'Powered by' text */
.goog-logo-link,
.goog-te-gadget span,
.goog-te-gadget a {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important; /* Hide text color */
  font-size: 0 !important; /* Hide text size */
  line-height: 0 !important; /* Hide line height */
}

/* Restore styles for the dropdown specifically */
.goog-te-gadget .goog-te-combo {
  color: #1f2937 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 0.875rem !important; /* Restore font size */
  line-height: 1.5 !important; /* Restore line height */
  display: inline-block !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-brand img {
    height: 32px;
  }

  .navbar-collapse {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
  }

  .navbar-nav .nav-link:hover {
    background-color: rgba(37, 99, 235, 0.05);
  }

  .navbar-nav .nav-link::after {
    display: none;
  }
}

@media (min-width: 992px) {
  .shownavbar {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .shownavbarss {
    display: none;
  }
}

/* Scroll Effect */
.navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled .navbar-brand img {
  height: 35px;
}
