.d4c-profile {
  position: relative;
  cursor: pointer;
}

.profile-toggle {
  color: #fff;
  font-weight: 500;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: 40px;
  width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 999;
}

.profile-dropdown.active {
  display: block;
}

.profile-header {
  display: flex;
  align-items: center;
  padding: 12px 9px 7px 14px;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid orange;
  display: flex;
  align-items: center;
  justify-content: center;
  color: orange;
  font-size: 18px;
}

.profile-info {
  margin-left: 10px;
}

.profile-divider {
  height: 1px;
  background: #eee;
  margin: 5px 0;
}

.profile-item {
  padding: 10px;
  cursor: pointer;
  color: red;
}

.profile-item:hover {
  background: #f5f5f5;
}
.log-color-white {
  color: #fff;
}
.mobile-menu-css {
  background: linear-gradient(145deg, #001045, #0034c2, #0050ff);
  border-radius: 15px 15px 0 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  text-align: left;
}

/* Light overlay effect */
.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
  pointer-events: none;
}

/* Close button */
.mobile-menu-close {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.9;
}

/* Content wrapper */
.mobile-menu-content {
  margin-left: 20px;
  z-index: 2;
}

/* Logo */
.mobile-menu-logo {
  max-height: 65px;
  width: auto;
  margin-bottom: 8px;
}

/* Social icons */
.social-icon {
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

/* Main Category Body */
#categoryBody {
  background: #f9fafb;
  padding: 10px 12px;
  overflow-y: auto;
}

/* Category List Item */
.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid #e7e9ed;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* On Hover */
.category-item:hover {
  background-color: #f1f5ff;
  border-color: #d6e0ff;
  transform: translateY(-1px);
}

/* Category Text */
.category-text {
  font-size: 15px;
  font-weight: 500;
  color: #212529;
  text-align: left;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Arrow Section */
.category-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 14px;
  width: 20px;
}

/* On Hover Arrow Motion */
.category-item:hover .category-arrow {
  color: #0d6efd;
  transform: translateX(3px);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.gradient-header {
  background: linear-gradient(135deg, #001045, #002b9c);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.mobile-menu-body {
  padding: 14px 16px;
  overflow-y: auto;
  height: calc(100% - 55px);
  background: #f9fbfd;
}

.mobile-menu-body ul li {
  margin-bottom: 6px;
}

.mobile-menu-body ul li a {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.mobile-menu-body ul li a:hover {
  background: #eef7ff;
  transform: translateX(2px);
}

.category-item {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: #fff;
  border: 1px solid #e5e5e5;
  font-size: 15px;
  color: #212529;
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-item:hover {
  background: #f1f9ff;
  border-color: #009dff;
}

.profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  color: #fff;
  font-weight: bold;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Container Body */
#itemListBody {
  background-color: #f5f6f8;
  padding: 8px 0;
  overflow-y: auto;
}

/* Section Card */
.category-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin: 10px 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Section Header */
.section-header {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  padding: 8px 12px;
  border-bottom: 1px solid #e9ecef;
}

/* Section Body */
.section-body {
  padding: 4px 12px;
}

/* Item Link */
.item-link {
  display: block;
  padding: 10px 0;
  color: #212529;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #f1f1f1;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}

.item-link:last-child {
  border-bottom: none;
}

.item-link:hover {
  color: #0d6efd;
  padding-left: 4px;
}

/* Spinner area */
.spinner-border {
  width: 1.5rem;
  height: 1.5rem;
}

/* Logo visibility control */
.logo-white {
  display: block;
}

.logo-color {
  display: none;
}

/* When header has white background (default state) */
.header-white .logo-white {
  display: block;
  width: 140px;
}

.header-white .logo-color {
  display: none;
}

/* When header changes to colored/dark background (scrolled state) */
.nav-header.menu-fixed .logo-white {
  display: none;
}

.nav-header.menu-fixed .logo-color {
  display: block;
}
.mobile-menu-body ul {
  padding: 0;
  margin: 0;
}

.menu-item-mobile {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  text-align: left;
}

.menu-item-mobile a {
  display: flex;
  align-items: center;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 15px;
  border-left: 5px solid transparent;
  transition: all 0.3s ease;
  font-size: 15px;
  justify-content: flex-start;
}

.menu-item-mobile a .category-arrow {
  margin-left: auto;
  color: #777;
  transition: color 0.3s ease;
}

.menu-item-mobile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.menu-item-mobile:hover a {
  border-left: 5px solid #0044ff;
  color: #0044ff;
  background: #eef3ff;
}

/* Two Button Section */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 150px;
  max-width: 220px;
}

.menu-btn .category-arrow {
  margin-left: 8px;
  color: #fff;
  font-size: 14px;
}

.login-btn {
  background: linear-gradient(90deg, #0034c2, #0050ff);
  color: #fff;
  border-left: 5px solid #001f80;
}

.login-btn:hover {
  background: linear-gradient(90deg, #002b90, #0044ff);
  transform: translateY(-2px);
}

.review-btn {
  background: linear-gradient(90deg, #ffb300, #ff7700);
  color: #fff;
  border-left: 5px solid #ff9500;
}

.review-btn:hover {
  background: linear-gradient(90deg, #ff9500, #ff5000);
  transform: translateY(-2px);
}

.social-icon {
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
  color: #ffeb3b !important;
}
@media (max-width: 767px) {
  #key {
    font-size: 15px !important;
    height: 40px !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    border: 1px solid #c7def5 !important;
    background-color: #fff;
  }

  #key:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
    outline: none;
  }

  /* Autocomplete dropdown */
  .ui-autocomplete {
    width: calc(100% - 16px) !important;
    max-height: 260px;
    overflow-y: auto;
    border-radius: 14px;
    padding: 6px 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 1050 !important;
    left: 10px !important;
  }

  .ui-menu-item {
    padding: 8px 12px !important;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .ui-menu-item-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .ui-state-active {
    background: #eff6ff !important;
    color: #1e40af !important;
    border-radius: 8px;
  }

  .right-text {
    font-size: 11px;
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: capitalize;
    white-space: nowrap;
  }
}

.text1 {
  font-weight: bold;
  color: blue;
  padding-right: 15px;
}
.new-nav-bar-section {
  flex: 1;
  min-width: 220px;
}

.new-nav-bar-section h4 {
  font-size: 15px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  color: #1a4ed8;
  font-weight: 600;
  border-bottom: 1px solid #e0e7ff;
  position: relative;
}

.new-nav-bar-section h4::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #1a4ed8;
}

.new-nav-bar-section ul {
  list-style: none;
  padding: 0;
}

.herf-color-remove {
  color: #6f6f6f;
}

.new-nav-bar-section a:hover {
  color: #1a4ed8;
  cursor: pointer;
  transform: translateX(5px);
}

.new-nav-bar-section li {
  padding: 4px 0;
  line-height: 20px;
  color: #555;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.new-nav-bar-section li::before {
  content: "→";
  margin-right: 8px;
  color: #1a4ed8;
  font-size: 12px;
  opacity: 0;
  transition: all 0.2s ease;
}

.new-nav-bar-section li:hover {
  color: #1a4ed8;
  cursor: pointer;
  transform: translateX(5px);
}

.new-nav-bar-section li:hover::before {
  opacity: 1;
}

/* ================= BASE HEADER STYLES ================= */
.d4c-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, rgb(26 26 46 / 24%) 100%);
  backdrop-filter: blur(1px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.d4c-header.scrolled {
  background: rgb(14 14 14 / 66%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.d4c-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* TOP BAR */
.d4c-top {
  padding: 6px 0;
  /*  border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
}

.d4c-top .d4c-container {
  gap: 24px;
}

.d4c-logo img {
  height: 45px;
  width: auto;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.d4c-logo:hover img {
  transform: scale(1.05);
}

/* SEARCH */
.d4c-search {
  flex: 1;
  max-width: 750px;
  position: relative;
}

.d4c-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 16px;
  z-index: 1;
  transition: color 0.3s ease;
}

.d4c-search input {
  width: 100%;
  /* padding: 14px 20px 14px 48px; */
  padding: 8px 3px 7px 39px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.d4c-search input::placeholder {
  color: #666;
  font-weight: normal;
}

.d4c-search input:focus {
  outline: none;
  border-color: #f47b20;
  background: white;
  box-shadow: 0 6px 30px rgba(244, 123, 32, 0.25);
}

.d4c-search input:focus + i {
  color: #f47b20;
}

/* RIGHT SECTION */
.d4c-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.d4c-social {
  display: flex;
  gap: 0px;
  padding-right: 0px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.d4c-social a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.d4c-social a:hover {
  color: white;
  background: rgba(244, 123, 32, 0.2);
  transform: translateY(-2px);
}

/* LOGIN/SIGNUP */
.d4c-login {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.d4c-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.d4c-signup {
  background: linear-gradient(135deg, #f47b20, #ff9f4a);
  color: white;
  text-decoration: none;
  padding: 4px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(244, 123, 32, 0.3);
  letter-spacing: 0.3px;
}

.d4c-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 123, 32, 0.4);
  background: linear-gradient(135deg, #e86e12, #ff8c2a);
}

/* MENU BAR */
.d4c-menu-bar {
  padding: 0px 0;
  border-bottom: 1px solid rgb(248 136 47 / 29%);
}

.d4c-menu-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(244, 123, 32, 0.5) 50%,
    transparent 100%
  );
}

.d4c-menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.d4c-menu-list li {
  position: relative;
}

.d4c-menu-list li a {
  display: flex;
  align-items: center;
  gap: 0px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.d4c-menu-list li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.d4c-menu-list li a:hover::before {
  left: 100%;
}

.d4c-menu-list li a i {
  font-size: 16px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.d4c-menu-list li a:hover,
.d4c-menu-list li[data-type]:hover > a {
  background: rgba(244, 123, 32, 0.15);
  color: white;
  transform: translateY(-1px);
}

.d4c-menu-list li a:hover i {
  opacity: 1;
  transform: scale(1.1);
}

.d4c-menu-list li[data-type] > a::after {
  content: "▾";
  margin-left: 4px;
  font-size: 12px;
  opacity: 0.6;
}

/* MEGA MENU STYLES */
.mega-menu-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
}

.mega-menu-wrapper.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu {
  width: 100%;
  max-width: 1150px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: menuSlideIn 0.3s ease-out;
}

@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-menu-content {
  display: flex;
  min-height: 450px;
}

.mega-menu-sidebar {
  width: 240px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-right: 1px solid #e2e8f0;
  padding: 24px 0;
}

.mega-menu-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-menu-sidebar li {
  padding: 10px 28px;
  cursor: pointer;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
  margin: 2px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mega-menu-sidebar li i {
  font-size: 14px;
  opacity: 0.7;
  width: 20px;
}

.mega-menu-sidebar li:hover {
  color: #1e40af;
  background: rgba(30, 64, 175, 0.05);
}

.mega-menu-sidebar li.active {
  color: #1e40af;
  background: rgba(30, 64, 175, 0.08);
  border-left-color: #1e40af;
  font-weight: 600;
}

.mega-menu-sidebar li.active i {
  opacity: 1;
  color: #1e40af;
}

.mega-menu-main {
  flex: 1;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  overflow-y: auto;
  max-height: 450px;
}

.mega-menu-section {
  min-width: 0;
}

.mega-menu-section h4 {
  font-size: 15px;
  color: #1e293b;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mega-menu-section h4 i {
  color: #f47b20;
  font-size: 14px;
}

.mega-menu-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-menu-section li {
  padding: 8px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.mega-menu-section li:last-child {
  border-bottom: none;
}

.mega-menu-section a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.mega-menu-section a i {
  font-size: 12px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.mega-menu-section a:hover {
  color: #1e40af;
  padding-left: 4px;
}

.mega-menu-section a:hover i {
  opacity: 1;
}

.mega-menu-footer {
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
}

.trending-tag {
  font-weight: 700;
  color: #ff9f4a;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.trending-tag i {
  font-size: 12px;
}

.trending-item {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 12px;
}

.trending-item:hover {
  background: #f47b20;
  color: white;
  border-color: #f47b20;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 123, 32, 0.3);
}

.see-all-link {
  margin-left: auto;
  color: #ff9f4a;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-size: 12px;
}

.see-all-link:hover {
  color: white;
  gap: 8px;
}

.see-all-link {
  margin-left: auto;
  color: #f47b20;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.see-all-link:hover {
  gap: 8px;
}

/* Scrollbar styling */
.mega-menu-main::-webkit-scrollbar {
  width: 8px;
}

.mega-menu-main::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.mega-menu-main::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.mega-menu-main::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Loading states */
.loading {
  color: #64748b;
  font-style: italic;
  padding: 20px;
  text-align: center;
}

.error {
  color: #dc2626;
  padding: 20px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .d4c-container {
    max-width: 1400px;
    padding: 0 20px;
  }

  .mega-menu-main {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .d4c-login,
  .d4c-signup span {
    display: none;
  }

  .d4c-login,
  .d4c-signup {
    padding: 10px;
    min-width: 40px;
    justify-content: center;
  }

  .mega-menu-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .d4c-header {
    position: relative;
  }

  .mega-menu-wrapper {
    display: none;
  }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 34px;
  }

  .header-position {
    position: relative;
  }

  #mobileSearchBox {
    font-size: 14px;
    padding: 0.35rem 0.75rem;
  }

  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }

  .accordion-button {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .dropdown-menu {
    border: none;
    box-shadow: none;
  }
}

/* Desktop-specific styles */
@media (min-width: 769px) {
  .navbar-dark {
    background: linear-gradient(135deg, #2c3e50, #1a2530) !important;
    padding: 0.5rem 1rem;
  }

  .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }
}

/* Common styles */
.navbar-toggler:focus {
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  color: #212529;
}
