/* ===== אנימציית קישורי פוטר — זהה לסגנון "עוד קצת עלי" ===== */
.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  outline-offset: 3px;
}
.footer-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -2px;
  width: 0;
  height: 2px;
  background: #fff; /* כמו ב-about-links */
  transition: width 0.25s ease;
}
.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  width: 100%;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

/* ב-light mode הצבעים ביטחוניים יותר */
@media (prefers-color-scheme: light) {
  .footer-links a {
    color: #374151;
  }
  .footer-links a::after {
    background: #111;
  }
  .footer-links a:hover,
  .footer-links a:focus-visible {
    color: #111;
  }
}

/* ===== כפתור סגירה של מודל תנאי שימוש ===== */
.btn-primary {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.btn-primary[disabled],
.btn-primary[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary:hover {
  background: #ffffff;
  color: var(--accent);
}

/* שיפור פוקוס לצ'קבוקס */
#terms-consent:focus-visible {
  outline: 3px dashed #fff;
  outline-offset: 4px;
}

[data-form="ea374082-a768-11f0-a220-6b4a753f8c14"] .modal-container-inner,
[data-form="ea374082-a768-11f0-a220-6b4a753f8c14"].inline-container {
  background-color: none !important;
  border: none !important;
}

[data-form="ea374082-a768-11f0-a220-6b4a753f8c14"]
  .emailoctopus-form
  input[type="submit"]:hover {
  color: var(--button-colour) !important;
  background-color: var(--button-text-colour) !important;
}

/* ===== Newsletter overrides (Dark mode only) ===== */
@media (prefers-color-scheme: dark) {
  /* כל הטקסטים בתוך הפורם המוזרק – לבן */
  [data-form="ea374082-a768-11f0-a220-6b4a753f8c14"] .modal-container-inner,
  [data-form="ea374082-a768-11f0-a220-6b4a753f8c14"].inline-container {
    background-color: none !important;
    border: none !important;
    border-color: none !important;
    background: none !important;
  }

  [data-form="ea374082-a768-11f0-a220-6b4a753f8c14"] *,
  [data-form="ea374082-a768-11f0-a220-6b4a753f8c14"] :after,
  [data-form="ea374082-a768-11f0-a220-6b4a753f8c14"] :before {
    color: white !important;
  }
}

:root {
  --bg: #0f1419;
  --card: #0b1220;
  --muted: #9aa4af;
  --text: #e5e7eb;
  --accent: #2456ff;
  --drawer-bg: #000;
  --drawer-border: #242424;
  --overlay: rgba(0, 0, 0, 0.5);
  --container: 1200px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --card: #ffffff;
    --muted: #6b7280;
    --text: #0b1220;
    --drawer-bg: #fff;
    --drawer-border: #e5e7eb;
    --overlay: rgba(0, 0, 0, 0.3);
  }
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px;
}

header[data-eli-mobile-nav] {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header[data-eli-mobile-nav] .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
header[data-eli-mobile-nav] .brand .logo {
  width: auto;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
header[data-eli-mobile-nav] nav {
  display: none;
}

#eli-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #ffffff;
  background: #000;
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 2147483647;
}
@media (prefers-color-scheme: light) {
  #eli-nav-toggle {
    border-color: #e5e7eb;
    background: #fff;
    color: #111;
  }
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 998;
  display: none;
}
body.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
  display: block;
}
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(86vw, 360px);
  background: var(--drawer-bg);
  color: var(--text);
  border-inline-start: 1px solid var(--drawer-border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  display: none;
  flex-direction: column;
}
body.drawer-open .drawer {
  transform: translateX(0);
  display: flex;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--drawer-border);
  height: 56px;
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}
.drawer-brand .logo {
  width: auto;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  height: 36px;
  width: 36px;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}
.drawer-close:focus-visible {
  outline: 3px dashed #fff;
  outline-offset: 4px;
}

.menu {
  padding: 8px 0;
  overflow: auto;
}
.menu-section {
  border-bottom: 1px solid var(--drawer-border);
}
.menu-toggle {
  width: 100%;
  text-align: inherit;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 700;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.menu-toggle .chev {
  transition: transform 0.25s ease;
}
.menu-toggle[aria-expanded="true"] .chev {
  transform: rotate(-90deg);
}
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.submenu a {
  display: block;
  padding: 10px 22px 10px 16px;
  text-decoration: none;
  border-radius: 8px;
  color: #fff;
}
.submenu a:visited {
  color: #fff;
}
.submenu a:hover {
  background: #111;
}
@media (prefers-color-scheme: light) {
  .submenu a {
    color: #111;
  }
  .submenu a:visited {
    color: #111;
  }
  .submenu a:hover {
    background: #f1f5ff;
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: center;
  margin-top: 18px;
}
.hero-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.4)
  );
  border-radius: 12px;
  padding: 28px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(18, 31, 64, 0.06);
}
.eyebrow {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}
h1 {
  margin: 8px 0 12px;
  font-size: 34px;
  line-height: 1.05;
}
h2 {
  margin: 0 0 12px;
  font-size: 28px;
}
p.lead {
  color: var(--muted);
  margin: 0 0 18px;
}
.search {
  display: flex;
  gap: 8px;
}
.search input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e6e9ef;
  background: white;
  font-size: 16px;
  min-width: 0;
}
.search button {
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.search button:hover {
  background: white;
  color: var(--accent);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.stat {
  background: var(--card);
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat .small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.stat .big {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.about {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.about .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  flex: 0 0 auto;
}
.about .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about div {
  flex: 1;
}
.about a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
  display: inline-block;
}

.about-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.about-links a {
  position: relative;
  text-decoration: none;
}
.about-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -2px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.25s;
}
.about-links a:hover::after,
.about-links a:focus-visible::after {
  width: 100%;
}
.about-links a:hover,
.about-links a:focus-visible {
  color: #fff;
}

#about-more-link {
  margin-inline-start: auto;
}
@media (max-width: 600px) {
  .about-links {
    flex-direction: column;
    align-items: center;
  }
  #about-more-link {
    margin-inline-start: 0;
  }
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 14px;
}
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.thumb {
  height: 140px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.title {
  font-weight: 700;
}
.instructor {
  font-size: 13px;
  color: var(--muted);
}
.newsletter {
  background: var(--card);
  margin-top: 40px;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.newsletter input {
  padding: 10px 14px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  width: 260px;
  max-width: 80%;
}
.newsletter button {
  padding: 10px 14px;
  margin-top: 1rem;
  background: var(--accent);
  border: none;
  color: white;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.newsletter button:hover {
  background: white;
  color: var(--accent);
}
footer {
  margin-top: 36px;
  padding: 26px 14px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.modal-container-inner,
.inline-container {
  background-color: none !important;
  color: none !important;
  border-color: none !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
@media (prefers-color-scheme: dark) {
  .stat {
    border-color: #1f2937;
  }
  .search input {
    background: #0b1220;
    color: #e5e7eb;
    border-color: #1f2937;
  }
}
#a11y-button {
  position: fixed;
  top: 0rem;
  right: 0rem;
  left: auto;
  width: 35px;
  height: 35px;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 9998;
}
#a11y-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}
#a11y-button:focus-visible {
  outline: 3px dashed #fff;
  outline-offset: 4px;
}
#a11y-panel {
  position: fixed;
  top: 48px;
  left: auto;
  width: min(92vw, 360px);
  background: #111;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  padding: 0.75rem;
  z-index: 9999;
  display: none;
  right: 0.75rem;
}
#a11y-panel[aria-hidden="false"] {
  display: block;
}
.a11y-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}
.a11y-panel__row + .a11y-panel__row {
  margin-top: 0.25rem;
}
.a11y-panel__label {
  font-size: 0.95rem;
}
.a11y-panel__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.a11y-btn {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  min-height: 44px;
}
.a11y-btn[aria-pressed="true"] {
  outline: 2px solid #0bf;
}
.a11y-small {
  font-size: 0.9rem;
}
#a11y-panel .a11y-close {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
#a11y-panel .a11y-close:focus-visible {
  outline: 3px dashed #fff;
  outline-offset: 3px;
}
#a11y-panel {
  right: max(0.75rem, env(safe-area-inset-right));
  top: calc(48px + env(safe-area-inset-top));
  max-height: calc(100svh - 64px - env(safe-area-inset-top));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-beavior: contain;
}
#a11y-panel .a11y-btn {
  min-height: 44px;
}
#a11y-panel .a11y-panel__label {
  font-size: 1rem;
}
#a11y-panel .a11y-panel__row[data-tts-row] {
  align-items: stretch;
  gap: 0.5rem;
}
#a11y-panel .a11y-panel__row[data-tts-row] .a11y-panel__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}
#a11y-panel .a11y-panel__row[data-tts-row] .a11y-btn {
  width: 100%;
}
@media (max-width: 420px) {
  #a11y-panel .a11y-panel__row[data-tts-row] {
    flex-direction: column;
  }
  #a11y-panel .a11y-panel__row[data-tts-row] .a11y-panel__actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  #a11y-panel {
    width: calc(
      100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 1rem
    );
    right: max(0.5rem, env(safe-area-inset-right));
    left: max(0.5rem, env(safe-area-inset-left));
  }
}
@media (max-width: 360px) {
  #a11y-panel {
    top: 0;
    right: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    max-height: none;
    border-radius: 0;
  }
}

body.modal-open {
  overflow: hidden;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
body.modal-open .modal-overlay {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  position: fixed;
  inset-inline: 0;
  margin-inline: auto;
  top: 6vh;
  width: min(92vw, 640px);
  max-height: 86svh;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--drawer-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  z-index: 10001;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.modal.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--drawer-border);
  position: sticky;
  top: 0;
  background: inherit;
}
.modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}
.modal-close:focus-visible {
  outline: 3px dashed #fff;
  outline-offset: 4px;
}
.modal-body {
  padding: 16px;
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
@media (max-width: 600px) {
  .modal {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));
    height: calc(
      100svh - max(8px, env(safe-area-inset-top)) -
        max(8px, env(safe-area-inset-bottom))
    );
    max-height: none;
    margin-inline: auto;
    border-radius: 12px;
  }
  .modal-body {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

#a11y-tts-bar {
  display: none !important;
}
