/* First hero slide — premium lead layout */

.sum-hero-copy--lead {
  position: relative;
  z-index: 3;
  display: block;
  max-width: min(1040px, 100%);
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.sum-hero-lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

@media (min-width: 992px) {
  .sum-hero-lead-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(200px, 240px);
    gap: 28px 32px;
  }
}

.sum-hero-lead-panel {
  position: relative;
  padding: clamp(22px, 3vw, 32px) clamp(24px, 3.2vw, 38px);
  border-radius: 22px;
  background: linear-gradient(
    152deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(245, 251, 255, 0.92) 48%,
    rgba(255, 255, 255, 0.88) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 28px 64px rgba(21, 39, 78, 0.14),
    0 0 0 1px rgba(62, 201, 228, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  max-width: min(560px, 100%);
}

.sum-hero-lead-panel__shine {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 70%;
  height: 120%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(62, 201, 228, 0.18) 48%,
    transparent 65%
  );
  transform: rotate(-8deg);
  pointer-events: none;
  animation: sum-hero-shine 10s ease-in-out infinite;
}

@keyframes sum-hero-shine {
  0%,
  100% {
    opacity: 0.35;
    transform: rotate(-8deg) translateX(0);
  }
  50% {
    opacity: 0.85;
    transform: rotate(-8deg) translateX(12%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sum-hero-lead-panel__shine {
    animation: none;
  }
}

.sum-hero-lead-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #7ee8fd 0%, #309c5a 50%, #1a4a7a 100%);
  box-shadow: 0 0 20px rgba(126, 232, 253, 0.45);
}

.sum-hero-eyebrow--lead {
  margin-bottom: 12px !important;
  color: #1a4a7a !important;
  background: linear-gradient(135deg, rgba(232, 248, 255, 0.95) 0%, rgba(237, 248, 241, 0.95) 100%) !important;
  border-color: rgba(62, 201, 228, 0.45) !important;
  box-shadow: 0 4px 16px rgba(39, 71, 125, 0.08);
}

.sum-hero-eyebrow--lead i {
  color: #309c5a;
  filter: none;
}

.sum-hero-copy--lead h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.sum-hero-lead-title {
  display: block;
  background: linear-gradient(120deg, #0f2344 0%, #1a4a7a 45%, #309c5a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.sum-hero-copy--lead h1 .sum-hero-lead-accent {
  display: block;
  margin-top: 8px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(92deg, #1a4a7a 0%, #309c5a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none;
}

.sum-hero-lead-desc {
  margin-bottom: 16px;
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  line-height: 1.55;
  color: #4a5568 !important;
  max-width: 38ch;
}

.sum-hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.sum-hero-trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 248, 255, 0.95) 0%, rgba(237, 248, 241, 0.9) 100%);
  border: 1px solid rgba(48, 156, 90, 0.22);
  font-family: var(--title-font);
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a4a7a;
  box-shadow: 0 6px 18px rgba(39, 71, 125, 0.08);
}

.sum-hero-trust-row li::after {
  display: none !important;
}

.sum-hero-trust-row li i {
  color: #309c5a;
  font-size: 0.85rem;
}

/* Floating accent cards (desktop) */
.sum-hero-lead-aside {
  display: none;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 992px) {
  .sum-hero-lead-aside {
    display: flex;
  }
}

.sum-hero-lead-float-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(21, 39, 78, 0.12);
  animation: sum-hero-float-card 5s ease-in-out infinite;
}

.sum-hero-lead-float-card--care {
  animation-delay: 0.6s;
}

.sum-hero-lead-float-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1a4a7a, #309c5a);
  color: #fff;
  font-size: 1.05rem;
}

.sum-hero-lead-float-card--jci .sum-hero-lead-float-card__icon {
  background: linear-gradient(145deg, #27477d, #3ec9e4);
}

.sum-hero-lead-float-card__text {
  font-size: 0.82rem;
  line-height: 1.25;
  color: #475569;
}

.sum-hero-lead-float-card__text strong {
  display: block;
  font-size: 1.05rem;
  color: #15274e;
}

@keyframes sum-hero-float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.sum-hero-slide--lead-light .sum-hero-banner-img--campus {
  object-position: 62% center;
}

.sum-hero-lead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

.sum-hero-cta-primary {
  margin: 0 !important;
  padding: 16px 30px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem !important;
  border-radius: 999px !important;
  box-shadow:
    0 4px 0 rgba(22, 100, 55, 0.85),
    0 16px 40px rgba(48, 156, 90, 0.45) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sum-hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 rgba(22, 100, 55, 0.85),
    0 20px 48px rgba(48, 156, 90, 0.55) !important;
}

.sum-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--title-font);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sum-hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #7ee8fd;
  transform: translateY(-2px);
}

/* Lead panel (light card): match outline CTA style on white */
.sum-hero-slide--lead-light .sum-hero-lead-panel .sum-hero-btn-secondary {
  color: #1a4a7a !important;
  background: rgba(48, 156, 90, 0.08);
  border: 1px solid rgba(48, 156, 90, 0.4);
  backdrop-filter: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  padding: 14px 22px;
  box-shadow: none;
}

.sum-hero-slide--lead-light .sum-hero-lead-panel .sum-hero-btn-secondary:hover {
  background: rgba(48, 156, 90, 0.14);
  border-color: #309c5a;
  color: #15274e !important;
  transform: translateY(-2px);
}

.sum-hero-slide--lead-light .sum-hero-lead-panel .sum-hero-btn-secondary i {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Floating accreditation badges (desktop) */
.sum-hero-lead-badges {
  display: none;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 992px) {
  .sum-hero-lead-badges {
    display: flex;
  }
}

.sum-hero-lead-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  animation: sum-hero-badge-in 0.7s ease backwards;
}

.sum-hero-lead-badge:nth-child(2) {
  animation-delay: 0.12s;
}

.sum-hero-lead-badge:nth-child(3) {
  animation-delay: 0.24s;
}

.sum-hero-lead-badge--em {
  border-color: rgba(230, 57, 70, 0.25);
  background: linear-gradient(135deg, #fff 0%, #fff5f6 100%);
}

.sum-hero-lead-badge__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1a4a7a, #309c5a);
  color: #fff;
  font-size: 1rem;
}

.sum-hero-lead-badge--em .sum-hero-lead-badge__icon {
  background: linear-gradient(145deg, #c62828, #e63946);
}

.sum-hero-lead-badge__text {
  font-size: 0.8rem;
  line-height: 1.25;
  color: #334155;
}

.sum-hero-lead-badge__text strong {
  display: block;
  font-size: 1rem;
  color: #15274e;
}

@keyframes sum-hero-badge-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Media & overlays */
.sum-hero-slide--lead .banner-content {
  isolation: isolate;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  body.sum-home-mobile-match .sum-hero-lead-panel {
    padding: 10px 12px 12px;
    box-shadow: 0 8px 22px rgba(15, 35, 65, 0.14);
  }

  body.sum-home-mobile-match .sum-hero-copy--lead h1 {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    margin-bottom: 6px;
  }
}

.sum-hero-slide--lead-light .banner-content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 78% 35%, rgba(255, 255, 255, 0.35) 0%, transparent 55%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 252, 255, 0.2) 42%, transparent 62%);
}

.sum-hero-slide--lead-light .sum-hero-banner-img--campus {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  transform: scale(1.04);
  animation: sum-hero-kenburns 28s ease-out forwards;
  filter: saturate(1.04) contrast(1.02) brightness(1.1);
}

@keyframes sum-hero-kenburns {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.14);
  }
}

.sum-hero-slide--lead-light .sum-hero-overlay {
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(248, 252, 255, 0.55) 34%,
    rgba(255, 255, 255, 0.12) 52%,
    transparent 68%
  ) !important;
}

.sum-hero-slide--lead-light::after {
  content: "";
  position: absolute;
  right: -5%;
  top: 18%;
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 201, 228, 0.15) 0%, transparent 68%);
  z-index: 1;
  pointer-events: none;
  filter: blur(4px);
}

@media (max-width: 991.98px) {
  .sum-hero-slide--lead-light::after {
    display: none;
  }

  .sum-hero-slide--lead-light .banner-content::after {
    display: none;
  }

  .sum-hero-slide--lead-light .sum-hero-banner-img--campus {
    transform: none;
    animation: none;
    filter: saturate(1.05) contrast(1.03);
    object-position: center 18%;
  }

  .sum-hero-slide--lead-light .sum-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 35, 65, 0.08) 0%,
      rgba(15, 35, 65, 0) 32%,
      rgba(15, 35, 65, 0.35) 62%,
      rgba(15, 35, 65, 0.72) 100%
    ) !important;
  }

  .sum-hero-lead-panel {
    padding: 14px 16px 16px;
    border-radius: 14px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 32px rgba(15, 35, 65, 0.18);
  }

  .sum-hero-lead-panel::before {
    top: 12px;
    bottom: 12px;
  }

  .sum-hero-copy--lead h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    margin-bottom: 8px;
  }

  .sum-hero-lead-desc,
  .sum-hero-trust-row,
  .sum-hero-lead-aside {
    display: none !important;
  }

  .sum-hero-lead-actions .sum-hero-btn-secondary + .sum-hero-btn-secondary {
    display: none !important;
  }

  .sum-hero-lead-actions .sum-hero-btn-secondary {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
  }

  .sum-hero-lead-accent {
    margin-top: 4px;
    font-size: 0.82rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .sum-hero-eyebrow--lead {
    margin-bottom: 8px !important;
    font-size: 0.65rem;
    padding: 5px 12px;
  }

  .sum-hero-lead-actions {
    margin-top: 4px;
  }

  .sum-hero-cta-primary {
    padding: 12px 22px !important;
    font-size: 0.78rem !important;
  }
}

@media (min-width: 992px) {
  .sum-hero-slide--lead .banner-text .container-style8 {
    display: flex;
    align-items: center;
    min-height: 100%;
  }

  .sum-hero-slide--lead .banner-text {
    top: 0;
    transform: none;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 56px;
  }

  .sum-hero-slide--lead-light .sum-hero-lead-panel {
    padding-top: clamp(24px, 2.8vw, 34px);
  }
}

@media (max-width: 767.98px) {
  .sum-hero-slide--lead-light .sum-hero-banner-img--campus {
    object-position: center 15%;
  }

  .sum-hero-slide--lead-light .sum-hero-lead-accent {
    display: none !important;
  }

  .sum-hero-slide--lead-light .sum-hero-overlay {
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 42%,
      rgba(15, 35, 65, 0.45) 68%,
      rgba(15, 35, 65, 0.78) 100%
    ) !important;
  }

  .sum-hero-lead-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sum-hero-cta-primary,
  .sum-hero-btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .sum-hero-trust-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sum-hero-slide--lead-light .sum-hero-banner-img--campus {
    animation: none;
  }

  .sum-hero-lead-badge {
    animation: none;
  }
}
