/* === Wrapper agar tidak nge-clip saat hover === */
.trucky-highlight-wrap,
.trucky-highlight-jobs {
  overflow: visible !important;
  position: relative;
  padding-top: 8px;
}

/* === Barisan job horizontal (grid) === */
.trucky-highlight-jobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* slightly smaller min */
  gap: 20px;
  justify-content: center;
  max-width: 1700px;
  margin: 0 auto;
  box-sizing: border-box; /* added */
  padding: 0 16px; /* avoid touching viewport edges on tablet */
}

/* === Kartu job === */
.trucky-job-card {
  min-width: 0; /* allow card to shrink */
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid #0c0c0c;
  border-radius: 12px;
  padding: 20px;
  color: #f0f0f0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: blur(6px);
  scroll-snap-align: start;
  box-sizing: border-box; /* ensure padding included in width */
  overflow: hidden; /* prevent children from overflowing card */
}

.trucky-job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,153,255,.35);
  border-color: #0c0c0c;
  z-index: 10;
}

.trucky-job-card h4 { margin-top: 0; font-size: 18px; font-weight: 600; color: #050505; }
.trucky-job-card p  { margin: 5px 0; font-size: 14px; line-height: 1.4; color: #1a1a1a; }
.trucky-job-card .last-updated { text-align: right; font-size: 12px; color: #0c0c0c; margin-top: 12px; font-style: italic; border-top: 1px solid rgba(255,255,255,0.1); }

/* Driver info */
.driver-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.driver-info .driver-avatar {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border: 2px solid #0c0c0c;
  border-radius: 2%;
  margin-right: 12px;
  flex: 0 0 auto;
}

/* tablet breakpoint: two columns */
@media (max-width: 1024px) {
  .trucky-highlight-jobs {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px;
    padding: 0 12px;
  }
}

/* mobile: single column */
@media (max-width: 768px) {
  .trucky-highlight-jobs {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 100%;
    margin: 0;
    padding: 0 12px !important;
  }
  .trucky-job-card {
    width: 100% !important;
    padding: 16px !important;
  }
}