/* Extracted from 11.html: original desktop/menu/mobile styles. */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior:smooth; }
body { margin:0; padding-top:75px; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color:inherit; text-decoration:none; }
  /* ========== HEADER & NAVBAR ========== */
/* ========== HEADER & NAVBAR ========== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 2000;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: transform;
  transform: translateY(0);
  transition: transform .22s ease;
}

.site-header.header--hide{
  transform: translateY(calc(-1 * var(--headerH, 72px)));
}

@media (prefers-reduced-motion: reduce){
  .site-header{ transition: none; }
}


.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 48px;
}

.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;   /* ⬅️ key change */
  align-items: center;
  gap: 40px;                     /* spacing between logo & menu */
}


/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color:black;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  color: #374151;
  padding: 4px 0;
}

.nav-link:hover,
.nav-button:hover {
  color: #2563eb;
}

/* underline */
.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: #2563eb;
  border-radius: 999px;
  transition: width 0.18s ease-out;
}
.nav-item:hover::after,
.nav-item--open::after {
  width: 100%;
}
/* ===== Desktop placement ===== */
.nav-search-wrap{
  margin-left: auto;
  display:flex;
  align-items:center;
}

/* hide on mobile for now */
@media (max-width: 900px){
  .nav-search-wrap{ display:none; }
}

/* ===== Industrial Tech Search (Light navbar friendly) ===== */
.nav-search{
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 320px;
  --frame: #ffffff;
  --panel: #ffffff;
  --glow: #16a34a;
  --text: #111827;
  --border-dim: rgba(17, 24, 39, 0.18);
}

.nav-search .telescope-frame{
  display:flex;
  align-items:center;
  height: 44px;
  width: 44px;                 /* collapsed */
  background: var(--panel);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  position: relative;
  transition: all .45s cubic-bezier(.2, 1, .2, 1);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15,23,42,.08);
  cursor: pointer;
}
/* ===== FIX: remove black seam on right edge of telescope search ===== */
.nav-search .telescope-frame{
  border-radius: 12px;
  overflow: hidden;
  background-clip: padding-box;
}

/* remove any default button border/outline that can create dark edges */
.nav-search .icon-unit{
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;

  /* keep your divider line but avoid "double border" */
  border-left: 1px solid var(--border-dim);

  /* match rounding */
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;

  /* key: overlap exactly 1px to kill the darker seam */
  margin-left: -1px;

  background-clip: padding-box;
}

/* optional: prevent weird focus ring on click */
.nav-search .icon-unit:focus{
  outline: none !important;
}

.nav-search .telescope-frame:focus-within{
  width: 100%;
  border-color: rgba(22,163,74,.55);
  box-shadow: 0 10px 28px rgba(15,23,42,.12), 0 0 0 3px rgba(22,163,74,.12);
  transform: translateY(-1px);
}

.nav-search .tech-bracket{
  position:absolute;
  left: 12px;
  color: var(--glow);
  font-size: 14px;
  opacity: 0;
  transition: .25s ease .15s;
}
.nav-search .telescope-frame:focus-within .tech-bracket{
  opacity: 1;
}

.nav-search input{
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  width: 100%;
  padding: 0 52px 0 30px;
  opacity: 0;
  transition: opacity .2s ease;
}
.nav-search .telescope-frame:focus-within input{
  opacity: 1;
}
.nav-search input::placeholder{
  color: rgba(17,24,39,.45);
}

.nav-search .icon-unit{
  position:absolute;
  right: 0;
  width: 40px;
  height: 40px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--frame);
  border-left: 1px solid var(--border-dim);
  color: #111827;
  transition: .25s ease;
  z-index: 2;
}
.nav-search .telescope-frame:focus-within .icon-unit{
  color: var(--glow);
  background: rgba(22,163,74,.06);
  border-left-color: rgba(22,163,74,.55);
}

.nav-search .sensor{
  position:absolute;
  width: 4px;
  height: 4px;
  background: var(--glow);
  bottom: 6px;
  right: 6px;
  opacity: .25;
  border-radius: 999px;
}
/* ===== MOBILE DRAWER: Telescope Search ===== */
.drawer-search-telescope{
  padding: 0 18px 14px;
}

.drawer-telescope{
  position: relative;
  display:flex;
  align-items:center;
  height: 44px;
  width: 100%;
  border-radius: 12px;
  background: #0f1620;                          /* matches your drawer input */
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  cursor: text;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

.drawer-telescope:focus-within{
  border-color: rgba(34,197,94,.65);            /* your drawer green */
  box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 0 3px rgba(34,197,94,.12);
}

.drawer-bracket{
  position:absolute;
  left: 12px;
  color: #22c55e;
  font-size: 14px;
  opacity: .85;
}

.drawer-telescope input{
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  padding: 0 52px 0 30px;                        /* space for bracket + button */
}

.drawer-telescope input::placeholder{
  color: rgba(255,255,255,.55);
}

.drawer-telescope-btn{
  position:absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: #ffffff;                                /* magnifier visible */
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.drawer-telescope-btn:hover{
  background: rgba(255,255,255,.07);
}

.drawer-sensor{
  position:absolute;
  width: 4px;
  height: 4px;
  right: 7px;
  bottom: 7px;
  border-radius: 999px;
  background: #22c55e;
  opacity: .28;
}


/* ========== MEGA MENU ========== */
/* Big container attached to header, NOT inside <li> */
.mega-menu {
  position: absolute;
  top: 100%;                 /* directly under the navbar */
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;

  width: min(1180px, 100% - 48px);
  display: none;             /* toggled with JS */
}

.mega-menu.show {
  display: block;
}

/* The white panel */
.mega-panel {
  background: #ffffff;
  color:#111827;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  border: 1px solid #e5e7eb;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 250px auto;
  gap: 32px;
}
.mega-panel .mega-sidebar-title{ color:#6b7280; }

.mega-panel .mega-tab{
  color:#111827;              /* left items visible */
}

.mega-panel .mega-title{ color:#111827; }
.mega-panel .mega-subtitle{ color:#6b7280; }
.mega-panel .mega-card-title{ color:#111827; }
.mega-panel .mega-card-text{ color:#6b7280; }

/* Left sidebar */
.mega-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-sidebar-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 4px;
}

.mega-tab {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.17s;
  display:block;
  width:100%;
  margin:0;
}

.mega-tab:hover {
  background: #eff6ff;
  border-color: #dbeafe;
}

.mega-tab.active {
  background: #e0ecff;
  border-color: #2563eb;
}

/* Right content area */
.mega-content-panel {
  display: none;
}
.mega-content-panel.active {
  display: block;
}

.mega-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}
.mega-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 18px;
}

/* Cards */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mega-card {
  padding: 16px 14px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  transition: 0.18s;
}
.mega-card:hover {
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
  border-color: #2563eb;
}

.mega-card-icon {
  font-size: 22px;
  margin-bottom: 20px;
}
.mega-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.mega-card-text {
  font-size: 13px;
  color: #6b7280;
}
 /* Remove default link styling inside mega cards */
.mega-card-link,
.mega-card-link:visited,
.mega-card-link:hover,
.mega-card-link:active {
  color: #111827;        /* same as your normal text */
  text-decoration: none; /* remove underline */
}
/* ✅ Mega menu panels must NOT inherit global section padding */
.mega-panel section.mega-content-panel{
  padding: 0 !important;
  margin: 0 !important;
}


/* ========== MOBILE TOPBAR + DRAWER ========== */

.hamburger{
  display:none;
  width:44px; height:44px;
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:12px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px;
}
.hamburger span{
  display:block;
  width:18px; height:2px;
  background:#111827;
  border-radius:2px;
}

.drawer-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
  z-index:3000;
}

.drawer{
  position: fixed;
  top: 0;
  left: 0;                          /* ✅ anchor to LEFT */
  width: min(420px, 92vw);
  height: 100vh;
  background:#0b0f14;
  color:#e5e7eb;

  transform: translateX(-105%);     /* ✅ hide to the LEFT */
  transition: transform .22s ease;
  z-index:3001;

  display:flex;
  flex-direction:column;
  border-right:1px solid rgba(255,255,255,.08);
}

/* open state */
.drawer.open{
  transform: translateX(0);
}

.drawer-backdrop.open{ opacity:1; pointer-events:auto; }

.drawer-head{
  padding:18px 18px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:flex-end;
}
.drawer-close{
  background:none;
  border:0;
  color:#fff;
  font-weight:600;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
}

.drawer-body{
  padding:16px 0;
  overflow:auto;
  position: relative; 
}

.drawer-search{
  display:flex;
  gap:10px;
  padding:0 18px 14px;
}
.drawer-search input{
  flex:1;
  height:44px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:#0f1620;
  color:#fff;
  padding:0 12px;
  outline:none;
}
.drawer-search-btn{
  width:56px;
  height:44px;
  border-radius:10px;
  border:0;
  cursor:pointer;
  background:#22c55e;
  color:#04110a;
  font-weight:700;
}

.drawer-link{
  display:flex;
  align-items:center;
  padding:14px 18px;
  text-decoration:none;
  color:#fff;
  font-weight:800;
  border-top:1px solid rgba(255,255,255,.06);
}
.drawer-link:hover{ background:rgba(255,255,255,.04); }

.drawer-item{ border-top:1px solid rgba(255,255,255,.06); }
.drawer-top{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  background:none;
  border:0;
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
.drawer-top .chev{ opacity:.8; transition:transform .18s ease; }
.drawer-item.open .drawer-top .chev{ transform:rotate(180deg); }

.drawer-sub{
  display:none;
  padding:6px 0 10px;
  background:rgba(255,255,255,.02);
}
.drawer-item.open .drawer-sub{ display:block; }
.drawer-sub a{
  display:block;
  padding:12px 18px;
  color:#cbd5e1;
  text-decoration:none;
  border-top:1px solid rgba(255,255,255,.04);
}
.drawer-sub a:hover{ background:rgba(255,255,255,.04); color:#fff; }

.drawer-cta{
  margin:18px 18px 0;
  display:flex;
  justify-content:center;
  align-items:center;
  height:52px;
  border-radius:14px;
  background:#22c55e;
  color:#04110a;
  font-weight:900;
  text-decoration:none;
}
.drawer-screen{
  position:absolute;
  inset:0;
  background:#0b0f14;
  transform: translateX(105%);
  transition: transform .22s ease;
  display:flex;
  flex-direction:column;
  pointer-events:none;
}

.drawer-screen.active{
  transform: translateX(0);
  pointer-events:auto;
}

.drawer-screen-head{
  padding:14px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  gap:12px;
}

.drawer-backbtn{
  background:none;
  border:0;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.drawer-screen-title{
  font-weight:900;
  color:#fff;
}

.drawer-screen-body{
  overflow:auto;
  padding:10px 0;
}

.drawer-next{
  width:100%;
  padding:14px 18px;
  background:none;
  border:0;
  color:#e5e7eb;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight:800;
  cursor:pointer;
  border-top:1px solid rgba(255,255,255,.06);
}
.drawer-next:hover{ background:rgba(255,255,255,.04); }

.drawer-screen-link{
  display:block;
  padding:14px 18px;
  text-decoration:none;
  color:#cbd5e1;
  font-weight:800;
  border-top:1px solid rgba(255,255,255,.06);
}
.drawer-screen-link:hover{ background:rgba(255,255,255,.04); color:#fff; }
.drawer-next span,
.drawer-link span{
  transition: transform .18s ease;
}

.drawer-next:hover span,
.drawer-link:hover span{
  transform: translateX(3px);
}
.logo{
  display:flex;
  align-items:center;
  text-decoration:none;
  -webkit-tap-highlight-color: transparent; /* remove mobile tap highlight */
}

.logo-img{
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;             /* keep correct ratio */
  border-radius: 10px;             /* rectangle look */
}




/* ✅ RESPONSIVE: Hide desktop menu, show hamburger */
@media (max-width: 900px){
  .nav-menu{ display:none; }
  .mega-menu{ display:none !important; }

  .hamburger{
    display:flex;
    position: relative;
    z-index: 2;
  }

  /* Center logo in header */
  .logo{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  /* Pick ONE mobile height */
  .logo-img{
    height: 60px;      /* choose 28px OR 40px, not both */
    width: auto;
    object-fit: contain;
    border-radius: 0;  /* sharp corners */
    clip-path: none;
  }

  .navbar-inner{
    position: relative;  /* required for absolute centering */
    gap: 16px;
  }
}


@media (min-width: 901px) {

  /* Limit the whole dropdown height to viewport and allow scrolling inside */
  .mega-menu{
    max-height: calc(100vh - 110px); /* adjust if your header is taller */
    overflow: hidden;                /* keep rounded corners clean */
  }

  /* Allow the panel content to scroll if it exceeds max-height */
  .mega-panel{
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Ensure the left sidebar itself can scroll too (safer) */
  .mega-sidebar{
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 10px; /* space for scrollbar */
  }
  .logo-img{
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  clip-path: none;
  border-radius: 0;           /* sharp corners */
  image-rendering: auto;
}

}




/* Make the original three mobile hamburger bars stack vertically. */
.hamburger{ flex-direction: column; }

/* Keep the entire drill-down list accessible on small screens. */
.drawer-body{flex:1 1 auto;min-height:0;}
.drawer-screen-body{flex:1 1 auto;min-height:0;overflow-y:auto;}

/* 3iWeb2U menu icon refresh */
.threei-card .mega-card-icon{
  width:52px;height:52px;border-radius:14px;display:grid;place-items:center;
  margin-bottom:18px;background:linear-gradient(180deg,#e8f7ff 0%,#d8f5ef 100%);
  border:1px solid #cfe8ef; box-shadow:0 8px 20px rgba(2, 78, 100, 0.08);
}
.threei-card .mega-card-icon svg{width:28px;height:28px;stroke:#12708f;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.threei-card .mega-card-title{line-height:1.45;}

/* ===== 3iWeb2U three-slide layout ===== */
.ow3-nav-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.ow3-nav-card{min-height:166px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:22px 18px 20px;border-radius:18px;border:1px solid #d6e3e7;background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);box-shadow:0 10px 28px rgba(12,57,74,.06);transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;}
.ow3-nav-card:hover{transform:translateY(-3px);border-color:#b8d9e1;box-shadow:0 16px 36px rgba(12,57,74,.10);}
.ow3-nav-card .mega-card-icon{width:64px;height:64px;display:grid;place-items:center;background:radial-gradient(circle at 30% 20%,#ffffff 0%,#daf7f4 35%,#d8f0ff 100%);border:1px solid #bddbe2;border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 12px 26px rgba(19,91,112,.12);margin:0 0 18px;}
.ow3-nav-card .mega-card-icon svg{width:34px;height:34px;fill:none;stroke:#0d8b8c;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.ow3-nav-card .mega-card-title{line-height:1.42;font-size:15px;font-weight:700;color:#163843;}

/* 11.html used an inline script for this icon rotation; CSS handles it in shared HTML. */
@keyframes icon-rotate { to { transform: rotate(360deg); } }
#express-loading-icon > div:first-child { animation: icon-rotate 2.5s linear infinite; }
/* Avoid menu overlay being clipped by the page. */
