/* == הגדרות בסיסיות ומשתני צבע == */
:root {
  --primary-color: #D2691E; /* chocolate */
  --background-light: #FFF8F0; /* light cream */
  --text-primary: #333333; /* almost black */
  --text-secondary: #6E6E6E; /* gray */
  --accent1: #F4A460; /* sandy brown */
  --accent2: #FFE4C4; /* bisque */
}

/* == סגנונות גוף בסיסיים == */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-light);
  color: var(--text-primary);
  line-height: 1.6;
  direction: rtl;
}

/* == כותרות גלובליות == */
h1, h2, h3, h4 {
  text-align: center;
}

h2, h3 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent1);
  padding-bottom: 0.5rem;
  margin: 0 0 1rem; /* קיצור margin-bottom */
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

h4 {
  color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
  font-size: 1.3em;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* == אזור עליון (Header) == */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  padding-bottom: 0.2em;
  font: 700 2.8em/1 'Poppins', sans-serif; /* קיצור font (זהירות: מאפס line-height אם לא מצוין) */
  letter-spacing: 1px;
}

header h1 a.logo-link {
  color: #FFFFFF;
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
  display: inline-block;
}

header h1 a.logo-link:hover {
  color: var(--accent2);
}

header .slogan {
  margin: 0 auto 1em; /* קיצור */
  max-width: 600px;
  padding: 0 1rem;
  font: 400 1em/1.4 'Poppins', sans-serif; /* קיצור */
  color: var(--accent2);
  letter-spacing: 0.5px;
  opacity: 0.95;
}

/* == ניווט ראשי (Nav) == */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  text-align: center;
  line-height: 1.5;
}

nav ul li {
  display: inline-block;
  position: relative;
  margin: 0; /* איפוס מרווח ישיר */
  padding: 5px 0;
  vertical-align: middle;
}

/* הוספת הקו המפריד *אחרי* כל פריט, פרט לאחרון */
nav ul li:not(:last-child)::after {
  content: "|";
  color: rgba(255, 255, 255, 0.6); /* צבע המפריד */
  padding: 0 15px; /* מרווח ברירת מחדל (דסקטופ) סביב המפריד */
  display: inline-block;
  vertical-align: middle;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font: bold 1.1em/1 'Poppins', sans-serif;
  display: inline-block;
  vertical-align: middle;
}

nav ul li a:hover {
  color: var(--accent2);
}

/* == רשת תצוגת-מאמרים בדף הבית == */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

/* == אזור תוכן ראשי (Main) == */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* == אזורים (Sections) == */
section {
  margin: 0 0 2rem; /* קיצור */
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* == קונטיינר מאמרים (Grid) == */
#articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* == כרטיס מאמר (Article Card) == */
.article-card {
  background-color: var(--background-light);
  border: 1px solid var(--accent2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: #f8f8f8;
  border-radius: 4px;
  margin: 0 auto 0.5rem; /* קיצור */
  display: block;
}

.article-card .content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card h4 {
  margin: 0.5rem 0; /* קיצור */
  color: var(--primary-color);
  font: normal 1.2em/1 'Poppins', sans-serif; /* קיצור */
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card p {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin: 0 0 1rem; /* קיצור */
  flex-grow: 1;
}

/* == כפתור "קרא עוד" == */
.read-more-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  align-self: center;
  margin-top: auto;
}

.read-more-btn:hover {
  background-color: var(--accent1);
  color: white;
}

/* == כפתור "טען עוד" == */
#loadMoreBtn {
  display: block;
  margin: 3rem auto 2rem; /* קיצור */
  font: bold 1em/1 sans-serif; /* קיצור, החלפתי ל-sans-serif כללי */
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

#loadMoreBtn:hover {
    background-color: var(--accent1);
}

/* == Tooltip לניווט (כללי) == */
.nav-tooltip {
  position: relative;
  display: inline-block;
}

.nav-tooltip a {
  position: relative;
  display: inline-block;
}

.nav-tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  background-color: var(--primary-color);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 0.7rem;
  position: absolute;
  top: 130%;
  right: 50%;
  transform: translateX(50%);
  white-space: nowrap;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: opacity 0.2s ease;
}

.nav-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* == קטגוריות == */
#categories ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

#categories li {
  display: inline-block;
  background-color: var(--accent1);
  color: white;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 15px;
  font: normal 0.9em/1 'Poppins', sans-serif; /* קיצור */
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#categories li:hover {
  background-color: var(--primary-color);
}

/* == טופס צור קשר == */
#contact-form .form-group {
  margin: 0 0 1rem; /* קיצור */
}

#contact-form label {
  display: block;
  margin: 0 0 0.5rem; /* קיצור */
  font-weight: bold;
  color: var(--text-secondary);
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  width: 95%;
  padding: 10px;
  border: 1px solid var(--accent2);
  border-radius: 5px;
  font: 1em/1 'Arial', sans-serif; /* קיצור */
  background-color: #fff;
  box-sizing: border-box;
}

#contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

#contact-form .submit-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font: bold 1.1em/1 'Poppins', sans-serif; /* קיצור */
}

#contact-form .submit-btn:hover {
  background-color: var(--accent1);
}

/* == אזור תחתון (Footer) == */
footer {
  background-color: var(--text-primary);
  color: var(--background-light);
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}


/* == כפתור חזרה למעלה == */
#backToTopBtn {
  position: absolute; /* או fixed */
  left: 30px;
  /* bottom: 30px; */
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  opacity: 0.9;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

#backToTopBtn:hover {
  background-color: var(--accent1);
  opacity: 1;
}

#backToTopBtn svg {
  width: 100%;
  height: 100%;
  stroke: white;
  fill: none;
}

/* == לוגו תמונה == */
.logo-image {
  height: auto;
  max-height: 140px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* == סגנונות ספציפיים לעמוד מאמר (article.html) == */
.article-page {
  font-family: 'Poppins', sans-serif;
  background-color: #fffefc;
  color: #333;
}

.article-page main {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}

.article-page h1 {
  color: #D2691E;
  font-size: 2rem;
  margin: 0 0 1rem; /* קיצור */
}

.article-page img {
  /* שינוי: הגבלת הרוחב המקסימלי ל-100% מהאלמנט המכיל */
  max-width: 100%;
  height: auto; /* שומר על הפרופורציות של התמונה */
  border-radius: 1rem; /* עיגול פינות נשמר */
  margin: 1rem auto; /* מרכוז התמונה נשמר */
  display: block; /* התמונה מוצגת כבלוק */
}

.article-page .article-main-image {
  /* כלל זה נשאר כפי שהיה */
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
  margin: 1rem auto 1.5rem;
  border-radius: 8px;
  background-color: #f8f8f8;
}

.article-page .article-content ul,
.article-page .article-content ol {
  padding: 0 1.5rem 0 0; /* קיצור padding-right */
  margin: 0 0 1rem; /* קיצור */
}

.article-page .article-content li {
  margin: 0 0 0.5rem; /* קיצור */
}

/* ניווט ו-Tooltip ספציפיים (אוברייד לגלובלי שהיה משוכפל) */
.article-page nav ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0; /* קיצור */
  text-align: center;
}

.article-page nav ul li {
  display: inline-block;
  margin: 0 15px;
  position: relative;
}

.article-page nav ul li a {
  color: white;
  text-decoration: none;
  font: bold 1.1em/1 'Poppins', sans-serif; /* קיצור */
  position: relative;
  z-index: 1;
}

.article-page nav ul li a:hover {
  color: var(--accent2);
}

.article-page .nav-tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  background-color: #a94e10;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 0.7rem;
  position: absolute;
  top: 130%;
  right: 50%;
  transform: translateX(50%);
  white-space: nowrap;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: opacity 0.2s ease;
}

.article-page .nav-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* == סגנונות לעמוד רשימת מאמרים בלבד == */
.articles-page {
  font-family: 'Poppins', sans-serif;
  background-color: #fffefc;
}

.articles-page h2 {
  text-align: center;
  color: #D2691E;
  margin-top: 2rem;
}

.articles-page .search-filter-area {
  max-width: 1000px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.articles-page #searchInput {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  margin: 0 0 1.5rem; /* קיצור */
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.articles-page #category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 1.5rem; /* קיצור */
  padding: 0;
  list-style: none;
}

.articles-page #category-list li {
  background-color: #D2691E;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.articles-page #category-list li:hover {
  background-color: var(--accent1);
}


.articles-page .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
}

.articles-page .article-card {
  background: #fff8f0;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #e0e0e0;
}

.articles-page .article-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 8px;
  margin: 0 0 0.5rem; /* קיצור */
}

.articles-page .article-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  border-bottom: none;
}

.articles-page .read-more-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}

.articles-page .center-btn {
  text-align: center;
  margin: 0 0 2rem; /* קיצור */
}

.articles-page #loadMoreBtn {
  display: inline-block;
  margin: 0 auto;
  font: bold 1em/1 sans-serif; /* קיצור */
  padding: 12px 24px;
  background-color: #D2691E;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* == סגנונות לעמוד צור קשר בלבד == */
.contact-page main {
    max-width: 700px;
}

/* == סגנונות לעמוד Maintenance בלבד == */
.maintenance-page {
  background-color: #FEEBC9;
  color: var(--text-primary);
  text-align: center;
  padding: 2rem;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.maintenance-page .coming-soon-container {
  max-width: 900px;
  margin: 0 auto;
}

.maintenance-page .coming-soon-container img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 12px;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.maintenance-page .coming-soon-container h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.maintenance-page .coming-soon-container p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem; /* קיצור */
}

.maintenance-page .read-more-btn {
  padding: 10px 20px;
  border-radius: 5px; /* הוספתי חזרה כי הוא דורס את הכללי */
  border: none; /* הוספתי חזרה כי הוא דורס את הכללי */
  font-family: 'Poppins', sans-serif;
  /* יורש display, background, color, transition, cursor */
}

.maintenance-page .read-more-btn:hover {
    background-color: var(--accent1);
    color: white;
}

/* ================================= */
/* == Styles specific to Request Page == */
/* ================================= */

.request-page {
  /* font-family נורש מ-body או מוגדר אחרת אם צריך, Arial היה בקוד המקורי */
  font-family: 'Arial', sans-serif;
  /* background-color נורש מ-body או מוגדר אחרת אם צריך, #FFF8F0 היה בקוד המקורי */
  background-color: var(--background-light, #FFF8F0);
}

/* --- Form Area --- */

.request-page .styled-form {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 0 20px rgba(210, 105, 30, 0.08);
  max-width: 600px;
  margin: 2rem auto;
  border: 1px solid var(--accent2, #FFE4C4); /* שימוש במשתנה עם fallback */
}

.request-page .form-group {
  margin: 0 0 1.5rem;
}

.request-page label {
  display: block;
  font-weight: bold;
  margin: 0 0 0.5rem;
  color: var(--text-primary, #333); /* שימוש במשתנה עם fallback */
}

/* Style for the required asterisk span */
.request-page .form-group label .required-asterisk {
  color: red;
  margin-right: 2px;
}

.request-page input[type="text"],
.request-page textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ccc; /* אפשר להשתמש במשתנה אם יש גבול כללי */
  border-radius: 1rem;
  font: 1rem/1 sans-serif; /* ברירת מחדל או Arial ספציפי */
  box-sizing: border-box;
}

.request-page textarea {
  min-height: 120px;
}

/* Container for centering the submit button */
.request-page .styled-form .submit-container {
  text-align: center;
}

.request-page .submit-btn {
  background-color: var(--primary-color, #D2691E);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.request-page .submit-btn:hover {
  background-color: var(--accent1, #b85416); /* שימוש במשתנה accent1 או צבע כהה יותר */
}

/* Base style for success/error messages within the form */
.request-page .styled-form .message {
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  text-align: center;
  font-weight: bold;
}

/* Success message style */
.request-page .styled-form .message.success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

/* Error message style */
/* הכלל המקורי .request-page .error נמחק כי זה מכוסה על ידי הכלל הספציפי יותר הזה */
.request-page .styled-form .message.error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* --- General Page Content --- */

/* Center headings and intro paragraph in the first section */
.request-page main section:first-of-type h2,
.request-page main section:first-of-type > p:first-of-type {
  text-align: center;
}

/* Center H3 in the requests list section and add top margin */
.request-page main section:last-of-type h3 {
  text-align: center;
  margin-top: 3rem;
}

/* --- Requests List Area --- */

/* Styling for individual request cards */
/* הכלל המקורי והשבור נמחקו. נשאר רק הכלל הנכון והספציפי */
.request-page .request-card {
  background: var(--accent2, #FFE4C4);
  padding: 1rem;
  margin: 1rem auto;
  border-radius: 1rem;
  max-width: 600px;
  border: 1px solid var(--accent1, #F4A460);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* הערה: ודא שגם הכללים עבור h4, p, p.request-date שבתוך הכרטיס נמצאים בהמשך הקובץ */
/* כמו אלה: */
/*
.request-page .request-card h4 { ... }
.request-page .request-card p { ... }
.request-page .request-card p.request-date { ... }
*/

/* Heading within the request card */
/* הכלל המקורי .request-page .request-card h4 נמחק כי הוא כמעט זהה לזה */
.request-page .request-card h4 {
  margin: 0 0 0.3rem;
  color: var(--primary-color, #D2691E);
  text-align: right;
}

/* Paragraphs within the request card */
/* הכלל המקורי .request-page .request-card p נמחק כי הוא כמעט זהה לזה */
.request-page .request-card p {
  margin: 0.2rem 0;
  word-wrap: break-word;
  text-align: right;
}

/* Specific style for the date paragraph in the request card */
.request-page .request-card p.request-date {
  font-size: 0.9rem;
  color: var(--text-secondary, #6E6E6E);
  margin-top: 0.5rem;
  text-align: left; /* או right לפי העדפה */
}

/* Style for the 'no requests' message or error messages in the list area */
.request-page main section:last-of-type .no-requests-message {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-secondary, #6E6E6E);
}
.request-page main section:last-of-type .error-message {
    color: #721c24;
    font-weight: bold;
}

/* Note: Footer styling is handled globally */

/* ================================== */
/* == סגנונות לעמוד Shelter בלבד == */
/* ================================== */
.shelter-page {
  font-family: 'Poppins', sans-serif !important;
}

.shelter-page * {
  font-family: inherit !important;
}

.shelter-page #articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* סגנונות אלו עם !important היו בקוד המקורי שלך */
.shelter-page #articles-container *,
.shelter-page #articles-container {
  font-family: inherit !important;
}

.shelter-page #articles-container .article-card p {
  color: var(--text-primary) !important;
}

.shelter-page .article-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 6px;
  background-color: #f8f8f8;
  margin: 0 0 0.5rem;
  display: block;
}

.shelter-page .shelter-contact-box {
  background-color: #fff3e6;
  border: 1px solid var(--accent2);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 700px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.shelter-page .shelter-contact-box p {
  margin: 0.3rem 0;
}

/* כללים אלו היו קיימים במקור */
.shelter-page .shelter-contact-box a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.shelter-page .shelter-contact-box a:hover {
  text-decoration: underline;
}

/* כללים חדשים שהוספת עבור פסקת ההבהרה (Disclaimer) */
/* הכותרת הכפולה הוסרה */
.shelter-page .disclaimer-text {
  text-align: center;
  font-size: 0.95em;
  color: var(--text-secondary, #6E6E6E);
  margin-top: 1rem;
  padding: 0 1rem;
}

.shelter-page .disclaimer-link {
  color: var(--primary-color, #D2691E);
  font-weight: 500;
  text-decoration: none;
}

.shelter-page .disclaimer-link:hover {
  text-decoration: underline;
}

/* הכללים הכפולים עבור .shelter-contact-box a הוסרו מכאן */

/* == Media Queries == */

/* עד 768px */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.4em;
  }
  header .slogan {
    font-size: 0.9em;
    max-width: 90%;
  }
  /* התאמת המרווח של המפריד שאחרי הפריט */
  nav ul li:not(:last-child)::after {
    padding: 0 10px; /* הקטנת המרווח */
  }
  nav ul li a {
    font-size: 1em;
  }

  main {
    max-width: 95%;
    margin: 1.5rem auto;
    padding: 0 0.8rem;
  }

  #articles-container {
    gap: 1rem;
  }

  .article-card img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: 4px;
    margin: 0 auto 0.5rem; /* קיצור */
    background-color: #f8f8f8;
    display: block;
  }

  h2, h3 {
    font-size: 1.4em;
  }

  .articles-page .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* עד 600px */
@media (max-width: 600px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .articles-page .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* עד 480px */
@media (max-width: 480px) {
  .logo-image {
      max-height: 90px;
  }
  header {
    padding: 1rem 0;
  }
  header h1 {
    font-size: 2em;
  }
  header .slogan {
    font-size: 0.8em;
    line-height: 1.3;
    margin: 0 auto 0.8em; /* קיצור */
  }

  nav ul {
    margin-top: 0.5rem;
  }
  nav ul li {
    display: inline-block; /* <<-- חשוב: להשאיר אופקי! */
    margin: 0; /* איפוס מרווחים */
    padding-bottom: 0; /* איפוס ריפוד תחתון אם היה */
    border-bottom: none; /* הסרת גבול תחתון אם היה */
    vertical-align: middle;
    /* אפשר להוסיף מרווח תחתון לכל הפריטים אם יש גלישה לשורה שניה */
    /* margin-bottom: 5px; */
  }
  /* הסרת כללים ל-last-child אם היו קשורים לגבול */
  nav ul li:last-child {
      /* לא נדרשים כללים מיוחדים אם אין גבול */
      margin: 0;
      padding: 0;
  }
  /* הוספת הקו המפריד - רק במובייל! */
  nav ul li:not(:first-child)::before {
    content: "|";
    color: rgba(255, 255, 255, 0.6); /* צבע המפריד */
    padding: 0 8px; /* מרווח קטן יותר סביב המפריד למובייל */
    display: inline-block; /* להבטיח שהמפריד יוצג */
    vertical-align: middle;
  }
  
  /* התאמת המרווח של המפריד שאחרי הפריט */
  nav ul li:not(:last-child)::after {
    padding: 0 8px; /* הקטנת המרווח עוד יותר */
  }
  
  nav ul li a {
    font-size: 0.95em; /* הקטנת גודל פונט למניעת צפיפות */
    padding: 8px 0; /* ריפוד אנכי */
    display: inline-block;
    vertical-align: middle;
  }
  /* אם יש גלישה לשורה שניה, כדאי לשקול הגדרת line-height */
   nav ul {
       line-height: 1.5; /* מגדיל את המרווח בין השורות אם הטקסט גולש */
   }
}

  main {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }

  section {
    padding: 1rem;
  }
  h2, h3 {
    font-size: 1.3em;
  }

  #articles-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .article-card {
    padding: 0.8rem;
  }

  .article-card img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: 4px;
    margin: 0 auto 0.5rem; /* קיצור */
    background-color: #f8f8f8;
    display: block;
  }

  .article-card h4 {
    font-size: 1.1em;
    min-height: auto;
  }
  .article-card p {
    font-size: 0.85em;
  }

  #contact-form input[type="text"],
  #contact-form input[type="email"],
  #contact-form textarea {
    width: 93%;
    padding: 8px;
  }
  #contact-form .submit-btn {
    padding: 10px 20px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
  }

  #categories li {
    display: block;
    margin: 5px auto;
    width: 80%;
    text-align: center;
  }

  footer p {
    font-size: 0.9em;
  }

  #hero .hero-intro {
    font: 600 1.2em/1 sans-serif; /* קיצור, שימוש ב-sans-serif כללי */
    color: var(--primary-color);
    margin: 0 0 0.5rem; /* קיצור */
  }

  #backToTopBtn {
    /* bottom: 15px; */
    left: 15px;
    width: 40px;
    height: 40px;
    padding: 8px;
  }
}