﻿/* ============================================================
   HERO STYLES — Monochrome blue palette
   ============================================================ */

.hero {
  position: relative; min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); color: #fff; overflow: hidden;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px;
}

.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 18% 28%, rgba(7,76,122,.65), transparent 70%),
    radial-gradient(50% 50% at 72% 78%, rgba(6,64,102,.45), transparent 72%),
    rgba(1,24,45,.70);
}
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 2; background: linear-gradient(to bottom, transparent, var(--navy-deep)); pointer-events: none; }

/* Animated wave at the bottom of hero — new "living" element */
.hero__waves {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2; pointer-events: none; height: 100px;
}
.hero__waves svg { width: 100%; height: 100%; display: block; }
.hero__waves path { fill: var(--white); opacity: .04; }
.hero__waves path.wave-1 { animation: waveSlide 18s linear infinite; }
.hero__waves path.wave-2 { animation: waveSlide 26s linear infinite reverse; opacity: .07; }
.hero__waves path.wave-3 { animation: waveSlide 34s linear infinite; opacity: .03; }
@keyframes waveSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero__grid {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start;
}

/* Left */
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(8px);
  color: rgba(255,255,255,.92); margin-bottom: 26px;
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(123,181,220,.25);
  animation: pulse-blue 2.4s infinite;
}

.hero h1 { font-size: clamp(40px, 5.6vw, 80px); font-weight: 900; line-height: 1.02; }

.hero__sub { margin-top: 24px; font-size: clamp(17px,1.5vw,21px); color: rgba(255,255,255,.74); max-width: 600px; }
.hero__sub b { color: var(--accent-2); }

.hero__search {
  margin-top: 32px; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 8px 8px 8px 20px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.5); color: var(--muted); max-width: 600px;
}
.hero__search input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--font-body); font-size: 17px; color: var(--text); padding: 12px 0; }
.hero__search-btn { padding: 14px 24px; font-size: 16px; }

.hero__sugs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero__sugs > span { font-size: 13.5px; color: rgba(255,255,255,.5); font-weight: 600; }
.hero__sug { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--glass-line); color: rgba(255,255,255,.85); transition: background .2s; }
.hero__sug:hover { background: rgba(255,255,255,.16); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 14px 36px;
  margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--glass-line);
}
.hero__stat-n {
  font-family: var(--font-head); font-weight: 900; font-size: clamp(28px,3vw,40px);
  background: linear-gradient(120deg,#fff, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stat-l { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 4px; white-space: pre-line; line-height: 1.3; }

/* Right — team photo + horizontal success card below */
.hero__right { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.hero__photo-frame { position: relative; width: 100%; max-width: 560px; }
.hero__team-img {
  height: 480px; border-radius: var(--r-xl); width: 100%;
  object-fit: cover; object-position: center 15%;
  display: block;
  box-shadow: 0 32px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(123,181,220,.15);
}
/* Gradient overlay on photo so it blends into navy bg */
.hero__photo-frame::after {
  content: ""; pointer-events: none;
  position: absolute; inset: 0;
  border-radius: var(--r-xl);
  background: linear-gradient(
    to bottom,
    rgba(6,64,102,.08) 0%,
    transparent 40%,
    rgba(6,64,102,.45) 100%
  );
}
.success-card { width: 100%; max-width: 380px; padding: 18px; box-shadow: var(--shadow-lg); }
.success-card--horiz {
  width: 100%; max-width: 560px;
  padding: 14px 18px;
  animation: heroCardIn .8s var(--ease) 9s both;
}
.success-card__horiz-row {
  display: flex; align-items: center; gap: 14px; margin-top: 10px;
}
.success-card__avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
}
.success-card__horiz-info { flex: 1; min-width: 0; }
.success-card__horiz-info .success-card__name { font-size: 15px; }
.success-card__horiz-info .success-card__uni  { font-size: 13px; margin-top: 3px; color: rgba(255,255,255,.75); }
.success-card__horiz-info .success-card__link { margin-top: 6px; font-size: 13px; }
.success-card__horiz-money {
  text-align: right; flex-shrink: 0;
  border-left: 1px solid var(--glass-line); padding-left: 16px;
}
.success-card__horiz-money .success-card__money-label { font-size: 11px; color: rgba(255,255,255,.55); }
.success-card__horiz-money .success-card__money-val   { font-size: 22px; }
@keyframes heroCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.success-card__tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; font-family: var(--font-head);
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy-3));
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.success-card__photo { height: 200px; border-radius: 16px; }
.success-card__body { padding: 16px 4px 4px; }
.success-card__name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff; line-height: 1.25; }
.success-card__name b { color: var(--accent-2); }
.success-card__money {
  display: flex; flex-direction: column; gap: 2px; margin: 14px 0;
  background: rgba(123,181,220,.14); border: 1px solid rgba(123,181,220,.3); border-radius: 12px; padding: 12px 14px;
}
.success-card__money-label { font-size: 12px; color: rgba(255,255,255,.6); }
.success-card__money-val { font-family: var(--font-head); font-weight: 900; font-size: 26px; color: #fff; }
.success-card__uni { font-size: 14px; color: rgba(255,255,255,.8); }
.success-card__link { display: inline-flex; margin-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--accent-2); }
.success-card__link:hover { text-decoration: underline; }
.success-card__foot {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--glass-line); font-size: 13px; color: rgba(255,255,255,.72);
}
.success-card__foot b { color: #fff; }
/* Clickable success card */
.success-card--clickable {
  cursor: pointer; text-align: left; width: 100%;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.success-card--clickable:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -12px rgba(0,0,0,.5); }

/* Student avatar in success card */
.success-card__avatar--img {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; object-position: center 28%;
  border: 2px solid var(--glass-line);
}

/* Avatar stack — now photos */
.ava-stack { display: flex; align-items: center; }
.ava--btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--navy-2);
  margin-left: -10px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-2), var(--navy-3));
  cursor: pointer; transition: transform .2s, z-index 0s;
  position: relative;
}
.ava--btn:first-child { margin-left: 0; }
.ava--btn:hover { transform: scale(1.2) translateY(-3px); z-index: 10; }
.ava--btn img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; }
.ava__init {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-family: var(--font-head); font-weight: 700; font-size: 11px; color: #fff;
}

/* ── Student Modal ── */
.smodal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(1,24,45,.80);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: smodalIn .22s var(--ease);
}
@keyframes smodalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.smodal {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  max-width: 440px; width: 100%;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.6);
  position: relative;
  animation: smodalSlide .28s var(--ease);
  max-height: 90vh; overflow-y: auto;
}
@keyframes smodalSlide {
  from { transform: translateY(30px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.smodal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.2); backdrop-filter: blur(8px);
  color: #fff; display: grid; place-items: center;
  transition: background .2s;
}
.smodal__close:hover { background: rgba(255,255,255,.35); }

.smodal__photo-wrap {
  position: relative; height: 220px; overflow: hidden;
}
.smodal__photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  display: block;
}
.smodal__photo.ph { height: 220px; }
.smodal__photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,64,102,.85) 0%, transparent 60%);
}
.smodal__photo-tag {
  position: absolute; bottom: 14px; left: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 12px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy-3));
  padding: 5px 12px; border-radius: 999px;
}

.smodal__body { padding: 22px 24px 28px; }
.smodal__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  margin-bottom: 18px;
}
.smodal__name {
  font-family: var(--font-head); font-weight: 800; font-size: 24px;
  color: var(--navy); margin: 0 0 6px;
}
.smodal__uni { font-size: 14px; color: var(--muted); margin: 0; }
.smodal__country { font-size: 13px; font-weight: 600; color: var(--blue); margin: 4px 0 0; }
.smodal__money { text-align: right; flex-shrink: 0; }
.smodal__money-val {
  font-family: var(--font-head); font-weight: 900; font-size: 22px;
  background: linear-gradient(120deg, var(--navy), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.smodal__money-lab { font-size: 11px; color: var(--muted); white-space: nowrap; }
.smodal__quote {
  font-size: 15px; line-height: 1.65; font-style: italic;
  color: var(--text); margin: 0 0 22px;
  padding: 14px 16px;
  background: var(--gray-50); border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.smodal__actions { display: flex; flex-direction: column; gap: 10px; }
.smodal__cta-ghost { color: var(--muted); font-size: 14px; }

/* Suppress placeholder text inside small avatar circles */
.ava--btn.ph::after,
.success-card__avatar--img.ph::after { display: none; }

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__right { align-items: stretch; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .hero__team-img { height: 320px; }
  .success-card--horiz { max-width: none; }
  .success-card__horiz-money { display: none; }
}
@media (max-width: 768px) {
  .hero { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 40px; }
  .hero h1 { font-size: clamp(28px, 8vw, 42px); }
  .hero__sub { font-size: 15px; margin-top: 16px; }
  .hero__grid { text-align: center; }
  .hero__badge { margin-left: auto; margin-right: auto; }
  .hero__search { max-width: 100%; }
  .hero__sugs { justify-content: center; }
  .hero__cta { justify-content: center; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; padding-top: 20px; }
  .hero__stat-n { font-size: clamp(22px, 6vw, 30px); }
  .hero__right { display: none; }
}
@media (max-width: 520px) {
  .hero__search { flex-wrap: wrap; padding: 14px; }
  .hero__search input { width: 100%; }
  .hero__search-btn { width: 100%; }
  .hero__cta .btn { width: 100%; }
}
