/* ==========================================================================
   customChange.css — NES Keralam Home Page & Login Page Redesign (Bootstrap 3.4)
   ========================================================================== */

/* ---------- 2. Colour Tokens ---------- */
:root {
  --bg: #f2f6f5;
  --card: #ffffff;
  --ink: #0f2a3d;
  --mute: #53697a;
  --line: #dbe6e6;
  --pri: #0b5d7a;
  --pri2: #0f766e;
  --grn: #0f7a4d;
  --red: #c2410c;
  --amb: #b45309;
  --gold: #e8a317;
  --nav: #0b2a3b;
  --shadow: 0 8px 28px rgba(11,42,59,.09);
  --hero: linear-gradient(135deg, #0a3d55 0%, #0b5d7a 55%, #0f766e 100%);
}

:root[data-theme="dark"],
html[data-theme="dark"],
body[data-theme="dark"] {
  --bg: #0b111a;
  --card: #151d2a;
  --ink: #f1f5f9;
  --mute: #a3afc0;
  --line: #223046;
  --pri: #38bdf8;
  --pri2: #2dd4bf;
  --grn: #4ade80;
  --red: #fb923c;
  --amb: #fbbf24;
  --gold: #fbbf24;
  --nav: #060a10;
  --shadow: 0 8px 28px rgba(0,0,0,.6);
  --hero: linear-gradient(135deg, #060a10, #0c1d28 60%, #0e3a4a);
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

/* ---------- 3. Base & Typography Scoped to .nes-site ---------- */
html,
body.nes-site,
body.nes-uas-page {
  margin: 0 !important;
  padding: 0 !important;
  padding-top: 0 !important;
  overflow-x: clip !important;
  width: 100%;
  max-width: 100%;
}

body.nes-site,
body.nes-uas-page {
  overflow-y: visible !important;
}

body.nes-site header.nes-site-header,
body.nes-uas-page header.nes-site-header {
  display: block;
  position: static;
  margin: 0;
  padding: 0;
}

body.nes-site {
  background: radial-gradient(900px 400px at 100% 0, rgba(15,118,110,.10), transparent 70%),
              radial-gradient(700px 360px at 0 20%, rgba(232,163,23,.08), transparent 70%),
              var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Malayalam", "Manjari", "Gayathri", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

body.nes-site a {
  color: var(--pri);
  text-decoration: none;
  transition: color .15s;
}
body.nes-site a:hover,
body.nes-site a:focus {
  text-decoration: none;
}

body.nes-site .container-fluid,
body.nes-site main[role="main"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.nes-wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(14px, 2.4vw, 28px);
  box-sizing: border-box;
}

/* Responsive containers for large & ultra-wide displays (27", 32", 55") */
@media (min-width: 1600px) {
  .nes-wrap {
    max-width: 1560px;
  }
}

@media (min-width: 2400px) {
  .nes-wrap {
    max-width: 1780px;
  }
}

@media (min-width: 3200px) {
  .nes-wrap {
    max-width: 2040px;
  }
}

/* ---------- 4. Header / Sticky Nav (.nes-nav) ---------- */
body.nes-site .nes-nav,
body.nes-uas-page .nes-nav {
  background: var(--nav, #082b50) !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 1020 !important;
  border-bottom: 3px solid var(--gold, #f2b500) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  padding-top: env(safe-area-inset-top, 0px);
  margin: 0 !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.nes-site .nes-nav-in {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 4px clamp(8px, 1.2vw, 20px);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 6px;
  box-sizing: border-box;
}

/* Header Brand in Nav (Desktop & Mobile) */
.nes-nav-brand,
.nes-nav-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
  margin-right: 6px;
}
.nes-nav-brand:hover,
.nes-nav-brand:focus,
.nes-nav-mobile-brand:hover,
.nes-nav-mobile-brand:focus {
  text-decoration: none;
  color: #ffffff;
}
.nes-nav-logo,
.nes-nav-mobile-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
}
.nes-nav-title,
.nes-nav-mobile-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* Desktop Navigation Items — Single Line across full available width */
body.nes-site .nes-nav-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

body.nes-site .nes-nav a {
  color: #cbd5e1;
  padding: 4px 7px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
body.nes-site .nes-nav a i {
  font-size: 12px;
}
body.nes-site .nes-nav a:hover,
body.nes-site .nes-nav a.on {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

body.nes-site .nes-nav .sp {
  display: none;
}

body.nes-site .nes-nav a.cm {
  background: var(--gold) !important;
  color: #082b50 !important;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: 2px;
  margin-right: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body.nes-site .nes-nav a.cm i {
  color: #082b50 !important;
}
body.nes-site .nes-nav a.cm:hover {
  background: #ffffff !important;
  color: #082b50 !important;
}

/* Nav Tools: Language, Eye, Font Controls, Bulb, Hamburger */
body.nes-site .nes-nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

body.nes-site .nes-nav .navbar-form.nes-nav-lang-form,
body.nes-site .nes-nav .navbar-form {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
}

body.nes-site .nes-nav select.nes-lang-select,
body.nes-site .nes-nav select {
  background: #082b50 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 6px !important;
  padding: 3px 22px 3px 8px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  height: 28px !important;
  width: auto !important;
  max-width: 95px !important;
  outline: none;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 6px center !important;
  background-size: 11px !important;
}

body.nes-site .nes-nav select.nes-lang-select option,
body.nes-site .nes-nav select option {
  background-color: #082b50 !important;
  color: #ffffff !important;
}

body.nes-site .nes-ibtn {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 6px !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 13px !important;
  cursor: pointer;
  flex: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  padding: 0 !important;
  transition: all .15s ease;
}
body.nes-site .nes-ibtn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  transform: translateY(-1px);
}
:root[data-theme="dark"] body.nes-site .nes-ibtn {
  background: #1e293b !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
}

/* ==========================================================================
   Bulb-Style Theme Switcher (#nesTheme & #nesThemeAdmin)
   ========================================================================== */
.nes-theme-bulb {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  color: #d97706 !important;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  padding: 0 !important;
  outline: none;
  text-decoration: none !important;
}
.nes-theme-bulb i {
  color: #d97706 !important;
  font-size: 18px !important;
  line-height: 1 !important;
}
.nes-theme-bulb:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309 !important;
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}
.nes-theme-bulb:hover i {
  color: #b45309 !important;
}
.nes-theme-bulb:active {
  transform: scale(0.92);
}

/* Dark mode active state for bulb (warm glowing lit lamp) */
[data-theme="dark"] .nes-theme-bulb,
[data-theme="dark"] #nesThemeAdmin.nes-theme-bulb,
[data-theme="dark"] #nesThemeAdminMob.nes-theme-bulb,
.nes-theme-bulb[data-theme-active="dark"] {
  background: #1e293b !important;
  border-color: #fbbf24 !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.75), inset 0 0 6px rgba(251, 191, 36, 0.35) !important;
}
[data-theme="dark"] .nes-theme-bulb i,
[data-theme="dark"] #nesThemeAdmin.nes-theme-bulb i,
[data-theme="dark"] #nesThemeAdminMob.nes-theme-bulb i,
.nes-theme-bulb[data-theme-active="dark"] i,
.nes-theme-bulb i.active {
  color: #fbbf24 !important;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.9);
  animation: bulbGlow 2.5s infinite alternate;
}
@keyframes bulbGlow {
  0% { text-shadow: 0 0 5px rgba(251, 191, 36, 0.6); }
  100% { text-shadow: 0 0 14px rgba(251, 191, 36, 1); }
}

/* AdminLTE top navbar bulb item */
.nes-theme-bulb-li {
  float: left !important;
  padding: 9px 6px 0 6px !important;
  list-style: none !important;
}
.nes-theme-bulb-li a.nes-theme-bulb,
#nesThemeAdmin.nes-theme-bulb,
#nesThemeAdminMob.nes-theme-bulb {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #d97706 !important;
  line-height: 1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.nes-theme-bulb-li a.nes-theme-bulb i,
#nesThemeAdmin.nes-theme-bulb i,
#nesThemeAdminMob.nes-theme-bulb i {
  color: #d97706 !important;
  font-size: 18px !important;
  line-height: 1 !important;
}
.nes-theme-bulb-li a.nes-theme-bulb:hover,
#nesThemeAdmin.nes-theme-bulb:hover,
#nesThemeAdminMob.nes-theme-bulb:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309 !important;
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}
.nes-theme-bulb-li a.nes-theme-bulb:hover i,
#nesThemeAdmin.nes-theme-bulb:hover i,
#nesThemeAdminMob.nes-theme-bulb:hover i {
  color: #b45309 !important;
}

/* Hamburger Menu Button */
.nes-hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  width: 38px;
  height: 34px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: all 0.2s ease;
  outline: none;
  flex-shrink: 0;
  box-sizing: border-box;
}
.nes-hamburger-btn:hover,
.nes-hamburger-btn:focus {
  background: rgba(242, 181, 0, 0.2);
  border-color: #f2b500;
  outline: none;
}
.nes-hamburger-btn[aria-expanded="true"] {
  background: rgba(242, 181, 0, 0.25);
  border-color: #f2b500;
}
.nes-hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}
.nes-hamburger-btn[aria-expanded="true"] .nes-hamburger-line {
  background-color: #f2b500;
}
.nes-hamburger-btn[aria-expanded="true"] .nes-hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nes-hamburger-btn[aria-expanded="true"] .nes-hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nes-hamburger-btn[aria-expanded="true"] .nes-hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Navigation Menu (Expanding Below Fixed Header)
   ========================================================================== */
.nes-mobile-drawer {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.25s ease;
}
.nes-mobile-drawer.open {
  visibility: visible;
  pointer-events: auto;
}
.nes-mobile-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 43, 80, 0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nes-mobile-drawer.open .nes-mobile-drawer-backdrop {
  opacity: 1;
}
.nes-mobile-drawer-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  background: #082b50;
  border-top: 1px solid rgba(242, 181, 0, 0.35);
  border-bottom: 3px solid #f2b500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
[data-theme="dark"] .nes-mobile-drawer-content {
  background: #0c1420;
  border-bottom: 3px solid #f2b500;
}
.nes-mobile-drawer.open .nes-mobile-drawer-content {
  transform: translateY(0);
  opacity: 1;
}

.nes-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
}
.nes-mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}
.nes-drawer-logo {
  height: 24px;
  width: auto;
}
.nes-mobile-drawer-close {
  background: transparent;
  border: 0;
  color: #cbd5e1;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.nes-mobile-drawer-close:hover {
  color: #f2b500;
}

.nes-mobile-nav-items {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}
.nes-mob-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}
.nes-mob-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: #f2b500;
  flex-shrink: 0;
}
.nes-mob-item:hover,
.nes-mob-item:focus,
.nes-mob-item.active,
.nes-mob-item.on {
  background: rgba(242, 181, 0, 0.15);
  color: #ffffff;
  border-left-color: #f2b500;
  border-color: rgba(242, 181, 0, 0.35);
  text-decoration: none;
}
.nes-mob-item.active i,
.nes-mob-item.on i {
  color: #f2b500;
}
.nes-mob-item.cm {
  background: #f2b500 !important;
  color: #082b50 !important;
  font-weight: 700;
  font-size: 12.5px;
  margin-top: 4px;
  border: 0;
}
.nes-mob-item.cm i {
  color: #082b50 !important;
}
.nes-mob-item.cm:hover {
  background: #ffffff !important;
  color: #082b50 !important;
}

/* Mobile Tools Card inside Drawer */
.nes-mobile-drawer-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}
.nes-mob-tools-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nes-mob-tools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.nes-mob-tool-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nes-mob-tool-label {
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nes-mob-select {
  height: 30px;
  font-size: 12px;
  background: #0b2a3b;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 6px;
  padding: 2px 24px 2px 8px;
}
.nes-mob-bulb-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
}
.nes-mob-a11y-btn {
  width: 32px !important;
  height: 32px !important;
  font-size: 15px !important;
}
.nes-mob-font-group {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}
.nes-mob-font-group .site-font-btn {
  width: 26px !important;
  height: 28px !important;
  font-size: 12px !important;
}

/* Prevent body scrolling when mobile drawer is open */
body.nes-menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Responsive Nav Breakpoints */
@media (min-width: 1440px) {
  body.nes-site .nes-nav-links {
    gap: 6px;
  }
  body.nes-site .nes-nav a {
    padding: 6px 11px;
    font-size: 13.5px;
    gap: 6px;
  }
  body.nes-site .nes-nav a.cm {
    font-size: 12px;
    padding: 5px 12px;
    margin-left: 4px;
  }
}

@media (min-width: 1920px) {
  body.nes-site .nes-nav-links {
    gap: 8px;
  }
  body.nes-site .nes-nav a {
    padding: 7px 14px;
    font-size: 14px;
    gap: 7px;
  }
}

/* Mobile & Tablet Breakpoint (< 992px) */
@media (max-width: 991px) {
  body.nes-site .nes-nav-links {
    display: none !important;
  }
  .nes-nav-brand,
  .nes-nav-mobile-brand {
    display: inline-flex !important;
  }
  .nes-hamburger-btn {
    display: inline-flex !important;
  }
  body.nes-site .nes-nav-tools .nes-nav-lang-form {
    display: none !important;
  }
  body.nes-site .nes-nav-in {
    padding: 6px 12px;
    gap: 8px;
    min-height: 48px;
  }
  body.nes-site .nes-nav-tools {
    gap: 8px;
  }
}

@media (max-width: 767px) {
  /* Bulky font controls & eye button moved into expanded mobile menu */
  body.nes-site .nes-nav-tools .site-font-size-controls,
  body.nes-site .nes-nav-tools .nes-ibtn {
    display: none !important;
  }
  .nes-nav-title {
    font-size: 13px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .nes-nav-title {
    font-size: 12px;
    max-width: 170px;
  }
  body.nes-site .nes-nav-in {
    padding: 6px 8px;
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .nes-nav-title {
    font-size: 11.5px;
    max-width: 150px;
  }
  body.nes-site .nes-nav-in {
    padding: 6px 6px;
    gap: 4px;
  }
}

/* ---------- 5. Brand Row (.nes-brand) ---------- */
body.nes-site .nes-brand {
  padding: clamp(12px, 1.8vw, 22px) 0 8px;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 18px);
  flex-wrap: wrap;
}

body.nes-site .blogo {
  height: clamp(44px, 5vw, 56px);
  width: auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 3px;
  border: 1px solid var(--line);
  flex: none;
}

body.nes-site .nes-brand-titles {
  display: flex;
  flex-direction: column;
}
body.nes-site .nes-brand-title {
  font-size: clamp(18px, 2.6vw, 28px);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
  margin: 0;
}
body.nes-site .nes-brand-sub {
  color: var(--grn);
  font-weight: 600;
  font-size: clamp(12px, 1.5vw, 14px);
  margin-top: 2px;
}

body.nes-site .emb {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 14px;
  flex-wrap: wrap;
}
body.nes-site .emb img {
  height: clamp(36px, 4vw, 50px);
  width: auto;
  object-fit: contain;
}
@media(max-width: 768px) {
  body.nes-site .nes-brand {
    padding: 10px 0 6px;
    gap: 10px;
  }
  body.nes-site .emb {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    padding: 6px 10px;
    gap: 8px;
  }
  body.nes-site .emb img {
    height: 36px;
    max-width: 30%;
  }
}

/* ---------- 6. Main Two-Column Grid ---------- */
body.nes-home .nes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin: clamp(12px, 1.5vw, 18px) 0;
}
@media(max-width: 991px) {
  body.nes-home .nes-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 6a. Image Slider (Left Column) ---------- */
body.nes-home .sl {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: clamp(340px, 44vh, 460px);
  border: 1px solid var(--line);
}
body.nes-home .sl-t {
  display: flex;
  height: 100%;
  min-height: clamp(340px, 44vh, 460px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
body.nes-home .sl-t::-webkit-scrollbar {
  display: none;
}
body.nes-home .sl-s {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 3.5vw, 34px) clamp(20px, 3.5vw, 34px) 64px;
  color: #ffffff;
  overflow: hidden;
  min-height: clamp(340px, 44vh, 460px);
  box-sizing: border-box;
  --sl-accent: #0a3d55;
  background: linear-gradient(135deg, var(--sl-accent, #0a3d55), #0b6fa4);
}
body.nes-home .sl-s.sl-s-theme-1 {
  --sl-accent: #0a3d55;
  background: linear-gradient(135deg, #0a3d55, #0b6fa4);
}
body.nes-home .sl-s.sl-s-theme-2 {
  --sl-accent: #0b5d3f;
  background: linear-gradient(135deg, #0b5d3f, #0f7a4d);
}
body.nes-home .sl-s.sl-s-theme-3 {
  --sl-accent: #8a4a0a;
  background: linear-gradient(135deg, #8a4a0a, #c2751a);
}
body.nes-home .sl-s.sl-s-theme-4 {
  --sl-accent: #4a2a6b;
  background: linear-gradient(135deg, #4a2a6b, #7c3a8a);
}
body.nes-home .sl-s.sl-s-theme-5 {
  --sl-accent: #1e3a8a;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}
body.nes-home .sl-s .sl-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s ease;
}
body.nes-home .sl:hover .sl-s .sl-bg-img {
  transform: scale(1.03);
}
body.nes-home .sl-s .sl-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(8, 24, 40, 0.22) 0%, rgba(8, 24, 40, 0.72) 65%, rgba(8, 24, 40, 0.92) 100%);
  z-index: 1;
}
body.nes-home .sl-s.sl-has-image:before,
body.nes-home .sl-s.sl-has-image:after {
  display: none;
}
body.nes-home .sl-s .nes-slide-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
body.nes-home .sl-s .nes-btn-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--gold, #f59e0b);
  color: #1a1a1a;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
body.nes-home .sl-s .nes-btn-highlight:hover {
  background: #fbbf24;
  color: #000000;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
body.nes-home .sl-s .nes-btn-show-detail {
  background: #ffffff;
  color: #0a3d55;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
body.nes-home .sl-s .nes-btn-show-detail:hover {
  background: #f8fafc;
  color: #032d3f;
}

/* ==========================================================================
   Portal Highlight Public Detail View (Show Page)
   ========================================================================== */
.nes-highlight-detail-container {
  padding-top: 15px;
  padding-bottom: 50px;
}
.nes-detail-breadcrumb {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  padding: 10px 16px;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.nes-highlight-detail-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 30px;
}

/* 1. First: Prominent, Crystal-Clear Image Section */
.nes-highlight-image-section {
  width: 100%;
  background: #0b1329;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 3px solid var(--hl-accent, #0a3d55);
}
.nes-highlight-img-container {
  width: 100%;
  max-height: 520px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1329;
  padding: 12px;
}
.nes-highlight-hero-image {
  max-width: 100%;
  max-height: 496px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}
.nes-highlight-placeholder-banner {
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hl-accent, #0a3d55), #0b6fa4);
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
}
.nes-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.nes-placeholder-icon {
  font-size: 64px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}
.nes-placeholder-tag {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* 2. Under that Image Section: Rest of Details */
.nes-highlight-content-section {
  padding: 32px 36px 40px;
}
.nes-detail-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.nes-detail-badge {
  display: inline-block;
  padding: 5px 15px;
  background: var(--hl-accent, #0a3d55);
  color: #ffffff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nes-detail-timestamps {
  font-size: 13px;
  color: #64748b;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.nes-meta-item i {
  margin-right: 4px;
  color: #0284c7;
}
.nes-detail-heading {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 16px;
}
.nes-detail-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--hl-accent, #0a3d55) 0%, rgba(2, 132, 199, 0.4) 50%, rgba(226, 232, 240, 0.3) 100%);
  margin-bottom: 24px;
  border-radius: 2px;
}
.nes-detail-body-text {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 32px;
  word-wrap: break-word;
  white-space: pre-line;
}
.nes-detail-button-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid #f1f5f9;
}
.nes-btn-visit {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 14px;
  transition: all 0.2s ease;
}
.nes-btn-visit:hover,
.nes-btn-visit:focus {
  background: #0369a1;
  border-color: #0369a1;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.nes-btn-back-home,
.nes-btn-close-window {
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}
.nes-btn-back-home:hover,
.nes-btn-close-window:hover {
  background: #e2e8f0;
  color: #1e293b;
}

@media (max-width: 768px) {
  .nes-highlight-content-section {
    padding: 20px 18px 24px;
  }
  .nes-detail-heading {
    font-size: 22px;
  }
  .nes-highlight-img-container {
    max-height: 320px;
    min-height: 200px;
  }
  .nes-highlight-hero-image {
    max-height: 300px;
  }
}

.nes-admin-desc-cell {
  max-width: 320px;
  white-space: normal;
  word-wrap: break-word;
}
.nes-admin-img-preview-box {
  margin-bottom: 8px;
}
.nes-admin-leader-preview {
  max-height: 140px;
  border-radius: 6px;
}

@media (min-width: 1600px) {
  body.nes-home .sl,
  body.nes-home .sl-t,
  body.nes-home .sl-s {
    min-height: 480px;
  }
}

@media (min-width: 2400px) {
  body.nes-home .sl,
  body.nes-home .sl-t,
  body.nes-home .sl-s {
    min-height: 540px;
  }
}

@media (max-width: 768px) {
  body.nes-home .sl,
  body.nes-home .sl-t,
  body.nes-home .sl-s {
    min-height: 320px;
  }
  body.nes-home .sl-s {
    padding: 24px 20px 54px;
  }
}
body.nes-home .sl-s:before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}
body.nes-home .sl-s:after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(232, 163, 23, 0.20);
  pointer-events: none;
}
body.nes-home .sl-s .art {
  position: absolute;
  right: 38px;
  top: 34px;
  font-size: clamp(80px, 12vw, 130px);
  line-height: 1;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.35));
  z-index: 1;
  user-select: none;
}
body.nes-home .sl-s .cap {
  position: relative;
  z-index: 1;
  max-width: 30ch;
}
body.nes-home .sl-s h3 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.12;
  font-weight: 700;
  color: #ffffff;
}
body.nes-home .sl-s p {
  margin: 0;
  opacity: .95;
  font-size: 15px;
  color: #ffffff;
}

body.nes-home .sl-a {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
body.nes-home .sl-a:hover {
  background: rgba(255, 255, 255, 0.4);
}
body.nes-home .sl-a.pv {
  left: 14px;
}
body.nes-home .sl-a.nx {
  right: 14px;
}

body.nes-home .sl-d {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 3;
}
body.nes-home .sl-d button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: width .25s, background .25s;
}
body.nes-home .sl-d button.on {
  width: 28px;
  background: var(--gold);
}

/* ---------- 6a. Scheme Popup Modal (#cmm) ---------- */
body.nes-site .mod {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 15, 25, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
body.nes-site .mod.open {
  display: flex;
}
body.nes-site .mbox {
  max-width: min(660px, 94vw);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border-radius: 22px;
  padding: clamp(20px, 3.5vw, 32px);
  box-shadow: var(--shadow);
  background: var(--hero);
  color: #ffffff;
  box-sizing: border-box;
}
@media (max-width: 560px) {
  body.nes-site .mbox h2 {
    padding-right: 0;
    font-size: 20px;
  }
  body.nes-site .mbox .cmimg {
    position: static;
    margin: 8px 0 12px;
    display: block;
  }
}
body.nes-site .mbox:after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
body.nes-site .mbox .cmimg {
  position: absolute;
  right: 68px;
  top: 22px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  z-index: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}
body.nes-site .mx {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
body.nes-site .mx:hover {
  background: rgba(255, 255, 255, 0.4);
}

body.nes-site .nes-tag {
  display: inline-block;
  background: var(--gold);
  color: #3b2a00;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
body.nes-site .mbox h2 {
  margin: 12px 0 10px;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.2;
  padding-right: 84px;
  color: #ffffff;
  font-weight: 700;
}
body.nes-site .mbox p {
  margin: 0 0 14px;
  opacity: .95;
  font-size: 14.5px;
  line-height: 1.6;
  color: #ffffff;
}
body.nes-site .nes-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 20px;
}
body.nes-site .nes-pills span {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13.5px;
  color: #ffffff;
}
body.nes-site .nes-btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: filter .15s, transform .15s;
}
body.nes-site .nes-btn.gold {
  background: var(--gold);
  color: #2b1d00 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
body.nes-site .nes-btn.gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
body.nes-site .nes-btn.ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  margin-left: 8px;
}
body.nes-site .nes-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.26);
}
body.nes-site .nes-note {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 4px solid #fbbf24;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #ffffff;
}
body.nes-site .nes-note a {
  color: #fbbf24;
  text-decoration: underline;
}

/* ---------- 6b. Notifications Panel (.nes-panel) ---------- */
body.nes-home .nes-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.nes-home .nes-ph {
  background: linear-gradient(90deg, rgba(15,118,110,.12), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
body.nes-home .nes-ph h3 {
  margin: 0;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
}
body.nes-home .nes-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: nesP 1.6s infinite;
  flex: none;
}
@keyframes nesP {
  50% { opacity: 0.25; }
}

body.nes-home .nes-ctl {
  display: flex;
  align-items: center;
}
body.nes-home .nes-ctl button {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  cursor: pointer;
  margin-left: 4px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}
body.nes-home .nes-ctl button:hover {
  border-color: var(--pri);
}

body.nes-home .nes-feed {
  height: clamp(280px, 34vh, 340px);
  overflow-y: auto;
  padding: 6px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--pri) transparent;
}
@media (min-width: 1600px) {
  body.nes-home .nes-feed {
    height: 380px;
  }
}
@media (min-width: 2400px) {
  body.nes-home .nes-feed {
    height: 440px;
  }
}
@media (max-width: 768px) {
  body.nes-home .nes-feed {
    height: 260px;
  }
}
body.nes-home .nes-feed::-webkit-scrollbar {
  width: 6px;
}
body.nes-home .nes-feed::-webkit-scrollbar-thumb {
  background: var(--pri);
  border-radius: 6px;
}

body.nes-home .nes-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
body.nes-home .nes-item b {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--pri);
  font-size: 14px;
  font-weight: 700;
}
body.nes-home .nes-item p {
  margin: 4px 0 0;
  color: var(--mute);
  font-size: 13.5px;
  line-height: 1.5;
}
body.nes-home .nes-new {
  background: var(--red);
  color: #ffffff;
  border-radius: 6px;
  font-size: 10px;
  padding: 1px 6px;
  font-weight: 700;
  display: inline-block;
}

body.nes-home .nes-pf {
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--mute);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body.nes-home .nes-pf a {
  color: var(--pri);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Framed QR Card Inside Notification Column ---------- */
body.nes-home .nes-qr-card {
  margin: 14px 18px 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(11,93,122,.10), rgba(232,163,23,.16));
  display: flex;
  gap: 18px;
  position: relative;
  overflow: hidden;
  align-items: center;
}
body.nes-home .nes-qr-card:before {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(232,163,23,.18);
  pointer-events: none;
}

body.nes-home .nes-qr-tile {
  position: relative;
  padding: 12px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(11,42,59,.18);
  flex: none;
  display: inline-flex;
}
body.nes-home .nes-qr-tile img {
  width: 96px;
  height: 96px;
  display: block;
  object-fit: contain;
}

body.nes-home .nes-qr-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
body.nes-home .nes-qr-corner.tl {
  top: -5px;
  left: -5px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
  border-top-left-radius: 10px;
}
body.nes-home .nes-qr-corner.tr {
  top: -5px;
  right: -5px;
  border-top: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  border-top-right-radius: 10px;
}
body.nes-home .nes-qr-corner.bl {
  bottom: -5px;
  left: -5px;
  border-bottom: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
  border-bottom-left-radius: 10px;
}
body.nes-home .nes-qr-corner.br {
  bottom: -5px;
  right: -5px;
  border-bottom: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  border-bottom-right-radius: 10px;
}

body.nes-home .nes-qr-scan {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #0f766e, transparent);
  box-shadow: 0 0 6px #0f766e;
  animation: nesScan 2.4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes nesScan {
  0% { top: 8px; }
  100% { top: calc(100% - 11px); }
}
@media (prefers-reduced-motion: reduce) {
  body.nes-home .nes-qr-scan { display: none; }
}

body.nes-home .nes-qr-info {
  position: relative;
  z-index: 1;
  flex: 1;
}
body.nes-home .nes-qr-pill {
  display: inline-block;
  background: var(--gold);
  color: #2b1d00;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}
body.nes-home .nes-qr-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pri);
  margin: 0 0 4px;
}
body.nes-home .nes-qr-sub {
  font-size: 12.5px;
  color: var(--mute);
  margin: 0 0 10px;
}
body.nes-home .nes-qr-steps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
body.nes-home .nes-qr-chip {
  font-size: 11.5px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px 3px 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}
body.nes-home .nes-qr-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pri);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
@media(max-width: 420px) {
  body.nes-home .nes-qr-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 6C. Our Leadership Cards (Free-Sized / Space-Filling Layout) ---------- */
body.nes-home .nes-lead-grid {
  display: flex;
  flex-direction: row;
  justify-content: stretch;
  align-items: stretch;
  gap: clamp(14px, 2vw, 24px);
  margin-bottom: 24px;
  width: 100%;
  flex-wrap: wrap;
}
body.nes-home .nes-lc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 18px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
  flex: 1 1 0;
  min-width: 220px;
  max-width: 100%;
  box-sizing: border-box;
}
body.nes-home .nes-lc:hover {
  transform: translateY(-5px);
  border-color: var(--c, var(--pri));
}

/* Free-sized rule: 1 card takes total row space */
body.nes-home .nes-lead-grid.nes-lead-count-1 .nes-lc,
body.nes-home .nes-lead-grid .nes-lc:only-child {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Free-sized rule: 2 cards share total row space equally (50% each) */
body.nes-home .nes-lead-grid.nes-lead-count-2 .nes-lc {
  flex: 1 1 calc(50% - clamp(14px, 2vw, 24px));
  max-width: 100%;
}

/* Free-sized rule: 3 cards share total row space equally (33.3% each) */
body.nes-home .nes-lead-grid.nes-lead-count-3 .nes-lc {
  flex: 1 1 calc(33.333% - clamp(14px, 2vw, 24px));
  max-width: 100%;
}

/* Free-sized rule: 4 cards share total row space equally (25% each) */
body.nes-home .nes-lead-grid.nes-lead-count-4 .nes-lc {
  flex: 1 1 calc(25% - clamp(14px, 2vw, 24px));
  max-width: 100%;
}

@media (max-width: 768px) {
  body.nes-home .nes-lead-grid .nes-lc,
  body.nes-home .nes-lead-grid.nes-lead-count-1 .nes-lc,
  body.nes-home .nes-lead-grid.nes-lead-count-2 .nes-lc,
  body.nes-home .nes-lead-grid.nes-lead-count-3 .nes-lc,
  body.nes-home .nes-lead-grid.nes-lead-count-4 .nes-lc {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

body.nes-home .nes-lc:nth-child(1) { --c: #0b5d7a; }
body.nes-home .nes-lc:nth-child(2) { --c: #0f7a4d; }
body.nes-home .nes-lc:nth-child(3) { --c: #b45309; }
body.nes-home .nes-lc:nth-child(4) { --c: #7c3a8a; }

body.nes-home .nes-lc-banner {
  height: 84px;
  margin: 0 -18px;
  background: var(--hero);
  position: relative;
  overflow: hidden;
}
body.nes-home .nes-lc-banner:after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(232,163,23,.35);
}

body.nes-home .nes-lc-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin: -56px auto 12px;
  padding: 4px;
  background: conic-gradient(var(--gold), var(--pri2), var(--pri), var(--gold));
  box-shadow: 0 8px 20px rgba(11,42,59,.25);
  position: relative;
  z-index: 1;
}
body.nes-home .nes-lc-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,93,122,.14);
  background: color-mix(in srgb, var(--c, var(--pri)) 14%, transparent);
}
body.nes-home .nes-lc-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
body.nes-home .nes-lc-initials {
  font-size: 30px;
  font-weight: 800;
  color: var(--c, var(--pri));
}
body.nes-home .nes-lc-chip {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c, var(--pri));
  background: rgba(11,93,122,.14);
  background: color-mix(in srgb, var(--c, var(--pri)) 14%, transparent);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
}
body.nes-home .nes-lc h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 2px;
}
body.nes-home .nes-lc p {
  font-size: 13px;
  color: var(--mute);
  margin: 0;
}

/* ---------- 7. Registration Cards (.nes-reg) (Free-Sized / Space-Filling Layout) ---------- */
body.nes-home .nes-reg {
  display: flex;
  flex-direction: row;
  justify-content: stretch;
  align-items: stretch;
  gap: clamp(14px, 1.8vw, 20px);
  margin-bottom: 20px;
  width: 100%;
  flex-wrap: wrap;
}

body.nes-home .nes-rc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 280px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Free-sized rule: 1 card takes total row space */
body.nes-home .nes-reg.nes-reg-count-1 .nes-rc,
body.nes-home .nes-reg .nes-rc:only-child {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Free-sized rule: 2 cards share total row space equally (50% each) */
body.nes-home .nes-reg.nes-reg-count-2 .nes-rc {
  flex: 1 1 calc(50% - clamp(14px, 1.8vw, 20px));
  max-width: 100%;
}

@media(max-width: 768px) {
  body.nes-home .nes-rc,
  body.nes-home .nes-reg.nes-reg-count-1 .nes-rc,
  body.nes-home .nes-reg.nes-reg-count-2 .nes-rc {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
@media(max-width: 480px) {
  body.nes-home .nes-rc {
    padding: 16px;
  }
  body.nes-home .nes-rc-btns {
    flex-direction: column;
    align-items: stretch;
  }
  body.nes-home .nes-b1,
  body.nes-home .nes-b2,
  body.nes-home .nes-b3 {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
  }
}
body.nes-home .nes-rc:nth-child(1) {
  border-top: 5px solid #0b5d7a;
}
body.nes-home .nes-rc:nth-child(2) {
  border-top: 5px solid var(--gold);
}
body.nes-home .nes-rc h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
body.nes-home .nes-rc p {
  margin: 0 0 14px;
  color: var(--mute);
  font-size: 14px;
  flex: 1;
}
body.nes-home .nes-rc-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
body.nes-home .nes-b1 {
  background: #0b5d7a;
  color: #ffffff !important;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: filter .15s;
}
body.nes-home .nes-b1:hover {
  filter: brightness(1.08);
}
body.nes-home .nes-b2 {
  background: #0f7a4d;
  color: #ffffff !important;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: filter .15s;
}
body.nes-home .nes-b2:hover {
  filter: brightness(1.08);
}
body.nes-home .nes-b3 {
  background: #b45309;
  color: #ffffff !important;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: filter .15s;
}
body.nes-home .nes-b3:hover {
  filter: brightness(1.08);
}

/* ---------- 8. Section Headings, Service Cards, Helplines ---------- */
body.nes-home .nes-sec {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 5px solid var(--gold);
}

/* ---------- 8. Online Services Cards (Free-Sized / Space-Filling Layout) ---------- */
body.nes-home .nes-svc {
  display: flex;
  flex-direction: row;
  justify-content: stretch;
  align-items: stretch;
  gap: clamp(12px, 1.5vw, 18px);
  width: 100%;
  flex-wrap: wrap;
}

body.nes-home .nes-sc {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--c, var(--pri));
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  flex: 1 1 0;
  min-width: 220px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Free-sized rule: 1 card takes total row space */
body.nes-home .nes-svc.nes-svc-count-1 .nes-sc,
body.nes-home .nes-svc .nes-sc:only-child {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Free-sized rule: 2 cards share total row space equally (50% each) */
body.nes-home .nes-svc.nes-svc-count-2 .nes-sc {
  flex: 1 1 calc(50% - clamp(12px, 1.5vw, 18px));
  max-width: 100%;
}

/* Free-sized rule: 3 cards share total row space equally (33.3% each) */
body.nes-home .nes-svc.nes-svc-count-3 .nes-sc {
  flex: 1 1 calc(33.333% - clamp(12px, 1.5vw, 18px));
  max-width: 100%;
}

/* Free-sized rule: 4 cards share total row space equally (25% each) */
body.nes-home .nes-svc.nes-svc-count-4 .nes-sc {
  flex: 1 1 calc(25% - clamp(12px, 1.5vw, 18px));
  max-width: 100%;
}

.nes-sc-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

@media (max-width: 580px) {
  body.nes-home .nes-sc,
  body.nes-home .nes-svc.nes-svc-count-1 .nes-sc,
  body.nes-home .nes-svc.nes-svc-count-2 .nes-sc,
  body.nes-home .nes-svc.nes-svc-count-3 .nes-sc,
  body.nes-home .nes-svc.nes-svc-count-4 .nes-sc {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
body.nes-home .nes-sc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--pri);
}
body.nes-home .nes-sc:nth-child(1) { --c: #0b6fa4; }
body.nes-home .nes-sc:nth-child(2) { --c: #0f7a4d; }
body.nes-home .nes-sc:nth-child(3) { --c: #b45309; }
body.nes-home .nes-sc:nth-child(4) { --c: #7c3a8a; }

body.nes-home .nes-ic {
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(11,93,122,.14);
  background: color-mix(in srgb, var(--c, var(--pri)) 14%, transparent);
  margin-bottom: 4px;
}
body.nes-home .nes-sc b {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
body.nes-home .nes-sc span {
  color: var(--mute);
  font-size: 13.5px;
  flex: 1;
}
body.nes-home .nes-sc a {
  font-weight: 600;
  margin-top: 8px;
  color: var(--c, var(--pri));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body.nes-home .nes-sc a:hover {
  text-decoration: underline;
}

body.nes-home .nes-hint {
  color: var(--mute);
  font-size: 13px;
  margin-bottom: 10px;
}
body.nes-home .nes-hl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
@media (min-width: 1600px) {
  body.nes-home .nes-hl {
    grid-template-columns: repeat(7, 1fr);
  }
}
@media (max-width: 768px) {
  body.nes-home .nes-hl {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 420px) {
  body.nes-home .nes-hl {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  body.nes-home .nes-hl div {
    padding: 8px 10px;
  }
  body.nes-home .nes-hl small {
    font-size: 11px;
  }
  body.nes-home .nes-hl b {
    font-size: 13px;
    word-break: break-all;
  }
}
body.nes-home .nes-hl div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}
body.nes-home .nes-hl small {
  display: block;
  color: var(--mute);
  font-size: 12px;
}
body.nes-home .nes-hl b {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--ink);
}
body.nes-home .nes-hl a {
  color: var(--ink);
  text-decoration: none;
}
body.nes-home .nes-hl a:hover {
  color: var(--pri);
}

/* ---------- Footer (.nes-foot) ---------- */
body.nes-site .nes-foot {
  background: var(--nav);
  color: #94a3b8;
  margin-top: 36px;
  padding: 24px 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
}
body.nes-site .nes-flogos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
body.nes-site .nes-flogos img {
  height: 40px;
  width: auto;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
}
body.nes-site .nes-foot-links {
  margin: 12px 0;
}
body.nes-site .nes-foot-links a {
  color: #7dd3fc;
  margin: 0 10px;
  text-decoration: none;
}
body.nes-site .nes-foot-links a:hover {
  text-decoration: underline;
}
body.nes-site .nes-foot-meta {
  color: #64748b;
  font-size: 12px;
  margin-top: 10px;
}
body.nes-site .nes-foot-meta .green {
  color: #4ade80;
}

/* ---------- 8A. Login Page (.nes-login) ---------- */
body.nes-login .nes-auth {
  padding: clamp(16px, 3vw, 34px) 0 20px;
  position: relative;
}
body.nes-login .nes-card2 {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  max-width: 980px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 1600px) {
  body.nes-login .nes-card2 {
    max-width: 1060px;
  }
}
@media(max-width: 860px) {
  body.nes-login .nes-card2 {
    grid-template-columns: 1fr;
  }
  body.nes-login .nes-bp ul,
  body.nes-login .nes-bp .sec2 {
    display: none;
  }
}
@media(max-width: 480px) {
  body.nes-login .nes-bp {
    padding: 24px 20px;
  }
  body.nes-login .nes-fp {
    padding: 24px 18px;
  }
  body.nes-login .nes-acts {
    grid-template-columns: 1fr;
  }
}
body.nes-login .nes-bp {
  background: var(--hero);
  color: #ffffff;
  padding: 42px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.nes-login .nes-bp:before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}
body.nes-login .nes-bp:after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(232, 163, 23, 0.20);
  pointer-events: none;
}
body.nes-login .nes-bp > * {
  position: relative;
  z-index: 1;
}
body.nes-login .nes-bp h2 {
  margin: 16px 0 10px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
}
body.nes-login .nes-bp p {
  margin: 0;
  opacity: .95;
  max-width: 38ch;
  font-size: 14.5px;
  color: #ffffff;
}
body.nes-login .nes-bp ul {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}
body.nes-login .nes-bp li {
  font-size: 14.5px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #ffffff;
}
body.nes-login .nes-bp li i {
  font-style: normal;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #2b1d00;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex: none;
}
body.nes-login .nes-bp .sec2 {
  margin-top: auto;
  padding-top: 26px;
  font-size: 12.5px;
  opacity: .9;
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.nes-login .nes-fp {
  padding: 42px 40px;
  background: var(--card);
}
body.nes-login .nes-fp .em {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pri), var(--pri2));
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 14px;
  color: #ffffff;
}
body.nes-login .nes-fp h3 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}
body.nes-login .nes-fp .sub {
  color: var(--mute);
  font-size: 14px;
  margin: 0 0 22px;
}
body.nes-login .nes-fp label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
body.nes-login .nes-fg {
  margin-bottom: 16px;
}
body.nes-login .nes-iw {
  position: relative;
}
body.nes-login .nes-iw input.form-control,
body.nes-login .nes-iw input {
  width: 100% !important;
  height: 48px !important;
  padding: 0 46px !important;
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  background: var(--bg) !important;
  color: var(--ink) !important;
  font: inherit !important;
  font-size: 15px !important;
  outline: 0 !important;
  box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s !important;
  box-sizing: border-box !important;
}
body.nes-login .nes-iw input:focus {
  border-color: var(--pri) !important;
  box-shadow: 0 0 0 4px rgba(11,93,122,.16) !important;
}
:root[data-theme="dark"] body.nes-login .nes-iw input:focus {
  box-shadow: 0 0 0 4px rgba(76,201,240,.22) !important;
}

body.nes-login .nes-iw .li {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  filter: grayscale(1);
  opacity: .7;
  pointer-events: none;
  z-index: 2;
}
body.nes-login .nes-iw .tg {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--mute);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .15s;
}
body.nes-login .nes-iw .tg:hover {
  background: var(--line);
}
body.nes-login .nes-caps {
  display: none;
  color: var(--amb);
  font-size: 12.5px;
  margin-top: 6px;
  font-weight: 600;
}

body.nes-login .nes-acts {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
body.nes-login .nes-bt {
  height: 50px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter .15s, transform .15s, background .15s;
  text-decoration: none !important;
}
body.nes-login .nes-bt.go {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0b5d7a, #0f766e) !important;
  box-shadow: 0 6px 16px rgba(11,93,122,.30);
}
body.nes-login .nes-bt.go:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
body.nes-login .nes-bt.hm {
  background: transparent !important;
  color: var(--grn) !important;
  border: 2px solid var(--grn) !important;
}
body.nes-login .nes-bt.hm:hover {
  background: var(--grn) !important;
  color: #ffffff !important;
}
body.nes-login .nes-bt[disabled] {
  opacity: .6;
  pointer-events: none;
}
body.nes-login .nes-fl {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
}
body.nes-login .nes-fl a {
  color: var(--pri);
  text-decoration: none;
}
body.nes-login .nes-fl a:hover {
  text-decoration: underline;
}

body.nes-login .alert.alert-danger {
  background: rgba(194, 65, 12, 0.10) !important;
  border: 1px solid rgba(194, 65, 12, 0.35) !important;
  border-left: 4px solid var(--red) !important;
  border-radius: 10px !important;
  color: var(--ink) !important;
  padding: 10px 14px !important;
  margin-bottom: 16px !important;
}

/* ---------- 9. Accessibility Menu (#nesAm) ---------- */
#nesAm {
  display: none;
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 56px);
  right: 12px;
  width: 290px;
  max-width: calc(100vw - 24px);
  z-index: 9999;
  background: #ffffff;
  color: #333333;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
}
#nesAm.open {
  display: block;
}
#nesAm .th {
  background: #2b7bc4;
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}
#nesAm .th button {
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
#nesAm .gd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 14px;
  border: 1px solid #dddddd;
}
#nesAm .gd button {
  background: #ffffff;
  border: 1px solid #dddddd;
  margin: -0.5px;
  padding: 18px 6px 14px;
  cursor: pointer;
  color: #444444;
  font: inherit;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 104px;
  justify-content: center;
  transition: background .15s;
}
#nesAm .gd button span {
  font-size: 28px;
  filter: grayscale(1);
}
#nesAm .gd button:hover {
  background: #f1f6fb;
}
#nesAm .gd button[aria-pressed="true"] {
  background: #dbeafe;
  color: #1e3a8a;
  box-shadow: inset 0 -4px 0 #2b7bc4;
}
#nesAm .rs {
  margin: 0 14px 14px;
  width: calc(100% - 28px);
  padding: 9px;
  border: 1px solid #bbbbbb;
  background: #f5f5f5;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
}
#nesAm .rs:hover {
  background: #e5e5e5;
}

/* Accessibility Modifiers on <html> */
html.a11y-kbd *:focus,
html.a11y-kbd *:focus-visible {
  outline: 4px solid #f59e0b !important;
  outline-offset: 3px !important;
}
html.a11y-cur,
html.a11y-cur * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M4 2l28 15-12 3-4 13z' fill='%23000' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") 4 2, auto !important;
}
html.a11y-hc {
  --bg: #000000 !important;
  --card: #000000 !important;
  --ink: #ffffff !important;
  --mute: #ffeb3b !important;
  --line: #ffffff !important;
  --pri: #ffeb3b !important;
  --grn: #00ff90 !important;
  --red: #ff8a80 !important;
  --nav: #000000 !important;
}
html.a11y-hc .nes-hero,
html.a11y-hc .mbox,
html.a11y-hc .nes-bp {
  background: #000000 !important;
  border: 2px solid #ffeb3b !important;
}
html.a11y-hc .nes-btn.gold,
html.a11y-hc .nes-b1,
html.a11y-hc .nes-b2,
html.a11y-hc .nes-b3,
html.a11y-hc .nes-bt.go {
  background: #ffeb3b !important;
  color: #000000 !important;
}
html.a11y-hc .nes-panel,
html.a11y-hc .nes-rc,
html.a11y-hc .nes-sc,
html.a11y-hc .nes-hl div,
html.a11y-hc .nes-lc,
html.a11y-hc .nes-card2 {
  border: 2px solid #ffffff !important;
}
html.a11y-txt1 body {
  zoom: 1.15;
}
html.a11y-txt2 body {
  zoom: 1.3;
}
html.a11y-gray {
  filter: grayscale(1);
}
html.a11y-lnk a {
  background: #ffeb3b !important;
  color: #000000 !important;
  text-decoration: underline !important;
  outline: 2px solid #000000;
  padding: 1px 4px;
  border-radius: 3px;
}
html.a11y-font,
html.a11y-font * {
  font-family: Verdana, Tahoma, Arial, sans-serif !important;
  letter-spacing: .04em;
  word-spacing: .12em;
  line-height: 1.7;
}

/* ==========================================================================
   Admin Leadership Management UI Styles
   ========================================================================== */
.nes-admin-leader-avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 2px solid #0b5d7a;
  display: inline-block;
  vertical-align: middle;
}

.nes-admin-leader-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0b5d7a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 44px;
  text-align: center;
  margin: 0 auto;
}

.nes-admin-leader-preview {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  margin-bottom: 8px;
}

.nes-admin-current-photo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vertical-middle {
  vertical-align: middle !important;
}

/* ==========================================================================
   Global Screen Fitting & Responsive Safeguards
   ========================================================================== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure data tables never cause full-page overflow across devices */
.table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border: 0 !important;
  margin-bottom: 15px;
}

/* Responsive Bootstrap Modals */
.modal-dialog {
  max-width: 95vw !important;
  margin: 30px auto !important;
}

@media (max-width: 768px) {
  .modal-dialog {
    width: auto !important;
    margin: 12px auto !important;
  }
}

/* ==========================================================================
   Comprehensive Dark Theme Engine (Zero-inline styles, full application coverage)
   ========================================================================== */

/* 1. Global Page Background & Text */
html[data-theme="dark"],
body[data-theme="dark"],
[data-theme="dark"] body,
[data-theme="dark"] body.bg-light,
[data-theme="dark"] .bg-light,
[data-theme="dark"] body.nes-site,
[data-theme="dark"] .content-wrapper,
[data-theme="dark"] .right-side,
[data-theme="dark"] .main-footer,
[data-theme="dark"] .wrapper {
  background: #0b111a !important;
  background-color: #0b111a !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] body.nes-site {
  background: radial-gradient(900px 400px at 100% 0, rgba(15,118,110,.18), transparent 70%),
              radial-gradient(700px 360px at 0 20%, rgba(232,163,23,.12), transparent 70%),
              #0b111a !important;
}

/* AdminLTE Top Navbar & Brand Header */
[data-theme="dark"] .main-header .navbar {
  background-color: #060a10 !important;
  border-bottom: 2px solid #fbbf24 !important;
}
[data-theme="dark"] .main-header .logo {
  background-color: #03060a !important;
  color: #f1f5f9 !important;
  border-bottom: 0 !important;
}
[data-theme="dark"] .main-sidebar,
[data-theme="dark"] .left-side {
  background-color: #090e17 !important;
  border-right: 1px solid #1a2536 !important;
}
[data-theme="dark"] .sidebar-menu > li > a,
[data-theme="dark"] .sidebar-menu > li > a > span,
[data-theme="dark"] .sidebar-menu > li > a > i {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .sidebar-menu > li.active > a,
[data-theme="dark"] .sidebar-menu > li > a:hover {
  background-color: #151d2a !important;
  color: #38bdf8 !important;
}
[data-theme="dark"] .sidebar-menu > li.active > a > span,
[data-theme="dark"] .sidebar-menu > li > a:hover > span,
[data-theme="dark"] .sidebar-menu > li.active > a > i,
[data-theme="dark"] .sidebar-menu > li > a:hover > i {
  color: #38bdf8 !important;
}
[data-theme="dark"] .sidebar-menu > li.header {
  color: #94a3b8 !important;
  background-color: #090e17 !important;
  border-top: 1px solid #1a2536 !important;
  border-bottom: 1px solid #1a2536 !important;
}
[data-theme="dark"] .sidebar-menu .treeview-menu,
[data-theme="dark"] .skin-blue-light .sidebar-menu > li > .treeview-menu {
  background-color: #0d1522 !important;
}
[data-theme="dark"] .sidebar-menu .treeview-menu li a,
[data-theme="dark"] .sidebar-menu .treeview-menu li a span,
[data-theme="dark"] .sidebar-menu .treeview-menu li a i,
[data-theme="dark"] .skin-blue-light .sidebar-menu .treeview-menu > li > a,
[data-theme="dark"] .skin-blue-light .sidebar-menu .treeview-menu > li > a > span,
[data-theme="dark"] .skin-blue-light .sidebar-menu .treeview-menu > li > a > i {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .sidebar-menu .treeview-menu li a:hover,
[data-theme="dark"] .sidebar-menu .treeview-menu li a:focus,
[data-theme="dark"] .skin-blue-light .sidebar-menu .treeview-menu > li > a:hover,
[data-theme="dark"] .skin-blue-light .sidebar-menu .treeview-menu > li > a:focus {
  background-color: #2563eb !important;
  color: #ffffff !important;
}
[data-theme="dark"] .sidebar-menu .treeview-menu li a:hover span,
[data-theme="dark"] .sidebar-menu .treeview-menu li a:focus span,
[data-theme="dark"] .sidebar-menu .treeview-menu li a:hover i,
[data-theme="dark"] .sidebar-menu .treeview-menu li a:focus i,
[data-theme="dark"] .skin-blue-light .sidebar-menu .treeview-menu > li > a:hover span,
[data-theme="dark"] .skin-blue-light .sidebar-menu .treeview-menu > li > a:focus span {
  color: #ffffff !important;
}
[data-theme="dark"] .sidebar-menu .treeview-menu li.active > a,
[data-theme="dark"] .skin-blue-light .sidebar-menu .treeview-menu > li.active > a {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}
[data-theme="dark"] .sidebar-menu .treeview-menu li.active > a > span,
[data-theme="dark"] .sidebar-menu .treeview-menu li.active > a > i,
[data-theme="dark"] .skin-blue-light .sidebar-menu .treeview-menu > li.active > a > span,
[data-theme="dark"] .skin-blue-light .sidebar-menu .treeview-menu > li.active > a > i {
  color: #ffffff !important;
}
[data-theme="dark"] .sidebar-menu .fa-angle-left,
[data-theme="dark"] .sidebar-menu .fa-angle-down,
[data-theme="dark"] .sidebar-menu .pull-right-container i {
  color: #94a3b8 !important;
}
[data-theme="dark"] .sidebar-menu li:hover > a > .fa-angle-left,
[data-theme="dark"] .sidebar-menu li:hover > a > .fa-angle-down,
[data-theme="dark"] .sidebar-menu li.active > a > .fa-angle-left,
[data-theme="dark"] .sidebar-menu li.active > a > .fa-angle-down {
  color: #38bdf8 !important;
}

/* 2. Cards, Panels, Boxes */
[data-theme="dark"] .box,
[data-theme="dark"] .box-solid,
[data-theme="dark"] .panel,
[data-theme="dark"] .panel-default,
[data-theme="dark"] .card,
[data-theme="dark"] .nes-panel,
[data-theme="dark"] .nes-rc,
[data-theme="dark"] .nes-sc,
[data-theme="dark"] .nes-lc,
[data-theme="dark"] .nes-card2,
[data-theme="dark"] .nes-fp,
[data-theme="dark"] .nes-hl div,
[data-theme="dark"] .mbox,
[data-theme="dark"] .well,
[data-theme="dark"] .info-box {
  background-color: #151d2a !important;
  color: #f1f5f9 !important;
  border-color: #223046 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .box-header,
[data-theme="dark"] .panel-heading {
  background-color: #1a2332 !important;
  color: #f1f5f9 !important;
  border-bottom: 1px solid #223046 !important;
}
[data-theme="dark"] .box-header .box-title,
[data-theme="dark"] .panel-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .box-footer,
[data-theme="dark"] .panel-footer {
  background-color: #121924 !important;
  border-top: 1px solid #223046 !important;
}

/* 3. Typography & Muted Text */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .text-dark {
  color: #f8fafc !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li,
[data-theme="dark"] label {
  color: #cbd5e1;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .nes-mute {
  color: #94a3b8 !important;
}

/* 4. Tables */
[data-theme="dark"] .table {
  color: #f1f5f9 !important;
  background-color: #151d2a !important;
}
[data-theme="dark"] .table > thead > tr > th,
[data-theme="dark"] .table > tbody > tr > th,
[data-theme="dark"] .table > tfoot > tr > th {
  background-color: #1a2332 !important;
  color: #f8fafc !important;
  border-color: #223046 !important;
}
[data-theme="dark"] .table > tbody > tr > td,
[data-theme="dark"] .table > tfoot > tr > td,
[data-theme="dark"] .table-bordered,
[data-theme="dark"] .table-bordered > tbody > tr > td,
[data-theme="dark"] .table-bordered > tbody > tr > th,
[data-theme="dark"] .table-bordered > thead > tr > td,
[data-theme="dark"] .table-bordered > thead > tr > th {
  border-color: #223046 !important;
  color: #f1f5f9 !important;
}
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.03) !important;
}
[data-theme="dark"] .table-hover > tbody > tr:hover {
  background-color: rgba(255, 255, 255, 0.07) !important;
}

/* 5. Form Controls & Inputs */
[data-theme="dark"] .form-control,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] select.form-control,
[data-theme="dark"] textarea.form-control,
[data-theme="dark"] .select2-container--default .select2-selection--single,
[data-theme="dark"] .select2-container--default .select2-selection--multiple {
  background-color: #0e1520 !important;
  color: #f1f5f9 !important;
  border: 1px solid #2a3b52 !important;
}
[data-theme="dark"] .form-control:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
}
[data-theme="dark"] .input-group-addon {
  background-color: #1a2332 !important;
  color: #cbd5e1 !important;
  border-color: #2a3b52 !important;
}
[data-theme="dark"] label {
  color: #cbd5e1 !important;
}

/* 6. Modals & Dropdown Menus */
[data-theme="dark"] .modal-content {
  background-color: #151d2a !important;
  color: #f1f5f9 !important;
  border: 1px solid #223046 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7) !important;
}
[data-theme="dark"] .modal-header {
  border-bottom: 1px solid #223046 !important;
}
[data-theme="dark"] .modal-footer {
  border-top: 1px solid #223046 !important;
  background-color: #121924 !important;
}
[data-theme="dark"] .dropdown-menu {
  background-color: #151d2a !important;
  border: 1px solid #223046 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}
[data-theme="dark"] .dropdown-menu > li > a {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .dropdown-menu > li > a:hover,
[data-theme="dark"] .dropdown-menu > li > a:focus {
  background-color: #1e293b !important;
  color: #ffffff !important;
}
[data-theme="dark"] .dropdown-menu .divider {
  background-color: #223046 !important;
}

/* 7. Preserving Semantic Badges and Buttons */
[data-theme="dark"] .label-success, [data-theme="dark"] .badge-success, [data-theme="dark"] .btn-success {
  background-color: #0f7a4d !important;
  color: #ffffff !important;
}
[data-theme="dark"] .label-warning, [data-theme="dark"] .badge-warning, [data-theme="dark"] .btn-warning {
  background-color: #b45309 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .label-danger, [data-theme="dark"] .badge-danger, [data-theme="dark"] .btn-danger {
  background-color: #b91c1c !important;
  color: #ffffff !important;
}
[data-theme="dark"] .label-info, [data-theme="dark"] .badge-info, [data-theme="dark"] .btn-info {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .label-primary, [data-theme="dark"] .badge-primary, [data-theme="dark"] .btn-primary {
  background-color: #0b5d7a !important;
  color: #ffffff !important;
}
[data-theme="dark"] .btn-default {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .btn-default:hover {
  background-color: #273549 !important;
  color: #ffffff !important;
}

/* 8. Breadcrumbs & Pagination */
[data-theme="dark"] .breadcrumb {
  background-color: #151d2a !important;
}
[data-theme="dark"] .breadcrumb > li + li:before {
  color: #64748b !important;
}
[data-theme="dark"] .pagination > li > a,
[data-theme="dark"] .pagination > li > span {
  background-color: #151d2a !important;
  border-color: #223046 !important;
  color: #cbd5e1 !important;
}
[data-theme="dark"] .pagination > .active > a,
[data-theme="dark"] .pagination > .active > span {
  background-color: #0b5d7a !important;
  border-color: #0b5d7a !important;
  color: #ffffff !important;
}

/* ==========================================================================
   9. Main Navigation Menu — Pure White (#FFFFFF) in Dark Mode
   ========================================================================== */
[data-theme="dark"] .navbar-default,
[data-theme="dark"] div.navbar-default,
[data-theme="dark"] .navbar-default.text-primary,
[data-theme="dark"] .col-lg-12.navbar-default {
  background-color: #0b111a !important;
  border-color: #1e293b !important;
}

/* Ensure every letter of every main menu item is pure white in dark mode */
[data-theme="dark"] .navbar-default .navbar-nav > li > a,
[data-theme="dark"] .navbar-default .navbar-nav > li > a > span,
[data-theme="dark"] .navbar-default .navbar-nav > li > a > i,
[data-theme="dark"] .navbar-default .navbar-nav > li > a .caret,
[data-theme="dark"] .menu_level_0 > li > a,
[data-theme="dark"] .menu_level_0 > li > a > span,
[data-theme="dark"] .menu_level_0 > li > a > i,
[data-theme="dark"] .menu_level_0 > li > a .caret,
[data-theme="dark"] .navbar-nav > li > a,
[data-theme="dark"] .navbar-nav > li > a > span,
[data-theme="dark"] .navbar-nav > li > a > i {
  color: #ffffff !important;
  border-top-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

/* Hover, Focus, Open and Expanded Navigation States */
[data-theme="dark"] .navbar-default .navbar-nav > li > a:hover,
[data-theme="dark"] .navbar-default .navbar-nav > li > a:focus,
[data-theme="dark"] .navbar-default .navbar-nav > li.open > a,
[data-theme="dark"] .navbar-default .navbar-nav > li.open > a:hover,
[data-theme="dark"] .navbar-default .navbar-nav > li.open > a:focus,
[data-theme="dark"] .navbar-default .navbar-nav > li > a:hover > span,
[data-theme="dark"] .navbar-default .navbar-nav > li > a:focus > span,
[data-theme="dark"] .navbar-default .navbar-nav > li.open > a > span,
[data-theme="dark"] .navbar-default .navbar-nav > li > a:hover > i,
[data-theme="dark"] .navbar-default .navbar-nav > li > a:focus > i,
[data-theme="dark"] .navbar-default .navbar-nav > li.open > a > i,
[data-theme="dark"] .navbar-default .navbar-nav > li.open > a .caret,
[data-theme="dark"] .menu_level_0 > li > a:hover,
[data-theme="dark"] .menu_level_0 > li > a:focus,
[data-theme="dark"] .menu_level_0 > li.open > a,
[data-theme="dark"] .menu_level_0 > li.open > a > span,
[data-theme="dark"] .menu_level_0 > li > a:hover > span,
[data-theme="dark"] .menu_level_0 > li > a:hover > i,
[data-theme="dark"] .menu_level_0 > li > a:hover .caret {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border-top-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

/* Active / Selected Menu States */
[data-theme="dark"] .navbar-default .navbar-nav > li.active > a,
[data-theme="dark"] .navbar-default .navbar-nav > li.active > a:hover,
[data-theme="dark"] .navbar-default .navbar-nav > li.active > a:focus,
[data-theme="dark"] .navbar-default .navbar-nav > li.active > a > span,
[data-theme="dark"] .navbar-default .navbar-nav > li.active > a > i,
[data-theme="dark"] .navbar-default .navbar-nav > li.active > a .caret,
[data-theme="dark"] .menu_level_0 > li.active > a,
[data-theme="dark"] .menu_level_0 > li.active > a:hover,
[data-theme="dark"] .menu_level_0 > li.active > a:focus,
[data-theme="dark"] .menu_level_0 > li.active > a > span,
[data-theme="dark"] .menu_level_0 > li.active > a > i,
[data-theme="dark"] .menu_level_0 > li.active > a .caret {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}

/* Dropdown Submenus, Treeview Menus & All Nested Level Menus */
[data-theme="dark"] .navbar-default .dropdown-menu,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .treeview-menu,
[data-theme="dark"] .menu_level_1,
[data-theme="dark"] .menu_level_2,
[data-theme="dark"] .menu_level_3,
[data-theme="dark"] .menu_level_4,
[data-theme="dark"] .dropdown-menu .sub-menu {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
}

/* Nested Submenu labels, text, and icons — All Pure White */
[data-theme="dark"] .navbar-default .dropdown-menu > li > a,
[data-theme="dark"] .navbar-default .dropdown-menu > li > a > span,
[data-theme="dark"] .navbar-default .dropdown-menu > li > a > i,
[data-theme="dark"] .navbar-default .dropdown-menu > li > a > strong,
[data-theme="dark"] .dropdown-menu > li > a,
[data-theme="dark"] .dropdown-menu > li > a > span,
[data-theme="dark"] .dropdown-menu > li > a > i,
[data-theme="dark"] .dropdown-menu > li > a > strong,
[data-theme="dark"] .dropdown-menu li a,
[data-theme="dark"] .dropdown-menu li a span,
[data-theme="dark"] .dropdown-menu li a i,
[data-theme="dark"] .dropdown-menu li a strong,
[data-theme="dark"] .treeview-menu > li > a,
[data-theme="dark"] .treeview-menu > li > a > span,
[data-theme="dark"] .treeview-menu > li > a > i,
[data-theme="dark"] .treeview-menu > li > a > strong,
[data-theme="dark"] .treeview-menu li a,
[data-theme="dark"] .treeview-menu li a span,
[data-theme="dark"] .treeview-menu li a i,
[data-theme="dark"] .treeview-menu li a strong,
[data-theme="dark"] .menu_level_1 > li > a,
[data-theme="dark"] .menu_level_1 > li > a > span,
[data-theme="dark"] .menu_level_1 > li > a > i,
[data-theme="dark"] .menu_level_1 > li > a > strong,
[data-theme="dark"] .menu_level_2 > li > a,
[data-theme="dark"] .menu_level_2 > li > a > span,
[data-theme="dark"] .menu_level_2 > li > a > i,
[data-theme="dark"] .menu_level_2 > li > a > strong,
[data-theme="dark"] .menu_level_3 > li > a,
[data-theme="dark"] .menu_level_3 > li > a > span,
[data-theme="dark"] .menu_level_3 > li > a > i,
[data-theme="dark"] .menu_level_3 > li > a > strong,
[data-theme="dark"] .dropdown-menu .sub-menu > li > a,
[data-theme="dark"] .dropdown-menu .sub-menu > li > a > span,
[data-theme="dark"] .skin-blue-light .treeview-menu > li > a,
[data-theme="dark"] .skin-blue-light .treeview-menu > li > a > span,
[data-theme="dark"] .skin-blue-light .treeview-menu > li > a > i {
  color: #ffffff !important;
}

/* Submenu Hover & Focus States */
[data-theme="dark"] .navbar-default .dropdown-menu > li > a:hover,
[data-theme="dark"] .navbar-default .dropdown-menu > li > a:focus,
[data-theme="dark"] .dropdown-menu > li > a:hover,
[data-theme="dark"] .dropdown-menu > li > a:focus,
[data-theme="dark"] .dropdown-menu li a:hover,
[data-theme="dark"] .dropdown-menu li a:focus,
[data-theme="dark"] .treeview-menu > li > a:hover,
[data-theme="dark"] .treeview-menu > li > a:focus,
[data-theme="dark"] .treeview-menu li a:hover,
[data-theme="dark"] .treeview-menu li a:focus,
[data-theme="dark"] .menu_level_1 > li > a:hover,
[data-theme="dark"] .menu_level_1 > li > a:focus,
[data-theme="dark"] .menu_level_2 > li > a:hover,
[data-theme="dark"] .menu_level_2 > li > a:focus,
[data-theme="dark"] .menu_level_3 > li > a:hover,
[data-theme="dark"] .menu_level_3 > li > a:focus,
[data-theme="dark"] .dropdown-menu .sub-menu > li > a:hover,
[data-theme="dark"] .dropdown-menu .sub-menu > li > a:focus,
[data-theme="dark"] .skin-blue-light .treeview-menu > li > a:hover,
[data-theme="dark"] .skin-blue-light .treeview-menu > li > a:focus {
  background-color: #2563eb !important;
  color: #ffffff !important;
}
[data-theme="dark"] .treeview-menu li a:hover span,
[data-theme="dark"] .treeview-menu li a:focus span,
[data-theme="dark"] .treeview-menu li a:hover i,
[data-theme="dark"] .treeview-menu li a:focus i,
[data-theme="dark"] .dropdown-menu li a:hover span,
[data-theme="dark"] .dropdown-menu li a:focus span,
[data-theme="dark"] .dropdown-menu li a:hover i,
[data-theme="dark"] .dropdown-menu li a:focus i,
[data-theme="dark"] .skin-blue-light .treeview-menu > li > a:hover span,
[data-theme="dark"] .skin-blue-light .treeview-menu > li > a:focus span {
  color: #ffffff !important;
}

/* Submenu Active State */
[data-theme="dark"] .navbar-default .dropdown-menu > li.active > a,
[data-theme="dark"] .dropdown-menu > li.active > a,
[data-theme="dark"] .dropdown-menu li.active > a,
[data-theme="dark"] .treeview-menu > li.active > a,
[data-theme="dark"] .treeview-menu li.active > a,
[data-theme="dark"] .menu_level_1 > li.active > a,
[data-theme="dark"] .menu_level_2 > li.active > a,
[data-theme="dark"] .menu_level_3 > li.active > a,
[data-theme="dark"] .skin-blue-light .treeview-menu > li.active > a {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}
[data-theme="dark"] .treeview-menu li.active > a > span,
[data-theme="dark"] .treeview-menu li.active > a > i,
[data-theme="dark"] .dropdown-menu li.active > a > span,
[data-theme="dark"] .dropdown-menu li.active > a > i,
[data-theme="dark"] .skin-blue-light .treeview-menu > li.active > a > span,
[data-theme="dark"] .skin-blue-light .treeview-menu > li.active > a > i {
  color: #ffffff !important;
}

/* Submenu Dividers */
[data-theme="dark"] .navbar-default .dropdown-menu .divider,
[data-theme="dark"] .dropdown-menu .divider,
[data-theme="dark"] .treeview-menu .divider,
[data-theme="dark"] .menu_level_1 .divider,
[data-theme="dark"] .menu_level_2 .divider,
[data-theme="dark"] .menu_level_3 .divider,
[data-theme="dark"] .divider-vertical {
  background-color: #334155 !important;
  border-color: #334155 !important;
}

/* Submenu caret / arrow */
[data-theme="dark"] .dropdown-submenu > a:after {
  border-left-color: #ffffff !important;
}
[data-theme="dark"] .dropdown-menu .caret,
[data-theme="dark"] .treeview-menu .caret {
  color: #ffffff !important;
  border-top-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

/* Top Branding Bar (.navBorder in menuNav.html.twig) */
[data-theme="dark"] .navbar-static-top.navBorder,
[data-theme="dark"] .navBorder {
  background-color: #0b111a !important;
  border-bottom: 1px solid #1e293b !important;
}
[data-theme="dark"] .navBorder a.ubuntu,
[data-theme="dark"] .navBorder .text-green {
  color: #4ade80 !important;
}
[data-theme="dark"] .navBorder .btn-default.ubuntu {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #4ade80 !important;
}
[data-theme="dark"] .navBorder .navbar-nav > li > a {
  color: #ffffff !important;
}
[data-theme="dark"] .navBorder .navbar-nav > li > a > i.text-primary {
  color: #38bdf8 !important;
}
[data-theme="dark"] .navBorder .navbar-nav > li > a > i.fa-home {
  color: #38bdf8 !important;
}

/* ==========================================================================
   Superadmin Dashboard & Navigation Submenu Visibility Fixes
   ========================================================================== */

/* 1. Header & Navigation Stacking Context, Sticky Navigation & Dropdown Overlap Fix */
header:not(.asset-header-bar),
body.nes-site .nes-nav,
.nes-nav {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1040 !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

header:not(.asset-header-bar) {
  background-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

body.nes-site .nes-nav,
.nes-nav {
  background: var(--nav, #0c4a6e) !important;
  border-bottom: 3px solid var(--gold, #f59e0b) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] header:not(.asset-header-bar) {
  background-color: #0b111a !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] body.nes-site .nes-nav,
[data-theme="dark"] .nes-nav {
  background: #0b111a !important;
  border-bottom-color: #2563eb !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important;
}

/* Top bar (.navBorder) Stacking Context: Must be strictly higher than .col-lg-12.navbar-default */
.navbar-static-top.navBorder,
.navBorder {
  position: relative !important;
  z-index: 1070 !important;
  overflow: visible !important;
}

/* Role-Switching & Top-Bar Dropdowns (menu_level_1): Floats cleanly in front of .col-lg-12.navbar-default */
.navBorder .dropdown-menu,
.navBorder .menu_level_1.dropdown-menu,
.navBorder .dropdown.user.user-menu .dropdown-menu,
.navBorder .asset-notif-dropdown {
  position: absolute !important;
  z-index: 1080 !important;
  margin-top: 1px;
}

/* Role Switch Dropdown Viewport Limiting & Scrollbar */
.role-switch-menu,
.menu_level_1.dropdown-menu.role-switch-menu,
.navBorder .dropdown.user.user-menu > .role-switch-menu,
.navBorder .dropdown.user.user-menu > .menu_level_1.dropdown-menu.role-switch-menu,
a[title*="Switch Role"] + .dropdown-menu,
a[title*="Switch Role"] + .menu_level_1 {
  max-height: 320px !important;
  max-width: 90vw !important;
  width: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  min-width: 220px;
  right: 0 !important;
  left: auto !important;
}

.role-switch-menu > li > a,
.menu_level_1.dropdown-menu.role-switch-menu > li > a,
.role-switch-menu .dropdown-item {
  white-space: normal !important;
  word-break: break-word;
  padding: 8px 16px;
}

/* Role Switch Custom Scrollbar (Light Theme) */
.role-switch-menu::-webkit-scrollbar,
.menu_level_1.dropdown-menu.role-switch-menu::-webkit-scrollbar,
a[title*="Switch Role"] + .dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.role-switch-menu::-webkit-scrollbar-track,
.menu_level_1.dropdown-menu.role-switch-menu::-webkit-scrollbar-track,
a[title*="Switch Role"] + .dropdown-menu::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.role-switch-menu::-webkit-scrollbar-thumb,
.menu_level_1.dropdown-menu.role-switch-menu::-webkit-scrollbar-thumb,
a[title*="Switch Role"] + .dropdown-menu::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
.role-switch-menu::-webkit-scrollbar-thumb:hover,
.menu_level_1.dropdown-menu.role-switch-menu::-webkit-scrollbar-thumb:hover,
a[title*="Switch Role"] + .dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Role Switch Custom Scrollbar (Dark Theme) */
[data-theme="dark"] .role-switch-menu::-webkit-scrollbar-track,
[data-theme="dark"] .menu_level_1.dropdown-menu.role-switch-menu::-webkit-scrollbar-track,
[data-theme="dark"] a[title*="Switch Role"] + .dropdown-menu::-webkit-scrollbar-track {
  background: #1e293b;
}
[data-theme="dark"] .role-switch-menu::-webkit-scrollbar-thumb,
[data-theme="dark"] .menu_level_1.dropdown-menu.role-switch-menu::-webkit-scrollbar-thumb,
[data-theme="dark"] a[title*="Switch Role"] + .dropdown-menu::-webkit-scrollbar-thumb {
  background: #475569;
}
[data-theme="dark"] .role-switch-menu::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .menu_level_1.dropdown-menu.role-switch-menu::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] a[title*="Switch Role"] + .dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Second bar (.col-lg-12.navbar-default text-primary) Stacking Context: Below top bar */
.navbar-default.text-primary,
.col-lg-12.navbar-default {
  position: relative !important;
  z-index: 1050 !important;
  overflow: visible !important;
}

.report-menu {
  position: relative;
  z-index: 1050;
}

.report-menu .dropdown-menu,
.navbar-default .dropdown-menu,
.treeview-menu.dropdown-menu {
  z-index: 1060 !important;
}

.report-menu > li.dropdown:hover > .dropdown-menu,
.report-menu > li.dropdown.open > .dropdown-menu,
.navbar-default .navbar-nav > li.dropdown:hover > .dropdown-menu,
.navbar-default .navbar-nav > li.dropdown.open > .dropdown-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 2. Top Navigation Submenu Styles (Scoped to .report-menu in Dark Mode) */
[data-theme="dark"] .report-menu,
[data-theme="dark"] .report-menu.navbar-default {
  background-color: transparent !important;
}

[data-theme="dark"] .report-menu > li > a {
  color: #ffffff !important;
}

[data-theme="dark"] .report-menu > li > a > span,
[data-theme="dark"] .report-menu > li > a > i,
[data-theme="dark"] .report-menu > li > a .caret {
  color: #ffffff !important;
  border-top-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

[data-theme="dark"] .report-menu > li > a:hover,
[data-theme="dark"] .report-menu > li > a:focus,
[data-theme="dark"] .report-menu > li.open > a,
[data-theme="dark"] .report-menu > li.open > a:hover,
[data-theme="dark"] .report-menu > li.open > a:focus {
  background-color: #1e293b !important;
  color: #ffffff !important;
}

[data-theme="dark"] .report-menu .dropdown-menu,
[data-theme="dark"] .report-menu .treeview-menu {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .report-menu .dropdown-menu > li > a,
[data-theme="dark"] .report-menu .dropdown-menu > li > a > span,
[data-theme="dark"] .report-menu .dropdown-menu > li > a > i,
[data-theme="dark"] .report-menu .treeview-menu > li > a,
[data-theme="dark"] .report-menu .treeview-menu > li > a > span,
[data-theme="dark"] .report-menu .treeview-menu > li > a > i {
  color: #ffffff !important;
}

[data-theme="dark"] .report-menu .dropdown-menu > li > a:hover,
[data-theme="dark"] .report-menu .dropdown-menu > li > a:focus,
[data-theme="dark"] .report-menu .treeview-menu > li > a:hover,
[data-theme="dark"] .report-menu .treeview-menu > li > a:focus {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

[data-theme="dark"] .report-menu .dropdown-menu > li.active > a,
[data-theme="dark"] .report-menu .treeview-menu > li.active > a {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   Site-Wide Font Scaling & Stepping Engine (90%, 100%, 115%, 130%, 150%)
   ========================================================================== */

/* Zero-JS CSS state radio inputs (accessible but hidden) */
.site-font-scale-radio,
.nav-font-scale-radio {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  pointer-events: none;
}

/* Site-Wide Proportional Scaling via zoom on body */
/* Scales all website elements: home page, navigation, dashboard, forms, tables, reports, headings, labels, buttons, modals, dropdowns */
html:has(#site-font-size-dec:checked) body,
body:has(#site-font-size-dec:checked),
#site-font-size-dec:checked ~ body {
  zoom: 0.9 !important;
}

html:has(#site-font-size-100:checked) body,
body:has(#site-font-size-100:checked),
#site-font-size-100:checked ~ body {
  zoom: 1 !important;
}

html:has(#site-font-size-115:checked) body,
body:has(#site-font-size-115:checked),
#site-font-size-115:checked ~ body {
  zoom: 1.15 !important;
}

html:has(#site-font-size-130:checked) body,
body:has(#site-font-size-130:checked),
#site-font-size-130:checked ~ body {
  zoom: 1.30 !important;
}

html:has(#site-font-size-150:checked) body,
body:has(#site-font-size-150:checked),
#site-font-size-150:checked ~ body {
  zoom: 1.50 !important;
}

/* Fallback CSS Variables for browsers where zoom is not preferred */
:root {
  --site-font-scale: 1;
  --nav-menu-font-size: 12px;
}
html:has(#site-font-size-dec:checked) {
  --site-font-scale: 0.9;
  --nav-menu-font-size: 11px;
}
html:has(#site-font-size-100:checked) {
  --site-font-scale: 1;
  --nav-menu-font-size: 12px;
}
html:has(#site-font-size-115:checked) {
  --site-font-scale: 1.15;
  --nav-menu-font-size: 13.5px;
}
html:has(#site-font-size-130:checked) {
  --site-font-scale: 1.30;
  --nav-menu-font-size: 15px;
}
html:has(#site-font-size-150:checked) {
  --site-font-scale: 1.50;
  --nav-menu-font-size: 16.5px;
}

/* Site-wide Typography Consistency */
.report-menu > li > a,
.report-menu > li > a > span,
.report-menu .dropdown-menu > li > a,
.report-menu .dropdown-menu > li > a > span,
.report-menu .treeview-menu > li > a,
.report-menu .treeview-menu > li > a > span,
.report-menu .menu_level_1 > li > a,
.report-menu .menu_level_2 > li > a,
.report-menu .menu_level_3 > li > a,
.report-menu .menu_level_4 > li > a {
  font-size: var(--nav-menu-font-size, 12px) !important;
  line-height: 1.4 !important;
}

.report-menu > li > a > i,
.report-menu .dropdown-menu > li > a > i,
.report-menu .treeview-menu > li > a > i,
.report-menu .menu_level_1 > li > a > i {
  font-size: var(--nav-menu-font-size, 12px) !important;
  vertical-align: middle !important;
  margin-right: 5px !important;
}

.report-menu > li > a .caret,
.report-menu > li > a b.caret {
  vertical-align: middle !important;
  margin-left: 4px !important;
}

/* Navbar li container for font size controls */
.navBorder .nav.navbar-nav > li.site-font-size-li,
.navBorder .nav.navbar-nav > li.nav-font-size-li,
.site-font-size-li,
.nav-font-size-li {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 4px;
  vertical-align: middle;
}

.site-font-size-controls,
.nav-font-size-controls {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px;
  gap: 1px;
}

[data-theme="dark"] .site-font-size-controls,
[data-theme="dark"] .nav-font-size-controls {
  background-color: #1e293b;
  border-color: #334155;
}

/* Home Page Navigation Tools cluster (.nes-nav-tools) styling */
.nes-nav-tools .site-font-size-controls {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 6px !important;
  padding: 1px !important;
  gap: 1px !important;
  height: 28px !important;
}

[data-theme="dark"] .nes-nav-tools .site-font-size-controls {
  background: #0f172a !important;
  border-color: #334155 !important;
}

.nes-nav-tools .site-font-btn {
  color: #ffffff !important;
  min-width: 24px !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center;
}

/* Default A highlighted in blue */
#site-font-size-100:checked ~ * .nes-nav-tools .site-font-btn-reset,
.nes-nav-tools .site-font-btn-reset {
  background: #2563eb !important;
  color: #ffffff !important;
}

.nes-nav-tools .nes-theme-bulb {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.nes-nav-tools .nes-theme-bulb i {
  color: #fbbf24 !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.nes-nav-tools .nes-theme-bulb:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: #fbbf24 !important;
  transform: scale(1.08);
}

/* Control Buttons (A-, A, A+) */
.site-font-btn,
.nav-font-btn,
.nes-nav .site-font-btn,
.nes-nav-tools .site-font-btn,
.site-font-size-controls .site-font-btn {
  display: none !important;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 22px;
  line-height: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  margin: 0 !important;
  padding: 0 4px;
  transition: all 0.15s ease-in-out;
}

.site-font-btn:hover,
.nav-font-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.nes-nav-tools .site-font-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.site-font-btn:focus,
.site-font-btn:focus-visible,
.nav-font-btn:focus,
.nav-font-btn:focus-visible {
  outline: 2px solid #3b82f6 !important;
  outline-offset: 1px !important;
}

[data-theme="dark"] .site-font-btn,
[data-theme="dark"] .nav-font-btn {
  color: #cbd5e1;
}

[data-theme="dark"] .site-font-btn:hover,
[data-theme="dark"] .nav-font-btn:hover {
  background-color: #334155;
  color: #ffffff;
}

/* Keyboard Focus Ring */
.site-font-scale-radio:focus ~ * .site-font-size-controls,
body:has(.site-font-scale-radio:focus) .site-font-size-controls,
.nav-font-scale-radio:focus ~ * .nav-font-size-controls,
header:has(.nav-font-scale-radio:focus) .nav-font-size-controls {
  outline: 2px solid #3b82f6 !important;
  outline-offset: 2px !important;
}

/* Stepping Controls Display Logic (Ensures exactly 3 buttons [-] [A] [+] are active) */
/* 1. Default Level (100% active) */
.site-font-dec-from-100,
.site-font-btn-reset,
.site-font-inc-from-100,
.site-font-size-controls .site-font-dec-from-100,
.site-font-size-controls .site-font-btn-reset,
.site-font-size-controls .site-font-inc-from-100,
.nes-nav-tools .site-font-dec-from-100,
.nes-nav-tools .site-font-btn-reset,
.nes-nav-tools .site-font-inc-from-100 {
  display: inline-flex !important;
}

#site-font-size-100:checked ~ * .site-font-btn-reset,
body:has(#site-font-size-100:checked) .site-font-btn-reset {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
}

/* 2. Level 1: 115% active */
#site-font-size-115:checked ~ * .site-font-dec-from-100,
#site-font-size-115:checked ~ * .site-font-inc-from-100,
body:has(#site-font-size-115:checked) .site-font-dec-from-100,
body:has(#site-font-size-115:checked) .site-font-inc-from-100 {
  display: none !important;
}
#site-font-size-115:checked ~ * .site-font-dec-from-115,
#site-font-size-115:checked ~ * .site-font-inc-from-115,
body:has(#site-font-size-115:checked) .site-font-dec-from-115,
body:has(#site-font-size-115:checked) .site-font-inc-from-115 {
  display: inline-flex !important;
}

/* 3. Level 2: 130% active */
#site-font-size-130:checked ~ * .site-font-dec-from-100,
#site-font-size-130:checked ~ * .site-font-inc-from-100,
body:has(#site-font-size-130:checked) .site-font-dec-from-100,
body:has(#site-font-size-130:checked) .site-font-inc-from-100 {
  display: none !important;
}
#site-font-size-130:checked ~ * .site-font-dec-from-130,
#site-font-size-130:checked ~ * .site-font-inc-from-130,
body:has(#site-font-size-130:checked) .site-font-dec-from-130,
body:has(#site-font-size-130:checked) .site-font-inc-from-130 {
  display: inline-flex !important;
}

/* 4. Level 3: 150% (Max) active */
#site-font-size-150:checked ~ * .site-font-dec-from-100,
#site-font-size-150:checked ~ * .site-font-inc-from-100,
body:has(#site-font-size-150:checked) .site-font-dec-from-100,
body:has(#site-font-size-150:checked) .site-font-inc-from-100 {
  display: none !important;
}
#site-font-size-150:checked ~ * .site-font-dec-from-150,
#site-font-size-150:checked ~ * .site-font-inc-disabled,
body:has(#site-font-size-150:checked) .site-font-dec-from-150,
body:has(#site-font-size-150:checked) .site-font-inc-disabled {
  display: inline-flex !important;
}
.site-font-inc-disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

/* 5. Decreased Level: 90% (Min) active */
#site-font-size-dec:checked ~ * .site-font-dec-from-100,
#site-font-size-dec:checked ~ * .site-font-inc-from-100,
body:has(#site-font-size-dec:checked) .site-font-dec-from-100,
body:has(#site-font-size-dec:checked) .site-font-inc-from-100 {
  display: none !important;
}
#site-font-size-dec:checked ~ * .site-font-dec-disabled,
#site-font-size-dec:checked ~ * .site-font-inc-from-dec,
body:has(#site-font-size-dec:checked) .site-font-dec-disabled,
body:has(#site-font-size-dec:checked) .site-font-inc-from-dec {
  display: inline-flex !important;
}
.site-font-dec-disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

/* ==========================================================================
   Responsive Navigation Rules across Mobile (360px, 390px), Tablet, Desktop
   ========================================================================== */
@media (max-width: 767px) {
  .navBorder .navbar-nav {
    margin: 4px 0;
    float: none !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
  }
  .navBorder .navbar-nav > li {
    float: left;
  }
  .navBorder .menu_level_1.dropdown-menu,
  .navBorder .dropdown-menu {
    max-width: 92vw !important;
    right: 0 !important;
    left: auto !important;
    overflow-x: hidden;
  }
  .col-lg-12.navbar-default {
    padding-left: 8px;
    padding-right: 8px;
  }
  .report-menu {
    display: flex;
    flex-wrap: wrap;
    float: none !important;
    margin: 0;
  }
  .report-menu > li {
    float: left;
  }
}

@media (max-width: 420px) {
  .site-font-size-controls,
  .nav-font-size-controls {
    padding: 0;
    gap: 0;
  }
  .site-font-btn,
  .nav-font-btn {
    min-width: 22px;
    height: 20px;
    line-height: 1;
    padding: 0 2px;
    font-size: 10px;
  }
}

/* 3. In-Page Submenu Sections (.wholeReports under Actions on /dashboard/superadmin and other role dashboards) */
.wholeReports .box {
  margin-bottom: 20px;
  border-top: 3px solid #3c8dbc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wholeReports .box-header {
  padding: 10px 15px;
  border-bottom: 1px solid #f4f4f4;
}

.wholeReports .box-header h5 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.wholeReports .box-body ul {
  list-style: none;
  padding: 8px 12px;
  margin: 0;
}

.wholeReports .box-body ul li {
  padding: 4px 0;
  border-bottom: 1px solid #f4f4f4;
}

.wholeReports .box-body ul li:last-child {
  border-bottom: none;
}

.wholeReports .box-body ul li a {
  display: block;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 12px;
  transition: all 0.15s ease-in-out;
}

.wholeReports .box-body ul li a:hover {
  background-color: #e8f0fe;
  text-decoration: none;
}

/* 4. In-Page Submenu Sections in Dark Mode (.wholeReports & .text-navy) */
[data-theme="dark"] .wholeReports .box {
  background-color: #151d2a !important;
  border-color: #223046 !important;
  border-top-color: #38bdf8 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .wholeReports .box-header {
  background-color: #1a2332 !important;
  border-bottom: 1px solid #223046 !important;
}

[data-theme="dark"] .wholeReports .box-header h5 {
  color: #ffffff !important;
}

[data-theme="dark"] .wholeReports .box-body {
  background-color: #151d2a !important;
}

[data-theme="dark"] .wholeReports .box-body ul li {
  border-bottom: 1px solid #1e293b !important;
}

[data-theme="dark"] .wholeReports .box-body ul li:last-child {
  border-bottom: none !important;
}

/* Ensure all .text-navy elements (used by createSections() for sub-menu links) are bright and readable in Dark Mode */
[data-theme="dark"] .wholeReports a.text-navy,
[data-theme="dark"] .wholeReports .text-navy,
[data-theme="dark"] a.text-navy,
[data-theme="dark"] .text-navy,
[data-theme="dark"] span.text-navy {
  color: #38bdf8 !important;
}

[data-theme="dark"] .wholeReports a.text-navy:hover,
[data-theme="dark"] .wholeReports a.text-navy:focus,
[data-theme="dark"] .wholeReports .box-body ul li a:hover,
[data-theme="dark"] a.text-navy:hover,
[data-theme="dark"] a.text-navy:focus {
  color: #7dd3fc !important;
  background-color: rgba(56, 189, 248, 0.12) !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   Home & Login Page Dark Theme Enhancements (http://localhost:8080/ & /usr/nicsl/login)
   ========================================================================== */

/* 1. Header Emblems & Brand Logo (Dark Mode) */
[data-theme="dark"] body.nes-site .emb {
  background: #151d2a !important;
  border-color: #223046 !important;
}
[data-theme="dark"] body.nes-site .blogo {
  background: #151d2a !important;
  border-color: #223046 !important;
}

/* 2. Language Selector Dropdown (Options Readable in Dark Mode) */
[data-theme="dark"] .nes-lang-select,
[data-theme="dark"] body.nes-site .nes-nav select.nes-lang-select {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #334155 !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 6px center !important;
  background-size: 11px !important;
}
.nes-lang-select option,
body.nes-site .nes-nav select option {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

/* 3. Accessibility Menu in Dark Mode (#nesAm) */
[data-theme="dark"] #nesAm {
  background: #151d2a !important;
  color: #f1f5f9 !important;
  border: 1px solid #223046 !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7) !important;
}
[data-theme="dark"] #nesAm .th {
  background: #0f172a !important;
  border-bottom: 1px solid #223046 !important;
  color: #ffffff !important;
}
[data-theme="dark"] #nesAm .th button {
  color: #ffffff !important;
}
[data-theme="dark"] #nesAm .gd {
  border-color: #223046 !important;
}
[data-theme="dark"] #nesAm .gd button {
  background: #151d2a !important;
  border-color: #223046 !important;
  color: #cbd5e1 !important;
}
[data-theme="dark"] #nesAm .gd button:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}
[data-theme="dark"] #nesAm .gd button[aria-pressed="true"] {
  background: #1e293b !important;
  color: #38bdf8 !important;
  box-shadow: inset 0 -4px 0 #38bdf8 !important;
}
[data-theme="dark"] #nesAm .rs {
  background: #1e293b !important;
  border-color: #223046 !important;
  color: #cbd5e1 !important;
}
[data-theme="dark"] #nesAm .rs:hover {
  background: #253346 !important;
  color: #ffffff !important;
}

/* 4. Page Overlay Screen in Dark Mode */
[data-theme="dark"] .page-overlay {
  background-color: #0b111a !important;
  color: #38bdf8 !important;
}

/* 5. Home Page Modals in Dark Mode (#eligibilityModal, #view-more-modal, #notice-modal) */
[data-theme="dark"] #eligibilityModal .modal-body,
[data-theme="dark"] .modal-body {
  color: #f1f5f9 !important;
}
[data-theme="dark"] #eligibilityModal .modal-footer.bg-light,
[data-theme="dark"] .modal-footer.bg-light {
  background-color: #121924 !important;
  border-top-color: #223046 !important;
}

/* 6. Login Page UI Enhancements in Dark Mode (/usr/nicsl/login) */
[data-theme="dark"] body.nes-login .nes-card2 {
  background: #151d2a !important;
  border-color: #223046 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}
[data-theme="dark"] body.nes-login .nes-fp {
  background: #151d2a !important;
}
[data-theme="dark"] body.nes-login .nes-iw input.form-control,
[data-theme="dark"] body.nes-login .nes-iw input {
  background-color: #0e1520 !important;
  color: #f1f5f9 !important;
  border: 1px solid #2a3b52 !important;
}
[data-theme="dark"] body.nes-login .nes-iw input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}
[data-theme="dark"] body.nes-login .nes-iw .tg {
  color: #94a3b8 !important;
}
[data-theme="dark"] body.nes-login .nes-iw .tg:hover {
  background: #1e293b !important;
  color: #f1f5f9 !important;
}
[data-theme="dark"] body.nes-login .nes-fl a {
  color: #38bdf8 !important;
}
[data-theme="dark"] body.nes-login .nes-fl a:hover {
  color: #7dd3fc !important;
}
[data-theme="dark"] body.nes-login .nes-bt.hm {
  color: #4ade80 !important;
  border-color: #4ade80 !important;
}
[data-theme="dark"] body.nes-login .nes-bt.hm:hover {
  background: #4ade80 !important;
  color: #0b111a !important;
}

/* 7. Home Page Cards & Sections in Dark Mode (http://localhost:8080/) */
[data-theme="dark"] body.nes-home .nes-sec {
  color: #f1f5f9 !important;
}
[data-theme="dark"] body.nes-home .nes-lc {
  background: #151d2a !important;
  border-color: #223046 !important;
}
[data-theme="dark"] body.nes-home .nes-lc h4 {
  color: #f1f5f9 !important;
}
[data-theme="dark"] body.nes-home .nes-lc p {
  color: #94a3b8 !important;
}
[data-theme="dark"] body.nes-home .nes-rc {
  background: #151d2a !important;
  border-color: #223046 !important;
}
[data-theme="dark"] body.nes-home .nes-rc h3 {
  color: #f1f5f9 !important;
}
[data-theme="dark"] body.nes-home .nes-rc p {
  color: #94a3b8 !important;
}
[data-theme="dark"] body.nes-home .nes-sc {
  background: #151d2a !important;
  border-color: #223046 !important;
}
[data-theme="dark"] body.nes-home .nes-sc b {
  color: #f1f5f9 !important;
}
[data-theme="dark"] body.nes-home .nes-sc span {
  color: #94a3b8 !important;
}
[data-theme="dark"] body.nes-home .nes-hl div {
  background: #151d2a !important;
  border-color: #223046 !important;
}
[data-theme="dark"] body.nes-home .nes-hl b {
  color: #f1f5f9 !important;
}
[data-theme="dark"] body.nes-home .nes-hl a {
  color: #f1f5f9 !important;
}
[data-theme="dark"] body.nes-home .nes-hl small {
  color: #94a3b8 !important;
}
[data-theme="dark"] body.nes-home .nes-panel {
  background: #151d2a !important;
  border-color: #223046 !important;
}
[data-theme="dark"] body.nes-home .nes-ph h3 {
  color: #f1f5f9 !important;
}
[data-theme="dark"] body.nes-home .nes-item b {
  color: #38bdf8 !important;
}
[data-theme="dark"] body.nes-home .nes-item p {
  color: #94a3b8 !important;
}
[data-theme="dark"] body.nes-home .nes-qr-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(21, 29, 42, 0.9)) !important;
  border-color: #223046 !important;
}
[data-theme="dark"] body.nes-home .nes-qr-title {
  color: #38bdf8 !important;
}
[data-theme="dark"] body.nes-home .nes-qr-sub {
  color: #94a3b8 !important;
}
[data-theme="dark"] body.nes-home .nes-qr-chip {
  background: #151d2a !important;
  border-color: #223046 !important;
  color: #f1f5f9 !important;
}

/* ==========================================================================
   HOMEPAGE GLOBAL SEARCH BAR & LIVE STATISTICS CARDS
   ========================================================================== */

/* ---------- Global Search Bar (.nes-search-section) ---------- */
body.nes-home .nes-search-section {
  width: 100%;
  background: linear-gradient(135deg, #071f2d 0%, #0b2a3b 55%, #0e374d 100%);
  border: 1px solid rgba(232, 163, 23, 0.38);
  border-radius: 18px;
  padding: 16px 20px;
  margin: 10px 0 20px;
  box-shadow: 0 8px 24px rgba(11, 42, 59, 0.12), inset 0 1px 0 rgba(232, 163, 23, 0.25);
  position: relative;
  box-sizing: border-box;
}

body.nes-home .nes-search-form {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.nes-home .nes-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

body.nes-home .nes-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 18px;
  pointer-events: none;
  z-index: 3;
}

body.nes-home .nes-search-input {
  width: 100%;
  height: 52px;
  background: #ffffff !important;
  color: #0f2a3d !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  padding: 0 135px 0 50px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

body.nes-home .nes-search-input::placeholder {
  color: #64748b;
  font-size: 14px;
  opacity: 1;
}

body.nes-home .nes-search-input:focus {
  border-color: var(--gold, #e8a317) !important;
  box-shadow: 0 0 0 4px rgba(232, 163, 23, 0.25), 0 6px 18px rgba(0, 0, 0, 0.12) !important;
}

body.nes-home .nes-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  padding: 0 24px;
  background: var(--gold, #e8a317);
  color: #2b1d00;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(232, 163, 23, 0.35);
  transition: all 0.2s ease;
}

body.nes-home .nes-search-btn:hover {
  background: #f5b324;
  color: #1a1200;
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 4px 14px rgba(232, 163, 23, 0.45);
}

body.nes-home .nes-search-btn:active {
  transform: translateY(-50%);
  box-shadow: 0 2px 6px rgba(232, 163, 23, 0.3);
}

body.nes-home .nes-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #dbe6e6;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(11, 42, 59, 0.18);
  max-height: 380px;
  overflow-y: auto;
  z-index: 600;
  display: none;
  padding: 8px;
  box-sizing: border-box;
}

body.nes-home .nes-search-dropdown.open {
  display: block;
}

body.nes-home .nes-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.nes-home .nes-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: #0f2a3d;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 14px;
}

body.nes-home .nes-search-item:hover,
body.nes-home .nes-search-item.active {
  background: rgba(11, 93, 122, 0.08);
  color: #0b5d7a;
  text-decoration: none;
}

body.nes-home .nes-search-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.nes-home .nes-search-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.nes-home .nes-badge-service {
  background: rgba(11, 93, 122, 0.12);
  color: #0b5d7a;
}

body.nes-home .nes-badge-scheme {
  background: rgba(232, 163, 23, 0.2);
  color: #8f6100;
}

body.nes-home .nes-badge-district {
  background: rgba(15, 122, 77, 0.12);
  color: #0f7a4d;
}

body.nes-home .nes-badge-job {
  background: rgba(180, 83, 9, 0.12);
  color: #b45309;
}

body.nes-home .nes-badge-page {
  background: rgba(124, 58, 138, 0.12);
  color: #7c3a8a;
}

body.nes-home .nes-search-item-title {
  font-weight: 600;
  color: #0f2a3d;
}

body.nes-home .nes-search-item-detail {
  font-size: 12.5px;
  color: #64748b;
}

body.nes-home .nes-search-empty {
  padding: 16px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

@keyframes nesSearchPulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 163, 23, 0.75); }
  50% { box-shadow: 0 0 0 12px rgba(232, 163, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 163, 23, 0); }
}

.nes-search-highlight {
  animation: nesSearchPulse 1.2s ease 2 !important;
  border-color: var(--gold, #e8a317) !important;
}

/* ---------- Six Live Statistics Cards (.nes-stats-section) ---------- */
body.nes-home .nes-stats-section {
  width: 100%;
  margin-bottom: 24px;
}

body.nes-home .nes-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  width: 100%;
}

body.nes-home .nes-stat-card {
  background: #ffffff;
  border: 1px solid #dbe6e6;
  border-bottom: 4px solid var(--gold, #e8a317);
  border-radius: 18px;
  padding: 20px 14px;
  box-shadow: 0 8px 24px rgba(11, 42, 59, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 146px;
  box-sizing: border-box;
}

body.nes-home .nes-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 163, 23, 0.4), transparent);
}

body.nes-home .nes-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(11, 42, 59, 0.14);
  border-color: rgba(232, 163, 23, 0.45);
  border-bottom-color: var(--gold, #e8a317);
}

body.nes-home .nes-stat-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 93, 122, 0.1), rgba(15, 118, 110, 0.14));
  color: var(--pri, #0b5d7a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 10px;
  transition: transform 0.2s ease, background 0.2s ease;
}

body.nes-home .nes-stat-card:hover .nes-stat-icon-wrap {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(11, 93, 122, 0.18), rgba(232, 163, 23, 0.22));
}

body.nes-home .nes-stat-card[data-nes-stat="live-registration"] .nes-stat-icon-wrap {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.18));
  color: #059669;
}

body.nes-home .nes-stat-card[data-nes-stat="live-registration"]:hover .nes-stat-icon-wrap {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(232, 163, 23, 0.25));
}

body.nes-home .nes-stat-card[data-nes-stat="male"] .nes-stat-icon-wrap {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(29, 78, 216, 0.18));
  color: #2563eb;
}

body.nes-home .nes-stat-card[data-nes-stat="male"]:hover .nes-stat-icon-wrap {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(232, 163, 23, 0.25));
}

body.nes-home .nes-stat-card[data-nes-stat="female"] .nes-stat-icon-wrap {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(219, 39, 119, 0.18));
  color: #db2777;
}

body.nes-home .nes-stat-card[data-nes-stat="female"]:hover .nes-stat-icon-wrap {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(232, 163, 23, 0.25));
}

body.nes-home .nes-stat-card[data-nes-stat="tg"] .nes-stat-icon-wrap {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.12), rgba(126, 34, 206, 0.18));
  color: #9333ea;
}

body.nes-home .nes-stat-card[data-nes-stat="tg"]:hover .nes-stat-icon-wrap {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.22), rgba(232, 163, 23, 0.25));
}

body.nes-home .nes-stat-value {
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 800;
  color: #0b2a3b;
  line-height: 1.15;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

body.nes-home .nes-stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #53697a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

/* ---------- Responsive Breakpoints ---------- */
/* Large Desktop (1280px - 1920px+) */
@media (min-width: 1280px) {
  body.nes-home .nes-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }
}

/* Medium Desktop (1024px - 1279px): Three cards per row */
@media (max-width: 1279px) and (min-width: 1024px) {
  body.nes-home .nes-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* Tablet (768px - 1023px): Three cards per row */
@media (max-width: 1023px) and (min-width: 768px) {
  body.nes-home .nes-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* Mobile (<= 767px): Responsive cards without overflow */
@media (max-width: 767px) {
  body.nes-home .nes-search-section {
    padding: 14px 16px;
    margin: 8px 0 16px;
    border-radius: 14px;
  }

  body.nes-home .nes-stats-section {
    margin-bottom: 18px;
  }

  body.nes-home .nes-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  body.nes-home .nes-stat-card {
    padding: 16px 12px;
    min-height: 130px;
    border-radius: 14px;
  }

  body.nes-home .nes-stat-icon-wrap {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-bottom: 8px;
  }

  body.nes-home .nes-stat-value {
    font-size: 22px;
  }

  body.nes-home .nes-stat-label {
    font-size: 11.5px;
    letter-spacing: 0.03em;
  }
}

/* Compact Mobile (<= 560px): Search bar adapts gracefully */
@media (max-width: 560px) {
  body.nes-home .nes-search-section {
    padding: 12px 14px;
  }

  body.nes-home .nes-search-input {
    height: 48px !important;
    padding-left: 44px !important;
    padding-right: 105px !important;
    font-size: 13.5px !important;
  }

  body.nes-home .nes-search-icon {
    left: 14px;
    font-size: 16px;
  }

  body.nes-home .nes-search-btn {
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
    right: 4px;
  }
}

/* Small Mobile (<= 440px): 1 card per row */
@media (max-width: 440px) {
  body.nes-home .nes-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.nes-home .nes-search-input {
    font-size: 12.5px !important;
    padding-right: 92px !important;
  }

  body.nes-home .nes-search-btn {
    padding: 0 12px;
    font-size: 12px;
  }
}

/* Ultra Small Mobile (360px) */
@media (max-width: 375px) {
  body.nes-home .nes-search-input::placeholder {
    font-size: 12px;
  }
}

/* ---------- Dark Theme ([data-theme="dark"]) ---------- */
[data-theme="dark"] body.nes-home .nes-search-section {
  background: linear-gradient(135deg, #081119 0%, #0d1a27 60%, #112437 100%) !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] body.nes-home .nes-search-input {
  background: #ffffff !important;
  color: #0f2a3d !important;
}

[data-theme="dark"] body.nes-home .nes-search-btn {
  background: #fbbf24 !important;
  color: #2b1d00 !important;
}

[data-theme="dark"] body.nes-home .nes-search-btn:hover {
  background: #fcd34d !important;
}

[data-theme="dark"] body.nes-home .nes-stat-card {
  background: #141922 !important;
  border-color: #262e3b !important;
  border-bottom-color: #fbbf24 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] body.nes-home .nes-stat-card:hover {
  border-color: rgba(251, 191, 36, 0.6) !important;
  border-bottom-color: #fbbf24 !important;
}

[data-theme="dark"] body.nes-home .nes-stat-icon-wrap {
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.15), rgba(45, 212, 191, 0.15)) !important;
  color: #4cc9f0 !important;
}

[data-theme="dark"] body.nes-home .nes-stat-card[data-nes-stat="male"] .nes-stat-icon-wrap {
  color: #60a5fa !important;
}

[data-theme="dark"] body.nes-home .nes-stat-card[data-nes-stat="female"] .nes-stat-icon-wrap {
  color: #f472b6 !important;
}

[data-theme="dark"] body.nes-home .nes-stat-card[data-nes-stat="tg"] .nes-stat-icon-wrap {
  color: #c084fc !important;
}

[data-theme="dark"] body.nes-home .nes-stat-value {
  color: #f1f5f9 !important;
}

[data-theme="dark"] body.nes-home .nes-stat-label {
  color: #a3afc0 !important;
}

[data-theme="dark"] body.nes-home .nes-search-dropdown {
  background: #141922 !important;
  border-color: #262e3b !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
}

[data-theme="dark"] body.nes-home .nes-search-item {
  color: #f1f5f9 !important;
}

[data-theme="dark"] body.nes-home .nes-search-item:hover,
[data-theme="dark"] body.nes-home .nes-search-item.active {
  background: rgba(76, 201, 240, 0.12) !important;
  color: #38bdf8 !important;
}

[data-theme="dark"] body.nes-home .nes-search-item-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] body.nes-home .nes-search-item-detail {
  color: #94a3b8 !important;
}

/* ---------- High Contrast Mode (html.a11y-hc) ---------- */
html.a11y-hc body.nes-home .nes-search-section {
  border: 2px solid #ffeb3b !important;
  background: #000000 !important;
}

html.a11y-hc body.nes-home .nes-stat-card {
  border: 2px solid #ffffff !important;
  border-bottom: 4px solid #ffeb3b !important;
  background: #000000 !important;
}

html.a11y-hc body.nes-home .nes-stat-value {
  color: #ffeb3b !important;
}

html.a11y-hc body.nes-home .nes-stat-label {
  color: #ffffff !important;
}

html.a11y-hc body.nes-home .nes-stat-icon-wrap {
  color: #ffeb3b !important;
  background: transparent !important;
}







/* ==========================================================================
   UNIFIED PORTAL EXPERIENCE: Registration, Renewal & Seniority Pages
   Theme: Navy Blue (#082B50), White (#FFFFFF), Gold (#F2B500)
   ========================================================================== */

:root {
  --nes-navy: #082B50;
  --nes-navy-dark: #051a33;
  --nes-navy-light: #0e3b6d;
  --nes-gold: #F2B500;
  --nes-gold-hover: #d9a200;
  --nes-gold-subtle: rgba(242, 181, 0, 0.12);
  --nes-gold-border: rgba(242, 181, 0, 0.45);
  --nes-white: #ffffff;
  --nes-portal-bg: #f4f7fb;
  --nes-text-main: #082B50;
  --nes-text-muted: #53697a;
  --nes-border-subtle: rgba(8, 43, 80, 0.12);
  --nes-card-shadow: 0 10px 32px rgba(8, 43, 80, 0.07);
}

/* Base Body when on Unified Portal Pages */
body.nes-site.nes-portal-page {
  background: var(--nes-portal-bg) !important;
  color: var(--nes-text-main);
  min-height: 100vh;
}

body.nes-site.nes-portal-page .content-wrapper {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: calc(100vh - 380px) !important;
  border: none !important;
}

body.nes-site.nes-portal-page .content-header,
body.nes-site.nes-portal-page .content {
  margin: 0 !important;
  padding: 0 !important;
}

/* Page Outer Wrapper */
.nes-portal-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  box-sizing: border-box;
}

.nes-portal-wrap.nes-renewal-wrap {
  max-width: 820px;
}

.nes-portal-wrap.nes-special-wrap {
  max-width: 980px;
}

.nes-portal-wrap.nes-seniority-wrap {
  max-width: 1240px;
}

/* 1. Page Header Bar */
.nes-page-header {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--nes-border-subtle);
  box-shadow: 0 4px 20px rgba(8, 43, 80, 0.05);
  padding: 22px 28px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.nes-page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--nes-gold) 0%, var(--nes-navy) 100%);
}

.nes-page-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nes-page-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nes-navy) 0%, var(--nes-navy-light) 100%);
  color: var(--nes-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(8, 43, 80, 0.22);
}

.nes-page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--nes-navy);
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.nes-page-subtitle {
  margin: 5px 0 0;
  font-size: 14px;
  color: #475569;
  font-weight: 400;
  line-height: 1.45;
}

.nes-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(8, 43, 80, 0.05);
  color: var(--nes-navy);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(8, 43, 80, 0.12);
  white-space: nowrap;
}

.nes-page-badge i {
  color: var(--nes-gold);
}

/* 2. Unified Form Card */
.nes-form-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--nes-border-subtle);
  box-shadow: var(--nes-card-shadow);
  overflow: hidden;
  margin-bottom: 28px;
  transition: box-shadow .2s ease;
}

.nes-form-card:hover {
  box-shadow: 0 14px 40px rgba(8, 43, 80, 0.10);
}

.nes-form-card-head {
  background: var(--nes-navy);
  color: #ffffff;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3.5px solid var(--nes-gold);
}

.nes-form-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.2px;
}

.nes-form-card-title i {
  color: var(--nes-gold);
  font-size: 18px;
}

.nes-form-card-body {
  padding: 30px 32px 28px;
  box-sizing: border-box;
}

/* 3. Two-Column Registration Grid */
.nes-reg-grid {
  display: flex;
  gap: 26px;
  align-items: flex-start;
}

.nes-reg-col-main {
  flex: 1 1 60%;
  min-width: 0;
}

.nes-reg-col-side {
  flex: 0 0 40%;
  max-width: 40%;
  min-width: 320px;
}

/* 4. Form Labels, Inputs & Controls */
.nes-portal-page .form-group {
  margin-bottom: 20px;
}

.nes-portal-page label:not(.site-font-btn),
.nes-portal-page .control-label {
  color: var(--nes-navy) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.nes-portal-page label.required:after {
  content: " *";
  color: #c5221f;
  font-weight: bold;
}

.nes-portal-page .form-control,
.nes-portal-page input[type="text"],
.nes-portal-page input[type="password"],
.nes-portal-page input[type="email"],
.nes-portal-page select {
  height: 46px !important;
  border-radius: 9px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: var(--nes-navy) !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease !important;
}

.nes-portal-page .form-control:focus,
.nes-portal-page input[type="text"]:focus,
.nes-portal-page input[type="password"]:focus,
.nes-portal-page input[type="email"]:focus,
.nes-portal-page select:focus {
  border-color: var(--nes-navy) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(8, 43, 80, 0.15) !important;
}

/* Chosen Dropdown Component Integration */
.nes-portal-page .chosen-container-single .chosen-single {
  height: 46px !important;
  line-height: 44px !important;
  border-radius: 9px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  font-size: 14px !important;
  color: var(--nes-navy) !important;
  padding: 0 14px !important;
}

.nes-portal-page .chosen-container-single .chosen-single div {
  top: 10px !important;
}

.nes-portal-page .chosen-container-active.chosen-with-drop .chosen-single {
  border-color: var(--nes-navy) !important;
  box-shadow: 0 0 0 3px rgba(8, 43, 80, 0.15) !important;
}

.nes-portal-page .chosen-drop {
  border: 1.5px solid var(--nes-navy) !important;
  border-top: none !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 10px 28px rgba(8, 43, 80, 0.14) !important;
}

.nes-portal-page .chosen-results li.highlighted {
  background-color: var(--nes-navy) !important;
  background-image: none !important;
  color: #ffffff !important;
}

/* Validation Status Classes (High contrast, ZERO green) */
.nes-portal-page .form-group.has-error label {
  color: #b91c1c !important;
}

.nes-portal-page .form-group.has-error .form-control,
.nes-portal-page .form-group.has-error .chosen-single {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.nes-portal-page .form-group.has-success .form-control,
.nes-portal-page .form-group.has-success .chosen-single {
  border-color: var(--nes-navy) !important;
}

.nes-portal-page .help-block {
  color: #b91c1c !important;
  font-size: 12.5px !important;
  margin-top: 5px !important;
  font-weight: 500 !important;
}

/* 5. Buttons Styling */
.nes-portal-page .nes-btn-gold,
.nes-portal-page .btn-primary,
.nes-portal-page .createAccount,
.nes-portal-page #getDetails,
.nes-portal-page #searchSSR {
  background: var(--nes-gold) !important;
  color: var(--nes-navy) !important;
  border: 1.5px solid var(--nes-gold) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 10px 24px !important;
  height: 46px !important;
  min-height: 46px !important;
  border-radius: 9px !important;
  box-shadow: 0 4px 12px rgba(242, 181, 0, 0.28) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all .15s ease !important;
  letter-spacing: 0.2px !important;
}

.nes-portal-page .nes-btn-gold:hover,
.nes-portal-page .btn-primary:hover,
.nes-portal-page .createAccount:hover,
.nes-portal-page #getDetails:hover,
.nes-portal-page #searchSSR:hover {
  background: var(--nes-gold-hover) !important;
  border-color: var(--nes-gold-hover) !important;
  color: var(--nes-navy) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(242, 181, 0, 0.38) !important;
}

.nes-portal-page .nes-btn-secondary,
.nes-portal-page .btn-default,
.nes-portal-page #reset,
.nes-portal-page button[type="reset"] {
  background: #ffffff !important;
  color: var(--nes-navy) !important;
  border: 1.5px solid var(--nes-navy) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 10px 22px !important;
  height: 46px !important;
  min-height: 46px !important;
  border-radius: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all .15s ease !important;
}

.nes-portal-page .nes-btn-secondary:hover,
.nes-portal-page .btn-default:hover,
.nes-portal-page #reset:hover,
.nes-portal-page button[type="reset"]:hover {
  background: rgba(8, 43, 80, 0.06) !important;
  color: var(--nes-navy) !important;
  border-color: var(--nes-navy) !important;
}

.nes-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--nes-border-subtle);
  flex-wrap: wrap;
}

.nes-form-actions.pull-right-actions {
  justify-content: flex-end;
}

/* 6. Password Strength Requirements Card */
.nes-security-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--nes-border-subtle);
  box-shadow: var(--nes-card-shadow);
  overflow: hidden;
}

.nes-security-card-head {
  background: var(--nes-navy);
  color: #ffffff;
  padding: 16px 22px;
  border-bottom: 3.5px solid var(--nes-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nes-security-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nes-security-card-title i {
  color: var(--nes-gold);
}

.nes-security-card-body {
  padding: 22px 24px;
}

.nes-security-subtitle {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--nes-navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.nes-password-history-callout {
  background: rgba(8, 43, 80, 0.05);
  border-left: 4px solid var(--nes-navy);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--nes-navy);
  line-height: 1.45;
}

.nes-password-history-callout strong {
  display: block;
  margin-bottom: 2px;
}

.nes-security-rules {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
}

.nes-security-rules > li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.nes-security-rules > li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--nes-gold);
  font-size: 16px;
  line-height: 1.2;
}

.nes-security-rules ul {
  list-style: none;
  padding-left: 18px;
  margin-top: 4px;
}

.nes-security-rules ul > li {
  margin-bottom: 4px;
  position: relative;
  padding-left: 16px;
}

.nes-security-rules ul > li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #94a3b8;
}

.nes-security-card code,
.nes-security-rules code {
  background: rgba(8, 43, 80, 0.06);
  color: var(--nes-navy);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

/* Password Rule Real-Time Classes */
.nes-security-rules .spr_rules.text-danger {
  color: #dc2626 !important;
  font-weight: 600;
}

.nes-security-rules .spr_rules.text-success {
  color: var(--nes-navy) !important;
  font-weight: 700;
}

.nes-security-rules .spr_rules.text-success::after {
  content: " ✓";
  color: var(--nes-gold);
  font-weight: bold;
}

/* 7. Information / Disclaimer Panel */
.nes-info-panel {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--nes-border-subtle);
  border-left: 4px solid var(--nes-gold);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(8, 43, 80, 0.04);
}

.nes-info-panel-icon {
  color: var(--nes-gold);
  font-size: 24px;
  line-height: 1.2;
  min-width: 28px;
}

.nes-info-panel-content {
  flex: 1;
}

.nes-info-panel-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--nes-navy);
}

.nes-info-panel-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--nes-navy);
  line-height: 1.55;
}

/* Helper note pills (e.g., email signup, mobile note) */
.nes-helper-note {
  background: rgba(8, 43, 80, 0.04);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--nes-navy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(8, 43, 80, 0.08);
}

.nes-helper-note i {
  color: var(--nes-gold);
  font-size: 16px;
}

.nes-helper-note a.nes-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #ffffff;
  color: var(--nes-navy);
  border: 1px solid rgba(8, 43, 80, 0.18);
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  margin-left: 6px;
  text-decoration: none;
  transition: all .15s ease;
}

.nes-helper-note a.nes-link-btn:hover {
  background: var(--nes-navy);
  color: #ffffff;
  border-color: var(--nes-navy);
}

/* 8. CAPTCHA Layout Enhancements */
.nes-captcha-box {
  background: rgba(8, 43, 80, 0.02);
  border: 1.5px solid rgba(8, 43, 80, 0.10);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nes-captcha-box .captcha_image,
.nes-captcha-box img {
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: block;
}

.nes-captcha-box .nes-captcha-reload,
.nes-captcha-box #refresh {
  cursor: pointer;
  color: var(--nes-navy, #082b50);
  font-size: 15px;
  padding: 6px 12px;
  height: 34px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  line-height: 1;
}

.nes-captcha-box .nes-captcha-reload:hover,
.nes-captcha-box #refresh:hover {
  background: var(--nes-gold, #c2751a);
  color: #ffffff;
  border-color: var(--nes-gold, #c2751a);
}

.nes-captcha-box input.form-control,
.nes-captcha-box input[type="text"] {
  width: auto;
  min-width: 140px;
  max-width: 200px;
  flex: 1 1 140px;
  height: 34px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.nes-captcha-box input.form-control:focus,
.nes-captcha-box input[type="text"]:focus {
  border-color: var(--nes-navy, #082b50);
  box-shadow: 0 0 0 2px rgba(8, 43, 80, 0.15);
  outline: none;
}

/* 9. Seniority List Responsive Grid */
.nes-seniority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: flex-end;
}

.nes-seniority-captcha-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Dynamic Result Box Container */
#JobseekerDetails,
.result {
  margin-top: 24px;
}

/* 10. Dark Theme Overrides for Unified Portal Pages */
[data-theme="dark"] body.nes-site.nes-portal-page {
  background: #0b111a !important;
  color: #f1f5f9;
}

[data-theme="dark"] .nes-page-header,
[data-theme="dark"] .nes-form-card,
[data-theme="dark"] .nes-security-card,
[data-theme="dark"] .nes-info-panel {
  background: #141d2b !important;
  border-color: #26354a !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .nes-page-title,
[data-theme="dark"] .nes-security-subtitle,
[data-theme="dark"] .nes-info-panel-title,
[data-theme="dark"] .nes-info-panel-text,
[data-theme="dark"] .nes-portal-page label:not(.site-font-btn),
[data-theme="dark"] .nes-portal-page .control-label {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .nes-page-subtitle {
  color: #94a3b8 !important;
}

[data-theme="dark"] .nes-page-badge {
  background: rgba(242, 181, 0, 0.12) !important;
  color: var(--nes-gold) !important;
  border-color: var(--nes-gold-border) !important;
}

[data-theme="dark"] .nes-portal-page .form-control,
[data-theme="dark"] .nes-portal-page input[type="text"],
[data-theme="dark"] .nes-portal-page input[type="password"],
[data-theme="dark"] .nes-portal-page input[type="email"],
[data-theme="dark"] .nes-portal-page select,
[data-theme="dark"] .nes-portal-page .chosen-container-single .chosen-single {
  background-color: #1a2536 !important;
  border-color: #33445c !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .nes-portal-page .form-control:focus {
  border-color: var(--nes-gold) !important;
  box-shadow: 0 0 0 3px rgba(242, 181, 0, 0.22) !important;
}

[data-theme="dark"] .nes-password-history-callout {
  background: rgba(242, 181, 0, 0.08) !important;
  border-left-color: var(--nes-gold) !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .nes-security-rules {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .nes-helper-note {
  background: #1a2536 !important;
  border-color: #33445c !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .nes-helper-note a.nes-link-btn {
  background: #141d2b !important;
  color: #f1f5f9 !important;
  border-color: #33445c !important;
}

[data-theme="dark"] .nes-portal-page .nes-btn-secondary,
[data-theme="dark"] .nes-portal-page .btn-default {
  background: #141d2b !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* 11. High Contrast Accessibility Mode (html.a11y-hc) */
html.a11y-hc body.nes-site.nes-portal-page {
  background: #000000 !important;
  color: #ffffff !important;
}

html.a11y-hc .nes-page-header,
html.a11y-hc .nes-form-card,
html.a11y-hc .nes-security-card,
html.a11y-hc .nes-info-panel {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
}

html.a11y-hc .nes-form-card-head,
html.a11y-hc .nes-security-card-head {
  background: #000000 !important;
  border-bottom: 3px solid #ffeb3b !important;
}

html.a11y-hc .nes-page-title,
html.a11y-hc .nes-portal-page label:not(.site-font-btn) {
  color: #ffeb3b !important;
}

html.a11y-hc .nes-portal-page .form-control {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

html.a11y-hc .nes-portal-page .btn-primary {
  background: #ffeb3b !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

/* 12. Responsive Breakpoints */
@media (max-width: 991px) {
  .nes-reg-grid {
    flex-direction: column !important;
  }
  .nes-reg-col-main,
  .nes-reg-col-side {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
  }
  .nes-form-card-body {
    padding: 22px 18px !important;
  }
  .nes-page-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }
}

@media (max-width: 575px) {
  .nes-portal-wrap {
    padding: 16px 12px 36px !important;
  }
  .nes-page-header-left {
    gap: 12px;
  }
  .nes-page-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 18px;
  }
  .nes-page-title {
    font-size: 20px;
  }
  .nes-form-actions {
    flex-direction: column;
    width: 100%;
  }
  .nes-form-actions button,
  .nes-form-actions a {
    width: 100% !important;
    text-align: center;
  }
}

/* Additional utility classes for zero inline style compliance */
.nes-mobile-note-wrap {
  margin-top: 25px;
}

.nes-seniority-captcha-row {
  margin-top: 10px;
}

.nes-seniority-submit-wrap {
  margin-top: 28px;
}

.nes-seniority-submit-btn {
  width: 100%;
  max-width: 200px;
}

.nes-seniority-result {
  padding: 0 24px 24px;
}


/* ==========================================================================
   Jobseeker UAS Page Redesign (Theme: Navy #082B50, White #FFFFFF, Gold #F2B500)
   Scoped to body.nes-uas-page
   ========================================================================== */

body.nes-uas-page,
body.nes-uas-page .content-wrapper {
  background-color: #f4f6f9 !important;
}

/* 1. Header & Navigation Level 1 (Top Bar .navBorder) */
body.nes-uas-page header nav.navbar.navbar-static-top.navBorder,
body.nes-uas-page header .navBorder {
  background: var(--nes-navy) !important;
  border-bottom: 2px solid var(--nes-gold) !important;
  box-shadow: 0 2px 8px rgba(8, 43, 80, 0.15) !important;
}

body.nes-uas-page header .navBorder .ubuntu,
body.nes-uas-page header .navBorder .text-green,
body.nes-uas-page header .navBorder a.ubuntu,
body.nes-uas-page header .navBorder a.ubuntu b {
  color: #ffffff !important;
}

body.nes-uas-page header .navBorder .btn-default.ubuntu {
  background: rgba(242, 181, 0, 0.15) !important;
  border: 1px solid rgba(242, 181, 0, 0.5) !important;
  color: var(--nes-gold) !important;
}

body.nes-uas-page header .navBorder .navbar-nav > li > a {
  color: #ffffff !important;
  transition: all .2s ease;
}

body.nes-uas-page header .navBorder .navbar-nav > li > a:hover,
body.nes-uas-page header .navBorder .navbar-nav > li > a:focus {
  color: var(--nes-gold) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.nes-uas-page header .navBorder .navbar-nav > li > a > i.text-primary,
body.nes-uas-page header .navBorder .navbar-nav > li > a > i.fa-home {
  color: #ffffff !important;
  transition: color .2s ease;
}

body.nes-uas-page header .navBorder .navbar-nav > li > a:hover > i.text-primary,
body.nes-uas-page header .navBorder .navbar-nav > li > a:hover > i.fa-home {
  color: var(--nes-gold) !important;
}

/* 2. Header & Navigation Level 2 (Secondary Menu Bar .col-lg-12.navbar-default) */
body.nes-uas-page header .navbar-default.text-primary,
body.nes-uas-page header .col-lg-12.navbar-default {
  background: var(--nes-navy-dark) !important;
  border-top: none !important;
  border-bottom: 2px solid rgba(242, 181, 0, 0.4) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12) !important;
}

body.nes-uas-page header .col-lg-12.navbar-default .navbar-nav > li > a,
body.nes-uas-page header .col-lg-12.navbar-default .navbar-nav > li > a > span,
body.nes-uas-page header .col-lg-12.navbar-default .navbar-nav > li > a > i,
body.nes-uas-page header .col-lg-12.navbar-default .navbar-nav > li > a .caret,
body.nes-uas-page header .navbar-default .navbar-nav > li > a,
body.nes-uas-page header .navbar-default .navbar-nav > li > a > span,
body.nes-uas-page header .navbar-default .navbar-nav > li > a > i,
body.nes-uas-page header .navbar-default .navbar-nav > li > a .caret {
  color: #ffffff !important;
  border-top-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
  font-weight: 500;
  transition: all .15s ease;
}

body.nes-uas-page header .col-lg-12.navbar-default .navbar-nav > li > a:hover,
body.nes-uas-page header .col-lg-12.navbar-default .navbar-nav > li > a:focus,
body.nes-uas-page header .col-lg-12.navbar-default .navbar-nav > li.open > a,
body.nes-uas-page header .navbar-default .navbar-nav > li > a:hover,
body.nes-uas-page header .navbar-default .navbar-nav > li > a:focus,
body.nes-uas-page header .navbar-default .navbar-nav > li.open > a {
  background: var(--nes-navy) !important;
  color: var(--nes-gold) !important;
}

body.nes-uas-page header .col-lg-12.navbar-default .navbar-nav > li > a:hover > span,
body.nes-uas-page header .col-lg-12.navbar-default .navbar-nav > li.open > a > span,
body.nes-uas-page header .navbar-default .navbar-nav > li > a:hover > span,
body.nes-uas-page header .navbar-default .navbar-nav > li.open > a > span {
  color: var(--nes-gold) !important;
}

body.nes-uas-page header .col-lg-12.navbar-default .navbar-nav > li.active > a,
body.nes-uas-page header .navbar-default .navbar-nav > li.active > a {
  background: var(--nes-navy) !important;
  color: var(--nes-gold) !important;
  border-bottom: 3px solid var(--nes-gold) !important;
}

body.nes-uas-page header .navbar-default .dropdown-menu,
body.nes-uas-page header .col-lg-12.navbar-default .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #dde2e5 !important;
  box-shadow: 0 6px 18px rgba(8, 43, 80, 0.15) !important;
  border-radius: 0 0 8px 8px !important;
}

body.nes-uas-page header .navbar-default .dropdown-menu > li > a,
body.nes-uas-page header .col-lg-12.navbar-default .dropdown-menu > li > a {
  color: var(--nes-navy) !important;
  font-size: 13px !important;
  padding: 8px 18px !important;
  transition: all .15s ease;
}

body.nes-uas-page header .navbar-default .dropdown-menu > li > a:hover,
body.nes-uas-page header .navbar-default .dropdown-menu > li > a:focus,
body.nes-uas-page header .col-lg-12.navbar-default .dropdown-menu > li > a:hover,
body.nes-uas-page header .col-lg-12.navbar-default .dropdown-menu > li > a:focus {
  background: #f4f6f9 !important;
  color: var(--nes-navy) !important;
  font-weight: 600 !important;
  padding-left: 22px !important;
}

/* 3. Jobseeker UAS Card Container */
.nes-uas-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 15px 48px;
}

.nes-uas-wrap .nes-form-card {
  background: #ffffff;
  border-radius: var(--nes-radius-lg);
  box-shadow: var(--nes-shadow);
  border: 1px solid rgba(8, 43, 80, 0.08);
  border-top: 4px solid var(--nes-gold);
  border-bottom: 3px solid var(--nes-gold);
  overflow: hidden;
}

.nes-uas-wrap .nes-form-card-head {
  background: var(--nes-navy);
  color: #ffffff;
  padding: 16px 24px;
}

.nes-uas-wrap .nes-form-card-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nes-uas-wrap .nes-form-card-body {
  padding: 28px 28px 24px;
}

/* Form actions for UAS */
.nes-uas-wrap .nes-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
}

.nes-uas-wrap #getDetails.btn-primary {
  background: var(--nes-navy);
  color: #ffffff;
  border: 1px solid var(--nes-navy);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--nes-radius);
  transition: all .2s ease;
}

.nes-uas-wrap #getDetails.btn-primary:hover,
.nes-uas-wrap #getDetails.btn-primary:focus {
  background: var(--nes-gold);
  color: var(--nes-navy);
  border-color: var(--nes-gold);
  box-shadow: 0 4px 12px rgba(242, 181, 0, 0.35);
}

.nes-uas-wrap #reset.btn-default {
  background: #ffffff;
  color: var(--nes-navy);
  border: 1.5px solid var(--nes-navy);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--nes-radius);
  transition: all .2s ease;
}

.nes-uas-wrap #reset.btn-default:hover,
.nes-uas-wrap #reset.btn-default:focus {
  background: #f8fafc;
  color: var(--nes-navy-dark);
  border-color: var(--nes-navy-dark);
}

/* 4. Footer Enhancements on Jobseeker UAS Page */
body.nes-uas-page .main-footer {
  background: #ffffff !important;
  border-top: 2px solid rgba(8, 43, 80, 0.08) !important;
  color: #4b5563 !important;
  padding: 24px 15px !important;
  margin-top: 32px !important;
}

body.nes-uas-page .main-footer img {
  filter: grayscale(10%);
  transition: filter .2s ease;
  margin: 6px 12px;
}

body.nes-uas-page .main-footer img:hover {
  filter: none;
}

body.nes-uas-page .main-footer a {
  color: var(--nes-navy) !important;
  text-decoration: underline;
}

body.nes-uas-page .main-footer .text-success {
  color: #64748b !important;
}

/* 5. Mobile Responsiveness */
@media (max-width: 767px) {
  .nes-uas-wrap {
    padding: 16px 12px 32px;
  }
  .nes-uas-wrap .nes-form-card-body {
    padding: 20px 16px 18px;
  }
  .nes-uas-wrap .nes-form-actions {
    flex-direction: column;
    width: 100%;
  }
  .nes-uas-wrap .nes-form-actions button {
    width: 100% !important;
    text-align: center;
  }
}


/* ==========================================================================
   Seniority List Page Enhancements (Officials & Public)
   Fixes Excessive Blank Space, Adds Help on Appeal System Download, Responsive Grid
   ========================================================================== */

body.nes-seniority-page .content-wrapper,
body.nes-portal-page .content-wrapper {
  min-height: auto !important;
}

body.nes-seniority-page section.content {
  padding-bottom: 24px;
}

/* Help on Appeal System Component */
.nes-appeal-help-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 43, 80, 0.04);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(8, 43, 80, 0.1);
}

.nes-appeal-help-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--nes-navy);
}

.nes-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--nes-gold);
  color: var(--nes-navy) !important;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all .15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nes-btn-download:hover,
.nes-btn-download:focus {
  background: #ffffff;
  color: var(--nes-navy) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.nes-badge-new {
  background: #dc2626;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Officials Seniority Search Grid */
.nes-seniority-officials-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(200px, 1.6fr) minmax(130px, 1fr) auto;
  gap: 16px;
  align-items: flex-end;
}

.nes-seniority-officials-grid .nes-filter-group {
  display: flex;
  flex-direction: column;
}

.nes-seniority-officials-grid .nes-filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--nes-navy);
  margin-bottom: 6px;
}

.nes-seniority-officials-grid .nes-filter-action {
  display: flex;
  align-items: flex-end;
}

.nes-seniority-officials-grid .nes-seniority-submit-btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 24px;
  font-weight: 600;
  font-size: 14px;
  background: var(--nes-navy);
  color: #ffffff;
  border: none;
  border-radius: var(--nes-radius);
  transition: all .2s ease;
  white-space: nowrap;
}

.nes-seniority-officials-grid .nes-seniority-submit-btn:hover,
.nes-seniority-officials-grid .nes-seniority-submit-btn:focus {
  background: var(--nes-gold);
  color: var(--nes-navy);
  box-shadow: 0 4px 12px rgba(242, 181, 0, 0.35);
}

@media (max-width: 991px) {
  .nes-seniority-officials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nes-seniority-officials-grid .nes-filter-action {
    grid-column: span 2;
  }
  .nes-seniority-officials-grid .nes-seniority-submit-btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .nes-seniority-officials-grid {
    grid-template-columns: 1fr;
  }
  .nes-seniority-officials-grid .nes-filter-action {
    grid-column: span 1;
  }
  .nes-page-header-right {
    width: 100%;
    margin-top: 10px;
  }
  .nes-appeal-help-wrap {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   FAQ Page Redesign Scoped under body.nes-faq
   ========================================================================== */
body.nes-faq {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.nes-faq .nes-portal-wrap.nes-faq-wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  box-sizing: border-box;
  flex: 1 0 auto;
}

body.nes-faq .nes-page-header {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

body.nes-faq .nes-faq-card {
  background: var(--card, #ffffff);
  border: 1px solid var(--line, #dbe4f0);
  border-radius: 22px;
  box-shadow: var(--shadow, 0 8px 28px rgba(11, 42, 74, 0.09));
  overflow: hidden;
  margin: 0 auto 20px;
  max-width: 980px;
}

body.nes-faq .nes-faq-bar {
  background: var(--nav, #0b2a4a);
  color: #ffffff;
  padding: 16px 22px;
  border-bottom: 3px solid var(--gold, #f2b705);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.nes-faq .nes-faq-bar .glyphicon,
body.nes-faq .nes-faq-bar i {
  color: var(--gold, #f2b705);
}

body.nes-faq .nes-faq-add-btn {
  margin-left: auto;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 10px;
}

body.nes-faq .nes-faq-body {
  padding: 24px 22px;
}

body.nes-faq .nes-faq-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

body.nes-faq .nes-faq-search {
  position: relative;
  flex: 1 1 280px;
}

body.nes-faq .nes-faq-search input {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 42px;
  border: 1px solid var(--line, #cfd8e6);
  border-radius: 12px;
  background: var(--bg, #f3f6fb);
  color: var(--ink, #0f2a4a);
  font-size: 15px;
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}

body.nes-faq .nes-faq-search input:focus {
  border-color: var(--pri, #0b5d7a);
  box-shadow: 0 0 0 4px rgba(11, 93, 122, 0.15);
}

body.nes-faq .nes-faq-search .si {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .6;
  pointer-events: none;
  color: var(--mute, #53697a);
  font-size: 16px;
}

body.nes-faq .nes-faq-search .cl {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--mute, #53697a);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

body.nes-faq .nes-faq-search.has .cl {
  display: flex;
}

body.nes-faq .nes-btn-o {
  height: 46px;
  padding: 0 16px;
  border: 2px solid var(--nav, #0b2a4a);
  border-radius: 12px;
  background: transparent;
  color: var(--nav, #0b2a4a);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}

body.nes-faq .nes-btn-o:hover,
body.nes-faq .nes-btn-o:focus {
  background: var(--nav, #0b2a4a);
  color: #ffffff;
  outline: none;
}

body.nes-faq .nes-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #0f2a4a);
  background: rgba(242, 183, 5, 0.18);
  border: 1px solid rgba(242, 183, 5, 0.5);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* Accordion Item Card */
body.nes-faq .nes-q {
  background: var(--card, #ffffff);
  border: 1px solid var(--line, #dbe4f0);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease;
  scroll-margin-top: 80px;
}

body.nes-faq .nes-q:hover {
  border-color: var(--gold, #f2b705);
  box-shadow: 0 4px 16px rgba(11, 42, 74, 0.06);
}

body.nes-faq .nes-q.open {
  border-left: 4px solid var(--gold, #f2b705);
}

body.nes-faq .nes-q-h {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink, #0f2a4a);
  text-decoration: none;
  font-family: inherit;
  transition: background .2s ease;
}

body.nes-faq .nes-q.open .nes-q-h {
  background: rgba(242, 183, 5, 0.08);
}

body.nes-faq .nes-q-n {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--nav, #0b2a4a);
  color: var(--gold, #f2b705);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

body.nes-faq .nes-q-t {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink, #0f2a4a);
}

body.nes-faq .nes-q-hits {
  margin-left: 8px;
  font-size: 11px;
}

body.nes-faq .nes-q-edit {
  margin-left: 6px;
}

body.nes-faq .nes-q-c {
  flex: none;
  color: var(--mute, #53697a);
  font-size: 14px;
  transition: transform .2s ease;
  margin-left: auto;
}

body.nes-faq .nes-q.open .nes-q-c {
  transform: rotate(180deg);
  color: var(--gold, #f2b705);
}

/* Collapsible Answer Panel */
body.nes-faq .nes-q-a-wrap {
  display: none;
}

body.nes-faq .nes-q.open .nes-q-a-wrap {
  display: block;
}

body.nes-faq .nes-q-a {
  padding: 4px 18px 20px 66px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink, #0f2a4a);
}

body.nes-faq .nes-q-a img {
  max-width: 100%;
  height: auto;
}

body.nes-faq .nes-q-a table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

body.nes-faq .nes-q-a a {
  color: var(--pri, #0b5d7a);
  text-decoration: underline;
}

body.nes-faq mark.nes-hit {
  background: rgba(242, 183, 5, 0.45);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

/* Empty State Card */
body.nes-faq .nes-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--mute, #53697a);
}

body.nes-faq .nes-empty i {
  color: var(--gold, #f2b705);
  margin-bottom: 8px;
}

body.nes-faq .nes-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #0f2a4a);
  margin-bottom: 12px;
}

body.nes-faq .nes-empty-desc {
  font-size: 14px;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

body.nes-faq .nes-empty-clear {
  border-radius: 8px;
  font-weight: 600;
}

/* Help Card */
body.nes-faq .nes-help {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(242, 183, 5, 0.12);
  border: 1px solid rgba(242, 183, 5, 0.45);
}

body.nes-faq .nes-help-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink, #0f2a4a);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.nes-faq .nes-help-title i {
  color: var(--gold, #f2b705);
}

body.nes-faq .nes-help-desc {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--ink, #0f2a4a);
}

body.nes-faq .nes-help-desc a {
  color: var(--pri, #0b5d7a);
  font-weight: 700;
  text-decoration: underline;
}

/* Dark Theme Adjustments */
[data-theme="dark"] body.nes-faq .nes-btn-o {
  border-color: var(--line, #223046);
  color: var(--ink, #f1f5f9);
}

[data-theme="dark"] body.nes-faq .nes-btn-o:hover,
[data-theme="dark"] body.nes-faq .nes-btn-o:focus {
  background: var(--line, #223046);
  color: var(--gold, #fbbf24);
}

[data-theme="dark"] body.nes-faq .nes-count {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.4);
}

[data-theme="dark"] body.nes-faq .nes-help {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
}

/* Responsive Media Queries */
@media (max-width: 767px) {
  body.nes-faq .nes-mobile-drawer a[href*="faq"].nes-mob-item {
    background: rgba(242, 181, 0, 0.15);
    color: #ffffff;
    border-left: 3px solid #f2b500;
    border-color: rgba(242, 181, 0, 0.35);
  }
  body.nes-faq .nes-portal-wrap.nes-faq-wrap {
    padding: 16px 12px 36px;
  }
  body.nes-faq .nes-faq-body {
    padding: 16px 14px;
  }
  body.nes-faq .nes-faq-tools {
    gap: 8px;
  }
  body.nes-faq .nes-faq-search {
    flex: 1 1 100%;
  }
  body.nes-faq .nes-faq-search input {
    font-size: 16px;
  }
  body.nes-faq .nes-btn-o {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    font-size: 13px;
    padding: 0 10px;
    min-height: 44px;
  }
  body.nes-faq .nes-count {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
  body.nes-faq .nes-q-h {
    padding: 14px;
    gap: 10px;
  }
  body.nes-faq .nes-q-n {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  body.nes-faq .nes-q-t {
    font-size: 15px;
  }
  body.nes-faq .nes-q-a {
    padding: 0 14px 16px 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nes-faq .nes-q,
  body.nes-faq .nes-q-c,
  body.nes-faq .nes-btn-o {
    transition: none !important;
  }
}

/* ==========================================================================
   Jobseeker Profile & NCS Badge Styles
   ========================================================================== */
.panel-layout {
  position: relative;
}

.download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  background: #007bff;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.25);
  transition: all 0.3s ease;
}

.download-btn:hover,
.download-btn:focus {
  background: #0056b3;
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}

.ncs-container {
  position: absolute;
  top: 15px;
  right: 20px;
  text-align: right;
  max-width: 50%;
  z-index: 10;
}

.ncs-title {
  font-size: 11px;
  font-weight: 600;
  color: #3E98D5;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.photo-thumbnail {
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  height: 70px;
  width: 70px;
}

@media (max-width: 767px) {
  .ncs-container {
    position: static;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 100%;
  }
}

/* ==========================================================================
   Cropit Modal & Cropper Customizations
   ========================================================================== */
.cropit-preview {
  width: 150px;
  height: 200px;
  background-color: #f8f8f8;
  background-size: cover;
  border: 5px solid #ccc;
  border-radius: 3px;
  margin: 7px auto 0 auto;
  position: relative;
}

.cropit-preview-image-container {
  cursor: move;
}

.cropit-preview-background {
  opacity: .2;
  cursor: auto;
}

.slider-wrapper .small-image,
.slider-wrapper .large-image {
  cursor: pointer;
  user-select: none;
}

.slider-wrapper .small-image:hover,
.slider-wrapper .large-image:hover {
  color: #337ab7;
}

.cropit-image-zoom-input {
  cursor: pointer;
}

.btn-custom input[type="file"] {
  position: fixed;
  top: -1000px;
}

.btn-custom {
  display: inline-block;
}

.cropper-controls-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

