/* ezcollege-portal.css */

/* הגדרת בסיס: שימוש בכיוון RTL, רקע, ועוד */
body {
  direction: rtl;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* עיצוב “Hero” */
.hero {
  background: #e9f2ff;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
}
.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.5rem;
}

/* פריסת עמוד בקונספט “layout-flip” (Sidebar מימין / Main משמאל אבל ב-rtl) */
.layout-flip {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1rem;
}
.sidebar-col {
  flex: 0 0 300px;
  max-width: 300px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  padding: 15px;
}
.main-col {
  flex: 1 1 auto;
  min-width: 0;
}

/* בר התקדמות */
.progress {
  height: 20px;
  transition: width 0.3s ease;
  margin-bottom: 15px;
}
.progress-bar {
  text-align: center;
  font-weight: bold;
}

/* תיבת שלב */
.step-container {
  display: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
  background: #fff;
  animation: fadeIn 0.3s ease-in-out forwards;
}
.step-container.active {
  display: block;
}

/* אנימציית fadeIn */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px);}
  to   { opacity: 1; transform: translateY(0);}
}

/* טיימר של המבחן */
.exam-timer {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ffd54f;
  color: #000;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

/* מיכל המבחן (שאלה-אחת-בכל-פעם) */
.quiz-container-one-by-one {
  position: relative;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 15px;
  margin: 10px 0;
  background: #fff;
}
.quiz-question {
  font-weight: bold;
  margin-top: 5px;
}
.quiz-answers {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
}
.quiz-answers li {
  margin-bottom: 4px;
}

/* משוב תוצאות המבחן */
.feedback-result {
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 10px;
}
.feedback-pass {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.feedback-fail {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* סגנון לחצנים */
.btn:focus,
.btn:active {
  outline: none !important;
  box-shadow: none !important;
  background-color: #0b5ed7 !important;
  border-color: #0b5ed7 !important;
}

/* נקודות (dots) למעבר בין תכני Iframe באותו שלב */
.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #bbb;
  display: inline-block;
}
.dot.active {
  background-color: #0d6efd;
}