/* Základní wrapper – Jobmarkt styl, přes Elementor lze přepsat Backgroundem */
.jobm-wrapper {
  position: relative;
  padding: 24px 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.4), transparent 55%),
    #020617;
  overflow: hidden;
  width: 100%;
}

.jobm-strip {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-inline: 0;
}

.jobm-strip-row {
  position: relative;
  overflow: hidden;
  padding-block: 10px;
}

.jobm-strip-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Směry animace */
.jobm-dir-left,
.jobm-dir-right {
  flex-direction: row;
}

.jobm-dir-up,
.jobm-dir-down {
  flex-direction: column;
}

.jobm-dir-left {
  animation: jobm-strip-marquee-x-left var(--jobm-speed, 20s) linear infinite;
}

.jobm-dir-right {
  animation: jobm-strip-marquee-x-right var(--jobm-speed, 20s) linear infinite;
}

.jobm-dir-up {
  animation: jobm-strip-marquee-y-up var(--jobm-speed, 20s) linear infinite;
}

.jobm-dir-down {
  animation: jobm-strip-marquee-y-down var(--jobm-speed, 20s) linear infinite;
}

.jobm-strip-track-inner {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 44px;
  padding-right: 44px;
}

.jobm-dir-up .jobm-strip-track-inner,
.jobm-dir-down .jobm-strip-track-inner {
  flex-direction: column;
  gap: 24px;
  padding-right: 0;
  padding-bottom: 44px;
}

.jobm-strip-item {
  flex: 0 0 auto;
}

.jobm-strip-card {
  position: relative;
  min-width: 260px;
  max-width: 420px;
  min-height: 100px;
  padding: 18px 22px 18px 26px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.42);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #e5e7eb;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.jobm-strip-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.95);
  background: rgba(15, 23, 42, 0.99);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 1);
}

.jobm-strip-content {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.jobm-strip-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jobm-strip-logo-img {
  max-width: 120px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.jobm-strip-initials {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
  padding-inline: 12px;
}

.jobm-strip-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.35;
  row-gap: 3px;
  max-width: 100%;
  min-width: 0;
  flex: 1;
}

.jobm-strip-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  row-gap: 4px;
  min-width: 0;
  width: 100%;
  flex-wrap: wrap; /* když je málo místa, badge spadne pod název */
}

.jobm-strip-text-main {
  font-size: 14px;
  font-weight: 700;
  color: #e5e7eb;
  max-width: 100%;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jobm-strip-badge-inline {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.95);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.55);
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.15;
}

.jobm-strip-text-sub {
  font-size: 12px;
  font-weight: 400;
  color: #a6adbb;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jobm-strip-text-meta {
  font-size: 11px;
  font-weight: 600;
  color: rgba(56, 189, 248, 0.85);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.jobm-strip-cta {
  flex: 0 0 auto;
  margin-left: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(2, 6, 23, 0.9);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.6);
  opacity: 0.9;
  white-space: nowrap;
  transition: opacity 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.jobm-strip-card:hover .jobm-strip-cta {
  opacity: 1;
  border-color: rgba(56, 189, 248, 0.9);
  background: rgba(2, 6, 23, 0.98);
}

.jobm-strip-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  pointer-events: none;
  z-index: 2;
}

.jobm-strip-fade-left {
  left: 0;
  background: linear-gradient(to right, #020617, transparent);
}

.jobm-strip-fade-right {
  right: 0;
  background: linear-gradient(to left, #020617, transparent);
}

/* Horizontální posun */
@keyframes jobm-strip-marquee-x-left {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes jobm-strip-marquee-x-right {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Vertikální posun */
@keyframes jobm-strip-marquee-y-up {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -50%, 0);
  }
}

@keyframes jobm-strip-marquee-y-down {
  0% {
    transform: translate3d(0, -50%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 768px) {
  .jobm-strip-card {
    min-width: 200px;
    max-width: 320px;
    min-height: 80px;
    padding: 14px 16px 12px 16px;
    gap: 10px;
  }
  .jobm-strip-track-inner {
    gap: 28px;
    padding-right: 28px;
  }
  .jobm-dir-up .jobm-strip-track-inner,
  .jobm-dir-down .jobm-strip-track-inner {
    padding-bottom: 28px;
  }
  .jobm-strip-content {
    gap: 12px;
  }
  .jobm-strip-badge-inline {
    font-size: 9px;
    padding: 1.5px 6px;
    line-height: 1.1;
  }
  .jobm-strip-cta {
    font-size: 10px;
    padding: 5px 9px;
    margin-left: 6px;
  }
}

