/* =============================================
   GRYIP — Hero Institutional Redesign CSS
   ============================================= */

/* =============================================
   HERO — CINEMATIC CAMPUS SHOWCASE
   ============================================= */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* No padding-top: hero extends behind the transparent navbar */
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
}

/* Overlay: very light at top (let campus show), builds at bottom for text readability */
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(5, 25, 32, 0.18) 0%,
    rgba(5, 25, 32, 0.05) 30%,
    transparent 50%,
    rgba(5, 25, 32, 0.30) 72%,
    rgba(5, 25, 32, 0.62) 100%
  );
}

/* Main layout wrapper — pushes badges/CTA to bottom, top space is visible campus image */
.hero-institution {
  text-align: center;
  width: 100%;
  /* Top padding = navbar + topbar height so badges don't overlap the transparent nav */
  padding-top: calc(var(--topbar-h) + var(--navbar-h) + 1rem);
  padding-bottom: 0;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* Badges — float freely on the image, pushed to bottom */
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0 1rem 0.75rem;
  position: relative;
  z-index: 2;
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(5, 25, 32, 0.45);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hero-badge-item:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
}

.hero-badge-gold {
  background: rgba(230,168,23,0.25);
  border-color: rgba(230,168,23,0.5);
  color: var(--color-accent-light);
}

.hero-badge-gold svg { stroke: var(--color-accent-light); }

/* ---- BOTTOM STRIP: Tagline + CTAs — true glassmorphism, image shows through ---- */
.hero-ctas-wrapper {
  width: 100%;
  padding: 1rem 0;
  background: rgba(5, 25, 32, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.12);
  position: relative;
  z-index: 2;
}

/* Stack tagline on top, CTAs below */
.hero-ctas-wrapper .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Hero tagline — full width */
.hero-tagline {
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 720px;
}

/* CTAs row */
.hero-institution .hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Stats bar anchored at the bottom of hero */
.hero-stats-bar {
  background: rgba(5, 25, 32, 0.8);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.65rem 0;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-stats-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 2.5rem;
  color: rgba(255,255,255,0.85);
}

.hero-stat-item svg { color: var(--color-accent); flex-shrink: 0; }

.hero-stat-item .val {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat-item .lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* =============================================
   MILESTONE / ACHIEVEMENT BANNER
   (replaces the annoying popup)
   ============================================= */

.milestone-banner {
  background: linear-gradient(135deg, #0D5C6E 0%, #09404D 60%, #0a3340 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.milestone-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(230,168,23,0.06);
}

.milestone-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.milestone-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

/* Left: text */
.milestone-text {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
  min-width: 280px;
}

.milestone-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: rgba(230,168,23,0.2);
  border: 1px solid rgba(230,168,23,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent-light);
}

.milestone-headline {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent-light);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.milestone-detail {
  font-size: 0.925rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
}

.milestone-detail strong { color: #ffffff; }

/* Centre: logos */
.milestone-logos {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-shrink: 0;
}

.milestone-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.milestone-logo-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
}

.milestone-logo-item span {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  max-width: 80px;
  line-height: 1.3;
}

/* Right: persons */
.milestone-persons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.milestone-person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.milestone-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid rgba(230,168,23,0.5);
  flex-shrink: 0;
}

.milestone-person-info strong {
  display: block;
  font-size: 0.875rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

.milestone-person-info span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}

/* =============================================
   RESPONSIVE — HERO + MILESTONE
   ============================================= */
@media (max-width: 768px) {
  /* Reduce top padding on mobile — topbar is gone (0px), just navbar height + small gap */
  .hero-institution {
    padding-top: calc(var(--navbar-h) + 0.5rem);
  }

  .hero-badges {
    gap: 0.4rem;
    padding: 0 0.75rem 0.6rem;
  }

  .hero-ctas-wrapper {
    padding: 0.75rem 0;
    /* Slightly more opaque on mobile for legibility on smaller screens */
    background: rgba(5, 25, 32, 0.38);
  }

  /* Full-width single-row strip — each stat fills equally */
  .hero-stats-bar {
    padding: 0;
  }

  .hero-stats-bar .container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    padding: 0;
    max-width: 100%;
    margin: 0;
  }

  .hero-stat-item {
    flex: 1;
    flex-direction: column;
    padding: 0.9rem 0.25rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 0;
    gap: 0.2rem;
  }

  .hero-stat-divider {
    display: block;
    width: 1px;
    height: auto;
    align-self: stretch;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
  }

  .hero-stat-item .val {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
  }

  .hero-stat-item .lbl {
    font-size: 9px;
    letter-spacing: 0.03em;
  }

  .hero-stat-item > svg { display: none; }

  .milestone-inner {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .milestone-logos { justify-content: center; }
  .milestone-persons { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-badges { gap: 0.3rem; }
  .hero-badge-item { font-size: 10px; padding: 0.25rem 0.5rem; }
  .hero-institution .hero-ctas { flex-direction: column; align-items: center; }

  .hero-stat-item .val  { font-size: 1.05rem; }
  .hero-stat-item .lbl  { font-size: 8.5px; }
  .hero-stat-item       { padding: 0.75rem 0.15rem; }
}

