:root {
  --primary: #011e7d;
  --secondary: #4a90e2;
  --accent: #00a3b4;
  --background: #f5f8fa;
  --text: #2c3e50;
  --text-light: #6b7c93;
  --white: #ffffff;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --border-radius: 0.5rem;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Assistant', system-ui, sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Heebo', sans-serif;
  color: var(--primary);
  line-height: 1.3;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--spacing-lg);
  background-color: #f8fafc;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a[aria-current='page']::after,
nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: var(--spacing-lg) var(--spacing-md);
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    right: 0;
  }

  nav a {
    width: 100%;
    padding: 1rem;
    text-align: right;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -5px);
  }
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* נעדכן את הסלקטור כך שיכלול גם אלמנטים אחרים עם ID */
section[id],
div[id] {
  scroll-margin-top: 100px;
}

@media (max-width: 768px) {
  section[id],
  div[id] {
    scroll-margin-top: 80px;
  }
}

.footer {
  background-color: #e8f0f7; /* רקע בהיר יותר */
  color: #1a365d;
  padding: var(--spacing-lg) 0 0;
  margin-top: var(--spacing-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.footer-section {
  position: relative;
  padding: 0 var(--spacing-md);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-section:last-child {
  border-right: none;
}

.footer-section h4 {
  color: #2d3748;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
  font-family: 'Heebo', sans-serif;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a,
.footer-section ul li span {
  color: #4a5568;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-section ul li a:hover {
  color: var(--accent);
}

.footer-section ul li i {
  color: var(--accent);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* מובייל - אקורדיון */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-section {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .footer-section h4 {
    padding: 1rem 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between; /* שינוי מ-flex-start ל-space-between */
    align-items: center;
    flex-direction: row-reverse; /* הוספת כיוון הפוך */
  }

  .footer-section h4::before {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    margin-right: auto; /* הזזת הסימן + לצד שמאל */
    margin-left: 1rem; /* מרווח משמאל */
  }

  /* עדכון האנימציה של סימן ה-+ */
  .footer-section.active h4::before {
    transform: rotate(45deg);
  }

  .footer-section ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin: 0;
  }

  .footer-section.active ul {
    max-height: 500px;
    margin-bottom: 1rem;
  }
}

.footer-bottom {
  background-color: #e8f0f7;
  margin-top: var(--spacing-md);
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.footer-bottom-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #4a5568;
  font-size: 0.9rem;
}

.footer-bottom .separator {
  color: #a0aec0;
}

@media (max-width: 480px) {
  .footer-bottom-text {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-bottom .separator {
    display: none;
  }
}

/* עיצוב הוראות הגעה בפוטר */
.footer-section ul li div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-section ul li div p {
  margin: 0;
  line-height: 1.4;
}

.navigation-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background-color: #f1f5f9;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: #e2e8f0;
  color: #2d3748;
}

.nav-link i {
  font-size: 1.1rem;
}

/* התאמה למובייל */
@media (max-width: 768px) {
  .navigation-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-link {
    justify-content: center;
  }
}

/* Hero section */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
  min-height: 80vh;
  align-items: center;
  padding: var(--spacing-lg) 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.hero-content h2 {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-light);
}

.hero-content p {
  text-align: justify;
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
}

.hero-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: linear-gradient(120deg, var(--accent), var(--secondary));
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-family: 'Heebo', sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.cta-button:hover {
  background-color: #008c9e;
  transform: translateY(-2px);
}

.cta-button.secondary:hover {
  background: var(--accent);
  color: var(--white);
}

/* services section */
.services {
  padding: var(--spacing-lg) 0;
}

.services h2 {
  text-align: right;
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 2rem;
  position: relative;
}

.services h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  right: 0;
  width: 150px;
  height: 2px;
  background-color: var(--accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.service-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.service-card:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.service-card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.service-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  font-size: 0.95rem;
}

.service-link::after {
  content: '←';
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.service-link:hover::after {
  transform: translateX(-4px);
}

/* smaller screens */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-buttons {
    justify-content: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }

  nav {
    flex-wrap: wrap;
  }

  nav a {
    width: auto;
    margin: 0.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    text-align: center;
  }

  .service-link {
    justify-content: center;
  }
}

/* section divider */
.section-divider {
  border: none;
  height: 2px;
  background-color: var(--accent);
  margin: var(--spacing-lg) 0;
}

/* Popup Styles */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.popup-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.popup-overlay.active .popup-content {
  transform: translateY(0);
  opacity: 1;
}

.popup-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.popup-content h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.contact-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-section {
  background-color: var(--background);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.contact-section h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.25rem;
}

/* Contact Options Styles */
.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
}

.contact-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: all 0.3s ease;
  color: var(--white);
  font-weight: 500;
  text-align: center;
  gap: 0.25rem;
  width: 100%;
  height: 100%;
}

.contact-button i {
  font-size: 1.5rem;
}

.contact-button span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.contact-button small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.2;
}

.contact-button.phone {
  background: linear-gradient(120deg, #80b192, #5c8b6e);
}

.contact-button.maccabi {
  background: linear-gradient(120deg, #7ba7c2, #5b8ba6);
}

.contact-button.doctorim {
  background: linear-gradient(120deg, #9b8ba6, #7a6b85);
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.95;
}

.contact-button:active {
  transform: translateY(0);
}

/* Location Info Styles */
.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.address-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.address,
.parking-info {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text);
}

.address i,
.parking-info i {
  color: var(--accent);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.parking-info div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Map Styles */
.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Navigation Buttons */
.navigation-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-button.google-maps {
  background-color: #4285f4;
}

.nav-button.waze {
  background-color: #33ccff;
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-button:active {
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .popup-content {
    padding: 1.5rem;
  }

  .contact-options {
    grid-template-columns: 1fr; /* שינוי לעמודה אחת */
    gap: 0.75rem; /* מרווח בין הכפתורים */
  }

  .contact-button {
    padding: 0.75rem; /* פדינג אחיד */
    flex-direction: column;
    text-align: center;
  }

  .contact-button i {
    font-size: 1.5rem; /* גודל אייקון */
    margin-bottom: 0.25rem;
  }

  .contact-button span {
    font-size: 1rem; /* גודל טקסט ראשי */
  }

  .contact-button small {
    font-size: 0.85rem; /* גודל טקסט משני */
  }

  .navigation-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .popup-content {
    padding: 1rem;
  }

  .contact-section {
    padding: 1rem;
  }

  .contact-options {
    gap: 0.75rem;
  }

  .address,
  .parking-info {
    font-size: 0.9rem;
  }

  .map-container iframe {
    height: 150px;
  }
}

.contact-button.phone {
  background: #e3f5e1; /* ירוק פסטלי עדין */
  color: #2f5a2e; /* ירוק כהה לטקסט */
}
.contact-button.phone small {
  color: #3d703c; /* ירוק כהה יותר לטקסט המשני */
}

.contact-button.maccabi {
  background: #e1eefa; /* כחול פסטלי עדין */
  color: #2b4c7e; /* כחול כהה לטקסט */
}
.contact-button.maccabi small {
  color: #385f9b; /* כחול כהה יותר לטקסט המשני */
}

.contact-button.doctorim {
  background: #f0e7f5; /* סגול פסטלי עדין */
  color: #5b3e6b; /* סגול כהה לטקסט */
}
.contact-button.doctorim small {
  color: #6f4c82; /* סגול כהה יותר לטקסט המשני */
}

/* הובר עדין */
.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(0.97);
}

/* יצירת קשר כחלק מאתר */
.contact-section-container {
  background-color: var(--background);
  padding: var(--spacing-lg) 0;
  margin: var(--spacing-lg) 0;
}

.contact-content {
  max-width: 1200px; /* הגדלת הרוחב המקסימלי */
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.contact-content h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 2rem;
  position: relative;
}

.contact-content h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent);
}

.contact-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-box {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.contact-box h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
  text-align: center;
}

/* מסך גדול */
@media (min-width: 992px) {
  .contact-sections {
    grid-template-columns: 400px 1fr; /* קביעת רוחב קבוע לחלק הימני */
    gap: 2rem;
  }

  .contact-box:first-child {
    order: -1; /* העברת קביעת התור לצד ימין */
  }

  .contact-options {
    grid-template-columns: 1fr; /* הצגת הכפתורים בטור אחד */
    gap: 1rem;
  }

  .contact-button {
    height: auto; /* ביטול גובה קבוע */
    padding: 1.25rem;
  }
}

/* טאבלט */
@media (min-width: 768px) and (max-width: 991px) {
  .contact-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* מובייל */
@media (max-width: 767px) {
  .contact-content {
    padding: 0 var(--spacing-sm);
  }

  .contact-box {
    padding: 1.5rem;
  }

  .contact-options {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* עדכון גודל הפופאפ במסך גדול */
@media (min-width: 992px) {
  .popup-content {
    max-width: 1000px; /* הגדלת הרוחב המקסימלי */
    padding: 2.5rem; /* הגדלת הריפוד */
  }

  /* הגדלת המפה */
  .map-container iframe {
    height: 300px; /* הגדלת גובה המפה */
  }

  /* הגדלת הטקסטים */
  .address,
  .parking-info {
    font-size: 1.1rem; /* הגדלת גודל הטקסט */
  }

  .address i,
  .parking-info i {
    font-size: 1.4rem; /* הגדלת האייקונים */
  }

  /* הגדלת כפתורי הניווט */
  .nav-button {
    padding: 1rem;
    font-size: 1.1rem;
  }

  .nav-button i {
    font-size: 1.2rem;
  }
}

/* עדכון הרקע של אזור יצירת הקשר */
.contact-section-container {
  background-color: var(--white); /* שינוי הרקע ללבן כמו בפופאפ */
  padding: var(--spacing-lg) 0;
  margin: var(--spacing-lg) 0;
}

.contact-box {
  background-color: var(--background); /* שינוי הרקע של הקופסאות לרקע בהיר */
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* עדכון סגנון הכותרת של יצירת קשר */
.contact-content h2 {
  text-align: right;
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 1.75rem;
  font-weight: 500;
  position: relative;
}

.contact-content h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  right: 0;
  width: 150px;
  height: 2px;
  background-color: var(--accent);
  transform: none;
  left: auto;
}

/* שאר הסגנונות נשארים ללא שינוי */
.contact-section-container {
  background-color: var(--white);
  padding: var(--spacing-lg) 0;
  margin: var(--spacing-lg) 0;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.contact-section-container {
  background-color: var(--white);
  padding: var(--spacing-lg) 0;
  margin: var(--spacing-lg) 0;
  border-radius: var(--border-radius); /* הוספת עיגול פינות */
  overflow: hidden; /* מניעת חריגה של תוכן מהפינות המעוגלות */
}

/* עדכון המרווחים הפנימיים כדי שהתוכן לא יהיה צמוד לקצוות */
.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-md);
}

.contact-section-container {
  background-color: var(--white);
  padding: var(--spacing-md) 0; /* הקטנת הפדינג מ-lg ל-md */
  margin: var(--spacing-md) 0; /* הקטנת המרווח מ-lg ל-md */
  border-radius: var(--border-radius);
  overflow: hidden;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md); /* הקטנת הפדינג הפנימי */
}

.contact-box {
  background-color: var(--background);
  padding: 1.5rem; /* הקטנת הפדינג מ-2rem ל-1.5rem */
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.contact-box h3 {
  margin-bottom: 1rem; /* הקטנת המרווח מ-1.5rem ל-1rem */
  color: var(--primary);
  font-size: 1.5rem;
  text-align: center;
}

/* כותרת יצירת קשר */
.contact-heading {
  text-align: right;
  margin: var(--spacing-lg) auto var(--spacing-md);
  max-width: 1200px;
  padding: 0 var(--spacing-md);
}
.contact-heading h2 {
  color: var(--primary);
  font-size: 1.75rem;
  font-weight: 500;
  position: relative;
  margin-bottom: 1rem;
}

.contact-heading h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  right: 0;
  width: 150px;
  height: 2px;
  background-color: var(--accent);
}

.book-section {
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  padding: var(--spacing-lg) 0;
  margin: var(--spacing-lg) 0;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.book-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  );
}

.book-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.book-image {
  position: relative;
  padding: 1rem;
}

.book-image::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    135deg,
    rgba(56, 161, 105, 0.08),
    rgba(66, 153, 225, 0.08)
  );
  border-radius: 16px;
  z-index: -1;
  transform: rotate(-3deg) scale(1.05);
  transition: transform 0.4s ease;
}

.book-image:hover::after {
  transform: rotate(-1deg) scale(1.08);
}

.book-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.book-image img:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.book-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.book-content h2 {
  color: #2d3748;
  font-size: 2rem;
  margin: 0;
  line-height: 1.3;
}

.book-intro {
  font-size: 1.2rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.book-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: #718096;
  line-height: 1.7;
  text-align: justify;
}

.book-details.expanded {
  max-height: 500px;
  text-align: justify;
}

.read-more-btn {
  background: none;
  border: none;
  color: #4299e1;
  cursor: pointer;
  font-weight: 500;
  padding: 0;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.read-more-btn:hover {
  color: #2b6cb0;
}

.purchase-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  width: fit-content;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(56, 161, 105, 0.1);
}

.purchase-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(56, 161, 105, 0.15);
  background: linear-gradient(135deg, #38a169, #2f855a);
}

.purchase-button i {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .book-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }

  .book-image {
    max-width: 180px;
    margin: 0 auto;
    padding: 0.5rem;
  }

  .book-content {
    gap: 1rem;
  }

  .book-content h2 {
    font-size: 1.75rem;
  }

  .book-intro {
    font-size: 1.1rem;
    text-align: justify;
  }

  .purchase-button {
    margin: 0 auto;
  }
}

.purchase-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.purchase-button.bookme {
  background: linear-gradient(135deg, #ff6b6b, #ee5253);
}

.purchase-button.bookme:hover {
  background: linear-gradient(135deg, #ee5253, #d63031);
  box-shadow: 0 6px 12px rgba(238, 82, 83, 0.15);
}

.purchase-button.steimatzky {
  background: linear-gradient(135deg, #48bb78, #38a169);
}

.purchase-button.steimatzky:hover {
  background: linear-gradient(135deg, #38a169, #2f855a);
  box-shadow: 0 6px 12px rgba(56, 161, 105, 0.15);
}

@media (max-width: 768px) {
  .purchase-buttons {
    justify-content: center;
  }

  .purchase-button {
    width: 100%;
    justify-content: center;
  }
}

.purchase-button.bookme {
  background: transparent;
  border: 2px solid #48bb78;
  color: #48bb78;
  transition: all 0.3s ease;
}

.purchase-button.bookme:hover {
  background: rgba(72, 187, 120, 0.1);
  border-color: #38a169;
  color: #38a169;
  box-shadow: 0 6px 12px rgba(72, 187, 120, 0.1);
}

.read-more-btn {
  background: none;
  border: none;
  color: #4299e1;
  cursor: pointer;
  font-weight: 500;
  padding: 0;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  align-self: flex-start; /* מיישר את הכפתור לימין */
}

/* במובייל נחזיר למרכז */
@media (max-width: 768px) {
  .read-more-btn {
    align-self: center;
  }
}

.reviews-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.reviews-section h3 {
  font-size: 1.25rem;
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  background: #f7fafc;
  border-radius: 12px;
  text-decoration: none;
  color: #4a5568;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background: #fff;
  color: #2d3748;
}

.review-card i {
  font-size: 1.5rem;
  color: #48bb78;
}

.review-card span {
  font-weight: 500;
  font-size: 0.95rem;
}

/* התאמה למובייל */
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .review-card {
    padding: 1rem;
  }

  .review-card i {
    font-size: 1.25rem;
  }

  .review-card span {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* התאמה למובייל */
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr); /* תמיד 3 עמודות */
    gap: 0.5rem; /* מרווח קטן יותר */
  }

  .review-card {
    padding: 0.75rem; /* פדינג קטן יותר */
    min-width: 0; /* מאפשר לאלמנטים להתכווץ */
  }

  .review-card i {
    font-size: 1.1rem; /* אייקון קטן יותר */
  }

  .review-card span {
    font-size: 0.8rem; /* טקסט קטן יותר */
    white-space: nowrap; /* מונע שבירת שורה בטקסט */
    overflow: hidden;
    text-overflow: ellipsis; /* מוסיף נקודות אם הטקסט ארוך מדי */
  }
}

/* מסכים קטנים במיוחד */
@media (max-width: 480px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr); /* עדיין 3 עמודות */
    gap: 0.35rem; /* מרווח עוד יותר קטן */
  }

  .review-card {
    padding: 0.5rem; /* פדינג עוד יותר קטן */
  }

  .review-card i {
    font-size: 1rem; /* אייקון עוד יותר קטן */
  }

  .review-card span {
    font-size: 0.75rem; /* טקסט עוד יותר קטן */
  }
}

.footer-bottom {
  background-color: #e7f0f7;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-text {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
}

.footer-legal-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  padding: 0.25rem 0;
}

.footer-legal-links a:hover {
  color: var(--accent);
}

/* מובייל */
@media (max-width: 768px) {
  .footer-bottom-content {
    gap: 0.75rem;
  }

  .footer-legal-links ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .footer-legal-links a {
    padding: 0.5rem;
  }
}

/* מקטע שיתוף פעולה עם מכבי */
.maccabi-section {
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  padding: var(--spacing-lg) 0;
  margin: var(--spacing-lg) 0;
  position: relative;
  overflow: hidden;
}

.maccabi-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.maccabi-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.maccabi-content h2 {
  color: var(--primary);
  font-size: 2rem;
  margin: 0;
  line-height: 1.3;
}

.maccabi-content p {
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

.maccabi-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.maccabi-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.maccabi-image:hover img {
  transform: scale(1.05);
}

.maccabi-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #0066cc, #003399);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 102, 204, 0.1);
}

.maccabi-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 102, 204, 0.15);
  background: linear-gradient(135deg, #003399, #002266);
}

.maccabi-button i {
  font-size: 1.1rem;
}

/* התאמה למסכים בינוניים */
@media (max-width: 1024px) {
  .maccabi-container {
    gap: var(--spacing-md);
  }

  .maccabi-content h2 {
    font-size: 1.75rem;
  }

  .maccabi-content p {
    font-size: 1.1rem;
  }
}

/* התאמה למובייל */
@media (max-width: 768px) {
  .maccabi-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .maccabi-image {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }

  .maccabi-content {
    gap: 1rem;
  }

  .maccabi-button {
    width: 100%;
    justify-content: center;
  }
}

/* התאמה למסכים קטנים */
@media (max-width: 480px) {
  .maccabi-section {
    padding: var(--spacing-md) 0;
  }

  .maccabi-content h2 {
    font-size: 1.5rem;
  }

  .maccabi-content p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .service-card {
    padding: 0.5rem 1rem; /* הקטנת הרווח הפנימי */
    min-height: auto; /* ביטול גובה קבוע */
  }

  .service-card h3 {
    font-size: 1rem; /* הקטנת גודל הכותרת */
  }

  .service-card p {
    font-size: 0.85rem; /* הקטנת גודל הטקסט */
    line-height: 1.2; /* הפחתת המרווח בין שורות הטקסט */
  }

  .service-link {
    font-size: 0.75rem; /* הקטנת גודל כפתור הקישור */
    margin-top: 0.5rem; /* הפחתת המרווח מעל הכפתור */
  }
}

.maccabi-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1.05); /* תמיד יהיה במצב מוגדל */
  transition: none; /* ביטול האנימציה */
}

.maccabi-image:hover img {
  transform: scale(1.05); /* אותו גודל כמו המצב הרגיל */
}

/* אפקט טעינה לתמונות */
.lazy-image {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.lazy-image.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* אפקט הופעה בגלילה */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
