body {
  margin: 0;
  font-family: 'Heebo', sans-serif;
  background: #0a0a0a;
  color: #d2ffd2;
  font-size: 20px;
  line-height: 1.8;
}

/* רקע */
.background-code-frame {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}
.card.quiz-card-link {
  background-color: #faf7f6;
  border: 1.5px solid #d5b8b3;
  border-radius: 14px;
  padding: 24px;
  margin: 40px auto;
  width: 70%;
  max-width: 720px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: 0.25s ease;
}
/* שורת הכפתורים */
.lesson-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

/* הכפתור עצמו (בוקס מספר) */
.lesson-btn{
  inline-size:56px;          /* width */
  block-size:48px;           /* height */
  display:inline-flex;       /* מרכז אנכי/אופקי */
  align-items:center;
  justify-content:center;
  padding:0;
  border:1.5px solid var(--line, #e6d8d3);
  border-radius:12px;
  background:var(--paper, #fff);
  font: 800 22px/1 'Heebo', system-ui; /* line-height:1 חשוב */
  color: var(--ink, #221a18);
  vertical-align:middle;     /* מונע צניחה בשורה */
  appearance:none;
  cursor:pointer;
}

/* אם יש אלמנט פנימי */
.lesson-btn *{ line-height:1; }

/* מצב נבחר/ריחוף (לבחירה) */
.lesson-btn.active{ outline:2px solid #00e69d; box-shadow:0 0 0 3px rgba(0,230,157,.15); }
.lesson-btn:hover{ transform:translateY(-1px); }

.card.quiz-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.card.quiz-card-link h3 {
  color: #b45d6b;
  margin-bottom: 10px;
  font-size: 1.4em;
}

.card.quiz-card-link .sub {
  color: #3b2a28;
  font-size: 1em;
  margin-bottom: 14px;
}

.card.quiz-card-link .btn {
  background-color: #fbeff1;
  color: #3b2a28;
  border: 1.5px solid #d5b8b3;
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.card.quiz-card-link .btn:hover {
  background-color: #f9e3e6;
}

/* פס עליון */
.white-bar { background: #fff; border-bottom: none; }
.head-inner {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 10px 30px;
  gap: 10px;
}
.brand {
  display: flex;
  flex-direction: row;  /* באותה שורה */
  align-items: center;  /* מיושר אנכית */
  gap: 10px;            /* רווח ביניהם */
  justify-content: flex-end; /* אם רוצים לדחוף הכל לימין */
}
.brand-logo { width: 60px; height: 60px; border-radius: 10px; }
.school { font-weight: 800; font-size: 1em; color: #000; }
.city { font-weight: 600; font-size: 0.9em; color: #444; }

/* כותרת */
.page { padding: 30px; }
.hero { text-align: center; margin-bottom: 30px; }
.glow {
  color: #00ff88;
  text-shadow: 0 0 8px #00ff99;
  font-size: 2.8em;
  margin-bottom: 0.1em;
}
.sub { color: #aaffaa; font-size: 1.1em; margin-top: -10px; }

/* שני ריבועים */
.dual-boxes {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.when, .next-lesson {
  flex: 1 1 280px;
  background: rgba(0, 255, 100, 0.1);
  border: 1.5px solid #00ff99;
  border-radius: 14px;
  padding: 14px 22px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,255,100,0.08);
}
.when h3, .next-lesson h3 {
  color: #00ff99;
  margin: 0 0 8px;
  font-size: 1.1em;
  font-weight: 700;


}

.where h3, .next-lesson h3 {
  color: #00ff99;
  margin: 0 0 8px;
  font-size: 1.1em;
  font-weight: 700;

}

.where, .next-lesson p {
  color: #eaffea;
  font-weight: 700;
  font-size: 1.1em;
  margin: 0;
}

/* בחירת שיעור */
.lesson-selector {
  text-align: center;
  margin: 20px 0 30px;
}
.lesson-selector h3 {
  margin-bottom: 10px;
  color: #00ff99;
}
.lesson-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.lesson-btn {
  background: rgba(0,255,100,0.12);
  color: #00ff99;
  border: 1px solid #00ff99;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.lesson-btn:hover {
  background: rgba(0,255,100,0.25);
}
.lesson-btn.active {
  background: #00ff99;
  color: #000;
}

/* כרטיסים */
.card {
  background: rgba(0,20,0,0.6);
  border: 1px solid rgba(0,255,120,0.3);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.card h3 { color: #00ff99; margin-top: 0; }
iframe { width: 100%; height: 380px; border: none; border-radius: 10px; background: #000; }

/* טפסים */
input, textarea {
  width: 100%;
  border-radius: 8px;
  padding: 10px;
  background: #001900;
  color: #00ff99;
  font-family: monospace;
  font-size: 18px;
  border: 1.5px solid #00ff99;
  margin-bottom: 10px;
}
.btn {
  background: #00ff99;
  color: #000;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1em;
}
.btn:hover { background: #55ff99; }
.foot {
  background-color: #0a0a0a; /* רקע כהה אלגנטי */
  color: #f4f4f4;
  padding: 16px 24px;
  font-family: 'Heebo', sans-serif;
  direction: rtl;
}

.foot-inner {
  display: flex;
  justify-content: space-between; /* יישור לשני הצדדים */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.foot p {
  margin: 0;
  font-size: 0.95em;
}

.btn-wa-small {
  background-color: #25d366; /* ירוק ווטסאפ */
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.3s;
}

.btn-wa-small:hover {
  backgr

.btn-wa-small {
  background: #25d366;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9em;
}
.btn-wa-small:hover { background: #4af68a; }
