.unilivre-animated-hero {
  --unilivre-red: #cf0d0d;
  --unilivre-red-deep: #630707;
  --unilivre-gold: #f4bf45;
  --unilivre-gold-soft: rgba(244, 191, 69, 0.24);
  --unilivre-ink: #2a1515;
  --unilivre-muted: #7c6262;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(620px, 78vh, 820px);
  padding: clamp(42px, 6vw, 78px) clamp(18px, 5vw, 72px);
  color: var(--unilivre-ink);
  background:
    linear-gradient(135deg, #ffffff 0%, #fff8f4 48%, #f8eddf 100%);
}

.unilivre-animated-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(207, 13, 13, 0.08), transparent 30%, rgba(244, 191, 69, 0.11)),
    repeating-linear-gradient(115deg, transparent 0 24px, rgba(99, 7, 7, 0.035) 25px 26px);
}

.unilivre-animated-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0));
}

.unilivre-hero__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.unilivre-hero__sr-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.unilivre-hero__visual {
  position: relative;
  min-height: clamp(540px, 66vh, 720px);
}

.unilivre-symbol {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(238px, 26vw, 350px);
  aspect-ratio: 245 / 391;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  filter: drop-shadow(0 28px 32px rgba(99, 7, 7, 0.16));
  animation: unilivreSymbolEnter 900ms cubic-bezier(0.2, 0.78, 0.2, 1) 160ms forwards;
}

.unilivre-symbol__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.unilivre-symbol__strokes {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unilivre-symbol__stroke {
  stroke: #d80d0d;
  stroke-width: 9.2;
  vector-effect: non-scaling-stroke;
}

.unilivre-symbol__stroke:nth-child(4n + 1) {
  stroke-width: 7.8;
}

.unilivre-symbol__stroke:nth-child(4n + 2) {
  stroke-width: 10.4;
}

.unilivre-symbol__stroke:nth-child(4n + 3) {
  stroke-width: 8.8;
}

.unilivre-symbol__edge {
  fill: none;
  stroke: transparent;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.unilivre-symbol__svg--base {
  z-index: 1;
}

.unilivre-symbol__svg--base .unilivre-symbol__stroke {
  stroke: #d80d0d;
}

.unilivre-symbol__svg--base .unilivre-symbol__stroke:nth-child(5n + 1) {
  stroke: #7a0808;
}

.unilivre-symbol__svg--base .unilivre-symbol__stroke:nth-child(5n + 2) {
  stroke: #ff2a1c;
}

.unilivre-symbol__svg--base .unilivre-symbol__stroke:nth-child(5n + 3) {
  stroke: #f1170f;
}

.unilivre-symbol__svg--base .unilivre-symbol__stroke:nth-child(5n + 4) {
  stroke: #b50909;
}

.unilivre-symbol__svg--light {
  z-index: 2;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(244, 191, 69, 0.86)) drop-shadow(0 0 16px rgba(244, 191, 69, 0.42));
  -webkit-mask-image: radial-gradient(
    circle at var(--light-x) var(--light-y),
    #000 0 8%,
    rgba(0, 0, 0, 0.78) 14%,
    rgba(0, 0, 0, 0.28) 22%,
    transparent 34%
  );
  mask-image: radial-gradient(
    circle at var(--light-x) var(--light-y),
    #000 0 8%,
    rgba(0, 0, 0, 0.78) 14%,
    rgba(0, 0, 0, 0.28) 22%,
    transparent 34%
  );
  transition:
    opacity 460ms ease,
    -webkit-mask-position 920ms cubic-bezier(0.22, 0.8, 0.24, 1),
    mask-position 920ms cubic-bezier(0.22, 0.8, 0.24, 1);
}

.unilivre-symbol__stroke--lit {
  stroke: #ffe49a;
  stroke-width: 13.5;
  mix-blend-mode: screen;
}

.unilivre-symbol__edge--light {
  stroke: transparent;
}

.is-light-visible .unilivre-symbol__svg--light {
  opacity: 1;
}

.unilivre-symbol__beam {
  position: absolute;
  left: 0;
  top: var(--light-y);
  z-index: 3;
  width: 100%;
  height: 18%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at var(--light-x) 50%,
      rgba(255, 255, 255, 0.68) 0 3%,
      rgba(255, 226, 140, 0.52) 8%,
      rgba(244, 191, 69, 0.17) 22%,
      transparent 58%
    ),
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 232, 168, 0.14),
      rgba(244, 191, 69, 0.2),
      rgba(255, 232, 168, 0.14),
      transparent
    );
  filter: blur(1.4px);
  mix-blend-mode: screen;
  transition:
    top 920ms cubic-bezier(0.22, 0.8, 0.24, 1),
    opacity 460ms ease;
}

.is-light-visible .unilivre-symbol__beam {
  opacity: 0.86;
}

.unilivre-symbol__node {
  position: absolute;
  left: var(--light-x);
  top: var(--light-y);
  z-index: 4;
  width: clamp(26px, 3.5vw, 46px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.76);
  pointer-events: none;
  background:
    radial-gradient(circle, #fff 0 7%, #ffeab0 16%, rgba(244, 191, 69, 0.78) 34%, transparent 72%);
  box-shadow:
    0 0 20px rgba(244, 191, 69, 0.84),
    0 0 44px rgba(207, 13, 13, 0.18);
  transition:
    left 920ms cubic-bezier(0.22, 0.8, 0.24, 1),
    top 920ms cubic-bezier(0.22, 0.8, 0.24, 1),
    opacity 420ms ease,
    transform 420ms ease;
}

.unilivre-symbol__node::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: clamp(120px, 22vw, 220px);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.7),
    rgba(244, 191, 69, 0.7),
    transparent
  );
  filter: blur(1px);
}

.is-light-visible .unilivre-symbol__node {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.unilivre-hero__connector {
  position: absolute;
  top: clamp(150px, var(--card-y), calc(100% - 150px));
  z-index: 1;
  width: clamp(95px, 13vw, 170px);
  height: 1px;
  opacity: 0.62;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(244, 191, 69, 0), rgba(244, 191, 69, 0.88), rgba(207, 13, 13, 0.22));
  box-shadow: 0 0 12px rgba(244, 191, 69, 0.34);
  transition:
    top 620ms ease,
    opacity 300ms ease;
}

.unilivre-hero__connector--right {
  left: calc(50% + clamp(88px, 10vw, 142px));
}

.unilivre-hero__connector--left {
  right: calc(50% + clamp(88px, 10vw, 142px));
  transform: scaleX(-1);
}

.unilivre-news-card {
  position: absolute;
  top: clamp(150px, var(--card-y), calc(100% - 150px));
  z-index: 2;
  width: clamp(270px, 26vw, 348px);
  overflow: hidden;
  color: var(--unilivre-ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(207, 13, 13, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 46px rgba(86, 22, 18, 0.16);
  backdrop-filter: blur(10px);
  transform: translateY(-50%) scale(0.96);
  opacity: 0;
  transition:
    top 620ms ease,
    transform 360ms ease,
    opacity 360ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease;
}

.unilivre-news-card--right {
  left: calc(50% + clamp(172px, 17vw, 236px));
}

.unilivre-news-card--left {
  right: calc(50% + clamp(172px, 17vw, 236px));
}

.unilivre-news-card.is-entering,
.unilivre-news-card.is-exiting {
  opacity: 0;
}

.unilivre-news-card.is-entered {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.unilivre-news-card:hover,
.unilivre-news-card:focus-visible {
  border-color: rgba(244, 191, 69, 0.55);
  box-shadow:
    0 28px 58px rgba(86, 22, 18, 0.2),
    0 0 0 4px rgba(244, 191, 69, 0.14);
  transform: translateY(-50%) scale(1.018);
  outline: none;
}

.unilivre-news-card__media {
  display: grid;
  min-height: 154px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(207, 13, 13, 0.08), rgba(244, 191, 69, 0.12)),
    #fff;
}

.unilivre-news-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 460ms ease;
}

.unilivre-news-card:hover .unilivre-news-card__image,
.unilivre-news-card:focus-visible .unilivre-news-card__image {
  transform: scale(1.025);
}

.unilivre-news-card__fallback {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 24px;
  place-items: center;
  color: var(--unilivre-red-deep);
  font: 700 1rem/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

.unilivre-news-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
  padding: 15px 16px 16px;
  border-top: 1px solid rgba(99, 7, 7, 0.08);
}

.unilivre-news-card__title {
  color: var(--unilivre-red-deep);
  font: 750 clamp(0.98rem, 1.45vw, 1.18rem) / 1.22 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.unilivre-news-card__action {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(207, 13, 13, 0.2);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 191, 69, 0.18));
}

.unilivre-news-card__action::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: 10px 0 0 9px;
  border-top: 2px solid var(--unilivre-red);
  border-right: 2px solid var(--unilivre-red);
  transform: rotate(45deg);
}

@keyframes unilivreSymbolEnter {
  from {
    opacity: 0;
    transform: translate(-50%, -47%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 1080px) {
  .unilivre-news-card--right {
    left: calc(50% + clamp(150px, 20vw, 240px));
  }

  .unilivre-news-card--left {
    right: calc(50% + clamp(150px, 20vw, 240px));
  }
}

@media (max-width: 820px) {
  .unilivre-animated-hero {
    min-height: auto;
    padding: 42px 18px 52px;
  }

  .unilivre-hero__visual {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .unilivre-symbol {
    position: relative;
    left: auto;
    top: auto;
    width: clamp(205px, 58vw, 285px);
    transform: scale(0.96);
  }

  .unilivre-news-card,
  .unilivre-news-card--left,
  .unilivre-news-card--right {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: min(100%, 390px);
    transform: scale(0.97);
  }

  .unilivre-news-card.is-entered,
  .unilivre-news-card:hover,
  .unilivre-news-card:focus-visible {
    transform: scale(1);
  }

  .unilivre-hero__connector {
    display: none;
  }
}

@media (max-width: 430px) {
  .unilivre-news-card__body {
    min-height: 82px;
    padding: 14px;
  }

  .unilivre-news-card__title {
    font-size: 0.96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .unilivre-symbol {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .unilivre-symbol__node,
  .unilivre-symbol__beam,
  .unilivre-symbol__svg--light,
  .unilivre-news-card,
  .unilivre-news-card__image,
  .unilivre-hero__connector {
    transition-duration: 1ms;
  }

  .unilivre-news-card:hover,
  .unilivre-news-card:focus-visible {
    transform: translateY(-50%) scale(1.004);
  }

  @media (max-width: 820px) {
    .unilivre-symbol {
      transform: none;
    }

    .unilivre-news-card:hover,
    .unilivre-news-card:focus-visible {
      transform: scale(1);
    }
  }
}
