:root {
  --esgep-primary: #d4af37;
  --esgep-primary-dark: #b89628;
  --esgep-background: #0f1923;
  --esgep-surface: #172230;
  --esgep-surface-strong: #121c29;
  --esgep-border: rgba(148, 163, 184, 0.18);
  --esgep-border-strong: rgba(212, 175, 55, 0.28);
  --esgep-text: #f8fafc;
  --esgep-text-muted: #94a3b8;
  --esgep-shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
  --esgep-sidebar-width: 18rem;
  --esgep-topbar-height: 5rem;
}

html {
  background: var(--esgep-background);
}

body.esgep-front-page {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 24rem),
    radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.08), transparent 24rem),
    var(--esgep-background);
  color: var(--esgep-text);
  font-family: "Inter", sans-serif;
}

body.esgep-front-page.admin-bar {
  --esgep-admin-offset: 32px;
}

.esgep-front-page *,
.esgep-front-page *::before,
.esgep-front-page *::after {
  box-sizing: border-box;
}

.esgep-front-page a {
  color: inherit;
  text-decoration: none;
}

.esgep-front-page img {
  display: block;
  max-width: 100%;
}

.esgep-front-page .material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.esgep-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 95;
}

.esgep-app {
  display: grid;
  grid-template-columns: var(--esgep-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.esgep-sidebar {
  position: sticky;
  top: var(--esgep-admin-offset, 0px);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--esgep-admin-offset, 0px));
  padding: 1.5rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(23, 34, 48, 0.98), rgba(12, 20, 30, 0.98)),
    #0b1220;
  border-right: 1px solid var(--esgep-border);
  z-index: 30;
}

.esgep-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.esgep-brand__link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.esgep-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--esgep-primary), var(--esgep-primary-dark));
  color: #111827;
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.22);
}

.esgep-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.esgep-brand__copy strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.esgep-brand__copy small {
  color: var(--esgep-text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.esgep-sidebar__close,
.esgep-sidebar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--esgep-border);
  border-radius: 0.85rem;
  background: rgba(15, 25, 35, 0.7);
  color: var(--esgep-text);
  cursor: pointer;
}

.esgep-nav {
  display: grid;
  gap: 0.55rem;
}

.esgep-nav:first-of-type {
  margin-bottom: 0;
}

.esgep-nav:last-of-type {
  margin-bottom: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.esgep-nav:only-of-type {
  margin-bottom: auto;
  max-height: none;
}

.esgep-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  color: var(--esgep-text-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.esgep-nav a:hover,
.esgep-nav a:focus-visible {
  border-color: rgba(212, 175, 55, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--esgep-text);
  transform: translateX(2px);
}

.esgep-nav a.is-active {
  border-color: rgba(212, 175, 55, 0.24);
  background: rgba(212, 175, 55, 0.12);
  color: var(--esgep-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.esgep-nav-divider {
  height: 1px;
  background: var(--esgep-border);
  margin: 0.5rem 0;
}


body.esgep-sidebar-collapsed .esgep-nav-divider {
  margin: 0.4rem 0.5rem;
}

/* --- Accordion menu --- */
.esgep-accordion {
  display: grid;
}

.esgep-accordion__toggle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  background: none;
  color: var(--esgep-text-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.esgep-accordion__toggle:hover {
  border-color: rgba(212, 175, 55, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--esgep-text);
}

.esgep-accordion__toggle--sub {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  gap: 0.5rem;
}

.esgep-accordion__arrow {
  margin-left: auto;
  font-size: 1.1rem;
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.esgep-accordion__toggle:hover .esgep-accordion__arrow {
  opacity: 0.8;
}

.esgep-accordion.is-open > .esgep-accordion__toggle .esgep-accordion__arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.esgep-accordion.is-open > .esgep-accordion__toggle {
  color: var(--esgep-text);
  font-weight: 600;
}

.esgep-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.esgep-accordion.is-open > .esgep-accordion__panel {
  grid-template-rows: 1fr;
}

.esgep-accordion__inner {
  overflow: hidden;
  padding-left: 1rem;
  border-left: 1px solid var(--esgep-border);
  margin-left: 1.1rem;
}

.esgep-accordion__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--esgep-text-muted);
  font-size: 0.76rem;
  font-weight: 400;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.esgep-accordion__link:hover {
  color: var(--esgep-primary, #d4af37);
  background: rgba(212, 175, 55, 0.06);
}

.esgep-accordion__link--nested {
  font-size: 0.74rem;
  padding: 0.35rem 0.75rem;
}

/* Hide accordion content when sidebar is collapsed */
body.esgep-sidebar-collapsed .esgep-accordion__panel,
body.esgep-sidebar-collapsed .esgep-accordion__arrow,
body.esgep-sidebar-collapsed .esgep-accordion__toggle .esgep-nav__label {
  display: none;
}

body.esgep-sidebar-collapsed .esgep-accordion__toggle {
  justify-content: center;
  padding: 0.85rem 0.5rem;
  gap: 0;
}

body.esgep-sidebar-collapsed .esgep-accordion__link {
  display: none;
}

.esgep-sidebar__footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--esgep-border);
}

/* --- Collapse toggle button --- */
.esgep-sidebar__collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--esgep-border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--esgep-text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.esgep-sidebar__collapse:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--esgep-text);
}

.esgep-collapse-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

/* --- Collapsed sidebar state (desktop) --- */
.esgep-app {
  --esgep-sidebar-collapsed-width: 5rem;
  transition: grid-template-columns 0.3s ease;
}

.esgep-sidebar {
  transition: width 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}

.esgep-nav::-webkit-scrollbar {
  width: 3px;
}

.esgep-nav::-webkit-scrollbar-track {
  background: transparent;
}

.esgep-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.esgep-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

body.esgep-sidebar-collapsed .esgep-app {
  grid-template-columns: var(--esgep-sidebar-collapsed-width) minmax(0, 1fr);
}

body.esgep-sidebar-collapsed .esgep-sidebar {
  padding: 1.5rem 0.75rem;
}

body.esgep-sidebar-collapsed .esgep-brand__copy,
body.esgep-sidebar-collapsed .esgep-nav a .esgep-nav__label,
body.esgep-sidebar-collapsed .esgep-user__meta,
body.esgep-sidebar-collapsed .esgep-sidebar__close {
  display: none;
}

body.esgep-sidebar-collapsed .esgep-brand__link {
  justify-content: center;
}

body.esgep-sidebar-collapsed .esgep-nav a {
  justify-content: center;
  padding: 0.85rem 0.5rem;
  gap: 0;
}

body.esgep-sidebar-collapsed .esgep-user {
  justify-content: center;
}

body.esgep-sidebar-collapsed .esgep-user__avatar {
  margin: 0;
}

body.esgep-sidebar-collapsed .esgep-collapse-icon {
  transform: rotate(180deg);
}

body.esgep-sidebar-collapsed .esgep-sidebar__collapse {
  margin: 0 auto;
}

/* === LIGHT MODE OVERRIDES === */
body.esgep-front-page.esgep-light {
  --esgep-primary: #d4af37;
  --esgep-primary-dark: #b89628;
  --esgep-background: #f5f7fa;
  --esgep-surface: #ffffff;
  --esgep-surface-strong: #f0f2f5;
  --esgep-border: rgba(0, 0, 0, 0.1);
  --esgep-border-strong: rgba(0, 0, 0, 0.12);
  --esgep-text: #1a1a2e;
  --esgep-text-muted: #64748b;
  --esgep-shadow: 0 28px 80px rgba(0, 0, 0, 0.08);
}

body.esgep-front-page.esgep-light {
  background: var(--esgep-background);
}

body.esgep-light .esgep-sidebar {
  background: linear-gradient(180deg, #ffffff, #f8f9fb);
  border-right-color: rgba(0, 0, 0, 0.08);
}

body.esgep-light .esgep-nav a,
body.esgep-light .esgep-accordion__toggle {
  color: #475569;
}

body.esgep-light .esgep-nav a:hover,
body.esgep-light .esgep-nav a:focus-visible,
body.esgep-light .esgep-accordion__toggle:hover {
  color: #1a1a2e;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

body.esgep-light .esgep-nav a.is-active {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.25);
  color: #9a7b1a;
}

body.esgep-light .esgep-brand__copy strong {
  color: #1a1a2e;
}

body.esgep-light .esgep-brand__copy small {
  color: #64748b;
}

body.esgep-light .esgep-sidebar__footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.esgep-light .esgep-user__meta strong {
  color: #1a1a2e;
}

body.esgep-light .esgep-user__meta small {
  color: #64748b;
}

body.esgep-light .esgep-topbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.esgep-light .esgep-search {
  background: #f0f2f5;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a2e;
}

body.esgep-light .esgep-search input {
  background: #f0f2f5;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1a1a2e;
}

body.esgep-light .esgep-search input:focus {
  border-color: rgba(212, 175, 55, 0.5);
  background: #ffffff;
}

body.esgep-light .esgep-search > .material-symbols-outlined {
  color: #64748b;
}

body.esgep-light .esgep-search input::placeholder {
  color: #94a3b8;
}

body.esgep-light .esgep-button--ghost {
  color: #1a1a2e;
  border-color: rgba(0, 0, 0, 0.15);
}

body.esgep-light .esgep-button--solid {
  background: #d4af37;
  color: #fff;
}

body.esgep-light .esgep-cart {
  color: #1a1a2e;
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

body.esgep-light .esgep-sidebar__collapse {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
  color: #64748b;
}

body.esgep-light .esgep-nav-divider {
  background: rgba(0, 0, 0, 0.08);
}

body.esgep-light .esgep-accordion__inner {
  border-left-color: rgba(0, 0, 0, 0.1);
}

body.esgep-light .esgep-accordion__link {
  color: #64748b;
}

body.esgep-light .esgep-accordion__link:hover {
  color: #9a7b1a;
  background: rgba(212, 175, 55, 0.06);
}

body.esgep-light .esgep-accordion.is-open > .esgep-accordion__toggle {
  color: #1a1a2e;
}

body.esgep-light .esgep-footer {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.esgep-light .esgep-footer p {
  color: #64748b;
}

body.esgep-light .esgep-content .card,
body.esgep-light .esgep-content .bg-white,
body.esgep-light .esgep-content .bg-light {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #1a1a2e;
}

body.esgep-light .esgep-content h1,
body.esgep-light .esgep-content h2,
body.esgep-light .esgep-content h3,
body.esgep-light .esgep-content h4,
body.esgep-light .esgep-content h5,
body.esgep-light .esgep-content h6 {
  color: #1a1a2e;
}

body.esgep-light .esgep-content p,
body.esgep-light .esgep-content li,
body.esgep-light .esgep-content span,
body.esgep-light .esgep-content label {
  color: #475569;
}

body.esgep-light .esgep-content .text-dark,
body.esgep-light .esgep-content .text-body {
  color: #1a1a2e !important;
}

body.esgep-light .esgep-content .text-muted {
  color: #64748b !important;
}

body.esgep-light .esgep-content .form-control,
body.esgep-light .esgep-content .form-select {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1a1a2e;
}

body.esgep-light .esgep-content .border,
body.esgep-light .esgep-content .border-top,
body.esgep-light .esgep-content .border-bottom {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Light mode: force all text colors to dark */
body.esgep-light .esgep-content,
body.esgep-light .esgep-content *:not(.material-symbols-outlined):not(.btn):not(.esgep-button):not(.esgep-button *) {
  color: inherit;
}

body.esgep-light .esgep-content .text-white {
  color: #ffffff !important;
}

body.esgep-light .esgep-content .bg-primary .text-white,
body.esgep-light .esgep-content .bg-primary h1,
body.esgep-light .esgep-content .bg-primary p {
  color: #ffffff !important;
}

body.esgep-light .esgep-content .card .text-inherit,
body.esgep-light .esgep-content .card h3,
body.esgep-light .esgep-content .card h4,
body.esgep-light .esgep-content .card a {
  color: #1a1a2e !important;
}

body.esgep-light .esgep-content .card a:hover {
  color: #9a7b1a !important;
}

body.esgep-light .esgep-content .card .text-muted,
body.esgep-light .esgep-content .card .list-inline-item,
body.esgep-light .esgep-content .card span,
body.esgep-light .esgep-content .card small,
body.esgep-light .esgep-content .card .tutor-meta-value,
body.esgep-light .esgep-content .card .tutor-color-secondary,
body.esgep-light .esgep-content .card .tutor-color-black-60 {
  color: #64748b !important;
}

body.esgep-light .esgep-content .card .tutor-color-black,
body.esgep-light .esgep-content .card .lh-1.mt-3 .amount,
body.esgep-light .esgep-content .card .lh-1.mt-3 ins {
  color: #1a1a2e !important;
}

body.esgep-light .esgep-content .card .lh-1.mt-3 del,
body.esgep-light .esgep-content .card .lh-1.mt-3 del .amount {
  color: #94a3b8 !important;
}

body.esgep-light .esgep-content .card .card-footer span,
body.esgep-light .esgep-content .card .card-footer a {
  color: #475569 !important;
}

body.esgep-light .esgep-content .card .card-footer a:hover {
  color: #9a7b1a !important;
}

body.esgep-light .esgep-content .courses__results-count,
body.esgep-light .esgep-content .tutor-course-filter-container h4,
body.esgep-light .esgep-content .tutor-course-filter-container .form-check-label,
body.esgep-light .esgep-content .tutor-course-filter-container a,
body.esgep-light .esgep-content .tutor-clear-all-filter a {
  color: #475569 !important;
}

body.esgep-light .esgep-content .tutor-course-filter-select,
body.esgep-light .esgep-content .tutor-form-select {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1a1a2e !important;
}

body.esgep-light .esgep-content .card {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.esgep-light .esgep-content .card-header,
body.esgep-light .esgep-content .card-body,
body.esgep-light .esgep-content .card-footer {
  background-color: transparent !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

body.esgep-light .esgep-content .nav.btn-group .btn-outline-white {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #475569 !important;
}

body.esgep-light .esgep-content .nav.btn-group .btn-outline-white.active {
  background-color: #d4af37 !important;
  border-color: #d4af37 !important;
  color: #ffffff !important;
}

body.esgep-light .esgep-content .tutor-pagination .page-numbers {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #475569 !important;
}

body.esgep-light .esgep-content .tutor-pagination .page-numbers:hover,
body.esgep-light .esgep-content .tutor-pagination .page-numbers.current {
  background-color: #d4af37 !important;
  border-color: #d4af37 !important;
  color: #ffffff !important;
}

body.esgep-light .esgep-content .form-check-input {
  background-color: #ffffff;
  border-color: #cbd5e1;
}

body.esgep-light .esgep-content .form-check-input:checked {
  background-color: #d4af37;
  border-color: #d4af37;
}

body.esgep-light .esgep-content .tutor-course-wishlist .tutor-iconic-btn {
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #64748b !important;
}

body.esgep-light .esgep-content .tutor-course-wishlist .tutor-iconic-btn:hover {
  color: #d4af37 !important;
  border-color: #d4af37 !important;
}

/* Theme toggle button */
.esgep-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--esgep-border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--esgep-text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.esgep-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--esgep-primary);
}

body.esgep-light .esgep-theme-toggle {
  background: rgba(0, 0, 0, 0.04);
}

body.esgep-light .esgep-theme-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #9a7b1a;
}

.esgep-theme-toggle .esgep-icon-light,
body.esgep-light .esgep-theme-toggle .esgep-icon-dark {
  display: none;
}

body.esgep-light .esgep-theme-toggle .esgep-icon-light {
  display: inline;
}

/* Tooltip on collapsed sidebar for light mode */
body.esgep-light .esgep-nav a[data-tooltip]::after {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* --- Dark theme for all content inside esgep-main --- */
.esgep-main {
  background: var(--esgep-background);
  color: var(--esgep-text);
}

.esgep-content {
  color: var(--esgep-text);
}

.esgep-content h1,
.esgep-content h2,
.esgep-content h3,
.esgep-content h4,
.esgep-content h5,
.esgep-content h6 {
  color: var(--esgep-text);
}

.esgep-content p,
.esgep-content li,
.esgep-content span,
.esgep-content label {
  color: var(--esgep-text-muted);
}

.esgep-content a {
  color: var(--esgep-primary);
}

.esgep-content a:hover {
  color: #e8c84a;
}

.esgep-content .card,
.esgep-content .bg-white,
.esgep-content .bg-light {
  background-color: var(--esgep-surface) !important;
  border-color: var(--esgep-border-strong, rgba(148, 163, 184, 0.18)) !important;
  color: var(--esgep-text);
}

.esgep-content .card h1,
.esgep-content .card h2,
.esgep-content .card h3,
.esgep-content .card h4,
.esgep-content .card h5,
.esgep-content .card h6,
.esgep-content .bg-white h1,
.esgep-content .bg-white h2,
.esgep-content .bg-white h3,
.esgep-content .bg-white h4,
.esgep-content .bg-white h5,
.esgep-content .bg-white h6 {
  color: var(--esgep-text) !important;
}

.esgep-content .text-dark,
.esgep-content .text-body {
  color: var(--esgep-text) !important;
}

.esgep-content .text-muted {
  color: var(--esgep-text-muted) !important;
}

.esgep-content .border,
.esgep-content .border-top,
.esgep-content .border-bottom {
  border-color: rgba(148, 163, 184, 0.15) !important;
}

.esgep-content .form-control,
.esgep-content .form-select {
  background-color: var(--esgep-surface);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--esgep-text);
}

.esgep-content .form-control::placeholder {
  color: var(--esgep-text-muted);
}

.esgep-content .btn-outline-primary,
.esgep-content .btn-outline-secondary {
  border-color: var(--esgep-primary);
  color: var(--esgep-primary);
}

.esgep-content .page__content,
.esgep-content .site-content,
.esgep-content #content {
  background-color: transparent;
}

.esgep-footer {
  background: var(--esgep-background);
}

/* --- Smooth transition for collapse/expand via click --- */

/* --- Tooltips for collapsed state --- */
.esgep-nav a[data-tooltip] {
  position: relative;
}

.esgep-nav a[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  padding: 0.4rem 0.85rem;
  background: var(--esgep-surface);
  border: 1px solid var(--esgep-border);
  border-radius: 0.5rem;
  color: var(--esgep-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 120;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Show tooltips only when collapsed */
body.esgep-sidebar-collapsed .esgep-nav a[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.esgep-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
  background: rgba(15, 25, 35, 0.55);
  border: 1px solid var(--esgep-border);
  border-radius: 1rem;
}

.esgep-user__avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.16);
  color: var(--esgep-primary);
}

.esgep-user__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.esgep-user__meta {
  min-width: 0;
}

.esgep-user__meta strong,
.esgep-user__meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.esgep-user__meta strong {
  font-size: 0.9rem;
}

.esgep-user__meta small {
  color: var(--esgep-text-muted);
  font-size: 0.72rem;
}

.esgep-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.esgep-topbar {
  position: sticky;
  top: var(--esgep-admin-offset, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--esgep-topbar-height);
  padding: 1rem 2rem;
  background: rgba(11, 18, 32, 0.88);
  border-bottom: 1px solid var(--esgep-border);
  backdrop-filter: blur(18px);
}

.esgep-topbar__search {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
}

.esgep-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 42rem;
}

.esgep-search > .material-symbols-outlined {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.esgep-search input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 25, 35, 0.9);
  color: var(--esgep-text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.esgep-search input::placeholder {
  color: #64748b;
}

.esgep-search input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.esgep-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.esgep-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--esgep-border);
  border-radius: 0.9rem;
  background: rgba(15, 25, 35, 0.72);
  color: var(--esgep-text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.esgep-cart:hover,
.esgep-cart:focus-visible {
  color: var(--esgep-text);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.esgep-cart__count {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--esgep-primary);
  color: #111827;
  font-size: 0.68rem;
  font-weight: 800;
}

.esgep-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.8rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.esgep-button:hover,
.esgep-button:focus-visible {
  transform: translateY(-1px);
}

.esgep-button--solid {
  background: linear-gradient(135deg, var(--esgep-primary), var(--esgep-primary-dark));
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(212, 175, 55, 0.2);
}

.esgep-cta .esgep-button--solid {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 18px 34px rgba(255, 255, 255, 0.1);
}

.esgep-cta .esgep-button--solid:hover,
.esgep-cta .esgep-button--solid:focus-visible {
  background: #f1f5f9;
  box-shadow: 0 22px 40px rgba(255, 255, 255, 0.15);
}

.esgep-button--solid:hover,
.esgep-button--solid:focus-visible {
  box-shadow: 0 22px 40px rgba(212, 175, 55, 0.28);
}

.esgep-button--ghost {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 25, 35, 0.46);
  color: var(--esgep-text);
}

.esgep-button--ghost:hover,
.esgep-button--ghost:focus-visible {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.esgep-button--glass {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--esgep-text);
  backdrop-filter: blur(16px);
}

.esgep-button--large {
  min-height: 3.35rem;
  padding: 0.9rem 1.5rem;
}

.esgep-content {
  flex: 1 1 auto;
  min-width: 0;
}

.esgep-hero {
  position: relative;
  min-height: 34rem;
  padding: 4.5rem 2.5rem 3rem;
  overflow: hidden;
}

.esgep-hero::before,
.esgep-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.esgep-hero::before {
  background:
    linear-gradient(90deg, rgba(8, 13, 23, 0.96), rgba(8, 13, 23, 0.84) 50%, rgba(8, 13, 23, 0.38)),
    var(--esgep-hero-image) center/cover no-repeat;
}

.esgep-hero::after {
  background:
    radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.16), transparent 18rem),
    linear-gradient(180deg, transparent 52%, rgba(15, 25, 35, 0.96));
}

.esgep-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.4rem;
  max-width: 56rem;
}

.esgep-kicker,
.esgep-eyebrow {
  color: var(--esgep-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.esgep-hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.esgep-hero h1 span {
  display: block;
  margin-top: 0.35rem;
  color: transparent;
  background: linear-gradient(90deg, #f8d666, var(--esgep-primary), #fff0a6);
  -webkit-background-clip: text;
  background-clip: text;
}

.esgep-hero p {
  max-width: 42rem;
  margin: 0;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.75;
}

.esgep-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.esgep-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.esgep-hero__stats div {
  min-width: 10rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(11, 18, 32, 0.34);
  backdrop-filter: blur(12px);
}

.esgep-hero__stats strong,
.esgep-hero__stats small {
  display: block;
}

.esgep-hero__stats strong {
  font-size: 1.55rem;
  font-weight: 800;
}

.esgep-hero__stats small {
  margin-top: 0.15rem;
  color: var(--esgep-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.esgep-courses {
  padding: 0 2.5rem 3rem;
}

.esgep-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--esgep-border);
}

.esgep-section-heading h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.esgep-divider {
  width: 6.5rem;
  height: 0.28rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--esgep-primary), transparent);
}

.esgep-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.esgep-filter-tabs button {
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--esgep-text-muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.esgep-filter-tabs button:hover,
.esgep-filter-tabs button:focus-visible {
  border-color: rgba(212, 175, 55, 0.24);
  color: var(--esgep-primary);
}

.esgep-filter-tabs button.is-active {
  border-color: rgba(212, 175, 55, 0.32);
  background: rgba(212, 175, 55, 0.1);
  color: var(--esgep-primary);
}

.esgep-course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.esgep-course-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--esgep-border);
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(23, 34, 48, 0.92), rgba(15, 25, 35, 0.98)),
    var(--esgep-surface);
  box-shadow: var(--esgep-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.esgep-course-card:hover,
.esgep-course-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--esgep-border-strong);
  box-shadow: 0 32px 90px rgba(2, 6, 23, 0.5);
}

.esgep-course-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.esgep-course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.esgep-course-card:hover .esgep-course-card__media img,
.esgep-course-card:focus-within .esgep-course-card__media img {
  transform: scale(1.06);
}

.esgep-course-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.22));
}

.esgep-course-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.84);
  color: var(--esgep-primary);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.esgep-course-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem;
}

.esgep-course-card__category {
  margin: 0;
  color: var(--esgep-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.esgep-course-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 700;
}

.esgep-course-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.esgep-course-card h3 a:hover,
.esgep-course-card h3 a:focus-visible {
  color: var(--esgep-primary);
}

.esgep-course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  color: var(--esgep-text-muted);
  font-size: 0.82rem;
}

.esgep-course-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.esgep-course-card__meta .material-symbols-outlined {
  font-size: 1rem;
  color: var(--esgep-primary);
}

.esgep-course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--esgep-border);
}

.esgep-price small,
.esgep-price strong {
  display: block;
}

.esgep-price small {
  color: var(--esgep-text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.esgep-price strong,
.esgep-price strong span,
.esgep-price strong bdi {
  color: var(--esgep-text);
  font-size: 1.1rem;
  font-weight: 800;
}

.esgep-course-card__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.esgep-card-link,
.esgep-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  border-radius: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.esgep-card-link {
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--esgep-text);
  font-size: 0.8rem;
  font-weight: 700;
}

.esgep-card-link:hover,
.esgep-card-link:focus-visible {
  border-color: rgba(212, 175, 55, 0.36);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.esgep-card-icon {
  width: 2.65rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--esgep-primary);
}

.esgep-card-icon:hover,
.esgep-card-icon:focus-visible {
  border-color: rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, var(--esgep-primary), var(--esgep-primary-dark));
  color: #111827;
  transform: translateY(-1px);
}

.esgep-empty-state {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 15rem;
  margin-top: 1.25rem;
  padding: 2rem;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 1.5rem;
  background: rgba(11, 18, 32, 0.45);
  text-align: center;
}

.esgep-empty-state .material-symbols-outlined {
  font-size: 2.6rem;
  color: var(--esgep-primary);
}

.esgep-empty-state p {
  margin: 0;
  color: var(--esgep-text-muted);
}

.esgep-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.14), transparent 16rem),
    linear-gradient(135deg, rgba(11, 18, 32, 0.98), rgba(23, 34, 48, 0.96));
  box-shadow: var(--esgep-shadow);
}

.esgep-cta__copy {
  max-width: 42rem;
}

.esgep-cta h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.esgep-cta p {
  margin: 0;
  color: var(--esgep-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.esgep-footer {
  padding: 1.5rem 2.5rem 2rem;
  border-top: 1px solid var(--esgep-border);
  color: var(--esgep-text-muted);
  text-align: center;
}

.esgep-footer p {
  margin: 0;
  font-size: 0.88rem;
}

/* ============================
   Light mode – front page
   ============================ */

body.esgep-front-page.esgep-light {
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.06), transparent 24rem),
    radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.04), transparent 24rem),
    #f8f9fb;
  color: #1a1a2e;
}

body.esgep-light .esgep-main {
  background: #f8f9fb;
  color: #1a1a2e;
}

/* Hero */
body.esgep-light .esgep-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82) 50%, rgba(255, 255, 255, 0.3)),
    var(--esgep-hero-image) center/cover no-repeat;
}

body.esgep-light .esgep-hero::after {
  background:
    radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.08), transparent 18rem),
    linear-gradient(180deg, transparent 52%, rgba(248, 249, 251, 0.92));
}

body.esgep-light .esgep-hero h1 {
  color: #1a1a2e;
}

body.esgep-light .esgep-hero h1 span {
  background: linear-gradient(90deg, #9a7b1a, #b89628, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.esgep-light .esgep-hero p {
  color: #475569;
}

body.esgep-light .esgep-kicker,
body.esgep-light .esgep-eyebrow {
  color: #9a7b1a;
}

body.esgep-light .esgep-hero__stats div {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
}

body.esgep-light .esgep-hero__stats strong {
  color: #1a1a2e;
}

body.esgep-light .esgep-hero__stats small {
  color: #64748b;
}

/* Section heading */
body.esgep-light .esgep-section-heading {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.esgep-light .esgep-section-heading h2 {
  color: #1a1a2e;
}

/* Filter tabs */
body.esgep-light .esgep-filter-tabs button {
  color: #64748b;
}

body.esgep-light .esgep-filter-tabs button:hover,
body.esgep-light .esgep-filter-tabs button:focus-visible {
  color: #9a7b1a;
  border-color: rgba(212, 175, 55, 0.24);
}

body.esgep-light .esgep-filter-tabs button.is-active {
  color: #9a7b1a;
  border-color: rgba(212, 175, 55, 0.32);
  background: rgba(212, 175, 55, 0.08);
}

/* Course cards */
body.esgep-light .esgep-course-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

body.esgep-light .esgep-course-card:hover,
body.esgep-light .esgep-course-card:focus-within {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

body.esgep-light .esgep-course-card h3,
body.esgep-light .esgep-course-card h3 a {
  color: #1a1a2e;
}

body.esgep-light .esgep-course-card h3 a:hover,
body.esgep-light .esgep-course-card h3 a:focus-visible {
  color: #9a7b1a;
}

body.esgep-light .esgep-course-card__category {
  color: #9a7b1a;
}

body.esgep-light .esgep-course-card__meta {
  color: #64748b;
}

body.esgep-light .esgep-course-card__footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

body.esgep-light .esgep-price small {
  color: #64748b;
}

body.esgep-light .esgep-price strong,
body.esgep-light .esgep-price strong span,
body.esgep-light .esgep-price strong bdi {
  color: #1a1a2e;
}

body.esgep-light .esgep-card-link {
  color: #1a1a2e;
  border-color: rgba(0, 0, 0, 0.12);
}

body.esgep-light .esgep-card-link:hover,
body.esgep-light .esgep-card-link:focus-visible {
  border-color: rgba(212, 175, 55, 0.36);
  background: rgba(212, 175, 55, 0.06);
}

body.esgep-light .esgep-card-icon {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
}

body.esgep-light .esgep-course-card__badge {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(212, 175, 55, 0.24);
  color: #9a7b1a;
}

/* Empty state */
body.esgep-light .esgep-empty-state {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
}

body.esgep-light .esgep-empty-state p {
  color: #64748b;
}

/* CTA section */
body.esgep-light .esgep-cta {
  border-color: rgba(0, 0, 0, 0.08);
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 16rem),
    linear-gradient(135deg, #ffffff, #f1f5f9);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

body.esgep-light .esgep-cta h3 {
  color: #1a1a2e;
}

body.esgep-light .esgep-cta p {
  color: #475569;
}

/* Divider */
body.esgep-light .esgep-divider {
  background: linear-gradient(90deg, #9a7b1a, transparent);
}

@media (max-width: 1200px) {
  .esgep-course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .esgep-app {
    grid-template-columns: minmax(0, 1fr);
  }

  .esgep-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 20rem);
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 100;
  }

  body.esgep-sidebar-open .esgep-sidebar {
    transform: translateX(0);
  }

  body.esgep-sidebar-open .esgep-mobile-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .esgep-sidebar__close,
  .esgep-sidebar__toggle {
    display: inline-flex;
  }

  .esgep-sidebar__collapse {
    display: none;
  }

  body.esgep-sidebar-collapsed .esgep-app {
    grid-template-columns: minmax(0, 1fr);
  }

  body.esgep-sidebar-collapsed .esgep-nav a .esgep-nav__label {
    display: inline;
  }

  body.esgep-sidebar-collapsed .esgep-brand__copy,
  body.esgep-sidebar-collapsed .esgep-user__meta {
    display: flex;
  }

  body.esgep-sidebar-collapsed .esgep-nav a {
    justify-content: flex-start;
    padding: 0.95rem 1rem;
    gap: 0.8rem;
  }

  body.esgep-sidebar-collapsed .esgep-brand__link {
    justify-content: flex-start;
  }

  body.esgep-sidebar-collapsed .esgep-user {
    justify-content: flex-start;
  }

  .esgep-nav a[data-tooltip]::after {
    display: none;
  }

  .esgep-topbar {
    padding: 1rem 1.25rem;
  }

  .esgep-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .esgep-hero,
  .esgep-courses,
  .esgep-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .esgep-section-heading,
  .esgep-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .esgep-filter-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 782px) {
  body.esgep-front-page.admin-bar {
    --esgep-admin-offset: 46px;
  }
}

@media (max-width: 767px) {
  .esgep-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .esgep-topbar__search,
  .esgep-topbar__actions {
    width: 100%;
  }

  .esgep-topbar__actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .esgep-button {
    flex: 1 1 auto;
  }

  .esgep-hero {
    min-height: 30rem;
    padding-top: 3rem;
  }

  .esgep-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .esgep-course-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575px) {
  .esgep-hero h1 {
    font-size: 2.4rem;
  }

  .esgep-hero p,
  .esgep-cta p {
    font-size: 0.96rem;
  }

  .esgep-hero__stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .esgep-course-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .esgep-course-card__actions {
    width: 100%;
  }

  .esgep-card-link {
    flex: 1 1 auto;
  }
}
