/* EDU B2B institutions banner — portal + home (text only) */

.inst-b2b-banner {
  --inst-purple: #0B1426;
  --inst-purple-deep: #070D18;
  --inst-gold: #f59e0b;
}

.inst-b2b-banner__content {
  padding: 2px 4px 0;
  min-width: 0;
}

.inst-b2b-banner__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.inst-b2b-banner__head .inst-hero__kicker {
  margin-bottom: 0;
}

.inst-b2b-banner__chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--inst-gold) 0%, #fbbf24 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 20px rgba(15, 8, 30, 0.14);
}

.inst-b2b-banner__title {
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 4.5vw, 1.62rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.inst-b2b-banner__lead {
  margin: 0 0 22px;
  max-width: none;
  font-size: 0.88rem;
  line-height: 1.85;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.93);
}

.inst-b2b-banner__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0;
}

.inst-b2b-banner .inst-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 0.84rem;
  flex: none;
}

.inst-b2b-banner .inst-hero__btn .edu-app-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  box-shadow: none;
}

.inst-b2b-banner .inst-hero__btn.secondary .edu-app-icon--live {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.inst-b2b-banner__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  gap: 12px;
  list-style: none;
}

.inst-b2b-banner__stats li {
  padding: 14px 10px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.inst-b2b-banner__stats strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
}

.inst-b2b-banner__stats span {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.9;
}

.inst-b2b-banner__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.inst-b2b-banner__dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(11, 20, 38, 0.15);
}

.inst-b2b-banner__dots span.is-active {
  width: 20px;
  background: #0B1426;
}

.inst-b2b-banner__float {
  position: absolute;
  inset-inline-end: clamp(16px, 5vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0B1426;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #D8DEE8;
  box-shadow: 0 10px 24px rgba(11, 20, 38, 0.12);
}

.inst-b2b-banner__float .edu-app-icon {
  width: 28px;
  height: 28px;
}

.inst-b2b-banner .inst-hero__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}

.inst-b2b-banner .inst-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.inst-b2b-banner .inst-hero__orb--1 {
  width: 160px;
  height: 160px;
  top: -36px;
  inset-inline-end: -24px;
  background: rgba(251, 191, 36, 0.32);
}

.inst-b2b-banner .inst-hero__orb--2 {
  width: 120px;
  height: 120px;
  bottom: -16px;
  inset-inline-start: -16px;
  background: rgba(11, 20, 38, 0.15);
}

@media (min-width: 400px) {
  .inst-b2b-banner__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: text-only banner — hide images + lighter effects */
@media (max-width: 767px) {
  .inst-b2b-banner__visual {
    display: none !important;
  }

  .inst-b2b-banner {
    width: 100%;
    box-sizing: border-box;
    margin-inline: 0;
    padding: 20px 16px 18px;
  }

  .inst-b2b-banner .inst-hero__orb {
    display: none;
  }

  .inst-b2b-banner .inst-hero__mesh {
    opacity: 0.2;
  }

  .inst-b2b-banner__layout {
    display: block;
    width: 100%;
    gap: 0;
  }

  .inst-b2b-banner__content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .inst-b2b-banner__head {
    margin-bottom: 12px;
  }

  .inst-b2b-banner__title {
    margin-bottom: 10px;
    font-size: 1.22rem;
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .inst-b2b-banner__lead {
    margin-bottom: 16px;
    font-size: 0.86rem;
    line-height: 1.7;
    max-width: none;
  }

  .inst-b2b-banner__actions {
    grid-template-columns: 1fr !important;
    width: 100%;
    gap: 10px;
  }

  .inst-b2b-banner .inst-hero__btn {
    width: 100%;
    box-sizing: border-box;
  }

  .inst-b2b-banner__stats {
    margin-top: 16px;
    padding-top: 14px;
    gap: 8px;
  }

  .inst-b2b-banner__stats li {
    padding: 10px 6px;
  }
}

@media (min-width: 520px) {
  .inst-b2b-banner {
    padding: 28px 24px 26px;
  }

  .inst-b2b-banner__title {
    margin-bottom: 18px;
    line-height: 1.48;
  }

  .inst-b2b-banner__lead {
    margin-bottom: 24px;
    font-size: 0.9rem;
    max-width: 42em;
  }
}

@media (min-width: 768px) {
  .inst-b2b-banner .inst-b2b-banner__layout {
    padding: 32px;
  }

  .inst-b2b-banner .inst-b2b-banner__title {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  }

  .inst-b2b-banner__actions {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }

  .inst-b2b-banner .inst-hero__btn {
    width: auto;
  }
}

html.edu-view-web .edu-web-content .inst-b2b-banner {
  margin: 0 0 28px;
  padding: 40px 36px 36px;
  border-radius: 28px;
}

html.edu-view-web .edu-web-content .inst-b2b-banner__layout {
  padding: 40px 36px;
}

html.edu-view-web .edu-web-content .inst-b2b-banner__title {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.35;
}

html.edu-view-web .edu-web-content .inst-b2b-banner__lead {
  font-size: 0.95rem;
  max-width: 42em;
}

html.edu-view-web .edu-web-content .inst-b2b-banner__actions {
  grid-template-columns: repeat(2, auto);
  justify-content: start;
}

html.edu-view-web .edu-web-content .inst-b2b-banner .inst-hero__btn {
  width: auto;
  min-width: 200px;
}

html.edu-view-web .edu-web-content .inst-b2b-banner--home {
  margin-top: 24px;
  margin-bottom: 12px;
}

html.edu-view-web .edu-web-content .inst-b2b-banner--home .inst-b2b-banner__layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr);
  gap: 32px;
}

.edu-home-app .inst-b2b-banner--home,
.student-home-app .inst-b2b-banner--home {
  margin-top: 22px;
  margin-bottom: 6px;
}
