/* Resources page */
.res-page .page-hero--program { position: relative; overflow: hidden; }

.res-hero {
  background: linear-gradient(145deg, #003752 0%, #0077B6 48%, #005A8C 100%);
  min-height: 420px;
  padding: 108px 0 64px;
}
.res-hero.page-hero--program::before {
  display: block;
  background:
    radial-gradient(circle at 90% 20%, rgba(246, 196, 83, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 6% 82%, rgba(168, 216, 240, 0.14) 0%, transparent 38%);
}

.res-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  max-width: 1180px;
}

.res-hero-copy { min-width: 0; position: relative; z-index: 2; }
.res-hero-copy > * { animation: resHeroFade 0.7s ease-out both; }
.res-hero-copy .breadcrumb { animation-delay: 0.05s; }
.res-hero-copy .page-tagline { animation-delay: 0.12s; color: rgba(255, 255, 255, 0.92); }
.res-hero-copy h1 { animation-delay: 0.22s; margin-bottom: 14px; }
.res-hero-copy .page-lead { animation-delay: 0.35s; margin-bottom: 22px; }
.res-hero-copy .page-hero-actions { animation-delay: 0.48s; }

.res-hero .btn-primary {
  background: #fff;
  color: #0077B6;
  box-shadow: 0 8px 24px rgba(0, 35, 55, 0.2);
}
.res-hero .btn-primary:hover {
  background: #EBF5FB;
  color: #005A8C;
  box-shadow: 0 10px 28px rgba(0, 35, 55, 0.24);
}
.res-hero .btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}
.res-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

@keyframes resHeroFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.res-hero-graphic {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.res-hero-marquee { overflow: hidden; width: 100%; padding: 0 4px; }
.res-hero-marquee-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  animation: resMarqueeLeft 28s linear infinite;
}
.res-hero-marquee--bottom .res-hero-marquee-track {
  animation-name: resMarqueeRight;
  animation-duration: 32s;
}
@keyframes resMarqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes resMarqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.res-hero-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #0077B6;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(0, 40, 70, 0.15);
  white-space: nowrap;
}
.res-hero-chip i { font-size: 12px; }
.res-hero-chip--gold { color: #B45309; }
.res-hero-chip--pink { color: #BE185D; }

/* Publication covers — side-by-side fan, minimal overlap */
.res-hero-docs {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 18px);
  height: 248px;
  padding: 0 6px;
}
.res-hero-doc {
  position: relative;
  flex: 0 0 31%;
  max-width: 128px;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(0, 35, 60, 0.24);
  animation: resDocFloat 7s ease-in-out infinite;
  background: #fff;
  transform-origin: center bottom;
}
.res-hero-doc img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.res-hero-doc--1 {
  --res-rot: -5deg;
  z-index: 1;
  margin-bottom: 6px;
}
.res-hero-doc--2 {
  --res-rot: 0deg;
  z-index: 2;
  margin-bottom: 18px;
  animation-delay: -2.4s;
}
.res-hero-doc--3 {
  --res-rot: 5deg;
  z-index: 1;
  margin-bottom: 4px;
  animation-delay: -4.8s;
}
@keyframes resDocFloat {
  0%, 100% { transform: translateY(0) rotate(var(--res-rot, 0deg)); }
  50% { transform: translateY(-6px) rotate(var(--res-rot, 0deg)); }
}

@media (max-width: 900px) {
  .res-hero-split { grid-template-columns: 1fr; }
  .res-hero-graphic { max-width: 520px; margin: 4px auto 0; }
  .res-hero-docs { height: 230px; }
  .res-hero-doc { max-width: 140px; }
}

@media (max-width: 600px) {
  .res-hero { padding: 92px 0 48px; min-height: auto; }
  .res-hero-docs {
    height: 210px;
    gap: 8px;
    padding: 0 2px;
  }
  .res-hero-doc {
    flex-basis: 32%;
    max-width: none;
    border-width: 2px;
  }
  .res-hero-doc--1 { --res-rot: -3deg; margin-bottom: 4px; }
  .res-hero-doc--2 { margin-bottom: 12px; }
  .res-hero-doc--3 { --res-rot: 3deg; }
  .res-hero-chip { font-size: 10px; padding: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .res-hero-copy > *,
  .res-hero-doc,
  .res-hero-marquee-track { animation: none; }
}
