* {
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
    margin: 0;
    # background: #f4f7fb;
    color: #1f2937;
    background-color: #f4f7fb; /* צבע גיבוי למקרה שהתמונה לא נטענת */
    background-image: url('m3.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

}


@media print {
    body { display: none !important; }
    /* אפשרות אחרת: להציג הודעה במקום התוכן */
    .no-print-message { display: block !important; }
}

.no-print-message { display: none; }



/* סגנון לטקסט הלוגו */
.logo-text {
  text-decoration: none; /* מסיר קו תחתון */
  color: inherit; /* לוקח את הצבע מההורה */
  font-size: inherit; /* לוקח את גודל הפונט מההורה */
  font-weight: inherit; /* לוקח את עובי הפונט מההורה */
  cursor: pointer; /* מראה יד כשעוברים עם העכבר */
  display: inline-flex; /* כדי שהטקסט יהיה בשורה עם הלוגו */
  align-items: center; /* ממרכז אנכית עם הלוגו */
  height: 100%; /* תופס את כל הגובה של ה-.logo */
}

/* כדי שהקישור לא ישנה צבע בעת מעבר עכבר */
.logo-text:hover,
.logo-text:focus {
  text-decoration: none;
  color: inherit;
  outline: none; /* מסיר תיחום פוקוס */
}

/* אפשר להוסיף אפקט עדין רק כשעוברים עם העכבר */
.logo-text:hover {
  opacity: 0.8; /* אפקט עדין של שקיפות */
}


/* NAVBAR */
.navbar {
  background: #0d6efd;
  color: white;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 20px;
}

nav {
  display: flex;
  gap: 14px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
}

nav a.active,
nav a:hover {
  background: rgba(255,255,255,0.2);
}

.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  z-index: 10001;
  position: relative; 
}

.access-btn {
  background: white;
  color: #0d6efd;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 20px;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 900px) {
  nav {
    display: none;
    flex-direction: column;
    background: #0d6efd;
    position: absolute;
    right: 0;
    top: 60px;
    width: 100%;
  }

  nav.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* ACCESSIBILITY PANEL */
.access-panel {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: white;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  display: none;
  z-index: 9999;
}

.access-panel.show {
  display: block;
}

.access-panel button {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 8px;
  cursor: pointer;
}

/* CONTENT */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
}



.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.card-link:hover .card {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card {
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 2px solid transparent;
}

.card-link:hover .card {
  border-color: #0d6efd;
}

.card h3 {
  margin-top: 0;
  color: #0d6efd;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p {
  color: #666;
  margin-bottom: 0;
}

/* סגנונות ספציפיים לכל כרטיס */
.card-link:nth-child(1) .card h3 { color: #0d6efd; } /* פרוטוקולים - כחול */
.card-link:nth-child(2) .card h3 { color: #dc3545; } /* מחלות חירום - אדום */
.card-link:nth-child(3) .card h3 { color: #28a745; } /* מבחני תרגול - ירוק */
.card-link:nth-child(4) .card h3 { color: #fd7e14; } /* טראומה - כתום */
.card-link:nth-child(5) .card h3 { color: #dc3545; } /* החייאה - אדום */
.card-link:nth-child(6) .card h3 { color: #6f42c1; } /* דפיברילטור - סגול */



/* FOOTER */
.footer {
  background: #0d6efd;
  color: white;
  padding: 20px;
  text-align: center;
}

/* ACCESSIBILITY MODES */
.high-contrast {
  background: black !important;
  color: yellow !important;
}

.high-contrast a {
  color: yellow !important;
}

.dark-mode {
  background: #111;
  color: #eee;
}
