/* =============================================
   GRYIP — Hero Institutional Redesign CSS
   Appended to components.css
   ============================================= */

/* =============================================
   HERO — INSTITUTIONAL LAYOUT
   ============================================= */

/* Override old hero content styles */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--topbar-h) + var(--navbar-h));
  padding-bottom: 0;
}

/* Darker, more authoritative overlay */
.hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(5, 30, 38, 0.88) 0%,
    rgba(9, 64, 77, 0.78) 50%,
    rgba(5, 30, 38, 0.88) 100%
  );
}

/* Institution-centred layout */
.hero-institution {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 0 2rem;
  position: relative;
}

/* Logo + Name identity block */
.hero-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4)) brightness(1.05);
  flex-shrink: 0;
}

.hero-title-block { text-align: left; }

.hero-inst-name {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-inst-sub {
  font-size: clamp(0.75rem, 1.3vw, 0.9rem);
  color: rgba(255,255,255,0.65);
  margin-top: 0.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Accreditation badges row */
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.03em;
  transition: var(--transition-fast);
}

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

.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); }

/* Hero tagline */
.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

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

/* Stats bar anchored at the bottom of hero */
.hero-stats-bar {
  background: rgba(5, 25, 32, 0.75);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  margin-top: auto;
}

.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;
  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: center;
  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) {
  .hero-identity {
    flex-direction: column;
    text-align: center;
  }

  .hero-title-block { text-align: center; }
  .hero-logo { width: 72px; height: 72px; }

  .hero-stats-bar .container {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .hero-stat-item { padding: 0.5rem 1.25rem; flex-shrink: 0; }

  .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.4rem; }
  .hero-badge-item { font-size: 11px; padding: 0.3rem 0.65rem; }
  .hero-institution .hero-ctas { flex-direction: column; align-items: center; }
  .hero-inst-name { font-size: 1.5rem; }
}
