/* ===== Base Typography (Light Mode) ===== */
body {
  background: #f8f9fa;
  color: #222;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.lead {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #555;
}

h1 {
    color: #333;
    font-size: 2.25rem;
    margin: 12px auto;
    display: flex;
    align-items: center;  /* ממרכז את התוכן אנכית */
    justify-content: center; /* ממרכז את התוכן אופקית */
    gap: 0.5rem;
    text-align: center; /* למקרה שהטקסט עובר שורה */
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  padding: 20px 0;
  color: #111;
  border-bottom: 2px solid #ddd;
}

h3 {
  font-size: 1.5rem;
  font-weight: 800;
  padding: 20px 0;
  color: #222;
}

/* ===== Search Box ===== */
#searchBox {
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 0.5rem;
  margin: 1rem 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #333;
}

/* ===== Table Styles ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

th, td {
  padding: 1.1rem;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background: #f1f3f5;
  color: #222;
  font-weight: 600;
}

td {
  background: #fff;
  color: #444;
  transition: background 0.3s ease;
}

td:hover {
  background: #f5f5f5;
}

/* ===== Buttons ===== */
button.video-btn {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button.video-btn:hover {
  background: #0056b3;
}

/* ===== Modal Styles ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(255,255,255,0.8);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 700px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.modal-content iframe {
  width: 100%;
  height: 400px;
}

.close {
  color: #666;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #000;
}

/* ===== Mobile Cards ===== */
.mobile-cards {
  display: none;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  background: #f8f9fa;
}

.card p {
  margin: 5px 0;
  color: #444;
}

.card button.video-btn {
  margin-top: 10px;
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }

  .modal-content iframe {
    height: 250px;
  }

  th, td {
    font-size: 0.9rem;
  }

  #searchBox {
    width: 100%;
  }

  #bikeTable {
    display: none; /* Hide table on mobile */
  }

  .mobile-cards {
    display: block;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 10px;
  }

  .card p {
    font-size: 0.85rem;
  }

  .modal-content iframe {
    height: 200px;
  }
}
