/* ── Reset & base ─────────────────────────────────────────── */
.scholars-banner *,
.scholars-banner *::before,
.scholars-banner *::after { box-sizing: border-box; }

/* ── Banner container ─────────────────────────────────────── */
.scholars-banner {
  --bg:        #214985;
  --mid:       #8CA3C8;
  --fg:        #FFFFFF;
  --accent:    #C8D8EE;

  display:         block;
  position:        relative;
  width:           100%;
  min-height:      280px;
  max-height:      400px;
  height:          25vw;
  background:      var(--bg);
  overflow:        hidden;
  cursor:          pointer;
  user-select:     none;
  background-image: radial-gradient(ellipse 80% 60% at 50% 50%,
                      #2d5fa0 0%, #214985 60%, #162f5c 100%);
}

/* ── Depth stage (perspective container) ─────────────────── */
.scholars-banner__stage {
  position:        absolute;
  inset:           0;
  perspective:     800px;
  perspective-origin: 50% 50%;
}

/* ── Cloud layers ─────────────────────────────────────────── */
.scholars-banner__layer {
  position:   absolute;
  inset:      0;
  transition: transform 0.08s ease-out;
  will-change: transform;
}

/* ── Individual cloud quotes ──────────────────────────────── */
.cloud-quote {
  position:      absolute;
  color:         var(--mid);
  font-family:   'Merriweather', Georgia, serif;
  font-weight:   300;
  font-style:    italic;
  line-height:   1.35;
  pointer-events: none;
  transform-origin: center center;
}

.layer-cloud .cloud-quote {
  color: var(--mid);
}

/* ── Featured quote ───────────────────────────────────────── */
.scholars-banner__featured {
  position:        absolute;
  top:             0;
  left:            0;
  right:           0;
  bottom:          0;
  width:           100%;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  padding:         clamp(20px, 4vw, 60px) clamp(24px, 8vw, 120px);
  text-align:      center;
  z-index:         10;
  pointer-events:  none;
  transition:      transform 0.12s ease-out;
  will-change:     transform;
}

.featured-quote__mark {
  font-family:   'Merriweather', Georgia, serif;
  font-size:     clamp(3rem, 8vw, 7rem);
  font-weight:   300;
  color:         var(--accent);
  opacity:       0.35;
  line-height:   0.6;
  margin-bottom: clamp(4px, 1vw, 12px);
  align-self:    flex-start;
  margin-left:   clamp(0px, 2vw, 20px);
}

.featured-quote__text {
  font-family:  'Merriweather', Georgia, serif;
  font-weight:  300;
  font-style:   italic;
  color:        var(--fg);
  font-size:    clamp(1.2rem, 2.7vw, 2.2rem);
  line-height:  1.55;
  width:        100%;
  max-width:    780px;
  text-shadow:  0 2px 20px rgba(0,0,0,0.5), 0 0 60px rgba(21,47,100,0.8);
  opacity:      0;
  transform:    translateY(8px);
  transition:   opacity 0.7s ease, transform 0.7s ease;
}

.featured-quote__text.is-visible {
  opacity:   1;
  transform: translateY(0);
}

.featured-quote__attr {
  margin-top:  clamp(10px, 2vw, 20px);
  font-family: 'Source Sans 3', sans-serif;
  font-size:   clamp(0.7rem, 1.1vw, 0.9rem);
  font-weight: 600;
  color:       var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity:     0;
  transform:   translateY(6px);
  transition:  opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.featured-quote__attr.is-visible {
  opacity:   0.7;
  transform: translateY(0);
}

/* ── Hover hint ───────────────────────────────────────────── */
.scholars-banner__hint {
  position:   absolute;
  bottom:     clamp(10px, 2vw, 20px);
  right:      clamp(14px, 2.5vw, 28px);
  font-family: 'Source Sans 3', sans-serif;
  font-size:  clamp(0.6rem, 0.9vw, 0.75rem);
  color:      var(--mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity:    0.5;
  z-index:    10;
  pointer-events: none;
}

/* ── Decorative corner lines ──────────────────────────────── */
.scholars-banner::before,
.scholars-banner::after {
  content:    '';
  position:   absolute;
  z-index:    5;
  pointer-events: none;
}
.scholars-banner::before {
  top: 0; left: 0;
  width: clamp(40px, 6vw, 80px);
  height: clamp(40px, 6vw, 80px);
  border-top: 1px solid rgba(200, 216, 238, 0.25);
  border-left: 1px solid rgba(200, 216, 238, 0.25);
}
.scholars-banner::after {
  bottom: 0; right: 0;
  width: clamp(40px, 6vw, 80px);
  height: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid rgba(200, 216, 238, 0.25);
  border-right: 1px solid rgba(200, 216, 238, 0.25);
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .scholars-banner {
    height: 260px;
    min-height: 220px;
  }
  .scholars-banner__layer { display: none; }
  .featured-quote__text { font-size: 1.1rem; }
}
