/* v278 – "סביבת לימוד": the learning environment of the doctors' portal (loaded only on its pages, the login page and "מערכת למידה") */

/* the strip on top of every page */
.lrn-bar { background: linear-gradient(90deg, #013856 0%, #0a4b70 45%, #026d75 100%); color: #fff; font-size: 14px; }
.lrn-bar-in { display: flex; align-items: center; gap: 12px; min-height: 46px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.lrn-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--navy); font-weight: 800; border-radius: 999px; padding: 3px 12px 3px 10px; white-space: nowrap; }
.lrn-tag svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lrn-msg { opacity: .9; flex: 1 1 260px; }
.lrn-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lrn-btn { font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 5px 12px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s; }
.lrn-btn:hover { background: rgba(255,255,255,.24); }
.lrn-btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.lrn-btn-gold:hover { background: #f0b84f; }

/* the guided tour */
.lrn-hole { position: fixed; z-index: 1000; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(1, 26, 41, .58), 0 0 0 3px var(--gold), 0 0 0 9px rgba(228,165,51,.28);
  transition: top .28s ease, left .28s ease, width .28s ease, height .28s ease; }
.lrn-hole.no-target { width: 0 !important; height: 0 !important; top: 50% !important; left: 50% !important; box-shadow: 0 0 0 9999px rgba(1, 26, 41, .58); }
.lrn-card { position: fixed; z-index: 1001; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(440px, calc(100vw - 32px));
  background: #fff; border-radius: 22px; padding: 20px 22px 16px; box-shadow: 0 24px 60px rgba(1,26,41,.35); animation: lrn-in .25s ease; }
.lrn-card.lrn-center { bottom: auto; top: 50%; transform: translate(-50%, -50%); }
@keyframes lrn-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.lrn-card.lrn-center { animation: none; }
.lrn-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.lrn-count { font-size: 13px; font-weight: 700; color: var(--teal); }
.lrn-x { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.lrn-x:hover { background: var(--bg); }
.lrn-card h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.01em; }
.lrn-card p { margin: 0 0 14px; color: #3c4b56; font-size: 16px; line-height: 1.55; }
.lrn-dots { display: flex; gap: 5px; margin-bottom: 14px; }
.lrn-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.lrn-dots i.on { background: var(--teal); width: 20px; border-radius: 4px; }
.lrn-nav { display: flex; gap: 8px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.lrn-nav .btn { padding: 9px 16px; }
.lrn-nav .lrn-next-page { background: var(--gold); color: var(--navy); }
.lrn-nav .lrn-next-page:hover { background: var(--gold-d); color: #fff; }

/* the join form */
.lrn-join { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 48px 0;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(24,139,146,.18), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(228,165,51,.16), transparent 60%), var(--bg); }
.lrn-join-card { background: #fff; border-radius: 28px; padding: 34px 30px 26px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px rgba(1,56,86,.12); text-align: center; }
.lrn-join-card .form { text-align: right; margin-top: 18px; }
.lrn-join-ic { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, #1fa3ab, #026d75); box-shadow: 0 10px 24px rgba(2,109,117,.3); }
.lrn-join-ic svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lrn-eyebrow { color: var(--gold-d); font-weight: 800; margin: 0 0 4px; letter-spacing: .01em; }
.lrn-join-card h1 { margin: 0; font-size: 34px; font-weight: 900; letter-spacing: -.02em; color: #1d1d1f; }
.lrn-lead { color: #6e6e73; font-size: 18px; margin: 8px 0 0; }
.lrn-fine { color: var(--muted); font-size: 13px; margin: 14px 0 0; line-height: 1.5; }

/* the opening page */
.lrn-hero { background: linear-gradient(160deg, #f7fafb 0%, #eef5f7 100%); padding: 64px 0 52px; border-bottom: 1px solid var(--line); }
.lrn-hero h1 { margin: 0; color: #1d1d1f; font-size: clamp(38px, 6vw, 68px); line-height: 1.04; font-weight: 900; letter-spacing: -.03em; }
.lrn-grad { background: linear-gradient(90deg, var(--gold) 0%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lrn-sub { margin: 16px 0 0; font-size: 20px; color: #6e6e73; max-width: 640px; }
.lrn-done .lrn-sub { margin-inline: auto; }
.lrn-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.lrn-done .lrn-cta { justify-content: center; }
.lrn-ghost { background: #fff; }
.lrn-safe { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--teal-d); font-weight: 600; font-size: 15px; }
.lrn-body { background: #f2f5f7; }
.lrn-h2 { margin: 0 0 18px; font-size: 30px; font-weight: 900; letter-spacing: -.02em; color: #1d1d1f; }
.lrn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.lrn-tile { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 24px; padding: 22px 22px 18px;
  text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(15,40,60,.06); transition: transform .2s, box-shadow .2s; }
.lrn-tile:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 40px rgba(15,40,60,.11); }
.lrn-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex: none; margin-bottom: 6px;
  background: linear-gradient(145deg, #1fa3ab, #026d75); box-shadow: 0 6px 14px rgba(2,109,117,.25); }
.lrn-ic svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lt-navy .lrn-ic { background: linear-gradient(145deg, #0d5a85, #013856); box-shadow: 0 6px 14px rgba(1,56,86,.25); }
.lt-gold .lrn-ic { background: linear-gradient(145deg, #e8c26a, #c9962e); box-shadow: 0 6px 14px rgba(201,150,46,.3); }
.lt-red .lrn-ic { background: linear-gradient(145deg, #e0675f, #b83a33); box-shadow: 0 6px 14px rgba(184,58,51,.25); }
.lrn-tt { font-size: 21px; font-weight: 800; color: #1d1d1f; letter-spacing: -.01em; }
.lrn-td { color: #5f6b73; font-size: 15px; line-height: 1.5; flex: 1; }
.lrn-go { color: var(--teal-d); font-weight: 700; font-size: 14px; margin-top: 4px; }
.lrn-status { margin-top: 16px; border-radius: 24px; padding: 24px; border: 0; }
.lrn-status-head { display: flex; gap: 14px; align-items: flex-start; }
.lrn-status-head h3 { margin: 2px 0 2px; font-size: 21px; }
.lrn-status-head p { margin: 0; }
.lrn-steps { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; counter-reset: s; }
.lrn-steps li { position: relative; border-radius: 16px; padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.lrn-steps li:not(:last-child)::after { content: '←'; position: absolute; left: -9px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; z-index: 1; }
.lrn-steps b { font-size: 15px; }
.lrn-steps small { font-size: 13px; opacity: .85; line-height: 1.4; }
.lrn-sn { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.7); display: grid; place-items: center; font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.lrn-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.lrn-tips div { background: #fff; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.lrn-tips span { color: var(--muted); font-size: 14px; }
.lrn-done-ic { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 44px; font-weight: 900; color: #fff;
  background: linear-gradient(145deg, #2fb36a, #1f8a4c); box-shadow: 0 12px 30px rgba(31,138,76,.3); }
.lrn-join-us { text-align: center; border-radius: 24px; padding: 28px; }
.lrn-join-us h2 { margin: 0 0 6px; }

/* the login page: a small card */
.lrn-login-card { display: flex; gap: 12px; align-items: center; margin-top: 16px; background: linear-gradient(135deg, #fdf6e6, #eef7f8); border: 1px solid #f0dfb5;
  border-radius: 16px; padding: 14px 16px; }
.lrn-login-card small { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lrn-login-ic { font-size: 28px; }

/* "מערכת למידה" (admin) */
.lrn-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0 16px; }
.lrn-stats .card { text-align: center; padding: 16px; margin: 0; }
.lrn-stats strong { display: block; font-size: 30px; color: var(--navy); line-height: 1.2; }
.lrn-search { display: flex; gap: 8px; margin-bottom: 14px; }
.lrn-search input { flex: 1; }
.lrn-wa { font-size: 12px; font-weight: 700; color: #128c4a; background: #e7f7ee; border-radius: 6px; padding: 1px 6px; text-decoration: none; margin-inline-start: 4px; }

@media (max-width: 860px) {
  .lrn-steps { grid-template-columns: 1fr; }
  .lrn-steps li { flex-direction: row; align-items: center; gap: 10px; }
  .lrn-steps li:not(:last-child)::after { content: '↓'; left: auto; right: 22px; top: auto; bottom: -15px; transform: none; }
  .lrn-sn { margin: 0; }
  .lrn-steps small { margin-inline-start: auto; text-align: left; }
  .lrn-tips, .lrn-stats { grid-template-columns: 1fr 1fr; }
  .lrn-msg { display: none; }
  .lrn-hero { padding: 40px 0 34px; }
}
@media (max-width: 520px) {
  .lrn-tips { grid-template-columns: 1fr; }
  .lrn-card { bottom: 12px; padding: 16px 18px 14px; }
  .lrn-join-card { padding: 26px 18px 20px; border-radius: 22px; }
}
@media print { .lrn-bar, .lrn-hole, .lrn-card { display: none !important; } }
