/* ============================================================
   university-page.css
   Shared layout for all individual university detail pages
   Matches the dark premium theme of the main site
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   PAGE HERO — university-specific header
════════════════════════════════════════════════════════════ */
.upage-hero {
  position      : relative;
  min-height    : 88dvh;
  display       : flex;
  align-items   : center;
  justify-content: center;
  text-align    : center;
  padding       : 130px 24px 80px;
  background    : #05050e;
  overflow      : hidden;
}

/* Orb glow */
.upage-hero::before {
  content      : '';
  position     : absolute;
  bottom       : -12%;
  left         : 50%;
  transform    : translateX(-50%);
  width        : 1000px;
  height       : 800px;
  background   : radial-gradient(
    ellipse at 50% 80%,
    rgba(90, 30, 200, 0.38) 0%,
    rgba(55, 14, 160, 0.18) 38%,
    transparent 72%
  );
  border-radius: 50%;
  filter       : blur(70px);
  pointer-events: none;
}

/* Subtle noise */
.upage-hero::after {
  content   : '';
  position  : absolute;
  inset     : 0;
  opacity   : 0.018;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
}

.upage-hero-inner {
  position : relative;
  z-index  : 1;
  max-width: 780px;
  margin   : 0 auto;
}

/* Grade badge */
.upage-grade-badge {
  display       : inline-flex;
  align-items   : center;
  gap           : 8px;
  padding       : 6px 18px;
  background    : rgba(124,58,237,0.12);
  border        : 1px solid rgba(124,58,237,0.28);
  border-radius : 999px;
  font-family   : 'Inter', sans-serif;
  font-size     : 0.72rem;
  font-weight   : 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color         : rgba(167,139,250,0.90);
  margin-bottom : 24px;
}
.upage-grade-dot {
  width        : 6px;
  height       : 6px;
  border-radius: 50%;
  background   : #a78bfa;
}

/* University name */
.upage-uni-name {
  font-family   : 'Inter', sans-serif;
  font-size     : clamp(2.8rem, 7vw, 5.2rem);
  font-weight   : 800;
  letter-spacing: -0.04em;
  line-height   : 1.04;
  color         : #ffffff;
  margin        : 0 0 16px;
}

/* Full name */
.upage-uni-full {
  font-family  : 'Inter', sans-serif;
  font-size    : 1rem;
  font-weight  : 400;
  color        : rgba(255,255,255,0.40);
  margin-bottom: 20px;
  letter-spacing: 0.005em;
}

/* Tagline */
.upage-tagline {
  font-family  : 'Inter', sans-serif;
  font-size    : clamp(1rem, 2.2vw, 1.18rem);
  font-weight  : 400;
  color        : rgba(255,255,255,0.55);
  line-height  : 1.60;
  max-width    : 580px;
  margin       : 0 auto 40px;
}

/* CTA buttons row */
.upage-hero-actions {
  display        : flex;
  align-items    : center;
  justify-content: center;
  gap            : 12px;
  flex-wrap      : wrap;
}

.upage-btn-primary {
  display       : inline-flex;
  align-items   : center;
  gap           : 6px;
  padding       : 13px 30px;
  background    : linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  border        : none;
  border-radius : 999px;
  color         : #ffffff;
  font-family   : 'Inter', sans-serif;
  font-size     : 0.90rem;
  font-weight   : 700;
  cursor        : pointer;
  text-decoration: none;
  transition    : transform 0.28s cubic-bezier(0.16,1,0.3,1),
                  box-shadow 0.28s ease, filter 0.28s ease;
  box-shadow    : 0 4px 24px rgba(124,58,237,0.35);
}
.upage-btn-primary:hover {
  transform : translateY(-2px);
  box-shadow: 0 8px 36px rgba(124,58,237,0.50);
  filter    : brightness(1.08);
  color     : #ffffff;
}

.upage-btn-ghost {
  display       : inline-flex;
  align-items   : center;
  gap           : 6px;
  padding       : 13px 30px;
  background    : rgba(255,255,255,0.06);
  border        : 1px solid rgba(255,255,255,0.14);
  border-radius : 999px;
  color         : rgba(255,255,255,0.80);
  font-family   : 'Inter', sans-serif;
  font-size     : 0.90rem;
  font-weight   : 500;
  cursor        : pointer;
  text-decoration: none;
  transition    : background 0.25s ease, border-color 0.25s ease,
                  transform 0.28s cubic-bezier(0.16,1,0.3,1);
}
.upage-btn-ghost:hover {
  background  : rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  transform   : translateY(-2px);
  color       : #ffffff;
}

/* ════════════════════════════════════════════════════════════
   STATS BAR
════════════════════════════════════════════════════════════ */
.upage-stats-bar {
  background: rgba(255,255,255,0.025);
  border-top   : 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding   : 36px 40px;
}
.upage-stats-inner {
  max-width: 1100px;
  margin   : 0 auto;
  display  : flex;
  align-items: center;
  justify-content: space-around;
  gap      : 24px;
  flex-wrap: wrap;
}
.upage-stat {
  text-align: center;
  flex      : 1;
  min-width : 120px;
}
.upage-stat-value {
  font-family   : 'Inter', sans-serif;
  font-size     : clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight   : 800;
  letter-spacing: -0.03em;
  color         : #ffffff;
  line-height   : 1;
  margin-bottom : 6px;
}
.upage-stat-label {
  font-family  : 'Inter', sans-serif;
  font-size    : 0.78rem;
  font-weight  : 400;
  color        : rgba(255,255,255,0.36);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height  : 1.4;
}

/* Stat divider */
.upage-stat-sep {
  width     : 1px;
  height    : 40px;
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   SHARED SECTION STYLES
════════════════════════════════════════════════════════════ */
.upage-section {
  padding   : 90px 0 100px;
  background: #05050e;
  position  : relative;
}
.upage-section:nth-child(even) {
  background: rgba(255,255,255,0.012);
}
.upage-section-inner {
  max-width: 1100px;
  margin   : 0 auto;
  padding  : 0 40px;
}

/* Section label + heading combo */
.upage-section-label {
  font-family   : 'Inter', sans-serif;
  font-size     : 0.70rem;
  font-weight   : 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color         : rgba(167,139,250,0.80);
  margin-bottom : 12px;
}
.upage-section-title {
  font-family   : 'Inter', sans-serif;
  font-size     : clamp(1.8rem, 4vw, 3rem);
  font-weight   : 800;
  letter-spacing: -0.03em;
  line-height   : 1.10;
  color         : #ffffff;
  margin        : 0 0 14px;
}
.upage-section-sub {
  font-family  : 'Inter', sans-serif;
  font-size    : 0.94rem;
  color        : rgba(255,255,255,0.40);
  line-height  : 1.65;
  max-width    : 520px;
  margin-bottom: 52px;
}

/* ════════════════════════════════════════════════════════════
   PROGRAMS GRID
════════════════════════════════════════════════════════════ */
.upage-programs-grid {
  display              : grid;
  grid-template-columns: repeat(3, 1fr);
  gap                  : 12px;
}

.upage-program-card {
  background   : rgba(255,255,255,0.035);
  border       : 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding      : 26px 24px 28px;
  transition   : background 0.25s ease, border-color 0.25s ease,
                 transform 0.28s cubic-bezier(0.16,1,0.3,1);
  cursor       : default;
  position     : relative;
  overflow     : hidden;
}
.upage-program-card::before {
  content  : '';
  position : absolute;
  inset    : 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(120,60,255,0.05) 0%, transparent 70%);
  opacity  : 0;
  transition: opacity 0.3s ease;
  border-radius: 14px;
  pointer-events: none;
}
.upage-program-card:hover {
  background  : rgba(255,255,255,0.058);
  border-color: rgba(124,58,237,0.22);
  transform   : translateY(-3px);
}
.upage-program-card:hover::before { opacity: 1; }

.upage-program-icon {
  font-size    : 1.4rem;
  margin-bottom: 14px;
  display      : block;
}
.upage-program-name {
  font-family   : 'Inter', sans-serif;
  font-size     : 0.97rem;
  font-weight   : 700;
  color         : #ffffff;
  letter-spacing: -0.01em;
  margin-bottom : 6px;
  line-height   : 1.3;
}
.upage-program-duration {
  font-family  : 'Inter', sans-serif;
  font-size    : 0.78rem;
  color        : rgba(255,255,255,0.32);
  font-weight  : 400;
}

/* ════════════════════════════════════════════════════════════
   HIGHLIGHTS / WHY US — 2-col list
════════════════════════════════════════════════════════════ */
.upage-highlights-grid {
  display              : grid;
  grid-template-columns: 1fr 1fr;
  gap                  : 14px;
}
.upage-highlight-card {
  background   : rgba(255,255,255,0.030);
  border       : 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding      : 28px 26px;
  display      : flex;
  gap          : 18px;
  align-items  : flex-start;
  transition   : background 0.25s ease, border-color 0.25s ease;
}
.upage-highlight-card:hover {
  background  : rgba(255,255,255,0.050);
  border-color: rgba(124,58,237,0.22);
}
.upage-highlight-icon-wrap {
  width          : 40px;
  height         : 40px;
  border-radius  : 10px;
  background     : rgba(124,58,237,0.14);
  border         : 1px solid rgba(124,58,237,0.25);
  display        : flex;
  align-items    : center;
  justify-content: center;
  font-size      : 1rem;
  flex-shrink    : 0;
}
.upage-highlight-title {
  font-family   : 'Inter', sans-serif;
  font-size     : 0.92rem;
  font-weight   : 700;
  color         : #ffffff;
  margin-bottom : 5px;
  letter-spacing: -0.01em;
}
.upage-highlight-desc {
  font-family  : 'Inter', sans-serif;
  font-size    : 0.82rem;
  color        : rgba(255,255,255,0.38);
  line-height  : 1.6;
}

/* ════════════════════════════════════════════════════════════
   CTA STRIP — bottom of page
════════════════════════════════════════════════════════════ */
.upage-cta-strip {
  background: rgba(124,58,237,0.07);
  border-top : 1px solid rgba(124,58,237,0.14);
  padding    : 72px 40px 80px;
  text-align : center;
  position   : relative;
  overflow   : hidden;
}
.upage-cta-strip::before {
  content      : '';
  position     : absolute;
  top          : -30%;
  left         : 50%;
  transform    : translateX(-50%);
  width        : 700px;
  height       : 400px;
  background   : radial-gradient(ellipse, rgba(124,58,237,0.14), transparent 70%);
  filter       : blur(60px);
  pointer-events: none;
}
.upage-cta-strip-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.upage-cta-strip-title {
  font-family   : 'Inter', sans-serif;
  font-size     : clamp(1.8rem, 4vw, 2.8rem);
  font-weight   : 800;
  letter-spacing: -0.03em;
  color         : #ffffff;
  margin-bottom : 14px;
}
.upage-cta-strip-sub {
  font-family  : 'Inter', sans-serif;
  font-size    : 0.94rem;
  color        : rgba(255,255,255,0.40);
  line-height  : 1.65;
  margin-bottom: 36px;
}

/* ════════════════════════════════════════════════════════════
   BACK LINK
════════════════════════════════════════════════════════════ */
.upage-back-link {
  display       : inline-flex;
  align-items   : center;
  gap           : 8px;
  font-family   : 'Inter', sans-serif;
  font-size     : 0.82rem;
  font-weight   : 500;
  color         : rgba(255,255,255,0.40);
  text-decoration: none;
  margin-bottom : 32px;
  letter-spacing: 0.01em;
  transition    : color 0.2s ease;
}
.upage-back-link:hover { color: rgba(255,255,255,0.80); }
.upage-back-link svg { width: 14px; height: 14px; }

/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════════════════ */
.upage-reveal {
  opacity  : 0;
  transform: translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.upage-reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .upage-programs-grid    { grid-template-columns: repeat(2, 1fr); }
  .upage-highlights-grid  { grid-template-columns: 1fr; }
  .upage-stats-bar        { padding: 28px 24px; }
  .upage-stat-sep         { display: none; }
  .upage-section-inner    { padding: 0 24px; }
  .upage-cta-strip        { padding: 56px 24px 64px; }
}
@media (max-width: 600px) {
  .upage-hero             { padding: 110px 16px 60px; min-height: auto; }
  .upage-programs-grid    { grid-template-columns: 1fr; }
  .upage-stats-inner      { gap: 16px; }
  .upage-stat             { min-width: 90px; }
  .upage-section          { padding: 64px 0 72px; }
  .upage-section-inner    { padding: 0 16px; }
  .upage-hero-actions     { flex-direction: column; align-items: center; }
  .upage-btn-primary,
  .upage-btn-ghost        { width: 100%; max-width: 260px; justify-content: center; }
}
