/* ==========================================================================
   Complinova Mega Menu — Production Styles (home / ASP.NET)
   Navbar + mega menu rules match complinova_products/styles/styles.css
   ========================================================================== */

:root {
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-accent: #003780;
  --color-accent-light: #eff6ff;
  --color-accent-border: #003780;
  --color-success: #059669;
  --color-success-light: #ecfdf5;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-border: #e5e7eb;
  --color-bg: #ffffff;
  --color-bg-page: #f9fafb;
  --color-bg-hover: #f3f4f6;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --navbar-height: 72px;
  --mega-width: 1400px;
  --mega-height: 720px;
  --sidebar-width: 320px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.15), 0 8px 16px -8px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 12px 24px -8px rgba(0, 0, 0, 0.12), 0 4px 8px -4px rgba(0, 0, 0, 0.06);

  --transition: 250ms ease;
  --transition-fast: 150ms ease;

  --z-navbar: 1000;
  --z-mega: 1100;
  --z-backdrop: 1050;
  --z-drawer: 1200;
}

/* Home page — scoped base (avoid global reset conflicts) */

html.mega-menu-open {
  overflow: hidden;
}

html.mega-menu-open body {
  overflow: hidden;
}

.site-header,
.site-header * {
  box-sizing: border-box;
}

.site-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.site-header button:not(.btn) {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
}

.site-header img,
.site-header svg {
  display: block;
  max-width: 100%;
}

body.home-mega-header {
  padding-top: var(--navbar-height);
}

.site-header .navbar__link,
.site-header .btn,
.site-header .category-list__button,
.site-header .feature-card__title,
.site-header .feature-card__desc,
.site-header .mega-menu__heading,
.site-header .mega-menu__description {
  font-family: var(--font-family);
}

/* Override Bootstrap .navbar on home page */
.site-header .navbar {
  padding: 0 !important;
  margin: 0;
  min-height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
}

/* Override Bootstrap .btn if legacy markup still uses class="btn btn--login" */
.home-mega-header .site-header a.btn--login,
.home-mega-header .site-header button.btn--signup,
.home-mega-header .site-header a.btn.btn--login,
.home-mega-header .site-header button.btn.btn--signup {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  max-width: max-content;
  flex: 0 0 auto !important;
  box-shadow: none !important;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
  font-family: var(--font-family);
  white-space: nowrap;
}

.home-mega-header .site-header a.btn--login,
.home-mega-header .site-header a.btn.btn--login {
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-accent);
  padding: 8px 20px;
  font-weight: 600;
}

.home-mega-header .site-header a.btn--login:hover,
.home-mega-header .site-header a.btn--login:focus,
.home-mega-header .site-header a.btn--login:active,
.home-mega-header .site-header a.btn.btn--login:hover,
.home-mega-header .site-header a.btn.btn--login:focus,
.home-mega-header .site-header a.btn.btn--login:active {
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: none !important;
  outline: none !important;
}

.home-mega-header .site-header button.btn--signup,
.home-mega-header .site-header button.btn.btn--signup {
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 20px;
  font-weight: 600;
}

.home-mega-header .site-header button.btn--signup:hover,
.home-mega-header .site-header button.btn--signup:focus,
.home-mega-header .site-header button.btn--signup:active,
.home-mega-header .site-header button.btn.btn--signup:hover,
.home-mega-header .site-header button.btn.btn--signup:focus,
.home-mega-header .site-header button.btn.btn--signup:active {
  background: #002a5c;
  border-color: #002a5c;
  color: #fff;
  box-shadow: none !important;
  outline: none !important;
}

.home-mega-header .site-header .navbar__signup-menu a {
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}


/* Skip Link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

/* Header & Navbar
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width:100%;
  height: var(--navbar-height);
  margin: 0 auto;
  padding: 0 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.navbar__logo-icon svg {
  display: block;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 35px;
  height: 35px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.navbar__hamburger:hover {
  background: var(--color-bg-hover);
}

.navbar__hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__hamburger[aria-expanded="true"] .navbar__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger[aria-expanded="true"] .navbar__hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger[aria-expanded="true"] .navbar__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__item {
  position: relative;
}

.navbar__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 17px;
  font-weight: 500;
  color: #000;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--color-text);
  background: var(--color-bg-hover);
  outline: none;
}

.navbar__link--active,
.navbar__item--has-mega.is-open .navbar__link {
  color: var(--color-accent);
}

.navbar__item--has-mega.is-open .navbar__chevron {
  transform: rotate(180deg);
}

.navbar__chevron {
  transition: transform var(--transition);
  flex-shrink: 0;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding-left: 16px;
}

.navbar__search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}

.navbar__search:hover,
.navbar__search:focus-visible {
  background: var(--color-bg-hover);
  color: var(--color-text);
  outline: none;
}

/* Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition-fast);
  white-space: nowrap;
}

.btn--outline {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-bg-hover);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-light);
}

.navbar__auth {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  width: auto;
}

.btn--login,
.btn--signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: max-content;
  flex: 0 0 auto;
  box-shadow: none;
  outline: none;
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
}

.btn--login {
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-accent);
  padding: 8px 20px;
  font-weight: 600;
  line-height: 1.2;
}

.btn--login:hover,
.btn--login:focus,
.btn--login:focus-visible,
.btn--login:active {
  background: var(--color-accent-light);
  box-shadow: none;
  outline: none;
}

.btn--signup {
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 20px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.btn--signup:hover,
.btn--signup:focus,
.btn--signup:focus-visible,
.btn--signup:active {
  background: #002a5c;
  border-color: #002a5c;
  box-shadow: none;
  outline: none;
}

.navbar__signup {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
}

.navbar__signup.is-open {
  background: transparent;
}

.navbar__signup-caret {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.navbar__signup.is-open .navbar__signup-caret {
  transform: rotate(180deg);
}

.navbar__signup-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 300px;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
  z-index: calc(var(--z-navbar) + 2);
}

.navbar__signup.is-open .navbar__signup-menu {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.navbar__signup-menu a {
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color var(--transition);
}

.navbar__signup-menu a:hover {
  color: #002a5c;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Mega Menu
   -------------------------------------------------------------------------- */

.mega-menu {
  position: fixed;
  top: calc(var(--navbar-height) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(var(--mega-width), calc(100vw - 32px));
  height: min(var(--mega-height), calc(100vh - var(--navbar-height) - 24px));
  height: min(var(--mega-height), calc(100dvh - var(--navbar-height) - 24px));
  max-height: calc(100vh - var(--navbar-height) - 24px);
  max-height: calc(100dvh - var(--navbar-height) - 24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: var(--z-mega);
  transition:
    opacity var(--transition),
    visibility var(--transition),
    transform var(--transition);
}

.mega-menu.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
/*  overscroll-behavior: contain;*/
}

.mega-menu__panel {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mega-menu__backdrop {
  position: fixed;
  inset: 0;
  top: var(--navbar-height);
  background: rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: var(--z-backdrop);
  transition: opacity var(--transition), visibility var(--transition);
}

.mega-menu__backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  overscroll-behavior: none;
  touch-action: none;
}

/* Sidebar
   -------------------------------------------------------------------------- */

.mega-menu__sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100%;
  min-height: 0;
  padding: 28px 0 16px;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  overflow: hidden;
}

.mega-menu__sidebar-label {
  grid-row: 1;
  flex-shrink: 0;
  padding: 0 24px 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.category-list {
  grid-row: 2;
  display: block;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 12px;
/*  overscroll-behavior: contain;*/
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category-list__item {
  margin-bottom: 2px;
}

.category-list__button {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 12px 12px 16px;
  text-align: left;
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.category-list__button:hover {
  background: var(--color-bg-hover);
}

.category-list__button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.category-list__button.is-active {
  background: var(--color-accent-light);
  border-left-color: var(--color-accent-border);
}

.category-list__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-hover);
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.category-list__button.is-active .category-list__icon {
  background: #dbeafe;
  color: var(--color-accent);
}

.category-list__text {
  flex: 1;
  min-width: 0;
}

.category-list__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.category-list__arrow {
  opacity: 0;
  color: var(--color-accent);
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.category-list__button.is-active .category-list__arrow {
  opacity: 1;
}

.category-list__desc {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Promo Card
   -------------------------------------------------------------------------- */

.mega-menu__promo {
  grid-row: 3;
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  margin: 16px 16px 0;
  padding: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-radius: var(--radius-md);
  border: 1px solid #dbeafe;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    box-shadow var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

a.mega-menu__promo:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.mega-menu__promo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-accent);
  flex-shrink: 0;
}

.mega-menu__promo-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: #dbeafe;
  border-radius: 999px;
  margin-bottom: 4px;
}

.mega-menu__promo-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.mega-menu__promo-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.mega-menu__promo-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: color var(--transition);
}

a.mega-menu__promo:hover .mega-menu__promo-link {
  color: #1d4ed8;
}

/* Content Area
   -------------------------------------------------------------------------- */

.mega-menu__content {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 36px 40px 40px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mega-menu__content::-webkit-scrollbar {
  display: none;
}

.mega-menu__content-inner {
  transition: opacity var(--transition), transform var(--transition);
}

.mega-menu__content-inner.is-fading {
  opacity: 0;
  transform: translateY(4px);
}

.mega-menu__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-success);
  margin-bottom: 12px;
}

.mega-menu__heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 10px;
  max-width: 520px;
}

.mega-menu__description {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 560px;
  line-height: 1.6;
}

/* Feature Cards
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    box-shadow var(--transition),
    transform var(--transition),
    border-color var(--transition);
}

a.feature-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: scale(1.02);
  border-color: #d1d5db;
}

.feature-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.feature-card__icon--green { background: #ecfdf5; color: #059669; }
.feature-card__icon--purple { background: #f5f3ff; color: #7c3aed; }
.feature-card__icon--orange { background: #fff7ed; color: #ea580c; }
.feature-card__icon--blue { background: #eff6ff; color: #003780; }
.feature-card__icon--yellow { background: #fefce8; color: #ca8a04; }
.feature-card__icon--red { background: #fef2f2; color: #dc2626; }
.feature-card__icon--teal { background: #f0fdfa; color: #0d9488; }

.feature-card__badge {
  padding: 3px 8px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  white-space: nowrap;
}

.feature-card__badge--popular {
  color: #059669;
  background: #ecfdf5;
}

.feature-card__badge--new {
  color: #2563eb;
  background: #eff6ff;
}

.feature-card__badge--ai {
  color: #7c3aed;
  background: #f5f3ff;
}

.feature-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.feature-card__desc {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: auto;
  transition: gap var(--transition), color var(--transition);
}

.feature-card:hover .feature-card__link {
  gap: 8px;
}

.feature-card__link:hover {
  color: #1d4ed8;
}

/* Compact grid — Compliance Suite (6 sub-modules) */
.feature-grid--compact {
  gap: 10px;
}

.feature-grid--compact .feature-card {
  padding: 12px 14px;
}

.feature-grid--compact .feature-card__header {
  margin-bottom: 8px;
}

.feature-grid--compact .feature-card__icon {
  width: 32px;
  height: 32px;
}

.feature-grid--compact .feature-card__icon svg {
  width: 16px;
  height: 16px;
}

.feature-grid--compact .feature-card__badge {
  padding: 2px 6px;
  font-size: 0.5625rem;
}

.feature-grid--compact .feature-card__title {
  font-size: 0.8125rem;
  margin-bottom: 4px;
}

.feature-grid--compact .feature-card__desc {
  font-size: 0.75rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.feature-grid--compact .feature-card__link {
  font-size: 0.75rem;
}

.mega-menu__content-inner:has(.feature-grid--compact) .mega-menu__description {
  margin-bottom: 20px;
}

.mega-menu__content-inner:has(.feature-grid--compact) .mega-menu__heading {
  font-size: 1.5rem;
  margin-bottom: 8px;
  max-width: none;
  white-space: nowrap;
}

.mega-menu__content:has(.feature-grid--compact) {
  padding: 28px 32px 32px;
}

/* Main Content (Demo Page)
   -------------------------------------------------------------------------- */

 

/* Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  :root {
    --mega-height: auto;
    --sidebar-width: 280px;
  }

  .mega-menu {
    height: auto;
    max-height: calc(100vh - var(--navbar-height) - 24px);
    max-height: calc(100dvh - var(--navbar-height) - 24px);
  }

  .mega-menu__panel {
    display: flex;
    flex-direction: column;
    max-height: inherit;
  }

  .mega-menu__sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0 16px;
    max-height: 280px;
  }

  .category-list {
    display: grid;
    grid-row: auto;
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 0 16px;
  }

  .mega-menu__promo {
    margin: 12px 16px 0;
  }

  .mega-menu__content {
    padding: 28px 24px 32px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .navbar__menu {
    gap: 4px;
  }

  .navbar__link {
    padding: 8px 10px;
    font-size: 1rem;
  }

  .btn {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
}

/* Mobile Drawer
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .navbar__hamburger {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 16px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: var(--z-drawer);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .navbar__menu.is-open {
    transform: translateX(0);
  }

  .navbar__links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .navbar__item {
    width: 100%;
  }

  .navbar__link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 1.125rem;
  }

  .navbar__actions {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    padding: 16px 18px 0px;
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
  }

    .navbar__actions {
      
        align-items: center;
    }
    #ctl00_ctl25_hlDashboard{font-weight:600}

    #account-toggle {
        padding: 0px;
        font-weight:600

    }
    .navbar__auth {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        width: auto;
        gap: 10px;
    }

            .navbar__auth .btn--login,
            .navbar__auth .btn--signup {
                flex: 0 0 auto;
                width: auto;
            }

        .navbar__signup {
            flex: 0 0 auto;
            width: auto;
            min-width: 0;
        }

        .navbar__signup-menu {
            position: static;
            width: 100%;
            min-width: 0;
            margin-top: 8px;
            box-shadow: none;
        }

        .navbar__actions .btn:not(.btn--login):not(.btn--signup) {
            width: 100%;
            justify-content: center;
        }

        .navbar__search {
            align-self: flex-start;
        }

        .mega-menu {
            position: static;
            left: auto;
            transform: none;
            width: 100%;
            height: auto;
            max-height: none;
            opacity: 1;
            visibility: hidden;
            pointer-events: none;
            max-height: 0;
            overflow: hidden;
            transition: max-height var(--transition), visibility var(--transition), margin var(--transition);
            margin-top: 0;
        }

            .mega-menu.is-visible {
                transform: none;
            }

        .navbar__item--has-mega.is-open .mega-menu {
            visibility: visible;
            pointer-events: auto;
            max-height: 2000px;
            margin-top: 8px;
        }

        .mega-menu__panel {
            display: flex;
            flex-direction: column;
            height: auto;
            max-height: none;
            overflow: visible;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-md);
        }

        .mega-menu__sidebar {
            display: flex;
            flex-direction: column;
            width: 100%;
            min-width: 0;
            height: auto;
            max-height: none;
            border-right: none;
            border-bottom: 1px solid var(--color-border);
            padding: 16px 0 12px;
        }

        .category-list {
            display: block;
            grid-template-columns: none;
            max-height: none;
            padding: 0 12px;
        }

        .mega-menu__promo {
            display: flex;
            margin: 12px 12px 0;
        }

        .mega-menu__content {
            height: auto;
            max-height: none;
            overflow: visible;
            padding: 16px;
            min-height: 0;
        }

        a.feature-card {
            position: relative;
            z-index: 1;
        }

        .mega-menu__heading {
            font-size: 1.375rem;
        }

        .feature-grid {
            grid-template-columns: 1fr;
        }

        .mega-menu__backdrop {
            display: none;
        }

        .hero {
            margin: 48px auto;
        }
    }

@media (max-width: 480px) {
  .navbar__inner {
    padding: 0 16px;
  }

  .navbar__logo-text {
    font-size: 1.125rem;
  }
}

/* Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .feature-card:hover {
    transform: none;
  }
}


/* footer
   -------------------------------------------------------------------------- */
.footer{
    background:#003b8f;
    color:#fff;
}

.footer-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:25px 0;
    border-bottom:1px solid rgba(255,255,255,0.2);
    flex-wrap:wrap;
    gap:15px;
}
 .cont_pho {
    display: flex;
    gap: 33px;
}
.contact-info{
    display:flex;
    gap:35px;
    flex-wrap:wrap;
}

.contact-info a{
    color:#fff;
    text-decoration:none;
    font-size:15px;
    font-weight:500;
}

.contact-info i{
    margin-right:8px;
}

.social-icons{
    display:flex;
    gap:18px;
}

.social-icons a{
    color:#fff;
    font-size:18px;
    transition:.3s;
}

.social-icons a:hover{
    transform:translateY(-3px);
}

.footer-grid{
    display:grid;
    grid-template-columns:
        1.2fr
        1.8fr
        1.1fr
        1.4fr
        1.4fr;
    gap:40px;
    padding:50px 0;
}

.footer-col h4{
    font-size:16px;
    font-weight:700;
    margin-bottom:20px;
}

.footer-col ul{
    list-style:none;
}

.footer-col ul li{
    margin-bottom:14px;
    position:relative;
    padding-left:15px;
}

.footer-col ul li::before{
    content:"•";
    position:absolute;
    left:0;
    color:#8eb5ff;
}

.footer-col ul li a{
    color:#9bb6e5;
    text-decoration:none;
    line-height:1.6;
    transition:.3s;
	font-size:14px;
}

.footer-col ul li a:hover{
    color:#fff;
    padding-left:4px;
}

.emsign{
    margin-top:20px;
}

.emsign img{
    max-width:140px;
    width:100%;
}

.copyright{
    background:#ececec;
    color:#111;
    text-align:left;
    padding:18px;
    font-size:15px;
    font-weight:600;
}

/* ==========================
   Tablet
========================== */
@media(max-width:991px){

    .footer-grid{
        grid-template-columns:repeat(2,1fr);
        gap:30px;
    }

    .footer-top{
        flex-direction:column;
        align-items:flex-start;
    }
}

/* ==========================
   Mobile
========================== */
@media(max-width:576px){

    .footer-grid{
        grid-template-columns:1fr;
    }

    .footer-col{
        border-bottom:1px solid rgba(255,255,255,.1);
        padding-bottom:20px;
    }

    .footer-col:last-child{
        border-bottom:none;
    }

    .contact-info{
        flex-direction:column;
        gap:12px;
    }

    .social-icons{
        justify-content:center;
        width:100%;
    }

    .footer-col h4{
        font-size:20px;
    }

    .copyright{
        font-size:13px;
        line-height:1.6;
        padding:15px;
    }
}
@media (max-width: 768px) {

    .mega-menu__content {
        display: none !important;
    }

    .mobile-category-content {
        display: block;
        padding: 15px;
        margin-top: 10px;
        background: #fff;
        border-radius: 8px;
    }

    .category-list__item {
        margin-bottom: 8px;
    }

    .category-list__button {
        width: 100%;
    }
    .mega-menu__heading {
        font-size: 0.875rem;
    }
}