:root {
  --hg-text: #10162f;
  --hg-muted: #65708f;
  --hg-line: #e8ebf4;
  --hg-purple: #6a55e8;
  --hg-blue: #2477f2;
  --hg-green: #35a852;
  --hg-red: #ef4444;
  --hg-bg: #f8faff;
}

body#page-local-hivegenius-dashboard {
  background: var(--hg-bg);
  color: var(--hg-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  margin: 0;
}

body#page-local-hivegenius-dashboard #page,
body#page-local-hivegenius-dashboard #page-content,
body#page-local-hivegenius-dashboard #region-main,
body#page-local-hivegenius-dashboard .main-inner {
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}

.hg-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.hg-sidebar {
  background: #fff;
  border-right: 1px solid var(--hg-line);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.hg-brand {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 34px;
}

.hg-brand img {
  border-radius: 50%;
  height: 56px;
  width: 56px;
}

.hg-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.hg-brand strong span {
  color: #ffbd20;
}

.hg-brand small,
.hg-topbar p,
.hg-list small {
  color: var(--hg-muted);
}

.hg-nav {
  display: grid;
  gap: 8px;
}

.hg-nav a {
  align-items: center;
  border-radius: 10px;
  color: var(--hg-text);
  display: flex;
  font-weight: 600;
  gap: 14px;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: none;
}

.hg-nav a.active,
.hg-nav a:hover {
  background: linear-gradient(90deg, rgba(106, 85, 232, .16), rgba(106, 85, 232, .06));
  color: var(--hg-purple);
}

.hg-nav span {
  color: #1d2751;
  font-size: 20px;
  width: 24px;
}

.hg-nav em {
  background: var(--hg-red);
  border-radius: 99px;
  color: #fff;
  font-style: normal;
  margin-left: auto;
  padding: 2px 8px;
}

.hg-study-card {
  background: linear-gradient(160deg, #f7f3ff, #fff);
  border: 1px solid #e9e4ff;
  border-radius: 12px;
  margin-top: auto;
  padding: 20px;
}

.hg-card-title {
  color: var(--hg-purple);
  font-weight: 700;
  margin-bottom: 24px;
}

.hg-study-card strong {
  color: var(--hg-purple);
  display: block;
  font-size: 30px;
  margin: 8px 0;
}

.hg-study-card p {
  color: #16843b;
  margin: 0 0 24px;
}

.hg-bars {
  align-items: end;
  border-top: 1px solid #ece8ff;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(7, 1fr);
  height: 105px;
  padding-top: 12px;
}

.hg-bars i {
  background: linear-gradient(#7058f0, #b9a8ff);
  border-radius: 6px;
  display: block;
}

.hg-days {
  display: grid;
  font-size: 12px;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 8px;
  text-align: center;
}

.hg-main {
  min-width: 0;
}

.hg-topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--hg-line);
  display: flex;
  justify-content: space-between;
  min-height: 94px;
  padding: 0 32px 0 42px;
}

.hg-topbar h1 {
  font-size: 24px;
  margin: 0 0 6px;
}

.hg-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.hg-actions > button,
.hg-icon-button,
.hg-calendar button {
  background: #f1f0ff;
  border: 1px solid #dedbff;
  border-radius: 8px;
  color: var(--hg-purple);
  height: 36px;
  position: relative;
  width: 36px;
}

.hg-actions > button[title="Search"] {
  font-size: 0;
}

.hg-actions > button[title="Search"]::before {
  content: "\2315";
  font-size: 16px;
}

.hg-actions b {
  background: var(--hg-red);
  border-radius: 99px;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  position: absolute;
  right: -8px;
  top: -8px;
}

.hg-user-menu {
  position: relative;
}

.hg-user-trigger {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--hg-text);
  cursor: pointer;
  display: flex;
  gap: 12px;
  min-height: 58px;
  padding: 6px 8px;
}

.hg-user-trigger:hover,
.hg-user-menu.open .hg-user-trigger {
  background: #fff;
  border-color: var(--hg-line);
}

.hg-avatar {
  align-items: center;
  background: linear-gradient(135deg, #ffd18e, #8257e6);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 22px;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.hg-user-copy {
  min-width: 120px;
  text-align: left;
}

.hg-user-copy strong,
.hg-user-copy small {
  display: block;
}

.hg-user-copy small {
  color: var(--hg-muted);
  font-size: 13px;
}

.hg-user-caret {
  color: #0d1739;
  font-size: 18px;
  line-height: 1;
}

.hg-user-dropdown {
  background: #fff;
  border: 1px solid #cfd3dc;
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(16, 22, 47, .12);
  display: none;
  min-width: 235px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
}

.hg-user-menu.open .hg-user-dropdown {
  display: block;
}

.hg-user-dropdown a {
  color: #343841;
  display: block;
  font-size: 16px;
  padding: 10px 14px;
  text-decoration: none;
}

.hg-user-dropdown a:hover,
.hg-user-dropdown a.active {
  background: #0d6fbd;
  color: #fff;
}

.hg-user-dropdown a:nth-child(5),
.hg-user-dropdown a:nth-child(6),
.hg-user-dropdown a:nth-child(7) {
  border-top: 1px solid #d8dbe2;
}

.hg-content {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(560px, 2fr) minmax(320px, 1fr);
  padding: 36px 32px;
}

.hg-card {
  background: #fff;
  border: 1px solid var(--hg-line);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(16, 22, 47, .05);
  padding: 20px;
}

.hg-section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.hg-section-head h2 {
  font-size: 18px;
  margin: 0;
}

.hg-section-head a {
  color: #0d47ff;
  font-weight: 600;
  text-decoration: none;
}

.hg-course-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hg-course {
  border: 1px solid var(--hg-line);
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 16px;
}

.hg-course-art {
  align-content: center;
  color: #fff;
  display: grid;
  height: 150px;
  padding: 18px;
}

.hg-course-art span {
  font-size: 34px;
  font-weight: 800;
}

.hg-course.purple .hg-course-art,
.hg-table-card i.purple {
  background: linear-gradient(135deg, #8b6ff6, #6645dc);
}

.hg-course.green .hg-course-art,
.hg-table-card i.green {
  background: linear-gradient(135deg, #36b767, #14874d);
}

.hg-course.blue .hg-course-art,
.hg-table-card i.blue {
  background: linear-gradient(135deg, #3993ff, #1264d8);
}

.hg-course h3,
.hg-course p,
.hg-course small,
.hg-course .hg-progress,
.hg-course > span,
.hg-course a {
  margin-left: 16px;
  margin-right: 16px;
}

.hg-course h3 {
  font-size: 16px;
  margin-top: 16px;
}

.hg-course small {
  color: var(--hg-muted);
  display: block;
  margin-top: 18px;
}

.hg-course p {
  font-weight: 700;
  margin-bottom: 16px;
}

.hg-course a {
  background: var(--hg-purple);
  border-radius: 7px;
  color: #fff;
  display: block;
  font-weight: 700;
  padding: 10px;
  text-align: center;
  text-decoration: none;
}

.hg-course.green a {
  background: var(--hg-green);
}

.hg-course.blue a {
  background: var(--hg-blue);
}

.hg-progress {
  background: #e9edf5;
  border-radius: 20px;
  display: inline-flex;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  vertical-align: middle;
  width: 68%;
}

.hg-progress i {
  background: var(--hg-purple);
  border-radius: inherit;
  display: block;
}

.hg-course.green .hg-progress i,
.hg-legend .done {
  background: var(--hg-green);
}

.hg-course.blue .hg-progress i,
.hg-legend .doing {
  background: var(--hg-blue);
}

.hg-calendar h3 {
  font-size: 16px;
  margin: 8px 0 18px;
  text-align: center;
}

.hg-calendar-controls {
  display: flex;
  gap: 4px;
}

.hg-calendar button {
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background-color .15s ease, transform .15s ease;
}

.hg-calendar button:hover {
  background: #e5e1ff;
}

.hg-calendar button:active {
  transform: scale(.94);
}

.hg-calendar button:focus-visible,
.hg-cal-grid a:focus-visible {
  outline: 3px solid rgba(106, 85, 232, .3);
  outline-offset: 2px;
}

.hg-cal-weekdays,
.hg-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.hg-cal-weekdays {
  margin-bottom: 8px;
}

.hg-cal-weekdays b {
  color: #28345d;
  font-size: 13px;
  padding: 5px 0;
}

.hg-cal-grid {
  row-gap: 7px;
}

.hg-cal-grid a {
  align-items: center;
  border-radius: 50%;
  color: var(--hg-text);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  margin: auto;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
  width: 34px;
}

.hg-cal-grid a:hover {
  background: #f0edff;
  color: var(--hg-purple);
}

.hg-cal-grid .muted {
  color: #a4acc3;
}

.hg-cal-grid .today {
  background: var(--hg-purple);
  color: #fff;
  font-weight: 700;
}

.hg-cal-grid .today:hover {
  background: #5843d7;
  color: #fff;
}

.hg-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hg-list li {
  align-items: center;
  display: flex;
  gap: 14px;
}

.hg-list li > span {
  align-items: center;
  background: #f0edff;
  border-radius: 10px;
  color: var(--hg-purple);
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.hg-list strong,
.hg-list small {
  display: block;
}

.hg-progress-card {
  align-items: center;
  display: grid;
  grid-template-columns: 180px 1fr;
}

.hg-progress-card .hg-section-head {
  grid-column: 1 / -1;
}

.hg-donut {
  align-items: center;
  background: conic-gradient(var(--hg-green) 0 65%, var(--hg-blue) 65% 85%, #d5dae5 85% 100%);
  border-radius: 50%;
  display: flex;
  height: 140px;
  justify-content: center;
  width: 140px;
}

.hg-donut span {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  font-size: 26px;
  font-weight: 800;
  height: 92px;
  justify-content: center;
  width: 92px;
}

.hg-donut small {
  color: var(--hg-muted);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.hg-legend p {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.hg-legend i {
  background: #cfd5e1;
  border-radius: 4px;
  height: 14px;
  width: 14px;
}

.hg-table-card,
.hg-courses {
  grid-column: span 1;
}

.hg-table-card table {
  border-collapse: collapse;
  width: 100%;
}

.hg-table-card th,
.hg-table-card td {
  border-bottom: 1px solid var(--hg-line);
  padding: 10px;
}

.hg-table-card th {
  color: #39446b;
  font-weight: 600;
}

.hg-table-card td:first-child {
  font-weight: 600;
}

.hg-table-card i {
  border-radius: 5px;
  display: inline-block;
  height: 28px;
  margin-right: 10px;
  vertical-align: middle;
  width: 28px;
}

.hg-grades {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.hg-grades .hg-section-head {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.hg-grades article {
  background: linear-gradient(150deg, #f5fffb, #fff);
  border: 1px solid var(--hg-line);
  border-radius: 10px;
  display: grid;
  min-height: 128px;
  padding: 18px;
}

.hg-grades strong {
  color: #087c3a;
  font-size: 34px;
}

.hg-grades span {
  color: #087c3a;
}

@media (max-width: 1180px) {
  .hg-shell {
    grid-template-columns: 1fr;
  }

  .hg-sidebar {
    display: none;
  }

  .hg-content,
  .hg-course-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   REMOVE FOOTER BLACK TEXT BOX & CONECTI.ME BRANDING
   ========================================================================== */

#page-footer,
#page-footer .footer-columns,
#page-footer .footer-content-main,
#page-footer .copyright,
#page-footer .madeby,
#page-footer .footer-dark,
#page-footer .socialnetworks,
#page-footer .contact,
#page-footer .column-left,
#page-footer .column-center,
#page-footer .column-right {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

#page-footer::before,
#page-footer::after {
  display: none !important;
}

/* ==========================================================================
   COURSE CARDS - FIX PICTURE CROPPING & DROPDOWN MENU OVERLAP
   ========================================================================== */

.card.course-card,
.dashboard-card,
.theme-card,
.block_myoverview .dashboard-card,
.pagelayout-frontpage .dashboard-card,
.pagelayout-coursecategory .dashboard-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: visible !important; /* Must be visible so dropdown menu is never clipped */
  background: #ffffff !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  position: relative !important;
}

.card.course-card:hover,
.dashboard-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06) !important;
  border-color: #cbd5e1 !important;
}

/* Fix Card Image Aspect Ratio & Prevent Image Cropping on All Course Cards */
.course-card .card-img-top,
.theme-card .card-img-top,
.dashboard-card .dashboard-card-img,
.dashboard-card .card-img.dashboard-card-img,
.block_myoverview .course-card .card-img-top,
.block_myoverview .dashboard-card .dashboard-card-img {
  width: 100% !important;
  height: 205px !important;
  min-height: 205px !important;
  aspect-ratio: 16 / 9 !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border-radius: 15px 15px 0 0 !important;
  overflow: hidden !important;
}

.course-card .card-img-top img,
.theme-card .card-img-top img,
.dashboard-card .dashboard-card-img img,
.dashboard-card .card-img.dashboard-card-img img,
.block_myoverview .course-card .card-img-top img {
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  border-radius: 15px 15px 0 0 !important;
}

/* ==========================================================================
   AESTHETIC CATEGORY BADGE & TEXT IN COURSE CARDS
   ========================================================================== */

/* Floating Category Badge on Card Image (Top-Left) */
.dashboard-card-img .course-category,
.dashboard-card .dashboard-card-img .course-category,
.pagelayout-frontpage .dashboard-card .course-category,
.pagelayout-coursecategory .dashboard-card .course-category {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 5 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(15, 23, 42, 0.78) !important;
  backdrop-filter: blur(10px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.dashboard-card-img .course-category::before {
  content: '' !important;
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #38bdf8 !important;
  box-shadow: 0 0 8px #38bdf8 !important;
  flex-shrink: 0 !important;
}

.dashboard-card-img .course-category span.categoryname,
.dashboard-card .course-category span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Hover effect on category badge */
.dashboard-card:hover .course-category {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(79, 70, 229, 0.95)) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px) scale(1.03) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
}

/* Category Text under Title in Card Body */
.course-card .card-body .categoryname,
.dashboard-card .card-body .categoryname,
.course-info-container .categoryname {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border: 1px solid #e2e8f0 !important;
  margin-top: 4px !important;
  transition: all 0.2s ease !important;
}

.course-card:hover .card-body .categoryname,
.dashboard-card:hover .card-body .categoryname {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #bae6fd !important;
}

/* Card Body Content */
.course-card .card-body,
.dashboard-card .card-body {
  padding: 16px 18px 10px !important;
}

.course-card .card-body .coursename,
.dashboard-card .card-body .coursename {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}

.course-card .card-body .coursename:hover,
.dashboard-card .card-body .coursename:hover {
  color: #2563eb !important;
}

/* Progress bar inside card */
.course-card .progress,
.dashboard-card .progress {
  height: 6px !important;
  border-radius: 999px !important;
  background: #e2e8f0 !important;
  overflow: hidden !important;
}

.course-card .progress-bar,
.dashboard-card .progress-bar {
  background: linear-gradient(90deg, #3b82f6, #6366f1) !important;
  border-radius: 999px !important;
}

/* ==========================================================================
   FIX 3-DOTS MENU OVERLAP & DROPDOWN STACKING CONTEXT
   ========================================================================== */

/* Elevate the parent column and card when dropdown is open or focused */
.card-grid .col {
  position: relative !important;
}

.card-grid .col:has(.dropdown-menu.show),
.card-grid .col:has(.dropdown.show),
.card-grid .col:focus-within,
.course-card:has(.dropdown-menu.show),
.course-card:has(.dropdown.show),
.course-card:focus-within,
.dashboard-card:has(.dropdown-menu.show),
.dashboard-card:focus-within {
  z-index: 1050 !important;
}

/* Dropdown Menu Styling & Elevation above subsequent course cards */
.course-card .dropdown-menu,
.dashboard-card .dropdown-menu,
.block_myoverview .dropdown-menu {
  z-index: 1060 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(15, 23, 42, 0.1) !important;
  padding: 6px !important;
  background: #ffffff !important;
  min-width: 190px !important;
  margin-top: 4px !important;
}

.course-card .dropdown-item,
.dashboard-card .dropdown-item {
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  padding: 8px 14px !important;
  color: #334155 !important;
  transition: all 0.15s ease !important;
}

.course-card .dropdown-item:hover,
.dashboard-card .dropdown-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* 3-dots action button */
.course-card .coursemenubtn,
.dashboard-card-footer.menu .btn {
  border-radius: 8px !important;
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  border: none !important;
  background: transparent !important;
}

.course-card .coursemenubtn:hover,
.course-card .coursemenubtn:focus,
.course-card .coursemenubtn[aria-expanded="true"] {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* ==========================================================================
   INTERACTIVE & MODERN TOP HEADER / NAVBAR (HOME, DASHBOARD, MY COURSES)
   ========================================================================== */

/* Top Navigation Bar Container - Frosted Glass (58px) */
.navbar.fixed-top,
body #page-header .navbar,
nav.navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.04) !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 20px !important;
  transition: all 0.25s ease !important;
}

/* Brand Logo (Using hivegenius-logo_2.png) */
.navbar-brand,
.navbar-brand.d-none.d-md-flex {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-right: 18px !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.navbar-brand .logo,
.navbar-brand img {
  height: 38px !important;
  width: auto !important;
  max-width: 140px !important;
  border-radius: 6px !important;
  object-fit: contain !important;
  transition: transform 0.2s ease !important;
}

.navbar-brand:hover .logo,
.navbar-brand:hover img {
  transform: scale(1.06) !important;
}

/* HIVEGENIUS text beside logo */
.navbar-brand .hg-nav-title,
[data-region="site-home-link"] .hg-nav-title {
  display: inline-flex !important;
  align-items: center !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 800 !important;
  font-size: 19px !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
  margin-left: 2px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  text-decoration: none !important;
  user-select: none !important;
}

.navbar-brand .hg-nav-title .brand-hive,
[data-region="site-home-link"] .hg-nav-title .brand-hive {
  color: #2575d6 !important;
  background: linear-gradient(135deg, #4aa7eb 0%, #2575d6 60%, #0a52b8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 900 !important;
  display: inline-block !important;
}

.navbar-brand .hg-nav-title .brand-genius,
[data-region="site-home-link"] .hg-nav-title .brand-genius {
  color: #ffbe1a !important;
  background: linear-gradient(135deg, #ffbe1a 0%, #f09000 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 900 !important;
  display: inline-block !important;
}

/* Immediate CSS-only fallback before JavaScript executes */
.navbar-brand:not(:has(.hg-nav-title))::after {
  content: "HIVEGENIUS" !important;
  display: inline-flex !important;
  align-items: center !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 900 !important;
  font-size: 19px !important;
  letter-spacing: -0.02em !important;
  margin-left: 2px !important;
  background: linear-gradient(90deg, #2575d6 0%, #2575d6 41%, #ffbe1a 41%, #f09000 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  line-height: 1 !important;
  user-select: none !important;
}

/* Navigation Links Container (Home, Dashboard, My courses, Site admin) */
.primary-navigation,
.primary-navigation .navigation {
  height: 58px !important;
  display: flex !important;
  align-items: center !important;
}

.primary-navigation .moremenu .nav,
.primary-navigation .moremenu .nav-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  border: none !important;
  background: transparent !important;
  height: auto !important;
  margin: 0 !important;
}

.primary-navigation .moremenu .nav-item {
  margin: 0 !important;
}

/* Navigation Link Items */
.primary-navigation .nav-link,
.navbar-nav .nav-link {
  height: 34px !important;
  line-height: 34px !important;
  padding: 0 13px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  color: #475569 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}

/* Hover State for Nav Links */
.primary-navigation .nav-link:hover,
.navbar-nav .nav-link:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

/* Active State for Nav Links (Home / Dashboard / My courses) */
.primary-navigation .nav-link.active,
.primary-navigation .nav-link[aria-current="page"],
.navbar-nav .nav-link.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(99, 102, 241, 0.1)) !important;
  color: #2563eb !important;
  font-weight: 700 !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

.primary-navigation .nav-link.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: -11px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 16px !important;
  height: 2.5px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #2563eb, #6366f1) !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35) !important;
}

/* User Navigation (Right-Side Icons & Buttons) */
#usernavigation {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 58px !important;
}

/* Notifications & Messages Icon Buttons */
.popover-region .nav-link,
.popover-region-toggle {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

.popover-region .nav-link:hover,
.popover-region-toggle:hover {
  background: #eef2ff !important;
  color: #4f46e5 !important;
  border-color: #c7d2fe !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.12) !important;
}

/* Badge Count on Notifications & Messages */
.popover-region-notifications .count-container,
.popover-region-messages .count-container,
.navbar-nav .badge {
  background: linear-gradient(135deg, #ef4444, #f43f5e) !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  padding: 1px 5px !important;
}

/* User Profile Capsule Button */
.usermenu-container,
.usermenu-container .dropdown {
  display: flex !important;
  align-items: center !important;
}

.usermenu-container .userbutton,
.usermenu-container .btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 3px 10px 3px 4px !important;
  height: 34px !important;
  border-radius: 9999px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  font-size: 13px !important;
}

.usermenu-container .userbutton:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.usermenu-container .userbutton .userpicture,
.usermenu-container .userbutton .avatars {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  border: 1.5px solid #ffffff !important;
}

.usermenu-container .userbutton .userinitials {
  background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 11px !important;
}

/* Edit Mode Toggle Switch */
.editmode-switch-form {
  display: flex !important;
  align-items: center !important;
  margin-left: 4px !important;
  padding: 2px 8px !important;
  height: 30px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
}

.editmode-switch-form .form-check-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

.editmode-switch-form .form-check-input:checked {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}
