html {
  scroll-behavior: smooth;
}

/* ---- איפוס בסיסי וקביעת גופן ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rubik', sans-serif;
  line-height: 1.6;
  color: #333;
  direction: rtl; 
}

/* סגנון שימנע גלילה כשה-Modal פתוח */
body.modal-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---- פלטת צבעים מדברית ---- */
:root {
  --color-terracotta: #B85C38; /* חום-כתום אדמה */
  --color-ochre: #DDAA33;      /* חרדל / אוקר */
  --color-sand: #F7F3EE;       /* בז' / חול בהיר (מעט שונה) */
  --color-deep-blue: #2C3E50;  /* כחול לילה עמוק */
  --color-white: #FFFFFF;
}

/* ---- עיצוב תפריט הניווט (ללא שינוי) ---- */
.main-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  z-index: 10;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  /* --- השינויים שעשינו --- */
  max-width: 100%;  /* היה 1200px - שינינו ל-100% כדי שיתפוס את כל הרוחב */
  padding: 5px 3rem; /* הגדלנו את הריפוד בצדדים (3rem) כדי שלא יידבק ממש לקצה המסך */
  
  margin: 0 auto;
}

/* *** עדכון: הופכים את הלוגו ל-flex כדי לסדר תמונה וטקסט *** */
.logo {
  display: flex;
  align-items: center; /* ממכרז את הלוגו והטקסט אנכית */
  gap: 12px; /* יוצר רווח קטן בין הלוגו לטקסט */
}

/* *** חדש: עיצוב תמונת הלוגו *** */
.logo-img {
  height: 80px;  /* קובע גובה אחיד ללוגו. אפשר לשנות לפי הצורך */
  width: auto;   /* שומר על הפרופורציות */
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-terracotta);
}

.nav-links { display: flex; }
.nav-links li { margin-right: 20px; }
.nav-links a { font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--color-terracotta); }

/* ---- עיצוב ה-Hero Section (ללא שינוי) ---- */
.hero-section {
  height: 100vh;
  min-height: 600px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-white);
  padding: 0 1rem;
}

.hero-content h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.hero-content .subtitle { font-size: 1.5rem; font-weight: 400; margin-bottom: 2rem; color: var(--color-sand); }
.btn { display: inline-block; padding: 12px 28px; font-size: 1rem; font-weight: 500; border-radius: 5px; transition: all 0.3s ease; margin: 0 0.5rem; cursor: pointer; }
.btn-primary { background-color: var(--color-terracotta); color: var(--color-white); border: 2px solid var(--color-terracotta); }
.btn-primary:hover { background-color: transparent; border-color: var(--color-terracotta); color: var(--color-terracotta); background-color: rgba(255, 255, 255, 0.1); }
.btn-secondary { background-color: transparent; color: var(--color-white); border: 2px solid var(--color-white); }
.btn-secondary:hover { background-color: var(--color-white); color: var(--color-deep-blue); }

/* ---- *** סגנון חדש: סקשן ראש הישיבה *** ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about-headmaster {
  padding: 4rem 0;
  background-color: var(--color-sand);
}

.about-headmaster .container {
  display: flex;
  align-items: center;
  gap: 2.5rem; /* מרווח בין התמונה לטקסט */
}

.headmaster-image {
  flex: 1;
  max-width: 300px;
}

.headmaster-image img {
  width: 100%;
  border-radius: 50%; /* עיגול התמונה */
  border: 6px solid var(--color-white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.headmaster-text {
  flex: 2; /* הטקסט יתפוס פי 2 מקום מהתמונה */
}

.headmaster-text h2 {
  font-size: 2.5rem;
  color: var(--color-terracotta);
  margin-bottom: 1rem;
}

.headmaster-text p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ---- *** סגנון חדש: Modal הרשמה *** ---- */
.modal-overlay {
  display: none; /* מוסתר כברירת מחדל */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
  justify-content: center;
  align-items: center;
  /* הוספנו את זה כדי ש-JS יפעיל את זה */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* קלאס ש-JS יוסיף ל-body כדי להציג את ה-modal */
body.modal-open .modal-overlay {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--color-white);
  padding: 2.5rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  color: #333;
  /* אנימציית "קפיצה" קטנה */
  transform: scale(0.9);
  transition: transform 0.3s ease;
  /* ... כל השורות הקיימות ... */

    /* === תוספת חדשה לטיפול בגלישה === */
  max-height: 90vh; /* מגביל את הגובה המירבי ל-90% מגובה המסך */
  overflow-y: auto; /* מוסיף גלילה פנימית (ציר Y) רק כשיש צורך */
}

body.modal-open .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 10px;
  left: 20px; /* הפכנו לצד שמאל (מתאים ל-RTL) */
  font-size: 2.5rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}
.close-modal:hover { color: #333; }

.modal-content h3 {
  text-align: center;
  color: var(--color-terracotta);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.modal-content p {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ---- סגנון הטופס ב-Modal ---- */
#register-form .form-group {
  margin-bottom: 1rem;
}
#register-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
#register-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Rubik', sans-serif;
}
#register-form button {
  width: 100%;
  margin-top: 1rem;
  border: none; /* נבטל את הגבול הכפול מכפתור ה-hero */
}
#register-form button:hover {
  background-color: #a04f30; /* גוון כהה יותר של טרקוטה */
  color: var(--color-white);
}

/* ---- התאמה למובייל (רספונסיביות) ---- */
@media (max-width: 768px) {
  .nav-links { display: none; } /* נצטרך להוסיף תפריט המבורגר ב-JS בהמשך */

  .hero-content h1 { font-size: 2.5rem; }
  .hero-content .subtitle { font-size: 1.2rem; }
  .cta-buttons { display: flex; flex-direction: column; gap: 1rem; }

  /* סידור סקשן ראש הישיבה במובייל */
  .about-headmaster .container {
      flex-direction: column;
      text-align: center;
      gap: 1.5rem;
  }
  
  .headmaster-text h2 {
      font-size: 2rem;
  }
}
/* ... הוסף בסוף קובץ style.css ... */

/* סגנון להודעות בטופס */
#form-message {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.message-success {
  color: green;
}

.message-error {
  color: red;
}

/* ---- *** סגנון חדש: סקשן "הדרך שלנו" *** ---- */

.path-section {
  padding: 4rem 0;
  background-color: var(--color-white); /* רקע לבן נקי, לגיוון מהבז' */
}

.path-section h2 {
  font-size: 2.5rem;
  color: var(--color-terracotta);
  margin-bottom: 1.5rem;
  text-align: center; /* כותרת ממורכזת */
}

/* עיצוב פסקאות המאמר */
.path-section p {
  font-size: 1.1rem;
  line-height: 1.8; /* רווח שורות נעים לקריאה ארוכה */
  color: var(--color-deep-blue); /* צבע טקסט קריא ונעים */

  /* ממקם את הטקסט במרכז ונותן לו רוחב קריאה נוח */
  max-width: 800px; 
  margin: 0 auto 1.5rem auto; /* 0 למעלה, אוטומטי בצדדים, 1.5rem למטה */
}
/* ---- *** עיצוב הפוטר (צור קשר) *** ---- */

.site-footer {
  background-color: var(--color-deep-blue); /* כחול לילה מדברי */
  color: var(--color-white);
  padding-top: 4rem;
  padding-bottom: 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap; /* מאפשר שבירת שורות במובייל */
  gap: 3rem;
  justify-content: space-between;
  align-items: start;
}

/* עיצוב צד ימין (פרטים) */
.footer-info {
  flex: 1; /* לוקח חצי מהרוחב */
  min-width: 300px;
}

.footer-info h3 {
  font-size: 2rem;
  color: var(--color-ochre); /* צבע חרדל לכותרת */
  margin-bottom: 1rem;
}

.footer-info p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.contact-item {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item strong {
  color: var(--color-sand);
}

/* עיצוב צד שמאל (מפה) */
.footer-map {
  flex: 1; /* לוקח חצי מהרוחב */
  min-width: 300px;
  border: 4px solid var(--color-white); /* מסגרת לבנה למפה */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* עיצוב השורה התחתונה (זכויות יוצרים) */
.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.6;
}

/* התאמה למובייל */
@media (max-width: 768px) {
  .footer-content {
      flex-direction: column; /* במובייל זה יהיה אחד מתחת לשני */
  }
  
  .footer-map {
      width: 100%; /* המפה תתפוס את כל הרוחב */
  }
}

/* ---- *** עיצוב עמוד המאמר (אודות) *** ---- */

/* כותרת העמוד */
.page-header {
  background-color: var(--color-sand);
  padding: 8rem 0 3rem 0; /* רווח גדול מלמעלה בגלל התפריט */
  text-align: center;
  color: var(--color-deep-blue);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* מיכל המאמר - מחלק את המסך לתוכן עניינים וטקסט */
.article-container {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start; /* חשוב כדי שתוכן העניינים לא יימתח */
}

/* עיצוב תוכן העניינים */
.toc-box {
  flex: 1; /* לוקח שליש רוחב */
  min-width: 250px;
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border-right: 4px solid var(--color-terracotta); /* פס צבעוני בצד */
  position: sticky; /* נדבק למסך כשגוללים! */
  top: 100px; /* המרחק מלמעלה כשזה דביק */
}

.toc-box h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--color-deep-blue);
}

.toc-box ul li {
  margin-bottom: 0.8rem;
}

.toc-box a {
  color: #555;
  font-weight: 500;
  transition: color 0.2s;
}

.toc-box a:hover {
  color: var(--color-terracotta);
}

/* עיצוב גוף המאמר */
.main-article {
  flex: 3; /* לוקח שני שליש רוחב */
}

.main-article section {
  margin-bottom: 3rem;
  /* התיקון הזה גורם לגלילה לעצור קצת לפני הכותרת כדי שהתפריט לא יסתיר אותה */
  scroll-margin-top: 120px; 
}

.main-article h2 {
  font-family: 'Frank Ruhl Libre', serif; /* גופן סריפי יוקרתי לכותרות */
  font-size: 2rem;
  color: var(--color-terracotta);
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.main-article p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #333;
  text-align: justify; /* יישור לשני הצדדים כמו בספר */
}

/* התאמה למובייל */
@media (max-width: 768px) {
  .article-container {
      flex-direction: column; /* תוכן עניינים מעל המאמר */
  }
  
  .toc-box {
      width: 100%;
      position: static; /* במובייל זה לא דביק */
  }
}

/* עיצוב קישור הווצאפ בפוטר */
/* ---- כפתור ווטסאפ משודרג ---- */

.whatsapp-link {
  display: inline-flex; /* מסדר יפה את הטקסט */
  align-items: center;
  justify-content: center;
  gap: 10px; /* רווח בין האייקון לטקסט */
  
  background-color: #25D366; /* הצבע הרשמי של ווטסאפ */
  color: white !important; /* טקסט לבן (ה-important דורס צבעים אחרים) */
  
  padding: 12px 25px; /* כפתור שמן ונוח ללחיצה */
  border-radius: 50px; /* פינות עגולות (צורת גלולה) */
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: none;
  
  /* אפקטים וצללית */
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  margin-top: 10px;
}

/* אפקט בלחיצה/מעבר עכבר */
.whatsapp-link:hover {
  background-color: #128C7E; /* ירוק כהה יותר */
  transform: translateY(-3px); /* הכפתור עולה קצת למעלה */
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); /* הצל גדל */
}

/* --- התאמה מיוחדת למובייל --- */
@media (max-width: 768px) {
  .whatsapp-link {
      width: 100%; /* בטלפון הכפתור יתפוס את כל הרוחב */
      padding: 15px; /* עוד יותר גדול ללחיצה נוחה */
      font-size: 1.2rem;
      
      /* אנימציית "פעימה" עדינה שתמשוך את העין בטלפון */
      animation: pulse 2s infinite;
  }
}

/* אנימציית פעימה (Pulse) */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
/* ---- עיצוב תתי-נושאים בתוכן העניינים ---- */

/* הזחה פנימה של הרשימה הפנימית */
.toc-box .sub-menu {
  margin-right: 20px; /* דוחף שמאלה כי אנחנו בעברית */
  margin-top: 5px;
  border-right: 2px solid #ddd; /* קו דק בצד להדגשת ההיררכיה */
  padding-right: 10px;
}

/* עיצוב הקישורים הפנימיים */
.toc-box .sub-menu a {
  font-size: 0.95rem; /* כתב קצת יותר קטן */
  color: #666;
  font-weight: normal;
}

.toc-box .sub-menu a:hover {
  color: var(--color-terracotta);
}

/* ---- עיצוב הכותרות הפנימיות במאמר ---- */
.main-article h3 {
  font-size: 1.5rem;
  color: var(--color-deep-blue);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* תיקון לגלילה (כדי שהתפריט העליון לא יסתיר את הכותרת) */
.sub-section {
  scroll-margin-top: 140px;
}

/* ========================================= */
/* התאמה למובייל (Responsive) - מתוקן סופי */
/* ========================================= */

/* הסתרת כפתור ההמבורגר במסכים גדולים */
.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--color-deep-blue);
}

/* --- הגדרות למסכים קטנים (עד 768px) --- */
@media (max-width: 768px) {

  /* 1. כפתור ההמבורגר - חייב להיות בשכבה הכי גבוהה! */
  .hamburger {
      display: block;
      z-index: 2000; /* מספר ענק כדי שיהיה מעל התפריט ומעל הכל */
      position: relative;
  }

  /* אנימציית ה-X של ההמבורגר */
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* 2. התפריט עצמו - מסך מלא (Full Screen) */
  .nav-links {
      position: fixed; /* נדבק למסך */
      top: 0;
      left: -100%; /* מוסתר בצד שמאל */
      width: 100%;
      height: 100vh; /* 100% גובה מסך */
      
      background-color: #ffffff; /* רקע לבן אטום */
      
      display: flex;
      flex-direction: column;
      justify-content: center; /* ממקם במרכז הגובה */
      align-items: center;     /* ממקם במרכז הרוחב */
      
      transition: 0.4s ease-in-out; /* אנימציה חלקה */
      z-index: 1500; /* מתחת להמבורגר (2000) אבל מעל האתר */
      gap: 0;
  }

  /* 3. המצב הפעיל - החלקה פנימה */
  .nav-links.active {
      left: 0;
  }

  /* עיצוב הקישורים במובייל */
  .nav-links li {
      margin: 1.5rem 0;
  }

  .nav-links a {
      font-size: 1.5rem; /* טקסט גדול וברור */
      color: var(--color-deep-blue);
      font-weight: 700;
      display: block;
  }

  /* --- התאמות נוספות למובייל --- */

  .navbar {
      padding: 10px 1.5rem; /* הקטנת הריפוד בפס העליון */
  }

  /* סקשן ראש הישיבה */
  .about-headmaster .container {
      flex-direction: column;
      text-align: center;
      gap: 2rem;
  }
  
  .headmaster-text h2 {
      font-size: 2rem;
  }

  /* מאמר אודות */
  .article-container {
      flex-direction: column;
  }
  
  .toc-box {
      width: 100%;
      position: static;
      margin-bottom: 2rem;
  }

  /* פוטר */
  .footer-content {
      flex-direction: column;
      gap: 2rem;
  }
  
  .footer-map {
      width: 100%;
  }

  /* כותרות וכפתורים */
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content .subtitle { font-size: 1.2rem; }
  
  .cta-buttons {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
  }
  
  .btn {
      width: 100%;
      margin: 0;
  }
}

/* ---- *** עיצוב עמוד חיי הישיבה (מדיה) *** ---- */

.media-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-terracotta);
  margin-bottom: 2rem;
  font-weight: 700;
}

.divider {
  border: 0;
  height: 1px;
  background: #ddd;
  margin: 4rem auto;
  width: 80%;
}

/* 1. עיצוב הוידאו (רספונסיבי) */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* יחס גובה-רוחב של 16:9 (כמו יוטיוב) */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 2. עיצוב הפודקאסט */
.podcast-section {
  text-align: center;
}

.audio-player audio {
  width: 100%;
  max-width: 600px;
  margin-top: 1rem;
  border-radius: 30px; /* מעגל את הנגן */
}

/* 3. עיצוב הגלריה (Grid) */
.gallery-grid {
  display: grid;
  /* יסדר אוטומטית כמה תמונות שנכנסות בשורה */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  height: 250px; /* גובה אחיד לכל התמונות */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* חותך את התמונה שתמלא את הריבוע בלי להתעוות */
  transition: transform 0.4s ease;
}

/* אפקט זום עדין כשעוברים עם העכבר על תמונה */
.gallery-item:hover img {
  transform: scale(1.1);
}

/* ---- *** עיצוב עמוד הפנימייה (dorm.html) *** ---- */

.dorm-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.dorm-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.dorm-intro h2 {
  color: var(--color-terracotta);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.dorm-intro p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: #555;
}

/* 1. כרטיסיות מידע (Feature Cards) */
.dorm-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  border-top: 4px solid var(--color-ochre); /* פס צבעוני למעלה */
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px); /* אפקט ריחוף */
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--color-deep-blue);
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

/* 2. עיצוב ציר זמן (Timeline) */
.dorm-schedule {
  margin-top: 3rem;
}

.dorm-schedule h2 {
  text-align: center;
  color: var(--color-terracotta);
  margin-bottom: 2.5rem;
}

.timeline {
  position: relative;
  border-right: 3px solid var(--color-sand); /* הקו האנכי מימין */
  margin-right: 20px;
  padding-right: 30px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

/* הנקודה על הציר */
.timeline-item::before {
  content: '';
  position: absolute;
  right: -38px; /* ממקם את הנקודה על הקו */
  top: 5px;
  width: 16px;
  height: 16px;
  background-color: var(--color-terracotta);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--color-terracotta);
}

.timeline-item .time {
  font-weight: 700;
  color: var(--color-ochre);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.timeline-item h4 {
  font-size: 1.3rem;
  color: var(--color-deep-blue);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: #666;
}

/* התאמה למובייל */
@media (max-width: 768px) {
  .timeline {
      margin-right: 10px;
      padding-right: 20px;
  }
  
  .timeline-item::before {
      right: -29px; /* תיקון מיקום במובייל */
  }
}
/* ---- עיצוב חלון זום (Pop-up) ---- */

/* משתמשים באותה מעטפת כמו המודל הרגיל, אבל עם תוספות */
.zoom-overlay {
  z-index: 2000; /* שיהיה מעל הכל, אפילו מעל התפריט מובייל */
  backdrop-filter: blur(5px); /* מטשטש את הרקע מאחורה - אפקט יוקרתי */
}

.zoom-content {
  border-top: 6px solid var(--color-ochre); /* פס חרדל למעלה */
  text-align: center;
  max-width: 450px;
  padding: 0; /* מאפסים ריפוד כדי לעצב לבד */
  overflow: hidden;
}

.zoom-header {
  background-color: var(--color-sand);
  padding: 2rem 1rem 1rem 1rem;
}

.zoom-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: bounce 2s infinite; /* אייקון קופץ */
}

.zoom-header h3 {
  color: var(--color-deep-blue);
  font-size: 1.8rem;
  margin: 0;
}

.zoom-body {
  padding: 2rem;
}

.zoom-date {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-terracotta);
  margin-bottom: 1rem;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 10px;
  display: inline-block;
}

.zoom-btn {
  width: 100%;
  margin: 1.5rem 0 0.5rem 0;
  display: block;
  font-size: 1.1rem;
}

.zoom-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 10px;
}

/* אנימציה לאייקון המצלמה */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}
/* ---- תיקונים לטופס גוגל בתוך המודל ---- */

/* עדכון חשוב כדי לאפשר גלילה בתוך החלון */
.zoom-content {
  max-height: 90vh; /* גובה מקסימלי של 90% מהמסך */
  overflow-y: auto; /* מאפשר גלילה (Scroll) אם הטופס ארוך */
  width: 95%; /* בטלפון זה יתפוס כמעט את כל הרוחב */
}

/* מוודא שהאייפריים יושב טוב */
.google-form-wrapper iframe {
  width: 100%;
  border: none;
  /* רקע שקוף למקרה של טעינה */
  background: transparent; 
}

/* ---- עיצוב טופס הזום המותאם ---- */

#zoom-register-form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* רווח בין השדות */
    margin-top: 10px;
}

#zoom-register-form input {
    padding: 12px;
    border: 2px solid #eee; /* גבול עדין */
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Rubik', sans-serif;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

#zoom-register-form input:focus {
    border-color: var(--color-terracotta); /* צבע המותג בפוקוס */
    background-color: #fff;
    outline: none;
}

/* התאמת הכפתור */
.zoom-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    font-size: 1.1rem;
}

/* תיקון לגובה של המודל כדי שהכל ייכנס בלי גלילה מיותרת */
.zoom-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* הערת הבהרה בתחתית הזום */
.zoom-clarification {
  margin-top: 15px;
  background-color: #fff3cd; /* רקע צהוב בהיר (אזהרה עדינה) */
  border: 1px solid #ffeeba;
  color: #856404; /* טקסט צהוב-כהה/חום */
  padding: 10px;
  border-radius: 5px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.zoom-clarification a {
  text-decoration: underline;
  font-weight: bold;
  color: #856404;
}

/* ---- עיצוב עמוד ימי היכרות (visit.html) ---- */

.visit-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* כרטיסיות תאריכים */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.date-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  text-align: center;
  border: 1px solid #eee;
}

.date-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-terracotta);
}

.date-header {
  background-color: var(--color-terracotta);
  color: white;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.date-header .day { font-size: 1.1rem; opacity: 0.9; }
.date-header .date-number { font-size: 3rem; font-weight: 700; line-height: 1; margin: 5px 0; }
.date-header .month { font-size: 1.2rem; font-weight: 500; }

.date-body {
  padding: 1.5rem;
}

.date-body h3 {
  color: var(--color-deep-blue);
  margin-bottom: 0.5rem;
}

.date-body p {
  color: #666;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.small-btn {
  padding: 8px 20px;
  font-size: 0.9rem;
  width: 100%;
}

/* שאלות ותשובות */
.faq-grid {
  display: grid;
  gap: 1.5rem;
}

.faq-item {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border-right: 4px solid var(--color-ochre);
}

.faq-item h3 {
  color: var(--color-deep-blue);
  margin-bottom: 0.5rem;
}

/* ========================================= */
/* עיצוב עמוד ימי היכרות (visit.html) - חדש */
/* ========================================= */

.visit-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* 1. עיצוב כרטיס ההרשמה המרכזי */
.registration-section {
  display: flex;
  justify-content: center; /* ממקם באמצע */
  margin-bottom: 4rem;
}

.registration-card {
  background: white;
  width: 100%;
  max-width: 550px; /* רוחב מקסימלי כדי שלא יהיה רחב מדי */
  padding: 2.5rem;
  border-radius: 15px; /* פינות עגולות */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* צל גדול ויפה */
  border-top: 6px solid var(--color-terracotta); /* פס צבעוני למעלה */
  text-align: center;
}

.reg-subtitle {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* עיצוב השדות בטופס */
.registration-card .form-group {
  margin-bottom: 1.2rem;
  text-align: right; /* שהכותרות יהיו מימין */
}

.registration-card label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
  color: var(--color-deep-blue);
}

.registration-card input {
  width: 100%;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Rubik', sans-serif;
  transition: all 0.3s;
}

.registration-card input:focus {
  border-color: var(--color-terracotta);
  outline: none;
  background-color: #fffbf0; /* צבע רקע עדין בפוקוס */
}

/* כפתור רחב */
.full-width-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 15px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

/* תיבת הודעה (הצלחה/כישלון) */
.message-box {
  margin-top: 20px;
  font-weight: bold;
  font-size: 1rem;
  padding: 10px;
  border-radius: 5px;
  min-height: 20px;
}

/* 2. עיצוב לוח הזמנים (Timeline) */
.visit-schedule h2, .faq-section h2 {
  text-align: center;
  color: var(--color-terracotta);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.timeline {
  position: relative;
  border-right: 3px solid var(--color-sand);
  margin-right: 20px;
  padding-right: 30px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: -38px;
  top: 5px;
  width: 16px;
  height: 16px;
  background-color: var(--color-terracotta);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--color-terracotta);
}

.timeline-item .time {
  font-weight: 700;
  color: var(--color-ochre);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.timeline-item h4 {
  font-size: 1.3rem;
  color: var(--color-deep-blue);
  margin-bottom: 0.5rem;
}

/* 3. עיצוב שאלות נפוצות */
.faq-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.faq-item {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border-right: 4px solid var(--color-ochre);
}

/* עיצוב בחירת תאריכים */
.dates-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.date-option-label {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: #f9f9f9;
}

/* כשהעכבר עובר מעל */
.date-option-label:hover {
  border-color: var(--color-ochre);
  background: #fff;
}

/* כשהכפתור נבחר (מסומן) */
.date-option-input:checked + .date-option-label {
  border-color: var(--color-terracotta);
  background-color: #fff5f2;
  font-weight: bold;
  color: var(--color-terracotta);
}

.date-option-input {
  display: none; /* מסתיר את העיגול המכוער של הרדיו */
}

/* העיגול המעוצב שלנו */
.date-option-label::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-left: 10px;
  transition: all 0.2s;
}

.date-option-input:checked + .date-option-label::before {
  border-color: var(--color-terracotta);
  background-color: var(--color-terracotta);
  box-shadow: inset 0 0 0 3px white;
}

/* ========================================= */
/* תוספות לעמוד ראיונות (interviews.html)    */
/* ========================================= */

.interviews-section {
  padding: 3rem 0;
  min-height: 70vh; /* שומר שהפוטר לא יעלה למעלה כשהטופס מוסתר */
}

/* עיצוב שדה העלאת קובץ שייראה כמו שאר השדות */
input[type="file"] {
  background-color: #f8f9fa;
  padding: 10px;
  height: auto; /* שונה משדה טקסט רגיל */
  border: 2px dashed #ccc; /* מסגרת מקווקווית שמסמנת "גרור לפה" */
  cursor: pointer;
}

input[type="file"]:hover {
  background-color: #fff;
  border-color: var(--color-terracotta);
}

/* כפתור "חזרה לבחירת תאריך" */
.back-link {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #666;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  width: 100%;
}

.back-link:hover {
  color: var(--color-terracotta);
}

/* תיקון קטן לכותרת בתוך הכרטיס */
#selected-date-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.interviews-section {
  padding-top: 150px; /* דוחף את התוכן למטה כדי שלא יוסתר ע"י התפריט */
  padding-bottom: 3rem;
  min-height: 80vh;
}

/* ========================================= */
/* תיקון עיצוב עמוד ראיונות (interviews.html) */
/* ========================================= */

/* 1. דחיפת התוכן למטה כדי שלא יוסתר ע"י התפריט */
.interviews-section {
  padding-top: 140px; /* מרווח מלמעלה */
  padding-bottom: 3rem;
  min-height: 80vh;
  background-color: #f8f9fa; /* רקע אפור עדין */
}

/* ========================================= */
/* תיקון סופי ומסודר לעמוד ראיונות        */
/* (הדבק את זה במקום כל הבלגן בסוף הקובץ) */
/* ========================================= */

/* 1. דחיפת התוכן למטה כדי שלא יוסתר ע"י התפריט */
.interviews-section {
  padding-top: 140px;
  padding-bottom: 3rem;
  min-height: 80vh;
  background-color: #f8f9fa; /* רקע אפור בהיר עדין */
}

/* 2. סידור הקוביות - רשת של 2 על 2 בדיוק */
.dates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* מחלק את המסך ל-2 עמודות שוות */
  gap: 2rem; /* רווח בין הקוביות */
  max-width: 800px; /* רוחב כולל מוגבל כדי שזה ייראה הדוק ויפה */
  margin: 3rem auto; /* מירכוז באמצע המסך */
  padding: 0 1rem;
}

/* התאמה למובייל - בטלפון זה יהיה אחד מתחת לשני */
@media (max-width: 650px) {
  .dates-grid {
      grid-template-columns: 1fr;
  }
}

/* 3. עיצוב הכרטיסייה עצמה */
.date-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.date-card:hover {
  transform: translateY(-5px); /* קפיצה קטנה למעלה */
  border-color: var(--color-terracotta); /* מסגרת צבעונית */
}

/* 4. עיצוב החלק העליון (תאריך) */
.date-header {
  background-color: var(--color-terracotta);
  color: white;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.date-header .date-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin: 5px 0;
}

.date-header .day, .date-header .month {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* 5. עיצוב גוף הכרטיס */
.date-body {
  padding: 1.5rem;
  flex-grow: 1; /* דואג שהגוף ימלא את המקום */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.date-body h3 {
  margin-bottom: 15px;
  color: var(--color-deep-blue);
  font-size: 1.3rem;
}

/* כפתור בתוך הכרטיס */
.date-body .btn {
  margin-top: auto;
  pointer-events: none; /* הלחיצה היא על כל הכרטיס */
}

/* 6. עיצוב שדות מיוחדים בטופס (כמו העלאת תמונה) */
input[type="file"] {
  background-color: #f8f9fa;
  padding: 10px;
  height: auto;
  border: 2px dashed #ccc;
  cursor: pointer;
  width: 100%;
  border-radius: 5px;
}

input[type="file"]:hover {
  background-color: #fff;
  border-color: var(--color-terracotta);
}

/* כפתור חזרה ללוח השנה */
.back-link {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #666;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  width: 100%;
}

.back-link:hover {
  color: var(--color-terracotta);
}

/* כותרת דינמית בתוך הטופס */
#selected-date-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
/* --- תיקון לטופס הראיונות --- */

/* הגדרת המעטפת של כל שורה בטופס */
.form-row {
  display: flex;
  gap: 15px; /* רווח בין השדות */
  margin-bottom: 15px;
}

/* הגדרת שדה בודד שתופס רוחב מלא */
.form-group {
  margin-bottom: 15px;
  width: 100%; /* חובה כדי שלא יתכווץ */
}

/* בתוך שורה, כל שדה יתפוס חצי */
.form-row .form-group {
  flex: 1;
  margin-bottom: 0; /* הרווח מגיע מהשורה עצמה */
}

/* עיצוב השדות עצמם */
input, textarea, select {
  width: 100%; /* שימלאו את המקום */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box; /* חשוב מאוד! מונע חריגה מהמסגרת */
  font-family: 'Rubik', sans-serif;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--color-deep-blue);
}

/* כותרות מקטעים */
h4.form-section-title {
  margin: 25px 0 15px 0;
  color: var(--color-terracotta);
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  font-size: 1.2rem;
}

/* --- התאמה למובייל (חשוב!) --- */
@media (max-width: 600px) {
  .form-row {
      flex-direction: column; /* בטלפון - אחד מתחת לשני */
      gap: 10px;
  }
}