/* India Navbar + Mega Menu CSS (extracted from src/app/globals.css) */
/* For standalone India HTML pages served from /public/ */

body { padding-top: 76px; margin: 0; font-family: Poppins, sans-serif; }
[data-mirror-root] { padding-top: 76px; }

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes mmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mmSlideDown { from { transform: translateY(-16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==========================================
   MEGA MENU OVERLAY
   ========================================== */
.mm-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 99999;
  display: flex; flex-direction: column; align-items: stretch;
  animation: mmFadeIn 0.2s ease; overflow-y: auto;
}

.mm-container {
  background: #fff; width: 100%; max-width: 1400px; margin: 60px auto 0;
  min-height: 500px; max-height: 80vh; display: flex; flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18); border-radius: 0 0 12px 12px;
  position: relative; animation: mmSlideDown 0.25s ease; overflow: hidden;
}

.mm-close {
  position: absolute; top: 14px; right: 16px; width: 36px; height: 36px;
  border: none; background: transparent; font-size: 28px; line-height: 1;
  color: #555; cursor: pointer; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; transition: background 0.15s; z-index: 10;
}
.mm-close:hover { background: #f0e8ff; color: #a211c4; }

.mm-layout { display: flex; flex: 1; min-height: 0; overflow: hidden; }

.mm-sidebar {
  width: 240px; flex-shrink: 0; background: #fafafa; border-right: 1px solid #ebebeb;
  padding: 28px 0 28px; overflow-y: auto;
}
.mm-sidebar-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #999; padding: 0 20px 12px; margin: 0;
}
.mm-category-list { list-style: none; margin: 0; padding: 0; }
.mm-category-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 20px; font-size: 15px; font-weight: 500; color: #444;
  cursor: pointer; border-left: 3px solid transparent;
  transition: all 0.15s ease; user-select: none;
}
.mm-category-item:hover { background: #f0e8ff; color: #a211c4; }
.mm-category-item.active {
  background: #f5f0ff; color: #a211c4; border-left-color: #a211c4; font-weight: 600;
}
.mm-arrow { font-size: 18px; color: #bbb; line-height: 1; transition: color 0.15s; }
.mm-category-item:hover .mm-arrow,
.mm-category-item.active .mm-arrow { color: #a211c4; }

.mm-content { flex: 1; padding: 28px 32px; overflow-y: auto; min-width: 0; }
.mm-header { margin-bottom: 24px; }
.mm-title { font-size: 22px; font-weight: 700; color: #2c1f39; margin: 0; }

.mm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
}

.mm-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 16px;
  background: #fff; border: 1.5px solid #e8e8e8; border-radius: 10px;
  text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.mm-card:hover {
  border-color: #a211c4; box-shadow: 0 4px 16px rgba(162, 17, 196, 0.12);
  transform: translateY(-2px);
}
.mm-card-icon {
  width: 44px; height: 44px; background: #f5f0ff; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mm-card-name { font-size: 14px; font-weight: 600; color: #2c1f39; line-height: 1.4; }
.mm-card-desc {
  font-size: 12px; color: #6b7280; margin: 2px 0 0; padding: 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.mm-card-link { font-size: 13px; color: #a211c4; font-weight: 600; margin-top: auto; }
.mm-card:hover .mm-card-link { text-decoration: underline; }

@media (max-width: 991px) {
  .mm-container { margin: 0; max-height: 100dvh; border-radius: 0; min-height: unset; }
  .mm-layout { flex-direction: column; overflow: visible; }
  .mm-sidebar {
    width: 100%; border-right: none; border-bottom: 1px solid #ebebeb; padding: 12px 0 0;
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  }
  .mm-sidebar-title { display: none; }
  .mm-category-list { display: flex; flex-direction: row; white-space: nowrap; padding: 0 12px; gap: 4px; }
  .mm-category-item {
    flex-shrink: 0; border-left: none; border-bottom: 3px solid transparent;
    padding: 8px 14px 10px; font-size: 14px; border-radius: 0;
  }
  .mm-category-item.active { border-left: none; border-bottom-color: #a211c4; background: transparent; }
  .mm-category-item:hover { background: #f5f0ff; }
  .mm-arrow { display: none; }
  .mm-content { padding: 20px 16px; overflow-y: auto; flex: 1; }
  .mm-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mm-title { font-size: 18px; }
}
@media (max-width: 480px) {
  .mm-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mm-card { padding: 14px 12px; }
  .mm-card-name { font-size: 13px; }
}

/* ==========================================
   NAVBAR (.nb-nav)
   ========================================== */
.nb-nav {
  position: fixed; top: 0; left: 0; right: 0; height: 76px; background: #fff;
  border-bottom: 1px solid #ebebeb; z-index: 9999; box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  font-family: Poppins, sans-serif;
}
.nb-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 32px; height: 100%;
  display: flex; align-items: center; position: relative;
}
.nb-logo { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
.nb-logo img { height: 32px; width: auto; }

.nb-links {
  display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nb-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px;
  font-size: 18px; font-weight: 500; color: #2c1f39; text-decoration: none;
  border-radius: 6px; transition: color 0.15s, background 0.15s; white-space: nowrap;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nb-link:hover { color: #a211c4; background: #f5f0ff; }
.nb-link-active { color: #a211c4 !important; font-weight: 700; background: none; }
.nb-link-btn { background: none; border: none; cursor: pointer; font-family: inherit; }

.nb-chevron { transition: transform 0.2s ease; flex-shrink: 0; opacity: 0.6; }
.nb-chevron-up { transform: rotate(180deg); }

.nb-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; background: #fff;
  border: 1px solid #e8e8e8; border-radius: 10px; padding: 8px; min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); list-style: none; margin: 0;
  z-index: 100; animation: mmFadeIn 0.15s ease;
}
.nb-dropdown-link {
  display: block; padding: 9px 14px; font-size: 14px; font-weight: 500;
  color: #2c1f39; text-decoration: none; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nb-dropdown-link:hover { background: #f5f0ff; color: #a211c4; }
.nb-dropdown-featured {
  color: #a211c4 !important; font-weight: 600 !important; border-top: 1px solid #eee;
  margin-top: 4px; padding-top: 12px !important;
}

.nb-right { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }

.nb-cta {
  display: inline-flex; align-items: center; padding: 10px 24px; background: #fff;
  color: #a211c4 !important; border: 2px solid #a211c4; font-size: 16px;
  font-weight: 600; border-radius: 50px; text-decoration: none;
  transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.nb-cta:hover { background: #a211c4; color: #fff !important; }

.nb-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; background: #f3e8ff; border: none;
  cursor: pointer; padding: 8px; border-radius: 8px;
}
.nb-hamburger span {
  display: block; width: 22px; height: 2px; background: #a211c4; border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s; transform-origin: center;
}
.nb-hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nb-hamburger-open span:nth-child(2) { opacity: 0; }
.nb-hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nb-mobile-overlay { display: none; }
.nb-mobile-overlay[hidden] { display: none !important; }

@media (max-width: 991px) {
  .nb-inner { padding: 0 16px; gap: 12px; }
  .nb-links { display: none; }
  .nb-cta { display: none; }
  .nb-hamburger { display: flex; }
  .nb-mobile-overlay {
    display: flex; flex-direction: column; position: fixed; top: 76px; left: 0;
    right: 0; bottom: 0; background: #fff; z-index: 9998; overflow-y: auto;
    animation: mmFadeIn 0.2s ease; padding: 16px 0 32px;
  }
  .nb-mobile-overlay[hidden] { display: none !important; }
  .nb-mobile-links {
    list-style: none; margin: 0; padding: 0 16px;
    display: flex; flex-direction: column; gap: 2px;
  }
  .nb-mobile-link, .nb-mobile-trigger, .nb-mobile-expand {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 14px 16px; font-size: 16px; font-weight: 500;
    color: #2c1f39; text-decoration: none; background: none; border: none;
    border-radius: 8px; cursor: pointer; font-family: inherit; text-align: left;
    transition: background 0.15s, color 0.15s;
  }
  .nb-mobile-link:hover, .nb-mobile-trigger:hover, .nb-mobile-expand:hover {
    background: #f5f0ff; color: #a211c4;
  }
  .nb-mobile-sub { list-style: none; margin: 0; padding: 0 0 4px 16px; }
  .nb-mobile-sub[hidden] { display: none !important; }
  .nb-mobile-sub-link {
    display: block; padding: 11px 16px; font-size: 15px; color: #555;
    text-decoration: none; border-radius: 6px;
    transition: background 0.15s, color 0.15s;
  }
  .nb-mobile-sub-link:hover { background: #f5f0ff; color: #a211c4; }
  .nb-mobile-cta {
    display: block; margin: 16px 16px 0; padding: 14px 20px; background: #a211c4;
    color: #fff !important; font-size: 16px; font-weight: 600; border-radius: 8px;
    text-decoration: none; text-align: center; transition: background 0.2s;
  }
  .nb-mobile-cta:hover { background: #8a0ea6; }
}
