#aktuality,
.td-news-section {
  scroll-margin-top: 72px;
}

.td-news-section {
  position: relative;
  padding: 74px 0 88px;
  overflow: hidden;
  background: #ffffff;
}

.td-news-section__inner {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
}

.td-news-section__title {
  margin: 0 0 42px;
  color: #1c2530;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

.view-novinky {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
}

.view-novinky > h2,
.block-views-blocknovinky-block-1 > h2,
.block-views-block-novinky-block-1 > h2 {
  display: block;
  margin: 0 0 42px;
  color: #1c2530;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

.td-news-slider {
  position: relative;
  /* Olivero core sets ".view, .view-content { display: grid }" as a
     generic default. That makes this JS-inserted wrapper an implicit
     grid item with the usual "min-width: auto" default, which refuses
     to shrink below the non-wrapping card row's full content width
     (all cards side by side) - min-width: 0 lets it shrink to the
     view's actual width instead, so .td-news-slider__viewport's own
     overflow: hidden below can clip it as intended. Without this the
     slider silently bled past the right edge of the viewport on
     mobile, widening the whole page. */
  min-width: 0;
}

.td-news-slider__viewport {
  overflow: hidden;
}

.view-novinky .view-content {
  display: flex;
  align-items: stretch;
  gap: 28px;
  margin: 0;
  padding: 0;
  transition: transform 0.45s ease;
  will-change: transform;
}

.view-novinky .views-row {
  display: flex;
  flex: 0 0 calc((100% - 56px) / 3);
  min-width: 0;
  margin: 0;
}

.td-news-card {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(28, 37, 48, 0.08);
  box-shadow: 0 2px 7px rgba(25, 47, 72, 0.07);
}

.td-news-card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.td-news-card__link:hover,
.td-news-card__link:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 15px 34px rgba(25, 47, 72, 0.15);
}

.td-news-card__media {
  position: relative;
  width: 100%;
  height: 205px;
  overflow: hidden;
  background: #e9edf1;
}

.td-news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.td-news-card__link:hover .td-news-card__media img,
.td-news-card__link:focus-visible .td-news-card__media img {
  transform: scale(1.045);
}

.td-news-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px 20px 27px;
}

.td-news-card__title {
  margin: 0 0 13px;
  color: #20252b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.62;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.td-news-card__date {
  display: block;
  margin: 0 0 18px;
  color: #b3b6ba;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.035em;
}

.td-news-card__summary,
.td-news-card__summary p {
  margin: 0;
  color: #73777c;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.95;
}

.td-news-card__summary strong,
.td-news-card__summary b {
  color: #666b71;
  font-weight: 700;
}

.td-news-slider__controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.td-news-slider__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #4b5560;
  background: #ffffff;
  border: 1px solid rgba(28, 37, 48, 0.18);
  border-radius: 0;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.td-news-slider__button:hover,
.td-news-slider__button:focus-visible {
  color: #ffffff;
  background: #005ca8;
  border-color: #005ca8;
}

.td-news-slider__button:disabled {
  color: #c3c7cb;
  background: #ffffff;
  border-color: rgba(28, 37, 48, 0.08);
  cursor: default;
}

.td-news-slider__button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

@media (max-width: 1199px) {
  .td-news-section {
    padding: 66px 0 78px;
  }

  .view-novinky .view-content {
    gap: 22px;
  }

  .view-novinky .views-row {
    flex-basis: calc((100% - 44px) / 3);
  }

  .td-news-card__media {
    height: 180px;
  }
}

@media (max-width: 991px) {
  .td-news-section {
    padding: 60px 0 70px;
  }

  .td-news-section__title,
  .view-novinky > h2,
  .block-views-blocknovinky-block-1 > h2,
  .block-views-block-novinky-block-1 > h2 {
    margin-bottom: 32px;
    font-size: 24px;
  }

  .view-novinky .views-row {
    flex-basis: calc((100% - 22px) / 2);
  }

  .td-news-card__media {
    height: 210px;
  }
}

@media (max-width: 767px) {
  .td-news-section {
    padding: 52px 0 58px;
  }

  .td-news-section__inner,
  .view-novinky {
    width: min(100% - 32px, 100%);
  }

  .td-news-section__title,
  .view-novinky > h2,
  .block-views-blocknovinky-block-1 > h2,
  .block-views-block-novinky-block-1 > h2 {
    margin-bottom: 27px;
    font-size: 24px;
  }

  .view-novinky .view-content {
    gap: 16px;
  }

  .view-novinky .views-row {
    flex-basis: 100%;
  }

  .td-news-card__media {
    height: 220px;
  }

  .td-news-card__body {
    padding: 21px 19px 24px;
  }

  .td-news-card__title {
    font-size: 14px;
    line-height: 1.55;
  }

  .td-news-card__summary,
  .td-news-card__summary p {
    font-size: 14px;
    line-height: 1.8;
  }

  .td-news-slider__controls {
    margin-top: 28px;
  }
}

@media (max-width: 480px) {
  .td-news-card__media {
    height: 195px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view-novinky .view-content,
  .td-news-card__link,
  .td-news-card__media img,
  .td-news-slider__button {
    transition: none;
  }
}