/* Shared learner navigation: accessible desktop dropdowns and a real mobile menu */
.frcr-header {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:rgba(255,255,255,.96); border-bottom:1px solid #e4eaf3;
  box-shadow:0 1px 0 rgba(20,37,65,.02); backdrop-filter:blur(16px);
}
.frcr-header * { box-sizing:border-box; }
.frcr-header-container {
  max-width:1240px; min-height:76px; margin:0 auto; padding:12px 24px;
  display:flex; align-items:center; gap:30px; justify-content:space-between;
}
.frcr-logo { display:inline-flex; align-items:center; gap:10px; min-width:0; color:#172c4a; text-decoration:none; flex:none; }
.frcr-logo img { display:block; width:auto; height:44px; max-width:170px; object-fit:contain; flex:none; }
.frcr-primary-nav { margin-left:auto; min-width:0; }
.frcr-nav-menu { display:flex; align-items:center; gap:5px; list-style:none; margin:0; padding:0; }
.frcr-nav-menu li { list-style:none; }
.frcr-nav-link {
  display:inline-flex; gap:6px; align-items:center; padding:10px 11px;
  color:#495f7a; background:transparent; border:0; border-radius:9px;
  text-decoration:none; font-size:.86rem; line-height:1.3; font-weight:680;
  cursor:pointer; font-family:inherit; white-space:nowrap; transition:background .18s,color .18s;
}
.frcr-nav-link:hover,.frcr-nav-link:focus-visible { color:#0f52ba; background:#edf5ff; }
.frcr-nav-link:focus-visible,.frcr-theme-toggle:focus-visible,.frcr-menu-toggle:focus-visible,.frcr-btn-header:focus-visible { outline:3px solid #76b7ff; outline-offset:2px; }
.frcr-nav-details { position:relative; }
.frcr-nav-details > summary { list-style:none; }
.frcr-nav-details > summary::-webkit-details-marker { display:none; }
.frcr-nav-details > summary i { color:#7890af; font-size:.65rem; margin-left:3px; }
.frcr-nav-details[open] > summary { color:#0f52ba; background:#edf5ff; }
.frcr-dropdown {
  min-width:240px; position:absolute; left:0; top:calc(100% + 13px); margin:0;
  background:#fff; padding:9px; box-shadow:0 20px 55px rgba(14,40,75,.17);
  border:1px solid #e0e8f2; border-radius:14px; display:grid; gap:2px; z-index:5;
}
.frcr-dropdown .frcr-nav-link { display:flex; width:100%; align-items:flex-start; flex-direction:column; padding:12px 13px; white-space:normal; font-weight:780; color:#173451; }
.frcr-dropdown .frcr-nav-link:hover { color:#0f52ba; }
.frcr-dropdown .frcr-nav-link[aria-current="page"] { background:#e9f3ff; color:#0f52ba; }
.frcr-dropdown .frcr-nav-link small { display:block; color:#7186a1; font-size:.72rem; font-weight:520; margin-top:4px; }
/* Keep upcoming courses visible without allowing navigation. The href routes are retained. */
.frcr-dropdown .frcr-nav-link--coming-soon { pointer-events:none; cursor:default; }
.frcr-dropdown .frcr-nav-link--coming-soon:hover { color:#173451; background:transparent; }
.frcr-coming-soon-label {
  display:inline-flex; align-items:center; margin-top:7px; border-radius:99px;
  padding:3px 7px; font-size:.65rem; font-weight:800; line-height:1.2;
  color:#754700; background:#fff1c9; border:1px solid #f6d898;
}
.frcr-nav-theme { margin-inline:5px; }
.frcr-theme-toggle { height:38px; width:38px; display:grid; place-items:center; border:1px solid #dfe8f4; border-radius:10px; color:#365575; background:#f8faff; cursor:pointer; }
.frcr-theme-toggle:hover { background:#eaf2fc; }
.frcr-btn-header,.frcr-nav-menu a[href$="/register"] {
  background:#0f52ba; color:#fff; font-family:inherit; border:1px solid #0f52ba;
  border-radius:9px; padding:10px 14px; font-weight:750; font-size:.84rem;
  text-decoration:none; line-height:1.3; cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
}
.frcr-btn-header:hover,.frcr-nav-menu a[href$="/register"]:hover { color:#fff; background:#0b429a; }
.frcr-menu-toggle { display:none; align-items:center; gap:9px; border:1px solid #dfe8f4; background:#fff; border-radius:10px; padding:9px 12px; color:#1f3a59; cursor:pointer; font-size:.9rem; font-weight:700; }
[data-theme="dark"] .frcr-header { background:rgba(12,23,41,.97); border-color:#293b55; }
[data-theme="dark"] .frcr-logo { color:#f3f7fd; }
[data-theme="dark"] .frcr-nav-link { color:#c4d4e8; }
[data-theme="dark"] .frcr-nav-link:hover,[data-theme="dark"] .frcr-nav-details[open] > summary { background:#1b3555; color:#a7d3ff; }
[data-theme="dark"] .frcr-dropdown { background:#142740; border-color:#32475f; }
[data-theme="dark"] .frcr-dropdown .frcr-nav-link { color:#f4f7ff; }
[data-theme="dark"] .frcr-dropdown .frcr-nav-link small { color:#b2c5dc; }
[data-theme="dark"] .frcr-dropdown .frcr-nav-link--coming-soon:hover { color:#f4f7ff; background:transparent; }
[data-theme="dark"] .frcr-dropdown .frcr-nav-link[aria-current="page"] { background:#1b3555; color:#c7e4ff; }
[data-theme="dark"] .frcr-theme-toggle,[data-theme="dark"] .frcr-menu-toggle { color:#eff6ff; border-color:#3a516f; background:#172d49; }
[data-theme="dark"] .frcr-nav-menu a[href$="/register"] { color:#fff; }
@media(max-width:1170px) {
  .frcr-header-container { min-height:72px; padding:12px 20px; }
  .frcr-menu-toggle { display:inline-flex; margin-left:auto; }
  .frcr-primary-nav { display:none; position:absolute; top:calc(100% - 1px); left:0; right:0; background:#fff; border-bottom:1px solid #dfe8f4; box-shadow:0 22px 28px rgba(12,34,65,.12); max-height:calc(100dvh - 72px); overflow:auto; padding:13px 20px 20px; }
  .frcr-primary-nav.is-open { display:block; }
  .frcr-nav-menu { max-width:800px; margin:0 auto; display:flex; flex-direction:column; align-items:stretch; gap:5px; }
  .frcr-nav-menu > li,.frcr-nav-link { width:100%; }
  .frcr-nav-link { padding:12px 14px; font-size:.95rem; justify-content:space-between; }
  .frcr-nav-details > summary { display:flex; justify-content:space-between; }
  .frcr-dropdown { position:static; min-width:0; box-shadow:none; margin:4px 0 8px; width:100%; padding:5px; background:#f4f8fd; border-radius:10px; }
  .frcr-dropdown .frcr-nav-link { padding:11px 15px; }
  .frcr-nav-theme { margin:0; }
  .frcr-theme-toggle { width:100%; height:42px; }
  .frcr-nav-menu > li form { width:100%; }
  .frcr-nav-menu .frcr-btn-header,.frcr-nav-menu a[href$="/register"] { width:100%; justify-content:center; padding:13px; }
  [data-theme="dark"] .frcr-primary-nav { background:#102039; border-color:#2a3c55; }
  [data-theme="dark"] .frcr-dropdown { background:#172c47; }
}
@media(max-width:440px) {
  .frcr-header-container { padding-inline:15px; }
  .frcr-logo img { height:36px; max-width:138px; }
  .frcr-menu-toggle { padding:9px 10px; }
}
