/* ============================================================
   ACCESSIBILITY BAR
   ============================================================ */
.accessibility-bar {
  background: #eaecf4;
  border-bottom: 1px solid #d5d8e8;
  padding: 8px 0 4px 0;
  position: relative;
}

.accessibility-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #FF671F 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #046A38 66.66%);
}

.acc-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.acc-link {
  color: #2c2c6e;
  font-size: 0.76rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.acc-link:hover {
  color: var(--orange);
}

.sitemap-link {
  gap: 5px;
}

.acc-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.font-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.font-btn {
  background: transparent;
  border: 1px solid #2c2c6e;
  color: #2c2c6e;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  line-height: 1.6;
  transition: all 0.2s;
}

.font-btn-sm {
  font-size: 0.65rem;
}

.font-btn:hover {
  background: #2c2c6e;
  color: #fff;
}

.acc-divider {
  color: #aaa;
  font-size: 0.75rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: 1px solid #2c2c6e;
  color: #2c2c6e;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: #2c2c6e;
  color: #fff;
}

.lang-btn.open {
  background: #2c2c6e;
  color: #fff;
}

.lang-btn.open svg {
  transform: rotate(180deg);
}

.lang-btn svg {
  transition: transform 0.2s;
}

/* Language Dropdown Wrapper */
.lang-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 3px solid var(--orange);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.18s ease;
  z-index: 500;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 8px 14px;
  color: #1a1a4e;
  font-size: 0.78rem;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.15s;
  text-decoration: none;
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: #fff8f3;
  color: var(--orange);
}

.lang-option.active {
  background: #fff8f3;
  color: var(--orange);
  font-weight: 700;
}

/* ============================================================
   MAIN HEADER
   ============================================================ */
.main-header {
  background: linear-gradient(180deg, #1c1c56 0%, #111140 100%);
  padding: 10px 0;
  border-bottom: 3px solid var(--orange);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand block */
.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Emblem: compact, seal + Satyamev Jayate Hindi text */
.emblem-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.emblem-img {
  width: 44px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.satyamev {
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  opacity: 0.95;
  text-align: center;
  margin-top: 2px;
  line-height: 1.1;
}

/* Dept text */
.dept-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.dept-hindi {
  color: #b8c8e8;
  font-size: 0.72rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}

.dept-en {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.25;
  margin: 0;
}

.ministry-en {
  color: #8fa8cc;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin: 2px 0 0;
}

/* Portal tag */
.portal-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 7px 14px;
  white-space: nowrap;
}

.portal-tag-text {
  color: #c8d8f0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.primary-nav {
  background: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

/* Nav list */
.nav-list {
  display: flex;
  align-items: stretch;
  flex: 1;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  height: 42px;
  color: #1a1a4e;
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.18s;
  letter-spacing: 0.1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
  background: #fff8f3;
}

.nav-chevron {
  opacity: 0.6;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 185px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 3px solid var(--orange);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.18s ease;
  z-index: 300;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  color: #1a1a4e;
  font-size: 0.78rem;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.15s;
  white-space: nowrap;
}

.dropdown-menu li:last-child > a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: #fff8f3;
  color: var(--orange);
  padding-left: 20px;
}

/* Submenu / 2-Level Nested Dropdown Hierarchy */
.dropdown-menu li.has-submenu {
  position: relative;
}

.dropdown-menu li.has-submenu > a::after {
  content: '▸';
  font-size: 0.75rem;
  margin-left: 10px;
  color: #888;
  transition: transform 0.15s, color 0.15s;
}

.dropdown-menu li.has-submenu:hover > a::after {
  color: var(--orange);
  transform: translateX(3px);
}

.submenu {
  position: absolute;
  top: -3px;
  left: 100%;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 3px solid var(--orange);
  border-radius: 0 6px 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: all 0.18s ease;
  z-index: 310;
  list-style: none;
  padding: 0;
}

.dropdown-menu li.has-submenu:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.submenu li a {
  display: block;
  padding: 9px 16px;
  color: #1a1a4e;
  font-size: 0.78rem;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.15s;
}

.submenu li:last-child a {
  border-bottom: none;
}

.submenu li a:hover {
  background: #fff8f3;
  color: var(--orange);
  padding-left: 20px;
}

/* ============================================================
   NAV ACTIONS — MidYear + Login (right side of nav bar)
   ============================================================ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0;
  border-left: 1px solid #ebebeb;
  margin-left: 8px;
  flex-shrink: 0;
}

.nav-action-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  height: 42px;
  color: #1a1a4e;
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
  border-right: 1px solid #ebebeb;
  transition: all 0.18s;
}

.nav-action-link:hover {
  background: #f5f6fa;
  color: var(--orange);
}

/* ============================================================
   MIDYEAR REVIEW — Flash / Blink Attention Animation
   ============================================================ */
.blinking-whats-new {
  color: #ea580c !important;
  font-weight: 800 !important;
  animation: blinker-whats-new 1.2s cubic-bezier(0.5, 0, 1, 1) infinite alternate;
}

@keyframes blinker-whats-new {
  0% { opacity: 1; text-shadow: 0 0 4px rgba(234, 88, 12, 0.4); }
  100% { opacity: 0.2; text-shadow: none; }
}

@keyframes midyear-flash {
  0%   { background: transparent;       color: var(--navy, #1a1a4e); box-shadow: none; }
  20%  { background: var(--orange, #e86c1a); color: #fff;            box-shadow: 0 0 10px 3px rgba(232, 108, 26, 0.45); }
  40%  { background: transparent;       color: var(--navy, #1a1a4e); box-shadow: none; }
  60%  { background: var(--orange, #e86c1a); color: #fff;            box-shadow: 0 0 10px 3px rgba(232, 108, 26, 0.45); }
  80%  { background: transparent;       color: var(--navy, #1a1a4e); box-shadow: none; }
  100% { background: transparent;       color: var(--navy, #1a1a4e); box-shadow: none; }
}

@keyframes midyear-glow-pulse {
  0%   { text-shadow: none; }
  50%  { text-shadow: 0 0 8px rgba(232, 108, 26, 0.6), 0 0 14px rgba(232, 108, 26, 0.35); }
  100% { text-shadow: none; }
}

.midyear-link {
  position: relative;
  font-weight: 700 !important;
  animation: midyear-flash 2.4s ease-in-out infinite;
  cursor: pointer;
  z-index: 1;
}

.midyear-link span,
.midyear-link {
  animation: midyear-flash 2.4s ease-in-out infinite,
             midyear-glow-pulse 2.4s ease-in-out infinite;
}

.midyear-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  animation: midyear-border-blink 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes midyear-border-blink {
  0%, 39%, 61%, 100% { border-color: transparent; }
  20%, 50%            { border-color: var(--orange, #e86c1a); }
}

.midyear-link:hover {
  background: var(--orange-dark, #c55a12) !important;
  color: #fff !important;
  animation: none;
  box-shadow: 0 0 14px 4px rgba(197, 90, 18, 0.45);
}

.login-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 42px;
  background: var(--orange);
  color: #fff !important;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: background 0.18s;
}

.login-action-btn:hover {
  background: var(--orange-dark);
  color: #fff;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-left: 8px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a4e;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE — DESKTOP TWEAKS
   ============================================================ */
@media (max-width: 1100px) {
  .nav-link {
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .nav-action-link {
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .login-action-btn {
    padding: 0 12px;
    font-size: 0.74rem;
  }
}

@media (max-width: 880px) {
  .dept-en {
    font-size: 0.82rem;
  }

  .dept-hindi {
    font-size: 0.65rem;
  }

  .ministry-en {
    font-size: 0.6rem;
  }

  .emblem-img {
    width: 40px;
  }
}

/* ============================================================
   HAMBURGER / MOBILE NAV  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* --- Brand compaction on mobile --- */
  .main-header {
    padding: 8px 0;
  }

  .emblem-block {
    padding: 2px 6px;
  }

  .emblem-img {
    width: 36px;
  }

  .dept-hindi {
    font-size: 0.6rem;
  }

  .dept-en {
    font-size: 0.78rem;
  }

  .ministry-en {
    font-size: 0.55rem;
  }

  .brand-block {
    gap: 8px;
  }

  /* --- Nav: hide list by default --- */
  .nav-list {
    display: none;
  }

  /* --- Nav: slide open as full-width panel --- */
  .nav-list.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 3px solid var(--orange);
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    z-index: 500;
    padding: 0;
    max-height: 75vh;
    overflow-y: auto;
  }

  /* Anchor dropdown panel relative to nav-inner */
  .primary-nav {
    position: sticky;
    top: 0;
    z-index: 200;
  }

  .nav-inner {
    position: relative;
  }

  /* --- Mobile nav items --- */
  .nav-list.mobile-open .nav-item {
    width: 100%;
    display: block;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-list.mobile-open .nav-link {
    width: 100%;
    height: auto;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    color: #1a1a4e;
  }

  .nav-list.mobile-open .nav-link svg:not(.nav-chevron) {
    flex-shrink: 0;
  }

  .nav-list.mobile-open .nav-link .nav-chevron {
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-list.mobile-open .nav-link:hover {
    background: #fff8f3;
    color: var(--orange);
    border-bottom: none;
  }

  /* --- Level 1 Mobile dropdown: hidden by default, toggle via .dropdown-open class --- */
  .nav-list.mobile-open .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid #f0f0f0;
    border-radius: 0;
    background: #f8f8fc;
    padding: 0;
    min-width: unset;
  }

  /* Show level 1 dropdown when parent has .dropdown-open */
  .nav-list.mobile-open .nav-item.dropdown-open > .dropdown-menu {
    display: block;
  }

  .nav-list.mobile-open .dropdown-menu li {
    width: 100%;
    display: block;
  }

  .nav-list.mobile-open .dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 20px 10px 36px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #efefef;
  }

  .nav-list.mobile-open .dropdown-menu li.has-submenu > a::after {
    margin-left: auto;
  }

  .nav-list.mobile-open .dropdown-menu li:last-child > a {
    border-bottom: none;
  }

  .nav-list.mobile-open .dropdown-menu li a:hover {
    background: #fff3eb;
    color: var(--orange);
    padding-left: 40px;
  }

  /* --- Level 2 Mobile submenu (.has-submenu -> .submenu): accordion expand --- */
  .nav-list.mobile-open .submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid #eaeaea;
    border-radius: 0;
    background: #eef1f8;
    padding: 0;
    min-width: unset;
  }

  /* Show level 2 submenu when parent has .submenu-open */
  .nav-list.mobile-open .dropdown-menu li.submenu-open > .submenu {
    display: block;
  }

  .nav-list.mobile-open .submenu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px 9px 52px;
    font-size: 0.8rem;
    color: #444;
    border-bottom: 1px solid #e2e5f0;
    position: relative;
  }

  .nav-list.mobile-open .submenu li a::before {
    content: '•';
    position: absolute;
    left: 40px;
    color: var(--orange);
    font-size: 1rem;
    line-height: 1;
  }

  .nav-list.mobile-open .submenu li:last-child a {
    border-bottom: none;
  }

  .nav-list.mobile-open .submenu li a:hover {
    background: #e4e8f5;
    color: var(--orange);
    padding-left: 56px;
  }

  /* Submenu chevron indicator rotation on mobile */
  .dropdown-menu li.has-submenu > a::after {
    transition: transform 0.2s ease;
  }

  .dropdown-menu li.has-submenu.submenu-open > a::after {
    transform: rotate(90deg);
    color: var(--orange);
  }

  /* Chevron rotates when level 1 dropdown open */
  .nav-item.dropdown-open .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
  }

  /* Show hamburger button */
  .mobile-toggle {
    display: flex;
  }

  /* Actions on mobile */
  .nav-actions {
    border-left: none;
    gap: 2px;
  }

  /* ============================================================
     LOGGED-IN DASHBOARD NAV — MOBILE OVERRIDES
     ============================================================ */
  .dashboard-nav .mobile-toggle span {
    background: #ffffff;
  }

  .dashboard-nav .nav-list.mobile-open {
    background: #1c1c56;
    border-top: 3px solid var(--orange);
    border-bottom: 2px solid #2d2d7a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }

  .dashboard-nav .nav-list.mobile-open .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dashboard-nav .nav-list.mobile-open .nav-link {
    color: #ffffff;
  }

  .dashboard-nav .nav-list.mobile-open .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .dashboard-nav .nav-list.mobile-open .dropdown-menu {
    background: #151544;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dashboard-nav .nav-list.mobile-open .dropdown-menu li a {
    color: #c8d0f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .dashboard-nav .nav-list.mobile-open .dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding-left: 32px;
  }

  .dashboard-nav .nav-list.mobile-open .submenu {
    background: #0d0d30;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .dashboard-nav .nav-list.mobile-open .submenu li a {
    color: #a0b0db;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .dashboard-nav .nav-list.mobile-open .submenu li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding-left: 44px;
  }
}

/* ---- Hamburger → X animation (all breakpoints) ---- */
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a4e;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* When open: top bar rotates to \, middle fades, bottom rotates to / */
.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 560px) {
  .emblem-img {
    width: 42px;
  }

  .dept-en {
    font-size: 0.76rem;
  }

  .dept-hindi {
    font-size: 0.65rem;
  }

  .ministry-en {
    font-size: 0.6rem;
  }

  .nav-actions {
    gap: 0;
  }

  .login-action-btn {
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .nav-action-link {
    padding: 0 8px;
    font-size: 0.72rem;
  }
}

/* ============================================================
   ADMIN INFO BLOCK (header right side after login)
   ============================================================ */
.admin-info-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-card:hover {
  background: rgba(255, 255, 255, 0.15);
}

.admin-avatar {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.admin-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-name {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-date {
  color: #b8d0f0;
  font-size: 0.7rem;
  font-weight: 400;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 3px solid var(--orange);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  min-width: 160px;
  z-index: 400;
  display: none;
  flex-direction: column;
}

.user-dropdown.show-dropdown {
  display: flex;
}

.user-dd-item {
  display: block;
  padding: 9px 16px;
  color: #1a1a4e;
  font-size: 0.78rem;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}

.user-dd-item:last-child {
  border-bottom: none;
}

.user-dd-item:hover {
  background: #fff8f3;
  color: var(--orange);
}

.logout-dd-btn {
  color: #c0392b;
}

/* ============================================================
   DASHBOARD NAV OVERRIDES
   ============================================================ */
.dashboard-nav {
  background: #1c1c56;
  border-bottom: 2px solid #2d2d7a;
  overflow: visible;
}

.dashboard-nav .nav-chevron {
  opacity: 0.6;
  color: #c8d0f0;
}

.dashboard-nav .nav-item:hover .nav-chevron {
  opacity: 1;
  color: #fff;
}

.dashboard-nav .nav-link {
  color: #c8d0f0;
  font-size: 0.77rem;
  height: 44px;
  border-bottom-color: transparent;
}

.dashboard-nav .nav-link:hover,
.dashboard-nav .nav-link.active {
  color: #fff;
  border-bottom-color: var(--orange);
  background: rgba(255, 255, 255, 0.06);
}

.national-dash-link {
  border-bottom-color: var(--orange) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.nav-text-icon {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}

.dashboard-nav .dropdown-menu {
  background: #1c1c56;
  border: 1px solid #2d2d7a;
  border-top: 3px solid var(--orange);
}

.dashboard-nav .dropdown-menu li a {
  color: #c8d0f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-nav .dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding-left: 20px;
}

.dashboard-nav .dropdown-menu li.has-submenu > a::after {
  color: #c8d0f0;
}

.dashboard-nav .dropdown-menu li.has-submenu:hover > a::after {
  color: #fff;
}

.dashboard-nav .submenu {
  background: #1c1c56;
  border: 1px solid #2d2d7a;
  border-top: 3px solid var(--orange);
}

.dashboard-nav .submenu li a {
  color: #c8d0f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-nav .submenu li a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.dashboard-nav .nav-actions {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-nav .nav-action-link {
  color: #c8d0f0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-nav .nav-action-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.brap-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 44px;
  color: #c8d0f0;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.18s;
}

.brap-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.logout-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 44px;
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.18s;
}

.logout-nav-btn:hover {
  background: var(--orange-dark, #c0392b);
  color: #fff;
}

.nav-action-btn {
  display: flex;
  align-items: center;
}


/* ============================================================
   LOGGED-IN HEADER & NAVIGATION REDESIGN (Mockup Match)
   ============================================================ */
.logged-in .main-header {
  background: linear-gradient(180deg, #1c1c56 0%, #111140 100%);
  border-bottom: 3px solid var(--orange);
  padding: 10px 0;
}

.logged-in .brand-block {
  gap: 14px;
}

.logged-in .emblem-block {
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  margin-right: 0;
  padding-right: 14px;
}

.logged-in .emblem-img {
  filter: brightness(0) invert(1);
}

.logged-in .satyamev {
  color: #ffffff;
  font-weight: 700;
}

.logged-in .dept-hindi {
  color: #b8c8e8;
  font-weight: 400;
  font-size: 0.72rem;
}

.logged-in .dept-en {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
}

.logged-in .ministry-en {
  color: #8fa8cc;
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.3px;
}

/* Settings icon */
.settings-gear-btn {
  background: transparent;
  border: none;
  color: #555c80;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-right: 12px;
}

.settings-gear-btn:hover {
  background: rgba(26, 26, 78, 0.07);
  color: #1a1a4e;
}

/* Chevron */
.logged-in .chevron-icon {
  margin-left: 2px;
  opacity: 0.8;
}