/**
 * =========================================================================
 * GK TODAY HINDI — Header, Navigation, Chips, Sidebar & Search Styles
 * =========================================================================
 */

.top-header {
  position: fixed;
  top: 0;
  left: 0 !important;
  right: 0 !important;
  height: var(--header-height, 60px);
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Custom 3-Bar Staggered Brand Hamburger Button (Left of Brand Logo) */
.hdr-sq-btn.gk-staggered-menu-btn {
  width: 26px;
  height: auto;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background-color 0.25s ease-in-out, transform 0.2s ease;
  box-sizing: content-box;
  flex-shrink: 0;
  outline: none !important;
}
.hdr-sq-btn.gk-staggered-menu-btn:hover {
  background-color: #f1f5f9;
}
.hdr-sq-btn.gk-staggered-menu-btn:active {
  transform: scale(0.95);
}
.gk-menu-bar {
  display: block;
  height: 3.5px;
  border-radius: 4px;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
}
.gk-top-bar {
  width: 100%;
  background-color: #dc2626; /* GK Today Brand Crimson Red */
}
.gk-mid-bar {
  width: 75%;
  background-color: #1d4ed8; /* Royal Indigo Blue */
}
.gk-bot-bar {
  width: 56.25%;
  background-color: #059669; /* Emerald Success Green */
}
.hdr-sq-btn.gk-staggered-menu-btn:hover .gk-mid-bar,
.hdr-sq-btn.gk-staggered-menu-btn:hover .gk-bot-bar {
  width: 100%;
}

/* Brand Identity (Always Visible Next to Hamburger: [Logo] GK Today Hindi) */
.hdr-branding {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}
.hdr-brand-logo-img {
  height: 36px;
  width: 36px;
  max-width: 36px;
  object-fit: contain;
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}
.hdr-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hdr-main-title {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hdr-main-title {
    display: none;
  }
}

.header-center {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0 14px 0 auto;
  justify-content: flex-end;
  position: relative;
  max-width: 480px;
}

.search-form {
  width: 100%;
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  transition: all 0.2s ease;
  height: 38px;
}
.search-form:focus-within {
  border-color: #0ea5e9;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13.5px;
  outline: 0;
  color: #0f172a;
}
.search-btn {
  background: transparent;
  border: none;
  width: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #64748b;
  transition: color 0.2s;
  flex-shrink: 0;
}
.search-btn:hover {
  color: #0ea5e9;
}
.mob-inline-search-close {
  display: none;
  background: transparent;
  border: none;
  width: 28px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #94a3b8;
  flex-shrink: 0;
  padding: 0 6px 0 0;
  transition: color 0.15s ease;
}
.mob-inline-search-close:hover {
  color: #ef4444;
}

.header-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  position: relative !important;
  margin-left: 0;
  flex-shrink: 0;
}

/* ==========================================================================
   TESTBOOK-STYLE HEADER CONTROLS (Language, Get Pass, Streak, Profile)
   ========================================================================== */
.hdr-lang-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hdr-lang-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
  white-space: nowrap;
}
.hdr-lang-pill-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.hdr-lang-pill-btn.lang-active-custom {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
  font-weight: 700;
}

/* Exact Testbook Bilingual [E/अ] Dual Badge */
.tb-lang-icon-badge {
  position: relative;
  width: 24px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tb-lang-e {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #e2e8f0;
  color: #475569;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.tb-lang-a {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: #0ea5e9;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: -1px -1px 0 #ffffff;
}
.hdr-lang-caret {
  font-size: 10px;
  color: #64748b;
}

.hdr-lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  padding: 8px;
  z-index: 1055;
}
.hdr-lang-menu.open {
  display: block;
  animation: hdrLangFade 0.16s ease-out;
}
@keyframes hdrLangFade {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.hdr-lang-menu-hdr {
  padding: 6px 10px 8px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.hdr-lang-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}
.hdr-lang-opt:hover {
  background: #f8fafc;
  color: #0284c7;
}
.hdr-lang-opt.active {
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 800;
}
.hdr-lang-opt-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}
.hdr-lang-badge-pro {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  white-space: nowrap;
}
.hdr-lang-check {
  color: #0284c7;
  font-size: 13px;
  display: none;
}
.hdr-lang-opt.active .hdr-lang-check {
  display: inline-block;
}

/* Testbook Green "Get Pass" Button (Desktop Text + Mobile Crown Icon) */
.tb-get-pass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #14b8a6;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1.2;
  flex-shrink: 0;
}
.tb-get-pass-btn:hover {
  background: #0d9488;
  transform: translateY(-1px);
  color: #ffffff !important;
}
.tb-get-pass-btn.tb-pass-active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
@media (max-width: 640px) {
  .tb-get-pass-btn {
    display: inline-flex !important;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border-radius: 8px;
    font-size: 13.5px;
    gap: 0;
    box-shadow: 0 2px 6px rgba(20, 184, 166, 0.25);
  }
  .tb-get-pass-btn.tb-pass-active {
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
  }
  .tb-get-pass-btn .tb-pass-btn-text {
    display: none !important;
  }
}
@media (max-width: 480px) {
  .tb-get-pass-btn {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 7px;
  }
}

/* ==========================================================================
   TESTBOOK-STYLE NOTIFICATION BELL & STRUCTURED TODAY'S UPLOADS DROPDOWN
   ========================================================================== */
.tb-notif-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tb-notif-bell-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  outline: none !important;
  padding: 0;
  flex-shrink: 0;
}

.tb-notif-bell-btn:hover,
.tb-notif-dropdown-wrap.open .tb-notif-bell-btn {
  background: #f1f5f9;
  color: #0f172a;
}

.tb-notif-bell-btn.has-new-notifs {
  color: #475569;
}

.tb-notif-bell-btn.has-new-notifs i {
  animation: tbBellSwing 3.5s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes tbBellSwing {
  0%, 84%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(12deg); }
  92% { transform: rotate(-10deg); }
  96% { transform: rotate(6deg); }
}

.tb-notif-count-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
  pointer-events: none;
}

/* Structured Notification Dropdown Menu (Testbook Style) */
.tb-notif-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: -8px;
  width: 396px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 42px -6px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(15, 23, 42, 0.08);
  display: none;
  flex-direction: column;
  z-index: 10060;
  overflow: hidden;
  text-align: left;
}

.tb-notif-menu.open {
  display: flex;
  animation: userDropAnim 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tb-notif-menu-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.tb-notif-hdr-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.tb-notif-hdr-icon {
  color: #0284c7;
  font-size: 13.5px;
}

.tb-notif-hdr-pill {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

.tb-notif-hdr-pill.pill-muted {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

.tb-notif-menu-body {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
}

.tb-notif-menu-body::-webkit-scrollbar {
  width: 5px;
}
.tb-notif-menu-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.tb-notif-list {
  display: flex;
  flex-direction: column;
}

.tb-notif-card-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  text-decoration: none !important;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.16s ease;
  position: relative;
}

.tb-notif-card-item.is-unread {
  background: #f8fbff;
  box-shadow: inset 3px 0 0 #0284c7;
}

.tb-notif-card-item:last-child {
  border-bottom: none;
}

.tb-notif-card-item:hover {
  background: #f0f9ff;
}

/* 16:9 Mini Post Thumbnail + Smart Subject Icon Fallback */
.tb-notif-thumb-wrap {
  width: 64px;
  height: 40px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.tb-notif-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.22s ease;
}

.tb-notif-card-item:hover .tb-notif-thumb-img {
  transform: scale(1.05);
}

.tb-notif-thumb-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 1;
}

.tb-notif-thumb-wrap.is-fallback .tb-notif-thumb-fallback {
  display: flex;
}

.tb-notif-thumb-wrap.is-icon-only {
  font-size: 16px;
  border-color: rgba(15, 23, 42, 0.05);
  box-shadow: none;
}

.tb-notif-sub-ico-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.tb-notif-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.tb-notif-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tb-notif-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  line-height: 1.2;
}

.tb-notif-type-tag {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.15px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tb-notif-cat-name {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  max-width: 145px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-notif-time {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tb-notif-item-title {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.36;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  transition: color 0.15s ease;
}

.tb-notif-card-item:hover .tb-notif-item-title {
  color: #0284c7;
}

.tb-notif-item-arrow {
  color: #cbd5e1;
  font-size: 10px;
  align-self: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.tb-notif-card-item:hover .tb-notif-item-arrow {
  color: #0284c7;
  transform: translateX(2px);
}

/* Sticky Bottom View-All Footer */
.tb-notif-menu-ftr {
  padding: 8.5px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.tb-notif-ftr-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  color: #0284c7 !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.tb-notif-ftr-link i {
  font-size: 10px;
  transition: transform 0.15s ease;
}

.tb-notif-ftr-link:hover {
  color: #0369a1 !important;
}

.tb-notif-ftr-link:hover i {
  transform: translateX(3px);
}

/* Testbook-Style Empty State Box inside Notification Menu */
.tb-notif-empty-box {
  padding: 20px 18px 16px;
  text-align: center;
  background: #ffffff;
}

.tb-notif-empty-illus {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 20px;
  color: #94a3b8;
}

.tb-notif-empty-title {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.tb-notif-empty-sub {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
}

.tb-notif-recent-divider {
  padding: 6.5px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 10.5px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.2px;
}

@media (max-width: 576px) {
  .tb-notif-bell-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .tb-notif-menu {
    position: fixed;
    top: 60px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }
  .tb-notif-thumb-wrap {
    width: 60px;
    height: 38px;
  }
  .tb-notif-cat-name {
    max-width: 120px;
  }
  .hdr-lang-lbl-text {
    display: none;
  }
  .hdr-lang-pill-btn {
    padding: 5px 6px !important;
  }
}

/* ==========================================================================
   USER PROFILE CIRCLE & DROPDOWN MENU (TESTBOOK AVATAR + CARET)
   ========================================================================== */
.user-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-profile-capsule {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 2px 4px !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none !important;
  user-select: none;
  outline: none !important;
  flex-shrink: 0;
  z-index: 2;
}
.user-profile-capsule:hover {
  background: #f1f5f9;
}

.user-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50% !important;
  background: #fef3c7;
  color: #d97706;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% !important;
}

.tb-profile-caret {
  font-size: 10px;
  color: #64748b;
  transition: transform 0.2s ease;
}
.user-dropdown.open .tb-profile-caret {
  transform: rotate(180deg);
}

/* User Dropdown Menu Popup (Exact Admin Layout & Styling) */
.user-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  min-width: 275px !important;
  background: #ffffff !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 40px -4px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(15, 23, 42, 0.08) !important;
  border: 1px solid #e2e8f0 !important;
  display: none !important;
  z-index: 10050 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  text-align: left !important;
  float: none !important;
}

.user-dropdown.open .user-dropdown-menu,
.user-dropdown-menu.open {
  display: block !important;
  animation: userDropAnim 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes userDropAnim {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-dropdown-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 14px 18px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.user-dropdown-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px !important; /* Modern Square Shape */
  background: #fef3c7;
  color: #d97706;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.user-dropdown-header-avatar .user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px !important; /* Square Shape */
}

.user-dropdown-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.user-dropdown-name {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif);
  font-weight: 800;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-sub {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  font-weight: 500;
}

.user-dropdown-body {
  padding: 6px 0;
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.user-dropdown-body::-webkit-scrollbar {
  width: 4px;
}
.user-dropdown-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.user-dropdown-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 9px 18px !important;
  color: #334155 !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  transition: all 0.15s ease !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
}

.user-dropdown-link:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  padding-left: 21px !important;
  text-decoration: none !important;
}

.dropdown-link-icon {
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* Dropdown link item icon accent colors */
.item-admin .dropdown-link-icon { color: #f59e0b; }
.item-dashboard .dropdown-link-icon { color: #4f46e5; }
.item-profile .dropdown-link-icon { color: #7c3aed; }
.item-subscription .dropdown-link-icon { color: #059669; }
.item-purchased .dropdown-link-icon { color: #d97706; }
.item-quizmaker .dropdown-link-icon { color: #ec4899; }
.item-managequiz .dropdown-link-icon { color: #06b6d4; }
.item-exams .dropdown-link-icon { color: #3b82f6; }
.item-leaderboard .dropdown-link-icon { color: #8b5cf6; }

.user-dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 5px 0;
}

.item-logout {
  color: #ef4444 !important;
  border-top: 1px solid #f1f5f9;
}

.item-logout .dropdown-link-icon {
  color: #ef4444 !important;
}

.item-logout:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

/* ==========================================================================
   LOGOUT CONFIRMATION MODAL
   ========================================================================== */
.logout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.logout-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.logout-modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 24px 24px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.4);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logout-modal-overlay.open .logout-modal-card {
  transform: scale(1) translateY(0);
}

.logout-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.logout-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.logout-modal-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.12);
}

.logout-modal-title {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.logout-modal-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 22px;
}

.logout-modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logout-btn-cancel {
  flex: 1;
  padding: 11px 18px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.logout-btn-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.logout-btn-confirm {
  flex: 1;
  padding: 11px 18px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: 12px;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  transition: all 0.15s;
  cursor: pointer;
}

.logout-btn-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
}

/* ==========================================================================
   TOP CENTER SLIM TOAST NOTIFICATION (3-SECOND AUTO DISMISS)
   ========================================================================== */
.top-toast-alert {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 50px;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.06);
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1px;
  max-width: 90vw;
  pointer-events: auto;
  animation: toastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-toast-alert.hide {
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes toastSlideDown {
  0% {
    opacity: 0;
    transform: translate(-50%, -24px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes toastSlideUp {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -24px) scale(0.96);
  }
}

.top-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.top-toast-message {
  flex: 1;
  white-space: normal;
  word-break: break-word;
}

.top-toast-close {
  background: transparent;
  border: none;
  font-size: 19px;
  line-height: 1;
  padding: 0 0 0 6px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.top-toast-close:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* Subtle Patle Colors */
.top-toast-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.top-toast-success .top-toast-icon {
  color: #059669;
}

.top-toast-danger,
.top-toast-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.top-toast-danger .top-toast-icon,
.top-toast-error .top-toast-icon {
  color: #dc2626;
}

.top-toast-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.top-toast-warning .top-toast-icon {
  color: #d97706;
}

.top-toast-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}
.top-toast-info .top-toast-icon {
  color: #0284c7;
}

@media (max-width: 600px) {
  .top-toast-alert {
    top: 12px;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 12px;
  }
}

/* Main Content Top Offset for Single Top Header */
.main-content {
  margin-top: 64px !important;
  padding: 0 15px 15px 15px;
  min-height: calc(100vh - 200px);
}

/* Perfect Symmetrical Header Ad Margins (Top margin = Bottom margin) */
.top-header-ad-wrapper {
  max-width: 1140px;
  margin: 16px auto !important;
  padding: 0 15px;
  text-align: center;
}
.top-header-ad-wrapper .ad-container {
  margin: 0 auto !important;
}

/* Default spacing for pages without top header ad */
.main-content > *:first-child:not(.top-header-ad-wrapper):not(.alert) {
  margin-top: 16px;
}

/* Sidebar Typography & Modern Card Styles */
.sidebar {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  box-sizing: border-box;
}
.sidebar span,
.sidebar a,
.sidebar p,
.sidebar div:not(.side-icon-box):not(.drawer-close-btn),
.sidebar-section-title {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
}

/* Explicit Font Awesome Protection */
.sidebar i,
.sidebar .fa,
.sidebar .fas,
.sidebar .fa-solid {
  font-family: 'Font Awesome 6 Free', 'FontAwesome', sans-serif !important;
  font-weight: 900 !important;
  font-style: normal !important;
  display: inline-block;
  line-height: 1;
}
.sidebar .far,
.sidebar .fa-regular {
  font-family: 'Font Awesome 6 Free', 'FontAwesome', sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  display: inline-block;
  line-height: 1;
}
.sidebar .fab,
.sidebar .fa-brands {
  font-family: 'Font Awesome 6 Brands', 'FontAwesome', sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  display: inline-block;
  line-height: 1;
}

/* =========================================================================
   TESTBOOK-STYLE DARK OVERLAY DRAWER & SMOOTH IN-SIDEBAR ACCORDION SYSTEM
   ========================================================================= */
:root {
  --header-height: 60px;
  --rail-width: 268px;
}

body.has-sidebar-rail,
body.has-sidebar-rail.sidebar-collapsed {
  padding-left: 0 !important;
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }
}

/* 1. Left Full-Height Clean White Overlay Drawer (Desktop + Mobile) */
.app-sidebar-rail {
  position: fixed;
  top: 0 !important;
  left: -290px !important;
  bottom: 0;
  width: var(--rail-width) !important;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
  overflow: hidden !important;
  transform: none !important;
  transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 12px 0 36px rgba(15, 23, 42, 0.14);
}

body.sidebar-open-mobile .app-sidebar-rail {
  left: 0 !important;
}

/* Top Brand Bar Inside Clean White Sidebar */
.tb-sidebar-brand {
  height: var(--header-height, 60px);
  min-height: var(--header-height, 60px);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  flex-shrink: 0;
}

.tb-sidebar-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  min-width: 0;
}

.tb-sidebar-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.tb-sidebar-brand-title {
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scrollable Inner Navigation Area */
.tb-sidebar-nav-scroll {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 40px 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  overscroll-behavior: contain;
}
.tb-sidebar-nav-scroll::-webkit-scrollbar {
  width: 4px;
}
.tb-sidebar-nav-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.tb-sidebar-nav-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.tb-sidebar-nav-scroll:hover::-webkit-scrollbar-thumb {
  background: #94a3b8;
}

/* Dividers & Section Headings */
.tb-nav-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 8px 0;
}

.tb-nav-section-heading {
  padding: 8px 18px 6px 18px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.3px;
  user-select: none;
  line-height: 1.3;
}

/* Light Frosted Backdrop Overlay (Desktop & Mobile) */
.sidebar-mobile-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
}
body.sidebar-open-mobile .sidebar-mobile-backdrop {
  opacity: 1;
  visibility: visible;
}

/* Close Button ('X' on Left of Brand inside Drawer - Desktop & Mobile) */
.mobile-rail-close-btn {
  display: inline-flex !important;
  width: 32px;
  height: 32px;
  background: transparent;
  color: #64748b;
  border: none;
  border-radius: 8px;
  padding: 0;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.mobile-rail-close-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

/* 2. Horizontal Row Navigation Items & Accordion Wrappers */
.rail-group-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-bottom: 1.5px solid #ffffff;
}

.rail-item {
  width: 100%;
  padding: 10px 16px;
  border-radius: 0;
  border: none;
  border-left: 4px solid rgba(255, 255, 255, 0.25);
  background: var(--mod-dark-bg, linear-gradient(135deg, #0369a1 0%, #0284c7 100%));
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: filter 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  cursor: pointer;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  position: relative;
}

.rail-item:hover {
  filter: brightness(1.08);
  color: #ffffff !important;
  border-left-color: #ffffff;
  text-decoration: none !important;
}

.rail-item:focus,
.rail-item:focus-visible,
.rail-item:active {
  outline: none !important;
  box-shadow: none !important;
}

.rail-icon-box {
  width: 30px;
  height: 30px;
  font-size: 14px;
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease, background 0.18s ease;
}

.rail-item:hover .rail-icon-box {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.28) !important;
}

.tb-home-item {
  border-bottom: 1.5px solid #ffffff;
}

.tb-home-item .rail-icon-box {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.rail-label {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

/* 2-Line Stacked English Subtitle inside Sidebar & Sub-menus in Bilingual (हिं + EN) Mode */
.tb-bi-sub {
  display: block;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  line-height: 1.25 !important;
  margin-top: 2px;
  letter-spacing: 0.1px;
}

.rail-item .tb-bi-sub {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Pill & Live Today's Post Count Badges */
.tb-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}
.tb-badge-new {
  background: #f97316;
  color: #ffffff;
}
.tb-badge-free {
  background: #22c55e;
  color: #ffffff;
}
.tb-badge-pro {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.tb-badge-count {
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}

/* Accordion Chevron Arrow */
.rail-group-dot {
  position: static;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
  flex-shrink: 0;
  margin-left: 2px;
}
.rail-item:hover .rail-group-dot {
  color: #ffffff;
}
.rail-group-wrapper.open > .rail-item .rail-group-dot {
  transform: rotate(180deg);
  color: #ffffff;
}

/* Active State for Sidebar Items */
.rail-item.active,
.rail-group-wrapper.active-group > .rail-item {
  background: var(--mod-dark-bg, linear-gradient(135deg, #0369a1 0%, #0284c7 100%)) !important;
  color: #ffffff !important;
  border-left: 4px solid #ffffff !important;
  font-weight: 800;
}
.rail-item.active .rail-label,
.rail-group-wrapper.active-group > .rail-item .rail-label {
  color: #ffffff !important;
  font-weight: 800;
}
.rail-group-wrapper.open > .rail-item:not(.active) {
  background: var(--mod-dark-bg) !important;
  color: #ffffff !important;
  border-left-color: #ffffff;
}

/* -------------------------------------------------------------
   3. IN-SIDEBAR SMOOTH ACCORDION SUB-MENU (.rail-flyout-menu)
   ------------------------------------------------------------- */
.rail-flyout-menu {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  background: var(--mod-light-bg, #f8fafc) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  border: none !important;
  border-top: 0px solid var(--mod-border, #e2e8f0) !important;
  border-bottom: 0px solid var(--mod-border, #e2e8f0) !important;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: none !important;
  filter: none !important;
  transition: grid-template-rows 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.28s ease,
              visibility 0.34s ease,
              border-width 0.25s ease !important;
}

.rail-group-wrapper.open > .rail-flyout-menu {
  grid-template-rows: 1fr;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  border-top-width: 1px !important;
  border-bottom-width: 1.5px !important;
}

.flyout-header {
  display: none !important;
}

.flyout-body {
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  max-height: none !important;
  display: flex;
  flex-direction: column;
  gap: 1px !important;
  transition: padding 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.rail-group-wrapper.open > .rail-flyout-menu > .flyout-body {
  padding: 6px 0 !important;
}

.flyout-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8.5px 16px 8.5px 22px !important;
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  text-decoration: none !important;
  color: var(--mod-text-dark, #1e293b) !important;
  font-weight: 600;
  transition: all 0.15s ease;
  position: relative;
  outline: none !important;
  box-shadow: none !important;
}

.flyout-link:hover {
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--mod-color, #0f172a) !important;
  padding-left: 25px !important;
  transform: none !important;
}

.tb-sub-dot {
  display: none !important;
}

.flyout-inline-ico {
  font-size: 13px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.flyout-link-text {
  flex: 1;
  min-width: 0;
}

.flyout-link-name {
  font-size: 12.8px !important;
  font-weight: 600 !important;
  color: inherit !important;
  line-height: 1.32;
  white-space: normal;
  word-break: break-word;
  display: block;
}

.flyout-link.tb-overview-sublink {
  color: #059669 !important;
}
.flyout-link.tb-overview-sublink .flyout-link-name {
  font-weight: 700 !important;
}
.flyout-link.tb-overview-sublink:hover {
  background: rgba(255, 255, 255, 0.85) !important;
  color: #047857 !important;
}

.flyout-link.active,
.flyout-link.active-link {
  background: #ffffff !important;
  color: var(--mod-color, #0284c7) !important;
  font-weight: 800 !important;
  box-shadow: inset 3px 0 0 var(--mod-color, #0284c7);
}
.flyout-link.active .flyout-link-name,
.flyout-link.active-link .flyout-link-name {
  color: var(--mod-color, #0284c7) !important;
  font-weight: 800 !important;
}

.flyout-item-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  font-family: var(--site-font, 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif);
  font-size: 10px;
  font-weight: 800;
  padding: 0 5.5px;
  border-radius: 999px;
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}

/* Mobile Header Icon Button (Search Icon on Mobile/Tablet) */
.tb-hdr-icon-btn {
  background: transparent;
  border: none;
  color: #64748b;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tb-hdr-icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Search Results Section & Banner */
.search-icon-mobile {
  display: none !important;
}

.search-results {
  margin-top: 10px;
  padding: 10px 15px;
}

.search-results-banner {
  font-size: 16px;
  color: #ffffff !important;
  background-color: #008000 !important;
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  border-radius: 6px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(0, 128, 0, 0.2);
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-result {
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.search-result:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

.search-result-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.search-result-title {
  font-size: 16px;
  font-weight: 700;
  color: #0000ee !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.search-result-title:hover {
  color: #0000aa !important;
  text-decoration: underline !important;
}

.search-result-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.search-result-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 6px 0 8px 0;
}

.search-result-time {
  font-size: 12px;
  color: #94a3b8;
  display: block;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  color: #ffffff;
  white-space: nowrap;
}

.exam-badge { background: #28a745; }
.post-badge { background: #dc3545; }
.category-badge { background: #17a2b8; }
.admin-badge { background: #6f42c1; }

.no-results {
  text-align: center;
  padding: 28px;
  background-color: #f8f9fa;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
}

/* Media Queries */
@media (max-width: 991px) {
  .header-center {
    margin: 0;
    justify-content: flex-end;
    max-width: 0;
    min-width: 0;
    overflow: hidden;
  }
  .search-form {
    display: flex !important;
    align-items: center;
    width: 0 !important;
    max-width: 0 !important;
    opacity: 0;
    pointer-events: none;
    border-width: 0 !important;
    padding: 0 !important;
    height: 40px;
    border-radius: 999px;
    background: #ffffff;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .search-form input {
    padding: 6px 8px 6px 4px;
    font-size: 14.5px;
    font-weight: 500;
    color: #0f172a;
    min-width: 0;
    width: 100%;
  }
  .search-btn {
    width: 34px;
    height: 32px;
    border-radius: 999px;
    font-size: 14px;
    color: #0284c7;
    flex-shrink: 0;
  }
  .search-icon-mobile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #475569;
    cursor: pointer;
    padding: 6px;
  }
  /* Expanded State: Full-Width Header Overlay Search Bar on Mobile/Tablet */
  .top-header.mob-search-expanded .header-left,
  .top-header.mob-search-expanded .header-right {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
  .top-header.mob-search-expanded .header-center {
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
    z-index: 1060 !important;
  }
  .top-header.mob-search-expanded .search-form {
    width: 100% !important;
    max-width: 100% !important;
    height: 40px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 0 6px 0 14px !important;
    border: 2px solid #0ea5e9 !important;
    background: #ffffff !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12), 0 0 0 3px rgba(14, 165, 233, 0.14) !important;
  }
  .top-header.mob-search-expanded .mob-inline-search-close {
    display: inline-flex !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    padding: 0;
    margin-left: 2px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .top-header.mob-search-expanded .mob-inline-search-close:hover {
    background: #fee2e2;
    color: #ef4444;
  }
}

@media (max-width: 768px) {
  .top-header {
    height: 56px;
    padding: 0 12px;
  }
  .sidebar { top: 0 !important; }
  .main-content {
    margin-top: 56px !important;
    padding: 0 10px 10px 10px;
  }
  .top-header-ad-wrapper {
    margin: 12px auto !important;
    padding: 0 10px;
  }
  .main-content > *:first-child:not(.top-header-ad-wrapper):not(.alert) {
    margin-top: 12px;
  }
  .user-role-text { display: none; }
  .user-name-text { max-width: 85px; font-size: 12px; }
  .header-right { gap: 8px !important; }
  .user-profile-capsule { width: auto !important; height: auto !important; padding: 2px !important; }
  .user-avatar-circle { width: 32px; height: 32px; font-size: 13px; }
  .user-dropdown-menu { right: -4px; min-width: 240px; }
}

@media (max-width: 480px) {
  .header-left { gap: 6px; }
  .logo-img { height: 30px; }
  .user-name-text { max-width: 65px; font-size: 11px; }
  .header-right { gap: 6px !important; }
  .user-profile-capsule { width: auto !important; height: auto !important; padding: 2px !important; }
  .user-avatar-circle { width: 30px; height: 30px; font-size: 12px; }
  /* Give search bar generous width on compact phones when expanded */
  .top-header.mob-search-expanded .hdr-streak-pill,
  .top-header.mob-search-expanded .tb-notif-dropdown-wrap {
    display: none !important;
  }
}
