/* =============================================================
   NSIQ HEADER — nsiq-header.css
   Enqueued via functions.php  →  wp_enqueue_style('nsiq-header')
============================================================= */

.nsiq-header, .nsiq-header *, .nsiq-header *::before, .nsiq-header *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.nsiq-header { font-family: 'Poppins', 'Segoe UI', sans-serif; }

/*
 * ── Sticky header ──
 *
 * The OUTER .nsiq-header is always position:fixed; top:0; width:100%.
 * All visual pill ↔ bar changes happen on .nsiq-header-inner only.
 *
 * Pill state : inner has margin, border-radius, max-width → looks floating
 * Bar state  : inner fills full width, no margin, no border-radius
 *
 * This avoids any left/transform animation that causes the left-jump bug.
 */

.nsiq-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9990;
  background: transparent;
  padding: 18px 24px 0;
  animation: nhReveal .7s ease forwards;
  transition: padding .35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

@keyframes nhReveal {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scrolled: collapse top padding */
.nsiq-header.is-scrolled {
  padding: 0;
}

/* Inner — pill by default */
.nsiq-header-inner {
  pointer-events: auto;
  background: #f3f6f9;
  border-radius: 50px;
  padding: 14px 32px;
  box-shadow: 0 12px 35px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1480px;
  margin: 0 auto;
  transition: border-radius .35s cubic-bezier(.4,0,.2,1),
              padding .35s cubic-bezier(.4,0,.2,1),
              max-width .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s cubic-bezier(.4,0,.2,1),
              background .25s ease;
}

/* Inner — full bar when scrolled */
.nsiq-header.is-scrolled .nsiq-header-inner {
  border-radius: 0;
  padding: 10px 44px;
  max-width: 100%;
  box-shadow: 0 3px 18px rgba(0,0,0,.10);
  background: #fff;
}

/* ── Logo ── */
.nsiq-logo a { display: block; line-height: 0; }
.nsiq-logo img { max-width: 140px; height: auto; display: block; }

/* ── Desktop nav ── */
.nsiq-nav { display: flex; }
.nsiq-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nsiq-nav > ul > li { position: relative; }

.nsiq-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 500;
  color: #0f395f;
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 8px;
  white-space: nowrap;
  position: relative;
  transition: background .2s;
}
.nsiq-nav > ul > li > a:hover,
.nsiq-nav > ul > li.is-open > a { background: #eef3f8; }

/* Nav link underline */
.nsiq-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 11px; bottom: 3px;
  width: 0; height: 2px;
  background: #0f395f;
  border-radius: 2px;
  transition: width .3s ease;
}
.nsiq-nav > ul > li > a:hover::after { width: calc(100% - 22px); }

.nsiq-nav > ul > li > a .fa-angle-down {
  font-size: 10px;
  transition: transform .3s ease;
}
.nsiq-nav > ul > li.is-open > a .fa-angle-down { transform: rotate(180deg); }

/* ═══════════════════════════════════════════
   MEGA-BOX BASE
   top driven by --mega-top CSS var set INSTANTLY by JS.
   Only opacity + translateY animate.
═══════════════════════════════════════════ */
.mega-box {
  position: fixed;
  top: var(--mega-top, 80px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border-radius: 22px;
  border: 1px solid #e6e9ee;
  box-shadow: 0 25px 55px rgba(0,0,0,.10);
  padding: 26px;
  display: flex;
  gap: 26px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .26s ease,
              transform .26s ease,
              visibility 0s linear .26s;
  z-index: 9999;
}

/* Caret — left position set per-menu by JS via --caret-left */
.mega-box::before {
  content: "";
  position: absolute;
  top: -11px;
  left: var(--caret-left, 50%);
  transform: translateX(-50%);
  border: 11px solid transparent;
  border-top: 0;
  border-bottom-color: #fff;
  filter: drop-shadow(0 -2px 1px rgba(0,0,0,.06));
  pointer-events: none;
  transition: left .18s ease;
}

/* Active — JS toggles this */
.mega-box.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .28s ease, transform .28s ease, visibility 0s linear 0s;
}

/* ── Image card (About / Industries / Insights) ── */
a.mega-card {
  width: 230px;
  flex-shrink: 0;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .35s ease;
}
a.mega-card:hover { transform: translateY(-7px); }

.image-outer {
  background: #fff;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid #e6e9ee;
}
.image-outer img {
  width: 100%; height: 155px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  transition: filter .4s;
}
a.mega-card:hover .image-outer img { filter: brightness(1.05); }

.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px 8px;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  position: relative;
}
.card-footer::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 3px;
  background: #0f395f;
  border-radius: 3px;
  transition: width .4s ease;
}
a.mega-card:hover .card-footer::after { width: 100%; }

.icon-box {
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e6e9ee;
  display: flex; align-items: center; justify-content: center;
  color: #0f395f;
  font-size: 18px;
  flex-shrink: 0;
}
.info-text { font-size: 14px; font-weight: 600; color: #111; }

/* ── Services mega ── */
.mega-services { width: min(96vw, 1280px); gap: 28px; }

.services-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}
.service-col { padding: 18px 16px; border-radius: 14px; }

.section-title {
  background: #cfe2f3;
  color: #0f395f;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 13px;
  display: inline-block;
}
.section-title.mt { margin-top: 20px; }

.service-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.service-list li a {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: #444;
  text-decoration: none;
  transition: color .22s, transform .22s;
}
.service-list li a:hover { color: #0f395f; transform: translateX(5px); }

.svc-icon-wrap {
  width: 36px; height: 33px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e6e9ee;
  display: flex; align-items: center; justify-content: center;
  color: #0f395f; font-size: 14px;
  flex-shrink: 0;
}
.svc-icon-wrap img { width: 17px; height: 17px; object-fit: contain; }

.service-text { position: relative; }
.service-text::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: #0f395f;
  border-radius: 2px;
  transition: width .3s ease;
}
.service-list li a:hover .service-text::after { width: 100%; }

/* Services right card */
.services-card {
  width: 255px; flex-shrink: 0;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #eef2f6;
  align-self: flex-start;
}
.services-card .card-img {
  width: 100%; height: 150px;
  object-fit: cover;
  border-radius: 13px;
  display: block;
  margin-bottom: 14px;
}
.info-row {
  display: flex; align-items: center; gap: 12px;
  background: #f7f9fc;
  padding: 10px 11px;
  border-radius: 11px;
  margin-bottom: 9px;
}
.icon-circle {
  width: 34px; height: 34px;
  background: #cfe2f3;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #0f395f; font-size: 13px;
  flex-shrink: 0;
}
.info-row small { display: block; font-size: 10px; color: #999; }
.info-row p { font-size: 12px; font-weight: 500; color: #0f395f; margin: 0; }

.join-btn {
  display: block; width: 100%;
  margin-top: 12px;
  background: #0f395f; color: #fff;
  border: none; padding: 13px;
  border-radius: 11px; font-weight: 600;
  font-size: 12.5px; cursor: pointer;
  text-align: center; text-decoration: none;
  transition: background .3s, transform .2s;
}
.join-btn:hover { background: #154b7d; transform: translateY(-2px); color: #fff; }

/* ── Products mega ── */
.mega-products { width: min(96vw, 1060px); gap: 28px; }

.product-left {
  width: 290px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
}
.product-left > img {
  width: 100%; height: 240px;
  object-fit: cover;
  border-radius: 16px; display: block;
}
.demo-btn {
  display: block; width: 100%; margin-top: 14px;
  background: #0f395f; color: #fff;
  border: none; padding: 14px;
  border-radius: 11px; font-weight: 600;
  font-size: 12.5px; cursor: pointer;
  text-align: center; letter-spacing: .4px;
  text-decoration: none; transition: background .3s;
}
.demo-btn:hover { background: #154b7d; color: #fff; }

.product-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
  align-content: start;
}
a.product-card {
  display: flex; gap: 14px; padding: 14px;
  border-radius: 14px; cursor: pointer;
  text-decoration: none; color: inherit;
  align-items: flex-start;
  transition: background .25s, transform .25s;
}
a.product-card:hover { background: #f4f8fc; transform: translateY(-4px); }

a.product-card > img {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: #fff; border: 1px solid #e6e9ee;
  padding: 8px; object-fit: contain; flex-shrink: 0;
}
a.product-card h4 {
  font-size: 14px; font-weight: 600; color: #111;
  margin: 0 0 4px; display: inline-block; position: relative;
}
a.product-card h4::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 0; height: 2px; background: #0f395f;
  transition: width .3s ease;
}
a.product-card:hover h4::after { width: 100%; }
a.product-card p { font-size: 12px; color: #666; line-height: 1.5; margin: 0; }

/* ── Industries mega ── */
.mega-industries {
  display: grid !important;
  grid-template-columns: repeat(4,1fr) !important;
  gap: 20px;
  min-width: min(96vw, 1020px);
}
.mega-industries a.mega-card { width: auto; }

/* ── Insights mega ── */
.mega-insights { min-width: 540px; justify-content: center; }
.mega-insights a.mega-card { width: 245px; }

/* ── Right icons ── */
.nsiq-icons { display: flex; gap: 10px; flex-shrink: 0; }
.nsiq-icons a {
  width: 36px; height: 36px;
  background: #f1f4f8;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #0f395f; font-size: 14px;
  text-decoration: none;
  transition: background .3s, color .3s, transform .3s;
}
.nsiq-icons a:hover { background: #0f395f; color: #fff; transform: scale(1.1); }

/* ── Hamburger (mobile only) ── */
.nsiq-toggle {
  display: none;
  background: none; border: none;
  font-size: 21px; color: #0f395f;
  cursor: pointer; padding: 4px 8px;
  line-height: 1; flex-shrink: 0;
}


/* =============================================================
   RESPONSIVE
============================================================= */

/* 1280 – tighten slightly - commented code by chetan date 20-05-2006 */
/*@media (max-width: 1280px) {*/
/*  .nsiq-nav > ul { gap: 0; }*/
/*  .nsiq-nav > ul > li > a { font-size: 12.5px; padding: 7px 8px; }*/
/*  .nsiq-logo img { max-width: 120px; }*/
/*}*/

/* 1280 – mid laptop tighten - added code by chetan date 20-05-2006*/
@media (max-width: 1280px) {
  .nsiq-header { padding: 14px 18px 0; }
  .nsiq-header-inner { padding: 11px 22px; max-width: 1200px; }
  .nsiq-nav > ul { gap: 0; }
  .nsiq-nav > ul > li > a { font-size: 15px; padding: 7px 7px; }
  .nsiq-logo img { max-width: 115px; }
  .nsiq-icons { gap: 8px; }
  .nsiq-icons a { width: 32px; height: 32px; font-size: 12px; }
  
    /* Services mega — tighter at 1280 */
  .mega-services { width: min(94vw, 1140px); gap: 20px; padding: 22px; }
  .services-grid { gap: 16px; }
  .service-col { padding: 14px 12px; }
  .service-list { gap: 10px; }
  .service-list li a { font-size: 12.5px; gap: 8px; }
  .service-text { line-height: 1.3; }
  .svc-icon-wrap { width: 32px; height: 30px; }
  .svc-icon-wrap img { width: 15px; height: 15px; }
  .section-title { font-size: 11.5px; padding: 6px 11px; margin-bottom: 11px; }
  .services-card { width: 220px; padding: 14px; }
  .services-card .card-img { height: 130px; margin-bottom: 12px; }
  .info-row { padding: 8px 10px; gap: 10px; margin-bottom: 7px; }
  .icon-circle { width: 30px; height: 30px; font-size: 12px; }
  .info-row p { font-size: 11.5px; }
  .info-row small { font-size: 9.5px; }
  .join-btn { padding: 11px; font-size: 12px; }
/* Products mega — tighter */
  .mega-products { width: min(94vw, 970px); gap: 22px; padding: 22px; }
  .product-left { width: 250px; }
  .product-left > img { height: 220px; }
  .demo-btn { padding: 12px; font-size: 12px; }
  .product-right { gap: 12px; }
  a.product-card { padding: 12px; gap: 11px; }
  a.product-card > img { width: 46px; height: 46px; }
  a.product-card h4 { font-size: 13px; }
  a.product-card p { font-size: 11.5px; line-height: 1.45; }

  /* Industries mega — tighter */
  .mega-industries {
    min-width: min(94vw, 940px) !important;
    gap: 16px;
    padding: 22px;
  }
  .mega-industries a.mega-card { }
  .image-outer img { height: 135px; }
  .card-footer { font-size: 13.5px; padding: 10px 4px 6px; }
  .icon-box { width: 38px; height: 38px; font-size: 16px; }
  .info-text { font-size: 13px; }

  /* About / Insights — slight tighten */
  .mega-about, .mega-insights { padding: 22px; gap: 18px; }
  .mega-about a.mega-card,
  .mega-insights a.mega-card { width: 210px; }
}
/* 1200 – small laptop / large tablet landscape */
@media (max-width: 1200px) {
  .nsiq-header-inner { padding: 10px 18px; }
  .nsiq-nav > ul > li > a { font-size: 15px; padding: 7px 6px; }
  .nsiq-nav > ul > li > a .fa-angle-down { font-size: 9px; }
  .nsiq-logo img { max-width: 180px; }

  /* Services mega — even tighter */
  .mega-services { width: min(94vw, 1040px); }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .service-col { padding: 12px 10px; }
  .service-list li a { font-size: 12px; }
  .services-card { width: 200px; }

  /* Products mega */
  .mega-products { width: min(94vw, 900px); }
  .product-left { width: 230px; }
  .product-left > img { height: 200px; }

  /* Industries */
  .mega-industries {
    grid-template-columns: repeat(4, 1fr) !important;
    min-width: min(94vw, 880px) !important;
  }
  .image-outer img { height: 120px; }
  .card-footer { font-size: 12.5px; }
  .icon-box { width: 36px; height: 36px; font-size: 15px; }
  .info-text { font-size: 12.5px; }
}
/* 1100 – switch to mobile */
@media (max-width: 1100px) {
  .nsiq-toggle { display: block; }

  .nsiq-nav {
      display: none;
      position: fixed;
      top: 90px;              /* header ke neeche se start hoga */
      left: 12px; right: 12px;
      background: #fff;
      border-radius: 20px;
      box-shadow: 0 16px 48px rgba(0,0,0,.14);
      padding: 14px 12px 20px;
      z-index: 9998;
      max-height: calc(100dvh - 110px);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
  .nsiq-nav.mobile-open { display: block; }

  .nsiq-nav > ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .nsiq-nav > ul > li {
    border-bottom: 1px solid #f0f3f6;
  }
  .nsiq-nav > ul > li:last-child { border-bottom: none; }

  .nsiq-nav > ul > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 13px 10px;
    border-radius: 0;
    width: 100%;
    background: none !important;
  }
  .nsiq-nav > ul > li > a::after { display: none; }
  .nsiq-nav > ul > li > a .fa-angle-down { display: inline-block !important; }

  /* Accordion mega-box */
  .mega-box {
    position: static !important;
    transform: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    margin: 0;
    border: none;
    box-shadow: none;
    border-radius: 12px;
    background: #f8fafc;
    flex-direction: column;
    gap: 10px;
    transition: max-height .38s ease, opacity .25s ease,
                padding .25s ease, margin .25s ease,
                visibility 0s linear .38s;
  }
  .mega-box.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 2000px;
    padding: 14px 10px;
    margin: 4px 0 8px;
    transition: max-height .45s ease, opacity .25s ease,
                padding .25s ease, margin .25s ease,
                visibility 0s linear 0s;
  }
  .mega-box::before { display: none; }

  /* Reset mega widths */
  .mega-services,
  .mega-products,
  .mega-industries,
  .mega-insights,
  .mega-about { width: auto !important; min-width: 0 !important; }

  /* Services grid → 1 column */
  .services-grid { grid-template-columns: 1fr; gap: 0; }
  .service-col { padding: 8px 4px; }
  .section-title { font-size: 11px; padding: 5px 10px; }
  .service-list { gap: 10px; }
  .service-list li a { font-size: 13px; }

  /* Services right card */
  .services-card { width: 100%; margin-top: 12px; }
  .services-card .card-img { height: 130px; }

  /* Products */
  .product-left { width: 100%; }
  .product-left > img { height: 160px; }
  .product-right { grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }

  /* About / Insights → column */
  .mega-about,
  .mega-insights { flex-direction: column; gap: 10px; }
  a.mega-card { width: 100%; }
  .image-outer img { height: 120px; }

  /* Industries → single column */
  .mega-industries {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .mega-industries a.mega-card { width: 100%; }
}

/* On mobile/tablet — keep pill shape even when scrolled */
@media (max-width: 1100px) {
  .nsiq-header { padding: 10px 12px 0; }
  .nsiq-header.is-scrolled { padding: 8px 12px 0; }
  .nsiq-header-inner { border-radius: 50px; padding: 12px 18px; }
  .nsiq-header.is-scrolled .nsiq-header-inner {
    border-radius: 50px;
    padding: 12px 18px;
    max-width: 100%;
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
  }
}

/* 600 */
@media (max-width: 600px) {
  .nsiq-header { padding: 8px 10px 0; }
  .nsiq-header.is-scrolled { padding: 6px 10px 0; }
  .nsiq-header-inner { padding: 10px 14px; }
  .nsiq-header.is-scrolled .nsiq-header-inner { padding: 10px 14px; }
  .nsiq-logo img { max-width: 110px; }
  /*.nsiq-page-offset { padding-top: 80px; }*/
}

/* 1440 – large laptop adjustment - New Added on 20-05-2026 by. Chetan*/
@media (max-width: 1440px) {
  .nsiq-header-inner { padding: 12px 24px; max-width: 1340px; }
  .nsiq-nav > ul { gap: 0; }
  .nsiq-nav > ul > li > a { font-size: 16px; padding: 8px 9px; }
  .nsiq-logo img { max-width: 125px; }
  .nsiq-icons a { width: 34px; height: 34px; font-size: 16px; }
}

/* Mobile menu position fix */
@media (max-width: 1100px) {
  .nsiq-nav { top: 90px; }
}

@media (max-width: 600px) {
  .nsiq-nav { top: 78px; }
}

/* Jab header scroll ho jaye to menu position adjust */
.nsiq-header.is-scrolled ~ * .nsiq-nav,
.nsiq-header.is-scrolled .nsiq-nav {
  top: 78px;
}
