/* Canonical side-card treatment shared by every page template. */
.hero-panel,
.hero-art,
.plans-art {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  padding: 20px;
  background: var(--soft);
  border-radius: 32px;
  box-shadow: var(--shadow);
  isolation: isolate;
  animation: hero-card-reveal 780ms cubic-bezier(.16, 1, .3, 1) both;
}

.hero-panel::before,
.hero-art::before,
.plans-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -170px;
  top: -170px;
  border-radius: 50%;
  background: rgba(17, 198, 207, .2);
}

.hero-panel::after,
.hero-art::after,
.plans-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 270px;
  height: 270px;
  left: -130px;
  bottom: -140px;
  border-radius: 50%;
  background: rgba(8, 120, 249, .16);
}

.panel-media,
.hero-art > picture,
.plans-art > picture {
  position: relative;
  width: 100%;
  min-height: 250px;
  height: 250px;
  flex: 0 0 250px;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #eaf4ff;
}

.panel-media picture {
  width: 100%;
  height: 100%;
}

.panel-media img,
.hero-art img,
.plans-art img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.panel-copy,
.hero-art .card-caption,
.plans-art .card-caption {
  max-width: 420px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 760;
  letter-spacing: -.03em;
  line-height: 1.3;
  text-wrap: balance;
}

.panel-tags,
.hero-art .card-tags,
.plans-art .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.panel-tags span,
.hero-art .card-tags span,
.plans-art .card-tags span {
  padding: 8px 12px;
  color: #31506f;
  background: rgba(255, 255, 255, .86);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

@keyframes hero-card-reveal {
  from { opacity: .35; transform: translateY(18px); clip-path: inset(0 0 14% 0 round 32px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0 round 32px); filter: blur(0); }
}

@media (max-width: 720px) {
  .hero-panel,
  .hero-art,
  .plans-art {
    min-height: 430px;
    padding: 16px;
    border-radius: 24px;
  }

  .panel-media,
  .hero-art > picture,
  .plans-art > picture {
    min-height: 220px;
    height: 220px;
    flex-basis: 220px;
    border-radius: 18px;
  }
}
