/* ================================================
   GURUKULL INSTITUTE - PREMIUM MEGA MENU STYLES
   ================================================ */

/* ── HIDE CITIES FROM NAV ── */
.gi-nav-cities-hide { display: none !important; }

/* ── NAVBAR OVERRIDE ── */
.gi-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.gi-menu > li > a {
  display: flex; align-items: center; gap: 5px;
  color: #e2e8f0; font-size: 0.88rem; font-weight: 600;
  padding: 22px 12px; text-decoration: none; white-space: nowrap;
  transition: color 0.2s; letter-spacing: 0.02em; position: relative;
}
.gi-menu > li > a:hover, .gi-menu > li:hover > a { color: #ffe066; }
.gi-menu > li > a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 3px; background: linear-gradient(90deg,#6c63ff,#ffe066);
  transition: left 0.25s, right 0.25s; border-radius: 3px 3px 0 0;
}
.gi-menu > li:hover > a::after { left: 10%; right: 10%; }

/* ── MEGA MENU WRAPPER ── */
.gi-mega-menu-wrap {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 940px; max-width: 97vw;
  background: linear-gradient(135deg,rgba(15,17,35,0.98) 0%,rgba(28,24,60,0.98) 100%);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px);
  display: none; z-index: 99999;
  padding: 0; overflow: hidden;
  animation: megaFadeIn 0.22s ease;
}
@keyframes megaFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.gi-has-mega { position: static; }
.gi-has-mega:hover .gi-mega-menu-wrap { display: flex; }

/* ── MEGA INNER LAYOUT ── */
.gi-mega-inner { display: flex; width: 100%; }

/* ── LEFT CATEGORY LIST ── */
.gi-mega-left {
  width: 230px; min-width: 230px;
  background: linear-gradient(180deg,rgba(108,99,255,0.12) 0%,rgba(0,0,0,0.18) 100%);
  border-right: 1px solid rgba(108,99,255,0.2);
  padding: 18px 0;
}
.gi-mega-cat {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; cursor: pointer;
  color: #c0cadf; font-size: 0.83rem; font-weight: 600;
  transition: background 0.18s, color 0.18s;
  border-left: 3px solid transparent; position: relative;
}
.gi-mega-cat i { width: 20px; text-align: center; font-size: 0.9rem; color: #6c63ff; flex-shrink: 0; }
.gi-mega-cat:hover,
.gi-mega-cat.active {
  background: rgba(108,99,255,0.18);
  color: #ffe066; border-left-color: #ffe066;
}
.gi-mega-cat:hover i,
.gi-mega-cat.active i { color: #ffe066; }
.gi-mega-cat .badge-new {
  margin-left: auto; background: linear-gradient(90deg,#6c63ff,#ffe066);
  color: #0f1123; font-size: 0.62rem; font-weight: 800;
  padding: 1px 6px; border-radius: 10px; letter-spacing: 0.04em;
}

/* ── RIGHT COURSE PANELS ── */
.gi-mega-right { flex: 1; padding: 20px 24px; min-height: 320px; }
.gi-mega-panel { display: none; animation: panelFade 0.18s ease; }
.gi-mega-panel.active { display: block; }
@keyframes panelFade {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.gi-mega-panel-title {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: #6c63ff; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(108,99,255,0.2);
}
.gi-mega-courses { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gi-mega-course-link {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px; text-decoration: none;
  color: #c0cadf; font-size: 0.8rem; font-weight: 500;
  transition: background 0.16s, color 0.16s, transform 0.12s;
  border: 1px solid transparent;
}
.gi-mega-course-link i { font-size: 0.78rem; color: #6c63ff; width: 16px; text-align: center; flex-shrink: 0; }
.gi-mega-course-link:hover {
  background: rgba(108,99,255,0.15); color: #ffe066;
  border-color: rgba(108,99,255,0.25); transform: translateX(2px);
}
.gi-mega-course-link:hover i { color: #ffe066; }
.gi-mega-course-link .duration-tag {
  margin-left: auto; font-size: 0.65rem; background: rgba(108,99,255,0.18);
  color: #a78bfa; padding: 2px 7px; border-radius: 8px; white-space: nowrap; flex-shrink: 0;
}

/* ── MEGA FOOTER STRIP ── */
.gi-mega-footer {
  background: rgba(0,0,0,0.3); border-top: 1px solid rgba(108,99,255,0.15);
  padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.gi-mega-footer-cta {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 25px; text-decoration: none; font-size: 0.78rem; font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gi-mega-footer-cta.primary {
  background: linear-gradient(90deg,#6c63ff,#8b5cf6); color: #fff;
  box-shadow: 0 4px 16px rgba(108,99,255,0.35);
}
.gi-mega-footer-cta.secondary {
  background: linear-gradient(90deg,#ffe066,#ffc107); color: #1a1a2e;
  box-shadow: 0 4px 16px rgba(255,224,102,0.3);
}
.gi-mega-footer-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,99,255,0.45); }
.gi-mega-footer-info { color: #637085; font-size: 0.74rem; }
.gi-mega-footer-info strong { color: #ffe066; }

/* ── STANDARD SMALL DROPDOWN (non-mega) ── */
.gi-has-dropdown { position: relative; }
.gi-dropdown {
  position: absolute; top: 100%; left: 0;
  background: rgba(15,17,35,0.97); border: 1px solid rgba(108,99,255,0.2);
  border-radius: 10px; min-width: 220px; list-style: none;
  padding: 10px 0; margin: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  display: none; z-index: 9999;
  animation: megaFadeIn 0.2s ease;
}
.gi-has-dropdown:hover .gi-dropdown { display: block; }
.gi-dropdown li a {
  display: block; padding: 9px 18px; color: #c0cadf;
  font-size: 0.82rem; font-weight: 500; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.gi-dropdown li a:hover { background: rgba(108,99,255,0.15); color: #ffe066; }

/* ── MOBILE MEGA MENU (accordion) ── */
@media (max-width: 991px) {
  .gi-mega-menu-wrap {
    position: static; width: 100%; transform: none;
    border-radius: 0; max-height: 0; overflow: hidden;
    display: block; animation: none; box-shadow: none;
    border: none; border-top: 1px solid rgba(108,99,255,0.15);
    transition: max-height 0.35s ease;
  }
  .gi-has-mega.open .gi-mega-menu-wrap { max-height: 700px; overflow-y: auto; }
  .gi-mega-inner { flex-direction: column; }
  .gi-mega-left { width: 100%; border-right: none; border-bottom: 1px solid rgba(108,99,255,0.15); padding: 8px 0; }
  .gi-mega-cat { font-size: 0.82rem; padding: 9px 16px; }
  .gi-mega-right { padding: 14px 16px; }
  .gi-mega-courses { grid-template-columns: 1fr; }
  .gi-mega-footer { flex-direction: column; align-items: flex-start; }
  .gi-mega-panel { display: none !important; }
  .gi-mega-panel.active { display: block !important; }
  .gi-mega-cat { cursor: pointer; }
}

/* ── BOOK FREE DEMO CTA BUTTON ── */
.gi-btn-demo-main {
  background: linear-gradient(90deg,#ffe066,#ffc107);
  color: #1a1a2e !important; font-weight: 800 !important;
  padding: 9px 18px !important; border-radius: 22px;
  font-size: 0.82rem !important; box-shadow: 0 4px 16px rgba(255,224,102,0.3);
  transition: transform 0.15s, box-shadow 0.15s !important;
}
.gi-btn-demo-main:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,224,102,0.45) !important; color: #1a1a2e !important; }

/* ── STICKY MOBILE BUTTONS ── */
.gi-sticky-mobile {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(10,12,30,0.97); border-top: 1px solid rgba(108,99,255,0.25);
  padding: 8px 10px; gap: 6px; z-index: 9998; justify-content: space-between;
}
.gi-sticky-mobile a {
  flex: 1; text-align: center; padding: 9px 4px; border-radius: 8px;
  font-size: 0.74rem; font-weight: 700; text-decoration: none; display: flex;
  align-items: center; justify-content: center; gap: 4px;
}
.gi-sticky-mobile .sm-wa { background: #25D366; color: #fff; }
.gi-sticky-mobile .sm-call { background: #1e2c5c; color: #ffe066; border: 1px solid #ffe066; }
.gi-sticky-mobile .sm-demo { background: linear-gradient(90deg,#6c63ff,#8b5cf6); color: #fff; }
@media (max-width: 768px) { .gi-sticky-mobile { display: flex; } }
