:root {
  --oe-primary: #2563eb;
  --oe-purple: #6d5dfc;
}

.oe-site-header {
  width: 100%;
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.10);
  box-shadow: 0 8px 24px rgba(38, 71, 140, 0.06);
  margin-bottom: 22px;
}

.oe-header-inner {
  max-width: 1220px;
  min-height: 82px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  position: relative;
}

/* Override legacy public header inner rules from teacher-panel.css */
.oe-tp-pubHeader__inner.oe-header-inner {
  max-width: 1220px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 28px !important;
  box-sizing: border-box !important;
}

.oe-header-logo {
  display: flex;
  align-items: center;
  min-width: 170px;
}

.oe-header-logo img {
  height: 62px;
  max-height: 62px;
  width: auto;
  object-fit: contain;
  display: block;
}

.oe-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
}

.oe-header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 82px;
  color: #101936;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: color .2s ease;
}

.oe-header-nav a:hover,
.oe-header-nav a.active,
.oe-header-nav a[aria-current="page"],
.oe-header-nav .current-menu-item > a {
  color: #2563eb;
}

.oe-header-nav a.active::after,
.oe-header-nav a[aria-current="page"]::after,
.oe-header-nav .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #6d5dfc);
  transform: translateX(-50%);
}

.oe-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 180px;
}

.oe-header-actions a {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

.oe-header-actions a:first-child {
  color: #2563eb;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.oe-header-actions a:last-child {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #6d5dfc);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.oe-header-actions a:hover {
  transform: translateY(-2px);
}

/* Mobile nav: uses plugin JS toggling .is-open on #oe-tp-pubnav */
@media (max-width: 768px) {
  .oe-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
    padding: 12px 14px;
  }

  .oe-tp-pubHeader__inner.oe-header-inner {
    padding: 12px 14px !important;
  }

  .oe-header-logo {
    min-width: 0;
  }

  .oe-header-logo img {
    height: 46px;
    max-height: 46px;
  }

  .oe-header-actions {
    min-width: auto;
    gap: 10px;
  }

  .oe-tp-pubNav__toggle {
    display: inline-flex;
  }

  .oe-header-nav {
    display: none;
    position: absolute;
    right: 14px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 14px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(38, 71, 140, 0.14);
    min-width: 240px;
    z-index: 110;
  }

  .oe-header-nav.is-open {
    display: flex;
  }

  .oe-header-nav a {
    min-height: 40px;
    justify-content: flex-start;
    padding: 6px 8px;
  }

  .oe-header-nav a.active::after,
  .oe-header-nav a[aria-current="page"]::after,
  .oe-header-nav .current-menu-item > a::after {
    bottom: 2px;
  }
}

@media (max-width: 560px) {
  .oe-header-actions a {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }
}

