.news-blogs-section {
  --nb-section-bg: 255, 255, 255;
  --nb-heading: 53, 81, 61;
  --nb-accent: 53, 81, 61;
  --nb-button-bg: 53, 81, 61;
  --nb-button-text: 255, 255, 255;
  --nb-muted: 140, 140, 140;
  --nb-title: 40, 40, 40;
  --nb-divider: 230, 230, 230;

  background: rgb(var(--nb-section-bg)) !important;
  background-color: rgb(var(--nb-section-bg)) !important;
}

.news-blogs-section.page-section::before {
  background: rgb(var(--nb-section-bg)) !important;
  background-color: rgb(var(--nb-section-bg)) !important;
}

.news-blogs {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.news-blogs__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-block-end: 72px;
  min-height: 100%;
}

.news-blogs__heading {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: rgb(var(--nb-heading));
}

.news-blogs__subtitle {
  margin: 0;
  max-width: 18rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgb(var(--nb-muted));
}

.news-blogs__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-block-start: 8px;
  min-height: 48px;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  background: rgb(var(--nb-button-bg));
  color: rgb(var(--nb-button-text));
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.news-blogs__button:hover {
  opacity: 0.9;
  color: rgb(var(--nb-button-text));
}

.news-blogs__button--mobile {
  display: none;
}

.news-blogs__watermark {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: min(100%, 200px);
  pointer-events: none;
  user-select: none;
}

.news-blogs__watermark-image,
.news-blogs__watermark .media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: unset;
  background: transparent;
}

.news-blogs__watermark .media > :is(img, svg) {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
}

.news-blogs__main {
  min-width: 0;
}

.news-blogs__scroller {
  min-width: 0;
}

.news-blogs__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.news-blogs__item {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-block: 24px;
  border-block-end: 1px solid rgb(var(--nb-divider));
}

.news-blogs__item:first-child {
  padding-block-start: 0;
}

.news-blogs__item:last-child {
  border-block-end: none;
  padding-block-end: 0;
}

.news-blogs__thumb {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
}

.news-blogs__thumb .media {
  width: 100%;
  border-radius: inherit;
  background: #f2f2f2 !important;
}

.news-blogs__thumb .media > :is(img, svg) {
  border-radius: inherit;
}

.news-blogs__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.news-blogs__date {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgb(var(--nb-muted));
}

.news-blogs__title {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 700;
  line-height: 1.35;
  color: rgb(var(--nb-title));
}

.news-blogs__title a {
  color: inherit;
  text-decoration: none;
}

.news-blogs__title a:hover {
  color: rgb(var(--nb-accent));
}

.news-blogs__excerpt {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgb(var(--nb-muted));
}

.news-blogs__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  color: rgb(var(--nb-accent));
}

.news-blogs__more:hover {
  opacity: 0.85;
  color: rgb(var(--nb-accent));
}

.news-blogs__more-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  transform: rotate(-45deg);
}

.news-blogs__more-icon .icon {
  width: 100%;
  height: 100%;
}

.news-blogs__dots {
  display: none;
}

.news-blogs__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgb(var(--color-text) / 0.2);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.news-blogs__dot.is-active {
  width: 18px;
  background: rgb(var(--nb-accent));
}

@media (min-width: 960px) {
  .news-blogs__item .news-blogs__thumb .media {
    --aspect-ratio: 4 / 3;
  }
}

@media (max-width: 959px) {
  .news-blogs {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news-blogs__intro {
    gap: 8px;
    padding-block-end: 16px;
    border-block-end: 1px solid rgb(var(--nb-divider));
    min-height: 0;
  }

  .news-blogs__heading {
    font-size: 1.75rem;
  }

  .news-blogs__subtitle {
    max-width: none;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .news-blogs__button--desktop,
  .news-blogs__watermark {
    display: none;
  }

  .news-blogs__main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding-block-start: 20px;
  }

  .news-blogs__scroller {
    overflow: hidden;
  }

  .news-blogs__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .news-blogs__list::-webkit-scrollbar {
    display: none;
  }

  .news-blogs__item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    grid-template-columns: none;
    padding-block: 0 20px;
    border-block-end: 1px solid rgb(var(--nb-divider));
    scroll-snap-align: start;
    min-width: 0;
  }

  .news-blogs__item:first-child {
    padding-block-start: 0;
  }

  .news-blogs__item:last-child {
    padding-block-end: 20px;
    border-block-end: 1px solid rgb(var(--nb-divider));
  }

  .news-blogs__thumb {
    width: 100%;
    border-radius: 12px;
  }

  .news-blogs__body {
    gap: 8px;
  }

  .news-blogs__date {
    font-size: 0.75rem;
  }

  .news-blogs__title {
    font-size: 1rem;
    line-height: 1.35;
  }

  .news-blogs__title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .news-blogs__excerpt {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .news-blogs__more {
    margin-block-start: 2px;
    color: rgb(var(--nb-accent));
  }

  .news-blogs__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 8px;
  }

  .news-blogs__dots[hidden] {
    display: none;
  }

  .news-blogs__button--mobile {
    display: inline-flex;
    align-self: center;
    width: fit-content;
    min-width: 160px;
    margin-block-start: 0;
    padding: 14px 36px;
  }
}
