/* ===== Lyceum Header — scoped to .ly-site-header ===== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

.ly-site-header {
  --ly-primary: #2BAA83;
  --ly-primary-dark: #218E76;
  --ly-deep: #0B4E53;
  --ly-deeper: #063743;
  --ly-mint: #EAF8F3;
  --ly-soft: #F4FBF8;
  --ly-text: #12363D;
  --ly-muted: #60777B;
  --ly-border: #DCECE7;
  --ly-white: #FFFFFF;
  --ly-gold: #F5B942;
  --ly-shadow: 0 18px 50px rgba(6,55,67,.10);
  --ly-shadow-sm: 0 8px 24px rgba(6,55,67,.08);
  font-family: Inter, Arial, sans-serif;
  color: var(--ly-text);
}

.ly-site-header * { box-sizing: border-box; }
.ly-site-header a { color: inherit; text-decoration: none; }
.ly-site-header img { max-width: 100%; display: block; }
.ly-site-header button, .ly-site-header input { font: inherit; }

.ly-site-header .ly-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.ly-site-header .ly-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 180px;
}

.ly-site-header .ly-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.ly-site-header .ly-brand-name {
  font-family: Manrope, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--ly-deep);
}

.ly-site-header .ly-topbar {
  background: var(--ly-deeper);
  color: #fff;
  font-size: 13px;
}

.ly-site-header .ly-topbar-inner {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.ly-site-header .ly-topbar-links {
  display: flex;
  gap: 18px;
  opacity: .94;
}

.ly-site-header.ly-header {
  position: relative;
  z-index: 30;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220,236,231,.9);
}

.ly-site-header .ly-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ly-site-header .ly-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}

.ly-site-header .ly-menu a:hover { color: var(--ly-primary-dark) !important; }

.tu-navbar .navbar-collapse .navbar-nav > .nav-item > a {
  position: relative;
  font-weight: 600 !important;
  padding: 0px 10px !important;
}

/* ---- Actual rendered nav markup: Bootstrap collapse + dropdown submenus ---- */
.ly-site-header .tu-themenav {
  background: transparent;
  box-shadow: none;
  position: static;
}

.ly-site-header .navbar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  margin-top: 5px;
  padding: 0;
}

.ly-site-header .navbar-nav > .nav-item {
  position: relative;
  list-style: none;
}

.ly-site-header .navbar-nav > .nav-item > a {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--ly-text);
  font-weight: 600;
  font-size: 14px;
}

.ly-site-header .navbar-nav > .nav-item > a:hover {
  color: var(--ly-primary-dark) !important;
}

.ly-site-header .navbar-nav > .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .6;
}

.ly-site-header .sub-menu {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--ly-border);
  border-radius: 12px;
  box-shadow: var(--ly-shadow-sm);
  z-index: 40;
}

.ly-site-header .sub-menu li {
  list-style: none;
}

.ly-site-header .sub-menu li a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ly-text);
  white-space: nowrap;
}

.ly-site-header .sub-menu li a:hover {
  background: var(--ly-mint);
  color: var(--ly-primary-dark);
}

.ly-site-header .ly-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ly-site-header .ly-btn {
  min-height: 46px;
  padding: 0 21px;
  border-radius: 11px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: .22s ease;
}

.ly-site-header .ly-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--ly-shadow-sm);
}

.ly-site-header .ly-btn-primary {
  background: linear-gradient(135deg, var(--ly-primary), var(--ly-primary-dark));
  color: #fff;
}

.ly-site-header .ly-login {
  display: inline-flex;
  align-items: center;
}

/* .ly-mobile-toggle has no data-bs-toggle/data-bs-target — it does not
   open the menu. The real, working toggle is .tu-menu (styled by the
   theme's main.css). Keep this one hidden everywhere to avoid a dead
   button confusing users. */
.ly-site-header .ly-mobile-toggle {
  display: none !important;
  border: 0;
  background: transparent;
  color: var(--ly-deep);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
}

.ly-site-header .ly-svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1024px) {
  .ly-site-header .ly-menu { display: none; }

  /* Real markup: Bootstrap's .collapse handles show/hide (adds .show when open) */
  .ly-site-header .tu-themenav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--ly-border);
    box-shadow: var(--ly-shadow-sm);
    padding: 16px 20px;
  }
  .ly-site-header .tu-themenav.show {
    display: block;
  }
  .ly-site-header .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .ly-site-header .navbar-nav > .nav-item {
    width: 100%;
  }
  .ly-site-header .navbar-nav > .nav-item > a {
    width: 100%;
    padding: 10px 4px;
  }
  .ly-site-header .sub-menu {
    position: static;
    box-shadow: none;
    border: 0;
    background: var(--ly-soft);
    margin: 0 0 4px;
  }

  /* Keep Log In / Join Lyceum visible at every mobile width — the
     dropdown nav panel has no equivalent links for guests, so hiding
     these leaves no way to log in or sign up. Just tighten to fit. */
  .ly-site-header .ly-actions { gap: 6px; }
  .ly-site-header .ly-actions .ly-btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
  .ly-site-header .ly-actions .ly-login {
    font-size: 13px;
    padding: 0 6px;
  }
}

@media (max-width: 720px) {
  .ly-site-header .ly-container { width: min(100% - 24px, 1180px); }
  .ly-site-header .ly-topbar-links { display: none; }
  .ly-site-header .ly-topbar-inner { justify-content: center; text-align: center; }
  .ly-site-header .ly-brand-name { font-size: 21px; }
  .ly-site-header .ly-brand img { width: 38px; height: 38px; }
}