/* ===========================================================
   PROGRAM PAGE STYLESHEET — Unified template
   Replaces old brochure + per-program gradient headers.
   Consistent with the editorial white style of the main site.
   Applied to: acai, csse, dsc, math, mce, mpe, stat
   =========================================================== */


/* ─────────────────────────────────────────────
   PROGRAM HERO
   Full-width photo with dark overlay + program
   name centered at bottom. Uses existing hero
   images (acai_hero.png, csse_hero.png, etc.)
   ───────────────────────────────────────────── */

.prog-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.prog-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Fallback gradient when image is a placeholder */
.prog-hero__img-ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c8d8ed 0%, #9db8d8 40%, #7a9fc4 100%);
}

.prog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 25, 48, 0.82) 0%,
    rgba(10, 25, 48, 0.38) 55%,
    rgba(10, 25, 48, 0.08) 100%
  );
}

.prog-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 40px;
}

.prog-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  position: absolute;
  top: -340px;   /* sits near top of hero */
  left: 0;
  transition: color 0.18s;
}

.prog-hero__back:hover { color: var(--iugb-gold); }

.prog-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iugb-gold);
  display: block;
  margin-bottom: 8px;
}

.prog-hero__title {
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
  max-width: 800px;
}


/* ─────────────────────────────────────────────
   BACK NAV (below hero, on white)
   ───────────────────────────────────────────── */

.prog-back-bar {
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
  background: var(--bg-white);
}

.prog-back-bar a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-gray);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.18s;
}

.prog-back-bar a:hover { color: var(--iugb-blue); }

.prog-back-bar svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}


/* ─────────────────────────────────────────────
   INTRO SECTION
   2-sentence value prop + color accent bar
   ───────────────────────────────────────────── */

.prog-intro {
  padding: 56px 0 48px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.prog-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.prog-intro__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iugb-gold-dark);
  display: block;
  margin-bottom: 12px;
}

.prog-intro__heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--iugb-blue);
  line-height: 1.22;
  margin-bottom: 16px;
}

.prog-intro__body {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.8;
}

/* Photo placeholder for intro split */
.prog-intro__ph {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: linear-gradient(135deg, #dce8f5 0%, #eef4fb 60%, #d4e4f0 100%);
  border: 1px solid #c4d8ec;
  box-shadow: 0 12px 32px rgba(26,54,93,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.prog-intro__ph-icon { opacity: 0.28; color: var(--iugb-blue); }

.prog-intro__ph-label {
  background: rgba(26,54,93,0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  text-align: center;
  line-height: 1.5;
  max-width: 82%;
}

.prog-intro__ph-label span { color: var(--iugb-gold); }


/* ─────────────────────────────────────────────
   DEGREE CARDS — curriculum overview
   ───────────────────────────────────────────── */

.prog-degrees {
  padding: 64px 0;
  background: var(--bg-light);
}

.prog-degrees__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.prog-degree-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 28px 28px 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.18s;
}

.prog-degree-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--iugb-blue);
}

.prog-degree-card:hover {
  box-shadow: 0 8px 28px rgba(26,54,93,0.11);
  transform: translateY(-3px);
}

.prog-degree-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.prog-degree-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--iugb-blue);
  margin-bottom: 10px;
  line-height: 1.3;
}

.prog-degree-card__desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 18px;
}

.prog-degree-card__list {
  list-style: none;
  padding: 0; margin: 0;
}

.prog-degree-card__list li {
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid var(--border-light);
}

.prog-degree-card__list li:last-child { border-bottom: none; }

.prog-degree-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--iugb-gold);
}

.prog-degree-card__minor {
  margin-top: 18px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 3px solid var(--iugb-gold);
  font-size: 0.85rem;
  color: var(--text-gray);
}

.prog-degree-card__minor strong {
  display: block;
  color: var(--iugb-blue);
  font-size: 0.82rem;
  margin-bottom: 4px;
}


/* ─────────────────────────────────────────────
   WHY IUGB — 4 compact feature cards
   ───────────────────────────────────────────── */

.prog-features {
  padding: 64px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.prog-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.prog-feature-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 22px 20px 24px;
  background: var(--bg-white);
  transition: box-shadow 0.2s, transform 0.18s;
}

.prog-feature-card:hover {
  box-shadow: 0 6px 20px rgba(26,54,93,0.09);
  transform: translateY(-3px);
}

.prog-feature-card__icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}

.prog-feature-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--iugb-blue);
  margin-bottom: 6px;
}

.prog-feature-card__desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.6;
}


/* ─────────────────────────────────────────────
   STATS — same style as homepage stat cards
   ───────────────────────────────────────────── */

.prog-stats {
  padding: 56px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
}

.prog-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.prog-stats__card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  transition: box-shadow 0.18s;
}

.prog-stats__card:hover { box-shadow: 0 4px 14px rgba(26,54,93,0.08); }

.prog-stats__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--iugb-blue);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}

.prog-stats__label {
  font-size: 0.82rem;
  color: var(--text-gray);
  font-weight: 600;
  line-height: 1.4;
}


/* ─────────────────────────────────────────────
   SECTION HEADER (shared)
   ───────────────────────────────────────────── */

.prog-section-header {
  margin-bottom: 0;
}

.prog-section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--iugb-blue);
  margin-bottom: 8px;
}

.prog-section-header p {
  font-size: 1rem;
  color: var(--text-gray);
  max-width: 560px;
  line-height: 1.7;
}

.prog-section-header--center { text-align: center; }
.prog-section-header--center p { margin: 0 auto; }


/* ─────────────────────────────────────────────
   CTA — soft, consistent with homepage
   ───────────────────────────────────────────── */

.prog-cta {
  padding: 72px 0;
  background: var(--iugb-blue);
  text-align: center;
}

.prog-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.prog-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.prog-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.prog-cta .btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}

.prog-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.7);
}

/* ── CTA button contrast fix ──
   .btn-blue on a blue background is invisible.
   Override to white-filled button inside the CTA. */
.prog-cta .btn-blue {
  background: #fff;
  color: var(--iugb-blue);
  border: none;
}

.prog-cta .btn-blue:hover {
  background: rgba(255, 255, 255, 0.88);
}


/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .prog-hero { height: 300px; }
  .prog-hero__title { font-size: 1.9rem; }
  .prog-intro__grid { grid-template-columns: 1fr; gap: 32px; }
  .prog-features__grid { grid-template-columns: 1fr 1fr; }
  .prog-stats__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .prog-hero { height: 260px; }
  .prog-hero__title { font-size: 1.5rem; }
  .prog-features__grid { grid-template-columns: 1fr; }
  .prog-stats__grid { grid-template-columns: 1fr 1fr; }
  .prog-cta h2 { font-size: 1.6rem; }
}
