body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  margin: 0;
  padding: 0;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px 0 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 80px;
  width: auto;
}

.flag {
  height: 32px;
  width: auto;
  margin-left: 12px;
}

.main-title {
  flex: 1;
  text-align: center;
  color: #ff6600;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
}

.right-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-btn-new {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.login-btn-new:hover {
  background: #1256a3;
}

.banner-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px auto 0 auto;
  max-width: 900px;
  min-height: 220px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  background: #eee;
  overflow: hidden;
}
.banner-img-container img {
  width: 100%;
  max-width: 900px;
  max-height: 220px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
}

/* גריד של הכרטיסים */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 220px);
  gap: 36px 40px;
  max-width: 900px;
  margin: 48px auto 0 auto;
}

.cards-grid .card {
  min-width: 0;
  min-height: 0;
}

.cards-grid .empty-cell {
  /* תא ריק */
}

.cards-grid .card:nth-child(1) { grid-row: 1; grid-column: 1; }
.cards-grid .card:nth-child(2) { grid-row: 1; grid-column: 2; }
.cards-grid .card:nth-child(3) { grid-row: 1; grid-column: 3; }
.cards-grid .card:nth-child(4) { grid-row: 2; grid-column: 1; }
.cards-grid .empty-cell        { grid-row: 2; grid-column: 2; }
.cards-grid .card.cadcam2026   { grid-row: 2; grid-column: 3; }
.cards-grid .card#mustSeeCard2 { grid-row: 3; grid-column: 1; }

.card {
  background-image: url('../images/card_bg.svg');
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  color: #222;
  font-size: 1.35rem;
  font-weight: 700;
  min-width: 340px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  text-align: center;
  position: relative;
  height: 100%; /* חשוב לגריד */
}

.card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.card.cadcam2026 {
  margin-left: 0;
}
.card.must-see {
  margin-left: 0;
  transition: transform 0.3s;
}

/* מגירה נפתחת בריחוף */
.drawer-side {
  position: absolute;
  top: 0;
  left: 100%;
  width: 260px;
  height: 100%;
  background: #fffbe7;
  box-shadow: 4px 0 16px rgba(0,0,0,0.10);
  border-radius: 0 16px 16px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 10;
  padding: 24px 16px;
  display: flex;
  align-items: flex-start;
  border: 1px solid #111; /* מסגרת שחורה דקה */
}

.card.must-see:hover .drawer-side,
.card.must-see:focus-within .drawer-side {
  opacity: 1;
  pointer-events: auto;
}

.card.must-see:hover {
  transform: translateX(-40px) scale(1.04);
}

/* עיצוב קישורים במגירה */
.drawer-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.drawer-side li {
  margin-bottom: 12px;
}
.drawer-side a {
  color: #222;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.drawer-side a:hover {
  color: #ff6600;
}

/* רספונסיביות */
@media (max-width: 1000px) {
  .cards-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 18px;
    max-width: 350px;
  }
  .cards-grid .card, .cards-grid .empty-cell {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .drawer-side {
    left: 0;
    top: 100%;
    width: 100%;
    height: auto;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border-top: none;
  }
  .card.must-see:hover {
    transform: none;
  }
}
@media (max-width: 700px) {
  .top-bar, .right-bar, .top-bar-left {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }
  .main-title {
    font-size: 1.3rem;
  }
  .banner-img-container {
    min-height: 80px;
    padding: 12px;
  }
  .cards-grid {
    gap: 18px;
    max-width: 350px;
  }
  .card {
    font-size: 1.1rem;
  }
}