/* SquareCo Hero Latest News — matches site accent #6398f6 and hero bottom card language */

.home-hero-wrap {
  position: relative;
}

.sc-hln-card {
  --sc-hln-accent: #6398f6;
  --sc-hln-ink: #232021;
  --sc-hln-muted: rgba(35, 32, 33, 0.62);
  position: absolute;
  top: 118px;
  right: max(20px, calc((100% - 1252px) / 2 + 20px));
  z-index: 5;
  width: min(340px, calc(100vw - 40px));
  opacity: 0;
  transform: translateY(12px);
  animation: sc-hln-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.sc-hln-card__link {
  display: block;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow:
    0 10px 30px rgba(15, 35, 70, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sc-hln-card__link:hover,
.sc-hln-card__link:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 16px 36px rgba(15, 35, 70, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  outline: none;
}

.sc-hln-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 0;
}

.sc-hln-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'MontserratRegular', Montserrat, Helvetica, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sc-hln-accent);
}

.sc-hln-card__eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sc-hln-accent);
  box-shadow: 0 0 0 0 rgba(99, 152, 246, 0.55);
  animation: sc-hln-pulse 2s ease-out infinite;
}

.sc-hln-card__date {
  font-family: 'MontserratRegular', Montserrat, Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: var(--sc-hln-muted);
  white-space: nowrap;
}

.sc-hln-card__media {
  margin: 12px 12px 0;
  height: 110px;
  border-radius: 8px;
  background-color: #e8eef8;
  background-size: cover;
  background-position: center;
}

.sc-hln-card__body {
  padding: 14px 18px 18px;
}

.sc-hln-card__title {
  margin: 0;
  font-family: 'MontserratRegular', Montserrat, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.2px;
  color: var(--sc-hln-ink);
  text-transform: none;
  font-weight: 400;
  text-align: left;
}

.sc-hln-card__excerpt {
  margin: 8px 0 0;
  padding: 0;
  text-indent: 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sc-hln-muted);
  white-space: normal;
}

.sc-hln-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: 'MontserratRegular', Montserrat, Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--sc-hln-accent);
}

.sc-hln-card__link:hover .sc-hln-card__cta svg,
.sc-hln-card__link:focus-visible .sc-hln-card__cta svg {
  transform: translateX(3px);
}

.sc-hln-card__cta svg {
  transition: transform 0.2s ease;
}

@keyframes sc-hln-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sc-hln-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 152, 246, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(99, 152, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 152, 246, 0);
  }
}

@media (max-width: 1100px) {
  .sc-hln-card {
    top: 96px;
    width: min(300px, calc(100vw - 40px));
  }

  .sc-hln-card__title {
    font-size: 16px;
  }

  .sc-hln-card__media {
    height: 90px;
  }
}

@media (max-width: 767px) {
  .sc-hln-card {
    top: auto;
    bottom: 18px;
    right: 20px;
    left: 20px;
    width: auto;
  }

  .sc-hln-card__excerpt {
    display: none;
  }
}
