/* =========================================================
   TERASUPASAULIS.LT
   GIDAS – ROW 3 / NAUJAUSI PATARIMAI
   CLEAN V3
   Version: 20260920-3
   ========================================================= */


/* =========================================================
   SECTION
   ========================================================= */

.tp-guide-latest {
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 42px 24px 46px;
  box-sizing: border-box;
}


/* =========================================================
   HEADER
   ========================================================= */

.tp-guide-latest__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;

  margin-bottom: 24px;
}

.tp-guide-section-label {
  display: inline-flex;

  margin-bottom: 8px;
  padding: 6px 11px;

  border: 1px solid #efc9a9;
  border-radius: 999px;

  color: #f47721;
  background: #fffaf6;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .035em;
}

.tp-guide-latest__head h2 {
  margin: 0 0 7px;

  color: #20272d;

  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.tp-guide-latest__head p {
  max-width: 680px;
  margin: 0;

  color: #697178;

  font-size: 14px;
  line-height: 1.55;
}

.tp-guide-latest__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  flex: 0 0 auto;

  padding-bottom: 4px;

  color: #f47721 !important;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none !important;
}

.tp-guide-latest__all span {
  transition: transform .18s ease;
}

.tp-guide-latest__all:hover span {
  transform: translateX(3px);
}


/* =========================================================
   DESKTOP GRID
   ========================================================= */

.tp-guide-latest__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;

  min-width: 0;
}


/* =========================================================
   ARTICLE CARD
   ========================================================= */

.tp-guide-article-card {
  min-width: 0;

  overflow: hidden;

  background: #fff;
  border: 1px solid #e4e7e8;
  border-radius: 16px;

  box-shadow:
    0 8px 28px rgba(31, 42, 50, .055);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.tp-guide-article-card:hover {
  transform: translateY(-3px);

  border-color: #ddd7d0;

  box-shadow:
    0 14px 36px rgba(31, 42, 50, .09);
}


/* =========================================================
   IMAGE
   ========================================================= */

.tp-guide-article-card__image {
  position: relative;

  display: block;

  width: 100%;
  aspect-ratio: 3 / 2;

  overflow: hidden;

  background: #eef0ed;
}

.tp-guide-article-card__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .35s ease;
}

.tp-guide-article-card:hover
.tp-guide-article-card__image img {
  transform: scale(1.025);
}


/* =========================================================
   BODY
   ========================================================= */

.tp-guide-article-card__body {
  padding: 20px 20px 18px;
}

.tp-guide-article-card__tag {
  display: inline-flex;

  margin-bottom: 10px;
  padding: 5px 9px;

  border-radius: 999px;

  background: #fff0e4;
  color: #f47721;

  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}

.tp-guide-article-card h3 {
  margin: 0 0 10px;

  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.tp-guide-article-card h3 a {
  color: #20272d !important;
  text-decoration: none !important;
}

.tp-guide-article-card h3 a:hover {
  color: #f47721 !important;
}

.tp-guide-article-card__body > p {
  margin: 0;

  color: #697178;

  font-size: 13px;
  line-height: 1.6;
}


/* =========================================================
   CARD FOOTER
   ========================================================= */

.tp-guide-article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  margin-top: 18px;
  padding-top: 14px;

  border-top: 1px solid #edf0f1;
}

.tp-guide-article-card__footer > span {
  color: #92999e;

  font-size: 11px;
  font-weight: 600;
}

.tp-guide-article-card__footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: #f47721 !important;

  font-size: 12px;
  font-weight: 700;

  text-decoration: none !important;
}

.tp-guide-article-card__footer a span {
  transition: transform .18s ease;
}

.tp-guide-article-card__footer a:hover span {
  transform: translateX(3px);
}


/* =========================================================
   MOBILE NAVIGATION
   Created automatically by tp-guide-row3-swipe.js
   ========================================================= */

.tp-guide-latest__mobile-nav {
  display: none;
}

.tp-guide-latest__mobile-arrow {
  appearance: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  padding: 0;

  border: 1px solid #dde2df;
  border-radius: 50%;

  background: #fff;
  color: #20272d;

  font-size: 23px;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;

  box-shadow:
    0 5px 18px rgba(31, 42, 50, .07);

  transition:
    border-color .18s ease,
    color .18s ease,
    transform .18s ease,
    opacity .18s ease;
}

.tp-guide-latest__mobile-arrow:hover {
  color: #f47721;
  border-color: #efc9a9;
}

.tp-guide-latest__mobile-arrow:active {
  transform: scale(.96);
}

.tp-guide-latest__mobile-arrow[disabled] {
  opacity: .32;
  cursor: default;
}

.tp-guide-latest__mobile-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.tp-guide-latest__mobile-dot {
  appearance: none;

  width: 7px;
  height: 7px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #cbd2cd;

  cursor: pointer;

  transition:
    width .18s ease,
    border-radius .18s ease,
    background .18s ease;
}

.tp-guide-latest__mobile-dot.is-active {
  width: 22px;
  border-radius: 999px;

  background: #f47721;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

  .tp-guide-latest {
    width: min(100%, calc(100vw - 32px));
    padding: 36px 16px 40px;
  }

  .tp-guide-latest__grid {
    gap: 14px;
  }

  .tp-guide-latest__head h2 {
    font-size: 27px;
  }

  .tp-guide-article-card__body {
    padding: 17px 17px 16px;
  }

  .tp-guide-article-card h3 {
    font-size: 17px;
  }

}


/* =========================================================
   MOBILE
   Native horizontal scroll + buttons + dots
   ========================================================= */

@media (max-width: 767px) {

  .tp-guide-latest {
    width: 100%;
    margin: 0;

    padding: 34px 0 36px;

    overflow: hidden;
  }

  .tp-guide-latest__head {
    display: block;

    margin: 0 28px 20px;
  }

  .tp-guide-section-label {
    margin-bottom: 8px;
  }

  .tp-guide-latest__head h2 {
    font-size: 27px;
    line-height: 1.15;
  }

  .tp-guide-latest__head p {
    max-width: 460px;

    font-size: 13px;
  }

  .tp-guide-latest__all {
    display: none;
  }


  /* REAL MOBILE SCROLLER */

  .tp-guide-latest__grid {
    display: flex;
    flex-wrap: nowrap;

    grid-template-columns: none;

    gap: 14px;

    width: 100%;

    padding: 0 28px 10px;

    overflow-x: auto;
    overflow-y: hidden;

    box-sizing: border-box;

    scroll-snap-type: x mandatory;
    scroll-padding-inline: 28px;
    scroll-behavior: smooth;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;

    overscroll-behavior-x: contain;
  }

  .tp-guide-latest__grid::-webkit-scrollbar {
    display: none;
  }

  .tp-guide-article-card {
    flex: 0 0 84vw;

    max-width: 360px;

    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .tp-guide-article-card:hover {
    transform: none;
  }

  .tp-guide-article-card__body {
    padding: 17px 17px 16px;
  }

  .tp-guide-article-card h3 {
    font-size: 18px;
  }


  /* MOBILE CONTROL BAR */

  .tp-guide-latest__mobile-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    margin-top: 7px;
    padding: 0 20px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

  .tp-guide-latest__head {
    margin-left: 20px;
    margin-right: 20px;
  }

  .tp-guide-latest__grid {
    padding-left: 20px;
    padding-right: 20px;

    scroll-padding-inline: 20px;
  }

  .tp-guide-article-card {
    flex-basis: 84vw;
  }

}