/* ============================================================
   EMTOP megamenu for The7 child theme
   Scoped to .emtop-nav — does not touch The7 styles elsewhere.
   Accent follows The7: #1ebbf0
   ============================================================ */

.masthead.inline-header { position: relative; }

.emtop-nav { display: flex; align-items: center; }
.emtop-nav, .emtop-nav * { box-sizing: border-box; }
.emtop-nav ul { list-style: none; margin: 0; padding: 0; }
.emtop-nav img { max-width: 100%; height: auto; }

/* top-level items */
.emtop-nav > ul { display: flex; align-items: center; }
.emtop-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px;
  font-size: 15px; font-weight: 700; line-height: 1.4;
  color: inherit; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.emtop-nav > ul > li > a:hover { color: #1ebbf0; }
.emtop-nav > ul > li.open > a { color: #1ebbf0; border-bottom-color: #1ebbf0; }
.emtop-nav .caret { width: 13px; height: 13px; transition: transform .2s; }
.emtop-nav li.open .caret { transform: rotate(180deg); }

/* panels hidden by default */
.emtop-nav .panel { display: none; }
.emtop-nav li.open > .panel { display: block; }

/* simple dropdown */
.emtop-nav .nav-drop {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 240px; background: #fff;
  border: 1px solid #e8e8e8; border-radius: 8px; padding: 8px;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.18);
  z-index: 1001;
}
.emtop-nav .nav-drop a {
  display: block; padding: 8px 12px; font-size: 14px; font-weight: 500;
  color: #3a3f46; border-radius: 4px; text-decoration: none;
}
.emtop-nav .nav-drop a:hover { background: #f2f6f8; color: #1ebbf0; }

/* mega panel */
.emtop-nav .has-mega { position: static; }
.emtop-nav .mega-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid #eee; border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 30px 50px -25px rgba(0,0,0,.22);
  z-index: 1000;
}
.emtop-nav .mega-inner {
  display: flex; max-width: 1330px; margin: 0 auto; padding: 0 24px;
}
.emtop-nav .mega-rail {
  width: 250px; flex-shrink: 0;
  border-right: 1px solid #eee;
  padding: 20px 12px; background: #f7f9fa;
}
.emtop-nav .mega-rail a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; font-size: 14px; font-weight: 600;
  color: #3a3f46; border-radius: 6px; text-decoration: none;
}
.emtop-nav .mega-rail a:hover { background: rgba(0,0,0,.045); color: #111; }
.emtop-nav .mega-rail li.active a { background: rgba(30,187,240,.13); color: #0b8fba; font-weight: 800; }
.emtop-nav .mega-rail svg { width: 13px; height: 13px; opacity: 0; }
.emtop-nav .mega-rail li.active svg { opacity: 1; }

.emtop-nav .mega-content { flex: 1; min-width: 0; padding: 26px 0 26px 34px; }
.emtop-nav .mega-groups { display: grid; gap: 26px 28px; }
.emtop-nav .mega-groups.cols-1 { grid-template-columns: 1fr; }
.emtop-nav .mega-groups.cols-2 { grid-template-columns: repeat(2, 1fr); }
.emtop-nav .mega-groups.cols-3 { grid-template-columns: repeat(3, 1fr); }
.emtop-nav .mega-groups.cols-4 { grid-template-columns: repeat(4, 1fr); }
.emtop-nav .mega-group-img {
  height: 148px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #ececec; border-radius: 10px;
  padding: 14px; overflow: hidden;
}
.emtop-nav .mega-group-img a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.emtop-nav .mega-group-img img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform .25s; }
.emtop-nav .mega-group:hover .mega-group-img img { transform: scale(1.06); }
.emtop-nav .mega-group:hover .mega-group-img { border-color: rgba(30,187,240,.55); }
.emtop-nav .mega-group-fallback { font-size: 11px; letter-spacing: .1em; color: #9aa3ab; text-transform: uppercase; }
.emtop-nav .mega-group h4 { margin: 13px 0 7px; font-size: 15px; font-weight: 800; line-height: 1.3; }
.emtop-nav .mega-group h4 a { color: #1c232b; text-decoration: none; }
.emtop-nav .mega-group h4 a:hover { color: #1ebbf0; }
.emtop-nav .mega-group ul a {
  display: block; padding: 5px 8px; margin: 0 -8px; border-radius: 5px;
  font-size: 13px; line-height: 1.45; color: #5b636c; text-decoration: none;
}
.emtop-nav .mega-group ul a:hover { background: #f2f6f8; color: #1ebbf0; }

.emtop-nav .mega-banner {
  margin-top: 26px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(100deg, #101820, #123043);
  color: #eaf6fb; border-radius: 10px; padding: 16px 24px;
  text-decoration: none;
}
.emtop-nav .mega-banner:hover { background: linear-gradient(100deg, #14202b, #174a66); }
.emtop-nav .mega-banner .b-title { font-size: 14px; font-weight: 800; color: #fff; }
.emtop-nav .mega-banner .b-cta {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: 6px;
}
.emtop-nav .mega-banner svg { width: 14px; height: 14px; }

/* keep dropdown positioned relative to its li */
.emtop-nav .has-drop { position: relative; }
