.sana-hero {
  --sana-primary: #1e4487;
  --sana-title: #2b2c2f;
  --sana-muted: #5a5d62;
  --sana-light: #e8ebef;
  --sana-frame-width: 2560;
  --sana-frame-height: 1707;
  position: relative;
  width: 100%;
  color: var(--sana-title);
  font-feature-settings: "ss05" 1, "liga" 0;
}

.sana-hero *,
.sana-hero *::before,
.sana-hero *::after { box-sizing: border-box; }

.sana-hero a { color: inherit; text-decoration: none; }

.sana-hero__slide {
  display: none;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: center;
}

.sana-hero__slide.is-active { display: grid; }

.sana-hero__media,
.sana-hero__thumb-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--sana-frame-width) / var(--sana-frame-height);
  border-radius: 8px;
  background: #f3f4f6;
  overflow: hidden;
  flex-shrink: 0;
}

.sana-hero__image,
.sana-hero__thumb-image {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: var(--feat-position, center);
  transition: opacity .2s ease;
}

.sana-hero__media:hover .sana-hero__image { opacity: .9; }

.sana-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-inline-end: 96px;
  color: var(--sana-muted);
  font-size: 13px;
  font-weight: 700;
}

.sana-hero__badge {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--sana-primary);
  color: #fff;
  font-feature-settings: "ss05" 1, "ss01" 1, "liga" 0;
}

.sana-hero__relative { font-weight: 400; }

.sana-hero__title {
  margin: 0;
  color: var(--sana-title);
  font-size: 35px;
  font-weight: 700;
  line-height: 1.24;
  text-wrap: pretty;
}

.sana-hero__title a:hover { color: var(--sana-primary); }

.sana-hero__excerpt {
  margin: 14px 0 0;
  color: var(--sana-title);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.sana-hero__navigation {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.sana-hero__arrow {
  display: flex;
  width: 38px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #d3d8de;
  border-radius: 999px;
  background: #fff;
  color: var(--sana-primary);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.sana-hero__arrow:hover,
.sana-hero__arrow:focus-visible {
  border-color: var(--sana-primary);
  background: var(--sana-primary);
  color: #fff;
}

.sana-hero__arrow svg { display: block; }

.sana-hero__progress {
  height: 3px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--sana-light);
}

.sana-hero__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sana-primary);
}

.sana-hero.is-playing .sana-hero__progress span {
  animation: sana-hero-fill var(--sana-speed, 10000ms) linear forwards;
}

.sana-hero.is-paused .sana-hero__progress span { animation-play-state: paused; }

@keyframes sana-hero-fill { from { width: 0; } to { width: 100%; } }

.sana-hero__strip {
  display: grid;
  grid-template-columns: repeat(var(--sana-count, 5), minmax(0, 1fr));
  gap: 20px;
}

.sana-hero__thumb {
  display: flex;
  min-width: 0;
  padding: 0;
  flex-direction: column;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #6b7076;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.sana-hero__thumb-media { position: relative; }

.sana-hero__thumb-wash {
  position: absolute;
  inset: 0;
  display: block;
  background: #fff;
  opacity: .45;
  pointer-events: none;
}

.sana-hero__thumb-line {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: none;
  height: 4px;
  background: var(--sana-primary);
}

.sana-hero__thumb-title {
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-wrap: pretty;
}

.sana-hero__thumb-time {
  color: var(--sana-muted);
  font-size: 13px;
  font-weight: 300;
}

.sana-hero__thumb.is-active { color: var(--sana-primary); }
.sana-hero__thumb.is-active .sana-hero__thumb-wash { display: none; }
.sana-hero__thumb.is-active .sana-hero__thumb-line { display: block; }
.sana-hero__thumb.is-active .sana-hero__thumb-title { font-weight: 500; }
.sana-hero__thumb:hover { color: var(--sana-primary); }

.sana-hero__empty {
  padding: 20px;
  border: 1px dashed #d3d8de;
  border-radius: 8px;
  color: #6b7076;
  text-align: center;
}

@media (max-width: 1024px) {
  .sana-hero__slide,
  .sana-hero__slide.is-active { display: none; }
  .sana-hero__slide.is-active { display: block; }
  .sana-hero__content { margin-top: 14px; }
  .sana-hero__meta { gap: 10px; margin-bottom: 8px; padding-inline-end: 0; }
  .sana-hero__title { font-size: 28px; line-height: 1.22; }
  .sana-hero__excerpt { display: none; }
  .sana-hero__navigation {
    inset-inline: 0;
    top: 0;
    width: 100%;
    aspect-ratio: var(--sana-frame-width) / var(--sana-frame-height);
    pointer-events: none;
  }
  .sana-hero__arrow {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    border: 0;
    background: rgba(255,255,255,.9);
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
    transform: translateY(-50%);
    pointer-events: auto;
  }
  .sana-hero__arrow--prev { inset-inline-start: 10px; }
  .sana-hero__arrow--next { inset-inline-end: 10px; }
  .sana-hero__progress { margin: 14px 0; }
  .sana-hero__strip { gap: 12px; }
  .sana-hero__thumb { gap: 8px; }
  .sana-hero__thumb-title { font-size: 14px; line-height: 1.4; }
  .sana-hero__thumb-time { font-size: 12px; }
}

@media (max-width: 767px) {
  .sana-hero__content { margin-top: 12px; }
  .sana-hero__meta { flex-wrap: wrap; font-size: 12px; }
  .sana-hero__title { font-size: 24px; }
  .sana-hero__arrow { width: 34px; height: 34px; }
  .sana-hero__progress { margin: 12px 0; }
  .sana-hero__strip {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .sana-hero__strip::-webkit-scrollbar { display: none; }
  .sana-hero__thumb { width: 150px; flex: 0 0 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .sana-hero__progress span { animation: none !important; width: 100%; }
  .sana-hero__strip { scroll-behavior: auto; }
}
