/* Homepage Blog & Events — cards + infinite carousel */

#leafs-new_list_500-1777019541485 .leafs-el-loop-7 .leafs-p-page,
#leafs-new_list_500-1777019541485 .leafs-el-loop-7 input[type="hidden"] {
  display: none !important;
}

#leafs-new_list_500-1777019541485 .leafs-el-loop-7 .leafs-p-list {
  display: block !important;
  flex-wrap: unset !important;
  width: 100% !important;
  max-width: 100% !important;
}

#leafs-new_list_500-1777019541485 .zs-blog-slider {
  --zs-blog-gap: 20px;
  --zs-blog-cols: 3;
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 8px 52px 12px;
  box-sizing: border-box;
}

#leafs-new_list_500-1777019541485 .zs-blog-slider__viewport {
  display: block;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

#leafs-new_list_500-1777019541485 .zs-blog-slider__track {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: var(--zs-blog-gap, 20px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  box-sizing: border-box;
}

#leafs-new_list_500-1777019541485 .zs-blog-slide {
  flex: 0 0 auto;
  box-sizing: border-box;
  float: none !important;
  /* JS sets exact px; this is only a pre-JS fallback (~3 columns) */
  width: 360px;
  min-width: 200px;
}

#leafs-new_list_500-1777019541485 .zs-blog-slider .leafs-p-loopitem,
#leafs-new_list_500-1777019541485 .zs-blog-slider .zs-blog-card.leafs-p-loopitem {
  display: block !important;
  flex: none !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

#leafs-new_list_500-1777019541485 .zs-blog-slider__nav {
  position: absolute;
  top: 42%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #d8e0ee;
  border-radius: 50%;
  background: #fff;
  color: var(--color1, #284a9c);
  box-shadow: 0 8px 20px rgba(20, 40, 90, 0.12);
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#leafs-new_list_500-1777019541485 .zs-blog-slider__prev {
  left: 0;
}
#leafs-new_list_500-1777019541485 .zs-blog-slider__next {
  right: 0;
}
#leafs-new_list_500-1777019541485 .zs-blog-slider__nav:hover,
#leafs-new_list_500-1777019541485 .zs-blog-slider__nav:focus-visible {
  background: var(--color1, #284a9c);
  border-color: var(--color1, #284a9c);
  color: #fff;
  outline: none;
}
#leafs-new_list_500-1777019541485 .zs-blog-slider.is-static .zs-blog-slider__nav {
  display: none;
}

/* Card */
#leafs-new_list_500-1777019541485 .zs-blog-card {
  height: 100%;
  margin: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(20, 40, 90, 0.08);
  border: 1px solid #e8eef6;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
#leafs-new_list_500-1777019541485 .zs-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 40, 90, 0.14);
}
#leafs-new_list_500-1777019541485 .zs-blog-card__hit {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
#leafs-new_list_500-1777019541485 .zs-blog-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef2f9;
}
/* Evolta-style cover morph (same enter/leave as news archive) */
#leafs-new_list_500-1777019541485 .zs-blog-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
}
#leafs-new_list_500-1777019541485 .zs-blog-card__media img:nth-child(1) {
  transform: translateX(50%) scaleX(2);
  opacity: 0;
  filter: blur(10px);
}
#leafs-new_list_500-1777019541485 .zs-blog-card__media img:nth-child(2) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  opacity: 1;
  filter: none;
}
#leafs-new_list_500-1777019541485 .zs-blog-card:hover .zs-blog-card__media img:nth-child(1),
#leafs-new_list_500-1777019541485 .zs-blog-card:focus-within .zs-blog-card__media img:nth-child(1) {
  transform: translateX(0) scaleX(1);
  opacity: 1;
  filter: blur(0);
}
#leafs-new_list_500-1777019541485 .zs-blog-card:hover .zs-blog-card__media img:nth-child(2),
#leafs-new_list_500-1777019541485 .zs-blog-card:focus-within .zs-blog-card__media img:nth-child(2) {
  transform: translateX(-50%) scaleX(2);
  opacity: 0;
  filter: blur(10px);
}
@media (prefers-reduced-motion: reduce) {
  #leafs-new_list_500-1777019541485 .zs-blog-card__media img {
    transition: none !important;
    filter: none !important;
  }
  #leafs-new_list_500-1777019541485 .zs-blog-card__media img:nth-child(1) {
    display: none !important;
  }
  #leafs-new_list_500-1777019541485 .zs-blog-card__media img:nth-child(2) {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

#leafs-new_list_500-1777019541485 .zs-blog-card__meta {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: auto;
  max-width: calc(100% - 18px);
  margin: 0;
  padding: 9px 14px 9px 12px;
  background: var(--color1, #284a9c);
  color: #fff;
  border-radius: 0 8px 0 0;
  box-sizing: border-box;
}
#leafs-new_list_500-1777019541485 .zs-blog-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
#leafs-new_list_500-1777019541485 .zs-blog-card__meta-item em {
  font-style: normal;
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
}
#leafs-new_list_500-1777019541485 .zs-blog-card__meta-item svg {
  flex: 0 0 auto;
  opacity: 0.95;
}

#leafs-new_list_500-1777019541485 .zs-blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 18px 20px;
  background: #fff;
}
#leafs-new_list_500-1777019541485 .zs-blog-card__title {
  margin: 0 0 12px;
  color: #15233f;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#leafs-new_list_500-1777019541485 .zs-blog-card__rule {
  display: block;
  position: relative;
  width: 100%;
  height: 1px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: #e6ebf3;
  overflow: hidden;
}
#leafs-new_list_500-1777019541485 .zs-blog-card__rule::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--color1, #284a9c);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
#leafs-new_list_500-1777019541485 .zs-blog-card:hover .zs-blog-card__rule::after,
#leafs-new_list_500-1777019541485 .zs-blog-card:focus-within .zs-blog-card__rule::after {
  transform: scaleX(1);
}
#leafs-new_list_500-1777019541485 .zs-blog-card__excerpt {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}
#leafs-new_list_500-1777019541485 .zs-blog-card__more {
  display: inline-block;
  align-self: flex-start;
  color: var(--color1, #284a9c);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#leafs-new_list_500-1777019541485 .zs-blog-more {
  text-align: center;
  padding: 18px 0 8px;
}
#leafs-new_list_500-1777019541485 .zs-blog-more a {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--color1, #284a9c);
  color: var(--color1, #284a9c);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#leafs-new_list_500-1777019541485 .zs-blog-more a:hover,
#leafs-new_list_500-1777019541485 .zs-blog-more a:focus-visible {
  background: var(--color1, #284a9c);
  color: #fff;
  outline: none;
}

@media (max-width: 1024px) {
  #leafs-new_list_500-1777019541485 .zs-blog-slider {
    --zs-blog-cols: 2;
    --zs-blog-gap: 16px;
    padding: 4px 44px 8px;
  }
}
@media (max-width: 640px) {
  #leafs-new_list_500-1777019541485 .zs-blog-slider {
    --zs-blog-cols: 1;
    --zs-blog-gap: 12px;
    padding: 0 40px 4px;
  }
  #leafs-new_list_500-1777019541485 .zs-blog-slider__nav {
    width: 36px;
    height: 36px;
  }
  #leafs-new_list_500-1777019541485 .zs-blog-card__meta {
    gap: 6px 10px;
    padding: 8px 10px;
  }
  #leafs-new_list_500-1777019541485 .zs-blog-card__meta-item:nth-child(1) {
    display: none;
  }
  #leafs-new_list_500-1777019541485 .zs-blog-card__meta-item em {
    max-width: 8em;
  }
}
@media (prefers-reduced-motion: reduce) {
  #leafs-new_list_500-1777019541485 .zs-blog-card,
  #leafs-new_list_500-1777019541485 .zs-blog-card__img,
  #leafs-new_list_500-1777019541485 .zs-blog-card__rule::after,
  #leafs-new_list_500-1777019541485 .zs-blog-slider__track {
    transition: none !important;
  }
}
