/* ======================================================
   SIMULACE SEMPLICE CONTAINERU
====================================================== */
.smp-code .news-code-container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ======================================================
   EDITORIAL GRID
====================================================== */
.smp-code .news-code-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2vw, 48px);
}

/* ======================================================
   SIMULACE SEMPLICE COLUMN WRAPPERU
====================================================== */
.smp-code .news-code-item {
  width: 100%;
}

/* ======================================================
   IMAGE â€“ FIXNÃ POMÄšR + COVER + BW
====================================================== */
.smp-code .news-code-image {
  width: 100%;
  aspect-ratio: 1024 / 750;
  overflow: hidden;
  margin-bottom: clamp(1.1rem, 1.2vw, 2.2rem);
}

.smp-code .news-code-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  padding: 0 0 1.5vw 0;
}

/* ======================================================
   DATE  â†’ MEDIUM
====================================================== */
.smp-code .news-code-date {
  font-family: "HelveticaNeueLTW1GMd", sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.1vw, 2.2222222222rem);
  line-height: 134%;
  letter-spacing: 0;
  margin: 0 0 0.75vw 0;
}

/* ======================================================
   TITLE (H3) â†’ MEDIUM
====================================================== */
.smp-code .news-code-title {
  font-family: "HelveticaNeueLTW1GMd", sans-serif;
  font-weight: 400;
  font-size: clamp(1.3333333333rem, 1.6vw, 4rem);
  line-height: 122%;
  letter-spacing: 0;
  margin: 0 0 calc(1.6vw * 1.22) 0;
}

/* ======================================================
   BODY TEXT â†’ ROMAN
====================================================== */
.smp-code .news-code-text p {
  font-family: "HelveticaNeueLTW1GRoman", sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.1vw, 2.2222222222rem);
  line-height: 134%;
  letter-spacing: 0;
  margin: 0 0 calc(1.1vw * 1.34) 0;
}

.smp-code .news-code-text p a {
    color: rgb(219, 13, 21);
    font-weight: bold;
    text-decoration: underline;
}

/* =========================================
   BASE STATE
========================================= */
.smp-code .news-animate {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ACTIVE */
.smp-code .news-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.smp-code .news-code-image.news-animate {
  transition-delay: 0s;
}

.smp-code .news-code-date.news-animate {
  transition-delay: 0.1s;
}

.smp-code .news-code-title.news-animate {
  transition-delay: 0.18s;
}

.smp-code .news-code-text.news-animate {
  transition-delay: 0.28s;
}

@media (max-width: 767px) {
  /* grid = jeden sloupec */
  .smp-code .news-code-grid {
    grid-template-columns: 100%;
    row-gap: 64px;
  }

  .smp-code .news-code-item {
    grid-column: 1 !important;
  }

  .smp-code .news-code-title {
    margin: 0 0 32px 0;
  }

  .smp-code .news-code-date {
    margin: 0 0 12px 0;
  }

  .smp-code .news-code-text.news-animate p {
    margin-bottom: 24px;
  }
}





/* ======================================================
   LOAD MORE BUTTON – METROSTAV STYLE
====================================================== */

.smp-code .load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding-top: .8888888889rem;
  padding-bottom: 0.7222222222222222rem;
  padding-left: 1.6666666666666667rem;
  padding-right: 1.6666666666666667rem;
  font-family: "HelveticaNeueLTW1GRoman", sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.1vw, 2.222rem);
  line-height: 134%;
  color: #ffffff;
  background-color: #db0d15;
  border: 0.1111rem solid #db0d15;
  border-radius: 999px;
  cursor: pointer;
  transition: 
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* HOVER STATE */
.smp-code .load-more-btn:hover {
  background-color: transparent;
  color: #db0d15;
  border-color: #db0d15;
}

/* schovej vše od 4. položky dál */
.news-code-grid .news-code-item:nth-child(n+4) {
  display: none;
}
