/* === WRAPPER === */
.jns-scroller-wrapper {
  position: relative;
}

/* === SCROLLER (always visible, elegant scrollbar with shadow) === */
.jns-scroller {
  display: flex;
  overflow-x: scroll !important;    /* always show scrollbar */
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 1rem 0 1.5rem;
  scrollbar-gutter: stable both-edges; /* reserve scrollbar space */

  /* Firefox scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #003d80 #e6ebf5;
}

/* Chrome, Edge, Safari scrollbar */
.jns-scroller::-webkit-scrollbar {
  height: 8px;
}

.jns-scroller::-webkit-scrollbar-track {
  background: #e6ebf5;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.jns-scroller::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #003d80 0%, #0056b3 100%);
  border-radius: 10px;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2),
              0 1px 3px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.jns-scroller::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0056b3 0%, #0070ff 100%);
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.3),
              0 2px 6px rgba(0, 0, 0, 0.25);
}

/* === CARD === */
.jns-item {
  flex: 0 0 calc(33.333% - 1rem);
  scroll-snap-align: start;
  min-width: 250px;
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Entire card clickable */
.jns-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jns-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.jns-link:hover .jns-thumb img {
  transform: scale(1.05);
}

/* === IMAGE SECTION === */
.jns-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.jns-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* === TEXT AREA BELOW IMAGE === */
.jns-content {
  background: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* date */
.jns-date {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 0.25rem 0;
  line-height: 1.25;
}

/* title */
.jns-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin: 0.3rem 0 0;
  line-height: 1.3;
}

/* === WEITERLESEN BUTTON (restored original style) === */
.jns-readmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.6rem;
  background: #003d80;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.jns-readmore-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.jns-readmore-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.jns-readmore-btn:hover svg {
  transform: translateX(3px);
}

/* === MORE BUTTON (optional footer button) === */
.jns-more {
  text-align: center;
  margin-top: 1rem;
}

.jns-btn-more {
  display: inline-block;
  background: #0056b3;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.jns-btn-more:hover {
  background: #003d80;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .jns-item {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .jns-item {
    flex: 0 0 calc(100% - 1rem);
  }

  .jns-thumb {
    height: 200px;
  }

  .jns-readmore-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}

/* === SAFARI / ANDROID NORMALIZATION === */
@supports (-webkit-touch-callout: none) {
  .jns-date,
  .jns-title {
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  .jns-title {
    margin-top: 0.35rem !important;
  }
}
