/* ==========================================================================
   Responsive Styles for Navbar & Mega Menu
   ========================================================================== */

@media (max-width: 991.98px) {
  .custom-navbar {
    padding: 12px 16px;
  }

  .nav-menu-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
    margin-top: 16px;
  }

  .nav-menu-list .nav-link {
    justify-content: space-between;
    padding: 12px 16px !important;
  }

  /* Mobile Mega Menu Layout */
  .dropdown-megamenu {
    position: relative !important;
  }

  .megamenu-panel {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: none !important;
    border-radius: 12px !important;
    margin-top: 8px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
  }

  .dropdown-megamenu.show .megamenu-panel {
    display: block !important;
  }

  .megamenu-pointer {
    display: none;
  }

  .megamenu-row {
    flex-direction: column;
    min-height: auto;
  }

  .megamenu-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
  }

  .category-link {
    padding: 10px 20px;
  }

  .megamenu-main-content {
    padding: 0;
  }

  .services-wrapper {
    padding: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-item {
    padding: 8px;
  }

  .megamenu-cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 20px;
    border-radius: 0 0 12px 12px;
  }

  .btn-cta-hire {
    justify-content: center;
    margin-top: 8px;
  }

  .d-flex.align-items-center {
    /* width: 100%; */
    margin-top: 16px;
  }

  .btn-quote-outline {
    width: 100%;
    justify-content: center;
  }
}

/* Medium & large desktop adjustments */
@media (min-width: 992px) and (max-width: 1200px) {
  .megamenu-panel {
    width: 920px;
  }

  .megamenu-pointer {
    left: 28%;
  }
}