/* Hero primitives */
.hero {
  position: relative;
  height: 540px;
  overflow: hidden;
  touch-action: pan-y;
}

.hero-main,
.hero-main .slide {
  position: absolute;
  inset: 0;
}

.hero-main .slide {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-main .slide.active {
  z-index: 1;
  opacity: 1;
}

.hero-main .slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-main-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 48px 400px 40px 72px;
  background: linear-gradient(transparent, rgb(0 0 0 / 55%) 40%, rgb(0 0 0 / 94%));
}

.hero-main-body > * {
  max-width: 720px;
}

.hero-main-body .headline {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--display);
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgb(0 0 0 / 30%);
}

.hero-main-body .cat {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-main-body .cat {
  font-size: 11px;
}

.hero-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgb(255 255 255 / 60%);
  font-size: 12px;
}

.hero-pagination {
  position: absolute;
  right: 48px;
  bottom: 36px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-pagination button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgb(255 255 255 / 50%);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-pagination button.active,
.hero-pagination button:hover {
  border-color: #fff;
}

.hero-pagination button.active {
  background: #fff;
}

.hero-side {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 332px;
}

.hero-side-card {
  display: flex;
  gap: 8px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--hero-card-border);
  border-radius: 12px;
  background: var(--hero-card-bg);
  box-shadow: 0 4px 20px rgb(0 0 0 / 15%), 0 1px 3px rgb(0 0 0 / 8%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-side-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklch, var(--accent) 35%, var(--hero-card-border));
  box-shadow: 0 8px 24px rgb(0 0 0 / 20%), 0 2px 6px rgb(0 0 0 / 12%);
}

.hero-side-card.selected {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgb(91 91 214 / 18%);
}

.hero-side-card img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.hero-side-card .body {
  min-width: 0;
  align-self: center;
  text-align: left;
  padding: 8px 12px 8px 0;
}

.hero-side-card .title {
  display: -webkit-box;
  overflow: hidden;
  margin: 1px 0 2px;
  color: var(--fg);
  font-weight: 600;
  -webkit-box-orient: vertical;
  font-family: var(--body);
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.hero-side-card .cat-sm {
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-side-card .meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 900px) {
  .hero {
    height: 400px;
  }

  .hero-main-body {
    padding: 28px 300px 24px 40px;
  }

  .hero-main-body .headline {
    font-size: 28px;
  }

  .hero-side {
    top: 16px;
    right: 16px;
    width: 270px;
  }

  .hero-side-card img {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 680px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .hero-main {
    position: relative;
    height: 260px;
  }

  .hero-main-body {
    padding: 20px 16px;
  }

  .hero-main-body .headline {
    font-size: 22px;
  }

  .hero-side {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
  }

  .hero-side-card {
    flex: 1 1 calc(50% - 4px);
    min-width: 140px;
    flex-direction: column;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 1px 3px rgb(0 0 0 / 6%);
    transform: none !important;
  }

  .hero-side-card:hover {
    transform: none !important;
    box-shadow: 0 1px 3px rgb(0 0 0 / 6%);
  }

  .hero-side-card img {
    width: 100%;
    height: 80px;
  }

  .hero-side-card .body {
    padding: 0 8px 8px;
  }

  .hero-pagination {
    right: 16px;
    top: 228px;
    bottom: auto;
  }
}
