.hero-grid { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.hero-side-stack { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; height: 100%; }
.hero-visits {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(133, 181, 227, .42);
  border-radius: 24px;
  color: #fff;
  background: #102842;
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 1.7vw, 1.5rem);
}
.hero-visits::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/imgs/student-studying-visitor-counter.jpg') center center / cover no-repeat;
}
.hero-visits::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 19, 37, .65), rgba(5, 19, 37, .2) 36%, rgba(5, 19, 37, .94) 76%), linear-gradient(90deg, rgba(5, 19, 37, .34), transparent 85%);
}
.hero-visits-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.hero-visits-live, .hero-visits-period {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .48rem .72rem; border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px; background: rgba(7,27,50,.52);
  backdrop-filter: blur(12px); color: #f5faff;
  font-size: .7rem; font-weight: 800; letter-spacing: .04em;
}
.hero-visits-live { text-transform: uppercase; }
.hero-visits-dot { position: relative; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #ff626c; box-shadow: 0 0 0 3px rgba(255,98,108,.16); }
.hero-visits:not(.is-live) .hero-visits-dot { background: #9eafbf; box-shadow: none; }
.hero-visits.is-live .hero-visits-dot::after { content: ""; position: absolute; inset: -5px; border: 1px solid #ff626c; border-radius: 50%; animation: visit-pulse 2s ease-out infinite; }
.hero-visits-main { max-width: 100%; }
.hero-visits-kicker { color: #a6d4fa; margin: 0 0 .45rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-visits h2 { max-width: 18ch; margin: 0; color: #fff; font: 600 clamp(1.2rem, 1.55vw, 1.5rem)/1.16 "Avenir Next", "Segoe UI", sans-serif; letter-spacing: -.025em; }
.hero-visits-number { display: block; margin: .42rem 0 .1rem; font-size: clamp(3.2rem, 5.3vw, 4.7rem); line-height: 1; letter-spacing: -.065em; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.45); }
.hero-visits-caption { min-height: 1.4em; margin: .35rem 0 0; font-size: .85rem; color: #e7f2fc; }
.hero-students { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem 1rem; margin-top: clamp(.75rem,1.7vw,1.2rem); padding: .75rem .85rem; border: 1px solid rgba(188,222,246,.38); border-radius: 16px; background: rgba(5,22,42,.65); backdrop-filter: blur(10px); }
.hero-students > div { display: flex; flex-direction: column; gap: .15rem; }
.hero-students-kicker { color: #b7e1fa; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-students strong { color: #fff; font-size: clamp(1.75rem,2.8vw,2.45rem); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.hero-students p { margin: 0; color: #e7f2fc; font-size: .72rem; line-height: 1.35; }
.hero-visits-ecg { display: block; width: 100%; height: 42px; margin-top: .45rem; overflow: visible; }
.hero-visits-ecg path { fill: none; stroke: #75cbef; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(117,203,239,.65)); stroke-dasharray: 360; stroke-dashoffset: 0; }
.hero-visits.is-live .hero-visits-ecg path { animation: visit-ecg 7s linear infinite; }
.hero-rating { display: flex; flex-direction: column; justify-content: center; min-height: 168px; padding: 1.3rem 1.5rem; border: 1px solid #bacde3; border-radius: 24px; background: linear-gradient(135deg, #e5effb, #f5f9ff); color: #173454; text-decoration: none; box-shadow: var(--shadow); transition: transform 180ms ease, box-shadow 180ms ease; }
.hero-rating, .hero-pharma { flex: 1 1 0; }
.hero-rating:hover { transform: translateY(-2px); box-shadow: 0 24px 48px rgba(12,35,68,.16); }
.hero-rating-kicker { color: #315d8c; text-transform: uppercase; letter-spacing: .13em; font-size: .7rem; font-weight: 800; }
.hero-rating strong { display: block; margin-top: .28rem; font-size: clamp(2.25rem, 3.5vw, 3rem); line-height: 1; letter-spacing: -.06em; color: #184e82; }
.hero-rating strong span { font-size: .48em; letter-spacing: -.02em; }
.hero-rating-copy { margin-top: .5rem; color: #49647d; font-size: .82rem; line-height: 1.35; }
.hero-rating-more { margin-top: .7rem; font-size: .77rem; font-weight: 800; color: #185b91; }
:root[data-theme="dark"] .hero-rating { border-color: #3d5e7d; background: linear-gradient(135deg, #1b3553, #19293f); color: #eff7ff; }
:root[data-theme="dark"] .hero-rating-kicker, :root[data-theme="dark"] .hero-rating-copy { color: #bfcee0; }
:root[data-theme="dark"] .hero-rating strong, :root[data-theme="dark"] .hero-rating-more { color: #a8d5ff; }
.hero-pharma { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: 188px; overflow: hidden; padding: 1.25rem 1.45rem; border: 1px solid rgba(135,193,203,.5); border-radius: 24px; color: #fff; text-decoration: none; background: #123e4c; box-shadow: var(--shadow); transition: transform 180ms ease, box-shadow 180ms ease; }
.hero-pharma:hover { transform: translateY(-2px); box-shadow: 0 24px 48px rgba(12,35,68,.2); }
.hero-pharma::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url('/imgs/pharmacists-review-card.jpg') center 42% / cover no-repeat; }
.hero-pharma::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(5,31,45,.84),rgba(5,31,45,.18) 95%),linear-gradient(0deg,rgba(5,31,45,.94),transparent 77%); }
.hero-pharma-kicker { align-self: flex-start; padding: .35rem .58rem; border: 1px solid rgba(255,255,255,.52); border-radius: 999px; background: rgba(5,31,45,.45); color: #e5faff; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hero-pharma-content { display: grid; gap: .2rem; max-width: 28ch; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero-pharma-content strong { font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.08; letter-spacing: -.03em; }
.hero-pharma-content > span:not(.hero-pharma-link) { font-size: .81rem; line-height: 1.3; color: #eefbff; }
.hero-pharma-link { margin-top: .35rem; color: #a9eff4; font-size: .76rem; font-weight: 800; }
.hero-visits.has-new-visit .hero-visits-number { animation: visit-number 650ms ease-out; }
@keyframes visit-pulse { from { transform: scale(.55); opacity: .85; } to { transform: scale(1.75); opacity: 0; } }
@keyframes visit-ecg { to { stroke-dashoffset: -720; } }
@keyframes visit-number { 50% { color: #9edbf8; transform: translateY(-3px); } }
@media (max-width: 1040px) { .hero-grid { grid-template-columns: 1fr; } .hero-side-stack { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2,minmax(0,1fr)); align-items: stretch; } .hero-visits { grid-row: 1 / 3; } .hero-visits::before { background-position: center 35%; } }
@media (max-width: 720px) { .hero-side-stack { grid-template-columns: 1fr; grid-template-rows: auto; gap: .9rem; } .hero-visits { grid-row: auto; width: min(100%,420px); min-height: 360px; aspect-ratio: auto; justify-self: center; padding: 1.2rem; } .hero-visits-period { font-size: .62rem; } }
@media (max-width: 420px) { .hero-students { grid-template-columns: 1fr; gap: .3rem; } }
@media (prefers-reduced-motion: reduce) { .hero-visits.is-live .hero-visits-dot::after, .hero-visits.is-live .hero-visits-ecg path, .hero-visits.has-new-visit .hero-visits-number { animation: none; } }
