/* Custom Shadcn Navbar Styles */
.custom-shadcn-header {
  width: 92%;
  max-width: 1200px;
  background-color: #fff;
  position: fixed;
  top: 15px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 999999;
  border-radius: 100px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, background-color 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
  transform: translateY(-150%);
  opacity: 0;
  pointer-events: none;
}

.custom-shadcn-header.is-scrolled {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  top: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}



.custom-shadcn-nav .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.75rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1023.98px) {
  .custom-shadcn-nav .nav-container {
    padding-left: 1rem;
    padding-right: 1rem;
    justify-content: space-between;
  }

  .custom-shadcn-nav .nav-menu {
    display: none !important;
  }

  .custom-shadcn-nav .nav-right {
    display: flex !important;
    margin-left: auto;
  }

  .custom-shadcn-nav .mobile-menu-toggle-btn {
    display: flex !important;
  }
}

@media (min-width: 1024px) {
  .custom-shadcn-nav .nav-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .custom-shadcn-nav .nav-right {
    display: none !important;
  }

  .custom-shadcn-nav .mobile-menu-toggle-btn {
    display: none !important;
  }

  .custom-shadcn-nav .nav-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .custom-shadcn-nav .nav-menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: clamp(0.15rem, 0.4vw, 0.5rem);
  }
}

.custom-shadcn-nav .nav-left,
.custom-shadcn-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.custom-shadcn-nav .nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.custom-shadcn-nav .nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-shadcn-nav .nav-item {
  position: relative;
}

.custom-shadcn-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem clamp(0.35rem, 0.6vw, 0.75rem);
  font-size: clamp(0.75rem, 0.82vw, 0.875rem);
  font-weight: bold;
  color: #0f172a;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background-color 0.2s, color 0.2s;
  height: 2.25rem;
  white-space: nowrap;
}

.custom-shadcn-nav .nav-link:hover,
.custom-shadcn-nav .nav-link:focus {
  background-color: #f1f5f9;
  color: #0f172a;
}

.custom-shadcn-nav .nav-chevron {
  font-size: 0.6rem;
  margin-left: 0.25rem;
  transition: transform 0.2s;
}

.custom-shadcn-nav .nav-item.has-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

.custom-shadcn-nav .nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.375rem;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px) scale(0.95);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1000000 !important;
}

.custom-shadcn-nav .nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Mega Menu */
.custom-shadcn-nav .mega-menu {
  width: max-content;
  max-width: 500px;
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .custom-shadcn-nav .mega-menu {
    width: 500px;
  }
}

.custom-shadcn-nav .mega-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .custom-shadcn-nav .mega-grid {
    grid-template-columns: 0.75fr 1fr;
  }
}

.custom-shadcn-nav .mega-featured {
  grid-row: span 3;
}

.custom-shadcn-nav .mega-featured > a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to bottom, rgba(241, 245, 249, 0.5), #f1f5f9);
  border-radius: 0.375rem;
  text-decoration: none;
  outline: none;
}

.custom-shadcn-nav .mega-featured > a:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.custom-shadcn-nav .mega-title {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: #0f172a;
}

.custom-shadcn-nav .mega-desc {
  font-size: 0.875rem;
  line-height: 1.25;
  color: #64748b;
  margin: 0;
}

.custom-shadcn-nav .mega-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.custom-shadcn-nav .mega-list-item {
  display: block;
  padding: 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.custom-shadcn-nav .mega-list-item:hover,
.custom-shadcn-nav .mega-list-item:focus {
  background-color: #f1f5f9;
}

.custom-shadcn-nav .item-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.custom-shadcn-nav .item-desc {
  font-size: 0.875rem;
  line-height: 1.375;
  color: #64748b;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right side elements */
.custom-shadcn-nav .nav-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-shadcn-nav .search-icon {
  position: absolute;
  left: 0.625rem;
  font-size: 1rem;
  color: #64748b;
}

.custom-shadcn-nav .search-input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  background-color: #fff;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  font-size: 0.875rem;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-shadcn-nav .search-input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.2);
}

.custom-shadcn-nav .search-input::placeholder {
  color: #94a3b8;
}

.custom-shadcn-nav .nav-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: #0f172a;
  color: #f8fafc;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.custom-shadcn-nav .nav-btn-primary:hover {
  background-color: rgba(15, 23, 42, 0.9);
}

/* Hide menu on smaller screens, rely on slider */
@media (max-width: 1024px) {
  .custom-shadcn-nav .nav-menu,
  .custom-shadcn-nav .nav-search-form,
  .custom-shadcn-nav .nav-btn-primary {
    display: none;
  }
}


/* Simple Dropdown */
.custom-shadcn-nav .simple-dropdown {
  width: max-content;
  min-width: 200px;
  padding: 0.5rem;
}

.custom-shadcn-nav .simple-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.custom-shadcn-nav .simple-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: bold;
  color: #0f172a;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.custom-shadcn-nav .simple-dropdown-item:hover {
  background-color: #f1f5f9;
}


/* TopBar CSS */
.custom-topbar {
  width: 100%;
  background-color: #0066ff;
  color: white;
  font-size: 0.8rem;
  padding: 0.4rem 0;
}
.custom-topbar .topbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.custom-topbar .topbar-text-content {
  display: inline;
}
.custom-topbar .topbar-divider {
  display: inline;
}
.custom-topbar .topbar-left, .custom-topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.custom-topbar .topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}
.custom-topbar .topbar-item:hover {
  opacity: 0.8;
}
.custom-topbar .topbar-icon {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
  font-size: 1rem;
}
.custom-topbar .topbar-icon:hover {
  opacity: 0.8;
}
@media (max-width: 1024px) {
  .custom-topbar .topbar-text-content { display: none; }
  .custom-topbar .topbar-divider { display: none; }
  .custom-topbar .topbar-item { gap: 0; }
  .custom-topbar .topbar-item i { font-size: 1.2rem; }
  .custom-topbar .topbar-icon { font-size: 1.2rem; }
  .custom-topbar .topbar-left, .custom-topbar .topbar-right { flex-direction: row; gap: 1.5rem; align-items: center; justify-content: center; }
  .custom-topbar .topbar-container { flex-direction: row; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
}
