/* =========================================================
   CUSTOM BOOTSTRAP 5.3.8 THEME
   Based on the supplied Navy / Sky Blue corporate stylesheet.
   Load this file AFTER Bootstrap and your existing stylesheet.
   ========================================================= */

:root {
  --theme-navy: #071c35;
  --theme-navy-2: #0d2b4c;
  --theme-blue: #145b9b;
  --theme-sky: #6bb6f4;
  --theme-cyan: #18a9c3;
  --theme-teal: #24c0c7;
  --theme-ink: #10263d;
  --theme-muted: #282c31;
  --theme-line: #dce6ef;
  --theme-gray: #f3f6f9;
  --theme-sky-soft: #eaf7fc;
  --theme-white: #fff;
  --theme-shadow: 0 18px 50px rgba(8, 38, 69, .10);
  --theme-radius: 18px;
  --theme-wrap: 1200px;
  --theme-header-height: 78px;
  --theme-secondary-height: 48px;

  --theme-gradient-light: linear-gradient(110deg, #e8f8ff 0%, #b9e6fb 48%, #83c8f4 100%);
  --theme-gradient-dark: linear-gradient(110deg, #071c35 0%, #043b6c 58%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--theme-header-height) + var(--theme-secondary-height) + 16px);
}

body {
  margin: 0;
  color: var(--theme-ink);
  background: var(--theme-white);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 { color: var(--theme-navy); line-height: 1.15; letter-spacing: -.025em; }
p { color: var(--theme-muted); }

/* Container and section utilities */
.theme-container {
  width: min(var(--theme-wrap), calc(100% - 48px));
  margin-inline: auto;
}
.theme-section { padding: clamp(58px, 7vw, 96px) 0; }
.theme-section--white { background: #fff; }
.theme-section--gray { background: var(--theme-gray); }
.theme-section--navy { background: var(--theme-navy); color: #fff; }
.theme-section--navy h1,
.theme-section--navy h2,
.theme-section--navy h3 { color: #fff; }
.theme-section--navy p { color: #c5d5e3; }
.theme-section--sky { background: linear-gradient(135deg, #effaff, #dff3fc); }
.theme-section--sky h1,
.theme-section--sky h2,
.theme-section--sky h3 { color: var(--theme-navy); }

.theme-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #087f9d;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .72rem;
  font-weight: 800;
}
.theme-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--theme-cyan);
}
.theme-gradient-text {
  color: var(--theme-cyan);
  background: linear-gradient(100deg, #18a9c3, #4d9de0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons - separate class names avoid fighting Bootstrap .btn */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.theme-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.theme-btn:focus-visible,
.theme-nav a:focus-visible,
.theme-mega-menu a:focus-visible {
  outline: 3px solid rgba(24, 169, 195, .45);
  outline-offset: 3px;
}
.theme-btn--light {
  color: var(--theme-navy);
  background: var(--theme-gradient-light);
  box-shadow: 0 9px 24px rgba(89, 174, 221, .20);
}
.theme-btn--dark {
  color: #fff;
  background: var(--theme-gradient-dark);
  box-shadow: 0 10px 25px rgba(20, 91, 155, .24);
}
.theme-btn--outline {
  color: var(--theme-navy);
  background: #fff;
  border-color: #b9cbdc;
}
.theme-btn--outline:hover { border-color: var(--theme-cyan); }
.theme-btn--outline-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,.5);
}

/* Header / primary navigation */
.theme-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(220,230,239,.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.theme-nav {
  min-height: var(--theme-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.theme-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--theme-navy);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.05em;
}
.theme-brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 11px;
  background: var(--theme-gradient-dark);
}
.theme-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.theme-nav-item { position: static; }
.theme-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #42586e;
  font-size: .86rem;
  font-weight: 750;
  transition: color .2s ease;
}
.theme-nav-link:hover,
.theme-nav-item.is-open > .theme-nav-link { color: #078da8; }
.theme-nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-menu-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  color: var(--theme-navy);
  background: #fff;
}

/* Full-width responsive mega menu; supports 3 nested levels */
.theme-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1100;
  display: none;
  max-height: min(72vh, 680px);
  overflow: auto;
  padding: 30px max(24px, calc((100vw - var(--theme-wrap)) / 2));
  background: #fff;
  border-top: 1px solid var(--theme-line);
  border-bottom: 1px solid var(--theme-line);
  box-shadow: 0 24px 45px rgba(7, 28, 53, .15);
}
.theme-nav-item:hover > .theme-mega-menu,
.theme-nav-item:focus-within > .theme-mega-menu,
.theme-nav-item.is-open > .theme-mega-menu { display: block; }
.theme-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.theme-mega-column { min-width: 0; }
.theme-mega-title {
  display: block;
  margin-bottom: 12px;
  color: var(--theme-navy);
  font-size: .92rem;
  font-weight: 850;
}
.theme-mega-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  color: var(--theme-muted);
  font-size: .86rem;
  border-bottom: 1px solid #eef3f7;
}
.theme-mega-link:hover { color: #078da8; }
.theme-mega-submenu {
  margin: 5px 0 8px 12px;
  padding-left: 13px;
  border-left: 2px solid #d8eef6;
}
.theme-mega-submenu a {
  display: block;
  padding: 6px 0;
  color: #6a7f92;
  font-size: .81rem;
}
.theme-mega-submenu a:hover { color: var(--theme-blue); }

/* Secondary menu: shown when scrolling upward */
.theme-secondary-nav {
  position: fixed;
  top: var(--theme-header-height);
  left: 0;
  right: 0;
  z-index: 1040;
  min-height: var(--theme-secondary-height);
  display: flex;
  align-items: center;
  background: rgba(7, 28, 53, .97);
  box-shadow: 0 8px 24px rgba(7, 28, 53, .14);
  transform: translateY(-150%);
  opacity: 0;
  visibility: hidden;
  transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
}
.theme-secondary-nav.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.theme-secondary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--theme-secondary-height);
}
.theme-secondary-links {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  white-space: nowrap;
}
.theme-secondary-links a {
  color: #d9e9f4;
  font-size: .78rem;
  font-weight: 700;
}
.theme-secondary-links a:hover { color: #75d8e5; }

/* Optional hero and reusable content cards */
.theme-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(65px, 8vw, 105px) 0;
  color: #fff;
  background:
    radial-gradient(circle at 80% 42%, rgba(25,161,195,.24), transparent 32%),
    linear-gradient(115deg, #06182e, #0a2c4e 70%, #0b3b5b);
}
.theme-hero h1 { max-width: 760px; color: #fff; font-size: clamp(2.4rem, 5vw, 4.6rem); }
.theme-hero p { max-width: 700px; color: #d2e1ee; }
.theme-card {
  height: 100%;
  padding: 26px;
  border: 1px solid var(--theme-line);
  border-radius: var(--theme-radius);
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.theme-card:hover {
  transform: translateY(-4px);
  border-color: #b9d9e4;
  box-shadow: var(--theme-shadow);
}
.theme-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  color: #0b8da8;
  background: #eaf7fa;
}

/* Footer */
.theme-footer {
  padding: 58px 0 24px;
  color: #fff;
  background: linear-gradient(125deg, #06172b, #0b2d4d);
}
.theme-footer h2,
.theme-footer h3,
.theme-footer h4 { color: #fff; }
.theme-footer p { color: #adc3d5; }
.theme-footer a { color: #b6c9dc; transition: color .2s ease; }
.theme-footer a:hover { color: #fff; }
.theme-footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.15);
  color: #a7bdd2;
  font-size: .78rem;
}

/* 10 x 10px custom cursor dot */
.theme-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-radius: 50%;
  background: var(--theme-cyan);
  box-shadow: 0 0 0 4px rgba(24,169,195,.13);
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}
@media (hover: none), (pointer: coarse) {
  .theme-cursor-dot { display: none !important; }
}

/* Mobile / tablet */
@media (max-width: 991.98px) {
  :root { --theme-header-height: 70px; }
  .theme-nav { min-height: var(--theme-header-height); }
  .theme-menu-toggle { display: inline-grid; place-items: center; }
  .theme-nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--theme-header-height));
    overflow: auto;
    padding: 10px 24px 22px;
    background: #fff;
    border-bottom: 1px solid var(--theme-line);
    box-shadow: 0 18px 30px rgba(7,28,53,.10);
  }
  .theme-nav-list.is-mobile-open { display: flex; flex-direction: column; }
  .theme-nav-item { border-bottom: 1px solid #edf2f6; }
  .theme-nav-link { width: 100%; justify-content: space-between; }
  .theme-mega-menu {
    position: static;
    display: none;
    max-height: none;
    padding: 12px 0 18px;
    border: 0;
    box-shadow: none;
  }
  .theme-nav-item.is-open > .theme-mega-menu { display: block; }
  .theme-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .theme-nav-actions { display: none; }
}
@media (max-width: 575.98px) {
  .theme-container { width: calc(100% - 32px); }
  .theme-mega-grid { grid-template-columns: 1fr; }
  .theme-secondary-inner { justify-content: flex-start; }
  .theme-secondary-links { gap: 17px; }
  .theme-secondary-nav .theme-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}



/* ================= PREMIUM METIS REFINEMENTS ================= */
:root {
  --theme-wrap: 1240px;
  --theme-header-height: 82px;
  --theme-secondary-height: 48px;
}
body { font-size: 16px; }
.theme-container, .wrap { width: min(1240px, calc(100% - 56px)); }
.theme-header { box-shadow: 0 4px 22px rgba(7,28,53,.045); }
.theme-nav { gap: 30px; }
.theme-brand { font-size: 1.55rem; }
.theme-nav-list { gap: clamp(18px, 2.3vw, 34px); }
.theme-nav-link { font-size: .88rem; color: #30485f; }
.theme-nav-link:hover, .theme-nav-item.is-open > .theme-nav-link { color: var(--theme-cyan); }
.theme-nav-actions .theme-btn { padding-inline: 20px; }

/* Mega menu panel */
.theme-mega-menu {
  padding: 34px max(28px, calc((100vw - 1240px) / 2)) 38px;
  border-top: 1px solid #eaf0f5;
  border-bottom: 1px solid #dfe9f1;
  box-shadow: 0 28px 55px rgba(7,28,53,.17);
}
.theme-mega-heading { max-width: 680px; margin: 0 0 24px; }
.theme-mega-heading h2 { margin: 9px 0 8px; font-size: clamp(1.45rem, 2.2vw, 2rem); }
.theme-mega-heading p { margin: 0; font-size: .9rem; }
.theme-mega-grid--solutions { grid-template-columns: repeat(3, minmax(0,1fr)) 1.1fr; gap: 22px; }
.theme-mega-column {
  padding: 19px 20px;
  border: 1px solid #e5edf3;
  border-radius: 15px;
  background: #fff;
}
.theme-mega-kicker { display: block; margin-bottom: 13px; color: #159bb4; font-size: .67rem; font-weight: 900; letter-spacing: .12em; }
.theme-mega-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  color: var(--theme-navy);
  font-size: 1rem;
  text-decoration: none;
}
.theme-mega-submenu {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 8px 0 0 12px;
  border: 0;
  border-left: 2px solid #d7eef5;
}
.theme-mega-submenu a {
  display: block;
  padding: 6px 0;
  color: #60768a;
  font-size: .79rem;
  line-height: 1.4;
}
.theme-mega-submenu a:hover { color: #078da8; transform: translateX(2px); }
.theme-mega-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #071c35, #0d4267);
}
.theme-mega-feature strong { margin-top: 14px; font-size: 1rem; }
.theme-mega-feature p { margin: 7px 0 15px; color: #c3d8e7; font-size: .82rem; }
.theme-mega-feature a { color: #7de0e9; font-size: .83rem; font-weight: 800; }
.theme-mega-feature-icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; color: #fff; background: linear-gradient(135deg,#18a9c3,#4d9de0);
  font-size: 1.2rem;
}
.theme-mega-grid--insights { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.theme-insight-link {
  display: flex; align-items: center; gap: 12px; padding: 17px;
  border: 1px solid #e5edf3; border-radius: 14px; background: #fff;
  transition: .2s ease;
}
.theme-insight-link:hover { transform: translateY(-3px); border-color: #b8dce8; box-shadow: var(--theme-shadow); }
.theme-insight-link > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.theme-insight-link strong { color: var(--theme-navy); font-size: .88rem; }
.theme-insight-link small { color: var(--theme-muted); font-size: .72rem; }
.theme-insight-link b { margin-left: auto; color: #159bb4; }
.theme-insight-icon {
  flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; color: #078da8; background: #eaf7fa; font-weight: 900;
}

/* Hero */
.hero { padding: clamp(86px, 9vw, 124px) 0 clamp(78px, 8vw, 108px); }
.hero-grid { grid-template-columns: 1.08fr .92fr; gap: clamp(38px, 6vw, 82px); }
.hero h1 { max-width: 760px; font-size: clamp(3rem, 5.3vw, 5.15rem); line-height: 1.03; letter-spacing: -.055em;color:#ffffff; }
.hero p { max-width: 660px; font-size: 1.08rem; line-height: 1.8; color: #d6e4ef; }
.hero .eyebrow { color: #8ce3ed; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; }
.hero-proof span { color: #c4d8e7; font-size: .78rem; font-weight: 650; }
.hero-proof i { color: #5ed6e1; font-style: normal; margin-right: 5px; }
.hero .actions { margin: 30px 0 16px; }
.hero .visual { min-height: 420px; }
.hero .orb { width: 310px; height: 310px; }
.hero .orb-core { width: 112px; height: 112px; border-radius: 30px; font-size: 2.2rem; }

/* Section rhythm and text readability */
section { padding-top: clamp(76px, 8vw, 108px); padding-bottom: clamp(76px, 8vw, 108px); }
.feature { padding: 48px 0 26px; }
.feature-box { padding: clamp(30px, 4vw, 54px); border-radius: 24px; }
.head { margin-bottom: 40px; }
.head h2, .feature-box h2, .faq-layout h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); letter-spacing: -.045em; }
.head p, .feature-box p { font-size: .98rem; line-height: 1.8; }
.card, .why-card, .expert-card, .step, .scenario-card { border-radius: 20px; }
.industry { min-height: 245px; padding: 30px; }
.industry h3, .expert-card h3, .scenario-card h3 { font-size: 1.18rem; }
.industry p, .card p, .expert-card p, .scenario-card p, .step p { font-size: .92rem; line-height: 1.75; }
.services { background: #f2f7fb; }
.service-layout { gap: clamp(42px, 6vw, 78px); }
.service-layout .sticky { top: 140px; }
.service-list { border-top-color: #d6e2eb; }
.service { padding: 24px 0; }
.service h3 { font-size: 1.08rem; }
.service p { font-size: .9rem; line-height: 1.7; }
.why-card, .expert-card, .step, .scenario-card { padding: 29px; transition: .22s ease; }
.why-card:hover, .expert-card:hover, .step:hover, .scenario-card:hover { transform: translateY(-4px); box-shadow: var(--theme-shadow); border-color: #bddce7; }
.expertise { background: #f3f7fa; }
.steps { gap: 18px; }
.trust-box { padding: clamp(30px, 4vw, 48px); border-radius: 24px; }
.faq { background: #f5f8fb; }
.faq-q { font-size: .98rem; padding: 22px 0; }
.faq-a { font-size: .92rem; line-height: 1.8; }
.insight-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.insight { border-radius: 18px; box-shadow: 0 7px 24px rgba(7,28,53,.045); transition: .22s ease; }
.insight:hover { transform: translateY(-5px); box-shadow: var(--theme-shadow); }
.insight-art {
  height: 150px; position: relative; display: flex; align-items: flex-start; justify-content: space-between;
  overflow: hidden; padding: 16px; isolation: isolate;
  background: radial-gradient(circle at 78% 35%, rgba(53,198,213,.55), transparent 28%), linear-gradient(135deg,#071c35,#0e5278);
}
.insight-art::before {
  content: ""; position: absolute; z-index: -1; width: 140px; height: 140px; right: -24px; bottom: -60px;
  border: 1px solid rgba(153,230,239,.42); border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(153,230,239,.06), 0 0 0 38px rgba(153,230,239,.05);
}
.insight-art::after {
  content: ""; position: absolute; z-index: -1; width: 74px; height: 74px; right: 24px; top: 35px;
  border: 1px solid rgba(153,230,239,.45); border-radius: 22px; transform: rotate(35deg);
  background: rgba(24,169,195,.15); backdrop-filter: blur(4px);
}
.insight-art-label { color: #9ce7ee; font-size: .62rem; font-weight: 900; letter-spacing: .14em; }
.insight-art-symbol { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg,#18a9c3,#6bb6f4); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.insight-art-2 { background: radial-gradient(circle at 75% 35%,rgba(105,183,244,.5),transparent 28%),linear-gradient(135deg,#0b2949,#17669a); }
.insight-art-3 { background: radial-gradient(circle at 75% 35%,rgba(36,192,199,.5),transparent 28%),linear-gradient(135deg,#082b3e,#126c7b); }
.insight-art-4 { background: radial-gradient(circle at 75% 35%,rgba(95,160,223,.5),transparent 28%),linear-gradient(135deg,#10233d,#244c78); }
.insight-content { padding: 22px; }
.insight h3 { font-size: 1.04rem; line-height: 1.35; }
.insight p { font-size: .84rem; line-height: 1.7; }
.theme-card { border-radius: 18px; box-shadow: 0 8px 28px rgba(7,28,53,.045); }
.cta-box { padding: clamp(48px, 6vw, 76px) 30px; border-radius: 26px; }
.theme-footer { padding-top: 64px; }
.theme-footer .footer-grid { gap: 42px; }
.theme-footer .footer-col a { transition: transform .2s ease, color .2s ease; }
.theme-footer .footer-col a:hover { transform: translateX(3px); }

/* Accessibility and anchor offsets */
:target { scroll-margin-top: 145px; }
a, button { -webkit-tap-highlight-color: transparent; }
::selection { color: #fff; background: #147eaa; }

@media (max-width: 1100px) {
  .theme-mega-grid--solutions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .theme-mega-feature { min-height: 190px; }
  .insight-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 991.98px) {
  :root { --theme-header-height: 70px; }
  .theme-container, .wrap { width: calc(100% - 40px); }
  .theme-mega-menu { padding: 18px 0 24px; }
  .theme-mega-heading { padding: 0 2px; }
  .theme-mega-grid--solutions, .theme-mega-grid--insights { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .theme-nav-item.has-mega-menu:hover > .theme-mega-menu { display: none; }
  .theme-nav-item.has-mega-menu.is-open > .theme-mega-menu { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero .visual { min-height: 340px; }
}
@media (max-width: 575.98px) {
  .theme-container, .wrap { width: calc(100% - 32px); }
  .hero { padding: 64px 0 58px; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 3.5rem);color:#ffffff; }
  .hero p { font-size: .98rem; }
  .hero-proof { display: grid; gap: 7px; }
  .hero .visual { min-height: 280px; }
  .hero .orb { width: 220px; height: 220px; }
  .hero .orb-core { width: 82px; height: 82px; }
  .theme-mega-grid--solutions, .theme-mega-grid--insights { grid-template-columns: 1fr; }
  .theme-mega-feature { min-height: auto; }
  .insight-grid { grid-template-columns: 1fr; }
  .insight-art { height: 135px; }
  .theme-footer .footer-grid { gap: 26px; }
}


/* ===== Freyr-style category-switching mega menu ===== */
.theme-nav-item.has-mega-menu { position: static; }

.theme-mega-menu.theme-mega-menu--panel {
  display: none;
  top: 100%;
  padding: 30px max(28px, calc((100vw - 1240px) / 2)) 34px;
}
.theme-nav-item.has-mega-menu.is-open > .theme-mega-menu,
.theme-nav-item.has-mega-menu:hover > .theme-mega-menu,
.theme-nav-item.has-mega-menu:focus-within > .theme-mega-menu { display: block; }

.theme-mega-layout {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.35fr) minmax(190px, .7fr);
  gap: 22px;
  align-items: stretch;
}
.theme-mega-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border: 1px solid #e4edf3;
  border-radius: 15px;
  background: #f7fafc;
}
.theme-mega-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--theme-navy);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.theme-mega-option > span:first-child { display: grid; gap: 5px; }
.theme-mega-option small {
  color: #159bb4;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .11em;
}
.theme-mega-option strong { font-size: .91rem; }
.theme-mega-option-arrow { color: #7690a5; font-size: 1.35rem; line-height: 1; }
.theme-mega-option:hover,
.theme-mega-option.is-active {
  color: #087e9b;
  background: #fff;
  border-color: #d8eaf1;
  box-shadow: 0 5px 16px rgba(7,28,53,.055);
}
.theme-mega-option.is-active .theme-mega-option-arrow { color: #119bb5; }

.theme-mega-detail {
  min-height: 280px;
  padding: 25px 27px;
  border: 1px solid #e2ebf2;
  border-radius: 15px;
  background: #fff;
}
.theme-mega-panel { display: none; animation: themePanelIn .2s ease both; }
.theme-mega-panel.is-active { display: block; }
@keyframes themePanelIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.theme-mega-panel-kicker {
  color: #119bb5;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .13em;
}
.theme-mega-panel h3 {
  max-width: 520px;
  margin: 11px 0 9px;
  color: var(--theme-navy);
  font-size: 1.35rem;
  line-height: 1.25;
}
.theme-mega-panel > p {
  margin: 0 0 16px;
  color: #687d90;
  font-size: .83rem;
  line-height: 1.65;
}
.theme-mega-detail-links { display: grid; gap: 0; }
.theme-mega-detail-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  color: #435d73;
  border-top: 1px solid #edf2f6;
  font-size: .79rem;
  font-weight: 650;
}
.theme-mega-detail-links a span { color: #159bb4; }
.theme-mega-detail-links a:hover { color: #078da8; }
.theme-mega-view-all {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 17px;
  color: #078da8;
  font-size: .81rem;
  font-weight: 850;
}
.theme-mega-feature { min-height: 280px; }
.theme-mega-menu--insights .theme-mega-layout {
  grid-template-columns: minmax(210px,.75fr) minmax(320px,1.35fr) minmax(190px,.7fr);
}

/* The panel is controlled by JS on desktop; mobile uses tap-to-expand. */
@media (max-width: 991.98px) {
  .theme-mega-menu.theme-mega-menu--panel {
    position: static;
    display: none;
    max-height: none;
    padding: 16px 0 22px;
    border: 0;
    box-shadow: none;
  }
  .theme-nav-item.has-mega-menu:hover > .theme-mega-menu,
  .theme-nav-item.has-mega-menu:focus-within > .theme-mega-menu { display: none; }
  .theme-nav-item.has-mega-menu.is-open > .theme-mega-menu { display: block; }
  .theme-mega-layout,
  .theme-mega-menu--insights .theme-mega-layout { grid-template-columns: 1fr; }
  .theme-mega-detail { min-height: 0; padding: 20px; }
  .theme-mega-feature { min-height: 0; }
}
