/* ─────────────────────────────────────────────────────────────────────────────
   components.css — UTEP SHPE//MAES shared component library
   Depends on: design-tokens.css (loaded before this file)
   Load order per page: styles.css → design-tokens.css → components.css → my-styles.css
   ───────────────────────────────────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════════════════════
   1. GLOBAL BASE
   ═══════════════════════════════════════════════════════════════ */

/* Offset content below the fixed navbar */
body {
  padding-top: var(--nav-height, 72px);
}

/* ─── Skip link ─────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 10000;
  background: var(--color-navy);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}


/* ═══════════════════════════════════════════════════════════════
   2. NAVBAR
   ═══════════════════════════════════════════════════════════════ */

.shpe-navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    background      var(--duration-default) var(--ease-in-out),
    box-shadow      var(--duration-default) var(--ease-in-out),
    border-color    var(--duration-default) var(--ease-in-out);
}

.shpe-navbar .container {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Logo */
.navbar-logo {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity var(--duration-default) var(--ease-in-out);
}

.navbar-logo:hover {
  opacity: 0.80;
}

/* Hamburger icon */
.nav-hamburger-icon {
  color: rgba(4, 30, 66, 0.80);
  font-size: 1.15rem;
}

.shpe-navbar .navbar-toggler:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Nav links — dark so they read on light hero */
.shpe-navbar .nav-link {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--text-ui);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(4, 30, 66, 0.72) !important;
  position: relative;
  padding: 0.5rem 1rem;
  transition: color var(--duration-default) var(--ease-in-out);
}

/* Orange underline slide-in on hover / active */
.shpe-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 6px;
  height: 2px;
  background: var(--color-orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-default) var(--ease-out);
}

.shpe-navbar .nav-link:hover {
  color: var(--color-navy) !important;
}

.shpe-navbar .nav-link:hover::after {
  transform: scaleX(1);
}

.shpe-navbar .nav-link.active {
  color: var(--color-navy) !important;
  font-weight: 700;
}

.shpe-navbar .nav-link.active::after {
  transform: scaleX(1);
}

/* Dropdown toggle caret */
.shpe-navbar .dropdown-toggle::after {
  transition: transform var(--duration-default) var(--ease-in-out);
  vertical-align: 0.13em;
  border-top-color: rgba(4, 30, 66, 0.50);
}

.shpe-navbar .nav-item.dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Dropdown panel — white card */
.shpe-navbar .dropdown-menu {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(4, 30, 66, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(4, 30, 66, 0.14);
  padding: 6px;
  margin-top: 8px;
  min-width: 185px;
  animation: dropdown-in var(--duration-medium) var(--ease-out) both;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.shpe-navbar .dropdown-item {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--text-ui);
  letter-spacing: 0.01em;
  color: rgba(4, 30, 66, 0.78);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  transition:
    background var(--duration-fast) var(--ease-in-out),
    color      var(--duration-fast) var(--ease-in-out);
}

.shpe-navbar .dropdown-item:hover,
.shpe-navbar .dropdown-item:focus {
  background: rgba(4, 30, 66, 0.06);
  color: var(--color-navy);
}

/* Program icon colors in dropdown */
.nav-icon-green  { color: var(--color-green); }
.nav-icon-pink   { color: #C020C8; }
.nav-icon-orange { color: var(--color-orange); }

/* Vertical divider */
.nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(4, 30, 66, 0.14);
  margin: 0 0.25rem;
  align-self: center;
}

/* CTA "Join" button */
.btn-nav-cta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--text-ui);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
  background: var(--color-orange);
  border-radius: var(--radius-pill);
  padding: 9px 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.5;
  transition:
    background  var(--duration-default) var(--ease-in-out),
    transform   var(--duration-default) var(--ease-out),
    box-shadow  var(--duration-default) var(--ease-out);
}

.btn-nav-cta:hover {
  background: var(--color-orange-hover);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 130, 0, 0.35);
}

.btn-nav-cta:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Scrolled — white frosted glass, no blue */
.shpe-navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 24px rgba(4, 30, 66, 0.10);
  border-bottom-color: rgba(4, 30, 66, 0.07);
}

/* Mobile collapse panel */
@media (max-width: 991.98px) {
  .shpe-navbar .navbar-collapse {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(4, 30, 66, 0.08);
    padding: 0.75rem 0 1rem;
    margin-top: 6px;
    box-shadow: 0 8px 24px rgba(4, 30, 66, 0.10);
  }

  .shpe-navbar .nav-link {
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
  }

  .shpe-navbar .nav-link::after {
    left: 1rem;
    right: 1rem;
    bottom: 4px;
  }

  .shpe-navbar .nav-link:hover {
    background: rgba(4, 30, 66, 0.05);
  }

  .shpe-navbar .dropdown-menu {
    background: rgba(4, 30, 66, 0.04);
    border: 1px solid rgba(4, 30, 66, 0.08);
    box-shadow: none;
    backdrop-filter: none;
    margin-top: 2px;
    margin-left: 0.5rem;
  }

  .btn-nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 13px 22px;
    margin-top: 0.75rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   3. FOOTER
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark-muted);
  padding: 1.1rem 0 0.9rem;
}

.footer-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-dark);
}

.footer-logo {
  width: 54px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-socials a {
  font-size: 1.1rem;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color var(--duration-default) var(--ease-in-out), transform var(--duration-default) var(--ease-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.footer-socials a:hover {
  color: var(--text-on-dark-accent);
  transform: translateY(-2px);
}

.footer-socials a:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.footer-email {
  font-family: var(--font-body);
  font-size: 0.825rem;
  color: var(--text-on-dark-accent);
  text-decoration: none;
  transition: color var(--duration-default) var(--ease-in-out);
}

.footer-email:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.30);
  margin: 0.6rem 0 0;
}

@media (max-width: 575.98px) {
  .footer-compact {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
  }
}


/* ═══════════════════════════════════════════════════════════════
   4. BUTTONS
   ═══════════════════════════════════════════════════════════════ */

/* ─── Shared base ───────────────────────────────────────────── */

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  font-weight: 700;
  transition:
    background-color var(--duration-default) var(--ease-in-out),
    border-color     var(--duration-default) var(--ease-in-out),
    color            var(--duration-default) var(--ease-in-out),
    transform        var(--duration-default) var(--ease-out),
    box-shadow       var(--duration-default) var(--ease-out);
}

/* ─── Primary (orange fill, Playfair) ──────────────────────── */

.btn-primary {
  font-family: var(--font-display);
  font-size: var(--text-body);
  color: #fff;
  background: var(--color-orange);
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-pill);
  padding: 13px 34px;
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background: var(--color-orange-hover);
  border-color: var(--color-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-primary:active {
  background: var(--color-orange-active);
  border-color: var(--color-orange-active);
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* ─── Secondary (navy outline, Oswald) ─────────────────────── */

.btn-secondary {
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-navy);
  background: transparent;
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-pill);
  padding: 11px 30px;
}

.btn-secondary:hover,
.btn-secondary:focus {
  color: #fff;
  background: var(--color-navy);
  border-color: var(--color-navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-navy);
}

.btn-secondary:active {
  background: var(--color-navy-hover);
  transform: translateY(0);
}

.btn-secondary:disabled,
.btn-secondary[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* ─── Ghost (for dark/photo backgrounds) ───────────────────── */

.btn-ghost {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 2.5px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-pill);
  padding: 13px 42px;
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: var(--color-navy);
  background: var(--color-green);
  border-color: var(--color-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-ghost:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus-white);
}

.btn-ghost:active {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
  transform: translateY(0);
}

/* ─── Text / Arrow link ─────────────────────────────────────── */

.btn-text-link {
  font-family: var(--font-ui);
  font-size: var(--text-ui-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-orange);
  background: none;
  border: none;
  padding: 0;
  gap: 0.35rem;
  transition:
    color  var(--duration-default) var(--ease-in-out),
    gap    var(--duration-default) var(--ease-out);
}

.btn-text-link:hover {
  color: var(--color-orange-hover);
  gap: 0.6rem;
}

.btn-text-link:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Size modifiers ────────────────────────────────────────── */

.btn-sm.btn-primary,
.btn-sm.btn-secondary,
.btn-sm.btn-ghost {
  font-size: 0.85rem;
  padding: 9px 22px;
}

.btn-lg.btn-primary,
.btn-lg.btn-ghost {
  font-size: var(--text-body-lg);
  padding: 16px 52px;
}

.btn-lg.btn-secondary {
  font-size: var(--text-body);
  padding: 14px 40px;
}


/* ═══════════════════════════════════════════════════════════════
   5. SECTION SCAFFOLDING
   ═══════════════════════════════════════════════════════════════ */

.section {
  padding-block: var(--section-padding-y);
}

/* Background variants — alternate to create visual rhythm */
.section--soft  { background: var(--surface-soft); }
.section--dark  { background: var(--surface-dark); color: var(--text-on-dark); }
.section--navy  { background: var(--surface-navy); color: var(--text-on-dark); }


/* ═══════════════════════════════════════════════════════════════
   6. SECTION HEADER
   ═══════════════════════════════════════════════════════════════ */

.section-header {
  margin-bottom: 2.75rem;
}

/* Optional label pill above the title */
.section-pill {
  display: inline-block;
  background: rgba(4, 30, 66, 0.07);
  color: var(--color-navy);
  font-family: var(--font-ui);
  font-size: var(--text-ui-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.section--dark  .section-pill,
.section--navy  .section-pill {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-green);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}

/* Functional section title (Oswald, caps) */
.section-title--ui {
  font-family: var(--font-ui);
  font-size: var(--text-h2-ui);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Smaller variant for sub-sections */
.section-title--sm {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.section--dark .section-title,
.section--navy .section-title {
  color: #fff;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.75;
  margin: 0 auto;
}

.section--dark  .section-subtitle,
.section--navy  .section-subtitle {
  color: var(--text-on-dark-muted);
}


/* ═══════════════════════════════════════════════════════════════
   7. PAGE HERO
   ═══════════════════════════════════════════════════════════════ */

.page-hero {
  min-height: clamp(400px, 58vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-navy);   /* fallback while image loads */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;           /* fixed breaks iOS Safari */
  position: relative;
}

.page-hero__content {
  text-align: center;
  padding: 2rem var(--container-px);
  max-width: 820px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.30);
  animation: fade-up var(--duration-slow) var(--ease-out) 80ms both;
}

.page-hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  margin-bottom: 2rem;
  margin-top: 0;
  animation: fade-up var(--duration-slow) var(--ease-out) 240ms both;
}

.page-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up var(--duration-slow) var(--ease-out) 400ms both;
}

/* Page-specific background images (path relative to assets/css/) */

.page-hero--history {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../img/2025/history/history.JPG");
  background-position: center 42%;
}

.page-hero--leadership {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.40)),
    url("../img/2025/leadership/team.JPG");
}

.page-hero--join {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.50)),
    url("../img/2025/join/join3.jpeg");
}

.page-hero--resources {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../img/2025/resources/resources.jpeg");
}

.page-hero--shpetinas {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.40)),
    url("../img/2025/shpetinas/shpetinas.JPG");
}

.page-hero--minerspark {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../img/2025/home/members.JPG");
}

.page-hero--appdev {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.50)),
    url("../img/2025/appdev/landing.jpeg");
}

.page-hero--constitution {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../img/2025/history/history.JPG");
}


/* ─── INNER PAGE HERO (light split hero for all inner pages) ─────────────── */

.inner-hero {
  background: #faf9f7;
  padding-top: clamp(5.5rem, 11vw, 8rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.inner-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(4, 30, 66, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.inner-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.inner-hero__eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-ui-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fade-up var(--duration-slow) var(--ease-out) 80ms both;
}

.inner-hero__eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: var(--color-orange);
  flex-shrink: 0;
}

.inner-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  animation: fade-up var(--duration-slow) var(--ease-out) 200ms both;
}

.inner-hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  color: rgba(4, 30, 66, 0.60);
  line-height: 1.75;
  margin-bottom: 0;
  max-width: 480px;
  animation: fade-up var(--duration-slow) var(--ease-out) 320ms both;
}

.inner-hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  animation: fade-up var(--duration-slow) var(--ease-out) 440ms both;
}

.inner-hero .btn-ghost {
  color: var(--color-navy);
  background: transparent;
  border-color: rgba(4, 30, 66, 0.22);
}
.inner-hero .btn-ghost:hover,
.inner-hero .btn-ghost:focus {
  color: var(--color-navy);
  background: var(--color-green);
  border-color: var(--color-green);
}

.inner-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 900ms var(--ease-out) 300ms both;
}

.inner-hero__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(4, 30, 66, 0.14);
  display: block;
}

@media (max-width: 767.98px) {
  .inner-hero__inner {
    grid-template-columns: 1fr;
  }
  .inner-hero__visual { order: -1; }
  .inner-hero__img { height: 220px; }
  .inner-hero__subtitle { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .inner-hero__eyebrow,
  .inner-hero__title,
  .inner-hero__subtitle,
  .inner-hero__actions,
  .inner-hero__visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── Inner-hero page character modifiers ───────────────────── */

/* History: photo on left */
.inner-hero--reverse .inner-hero__visual { order: -1; }

/* SHPEtinas: soft pink tone */
.inner-hero--shpetinas { background: #fdf8fc; }
.inner-hero--shpetinas .inner-hero__eyebrow       { color: #d63fb4; }
.inner-hero--shpetinas .inner-hero__eyebrow::before { background: #d63fb4; }

/* MinerSpark: green accent */
.inner-hero--green .inner-hero__eyebrow       { color: var(--color-green-text); }
.inner-hero--green .inner-hero__eyebrow::before { background: var(--color-green-text); }

/* Centered (no photo) — constitution, resources */
.inner-hero--centered { text-align: center; }
.inner-hero--centered .inner-hero__inner {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
.inner-hero--centered .inner-hero__eyebrow  { justify-content: center; }
.inner-hero--centered .inner-hero__actions  { justify-content: center; }
.inner-hero--centered .inner-hero__subtitle { max-width: 100%; }


/* ═══════════════════════════════════════════════════════════════
   8. CARDS
   ═══════════════════════════════════════════════════════════════ */

/* ─── Program card (media + content, used on homepage and program pages) */

.program-card {
  background: var(--surface-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-card);
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.program-card__media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}

.program-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 350ms var(--ease-out);
}

.program-card:hover .program-card__media img {
  transform: scale(1.04);
}

.program-card__tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-ui);
  font-size: var(--text-ui-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.20);
}

.program-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.program-card__desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
}

.program-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: var(--text-ui-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-orange);
  text-decoration: none;
  margin-top: auto;
  transition: color var(--duration-fast) var(--ease-in-out), gap var(--duration-fast) var(--ease-out);
}

.program-card__link:hover {
  color: var(--color-orange-hover);
  gap: 0.55rem;
}

.program-card__link:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Tag pills (shared across program cards, badges) ───────── */

.tag-green  { background: var(--tag-green);  color: #1F2937; } /* dark text — green on white fails AA */
.tag-pink   { background: var(--tag-pink);   color: #fff; }
.tag-orange { background: var(--tag-orange); color: #fff; }
.tag-navy   { background: var(--color-navy); color: #fff; }

/* ─── Feature card (icon/number + title + description) ─────── */

.feature-card {
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: var(--transition-card);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  display: block;
}

/* Rotate through brand colors by position */
.feature-card:nth-child(3n+1) .feature-card__icon { color: var(--color-orange); }
.feature-card:nth-child(3n+2) .feature-card__icon { color: var(--color-green-text); }
.feature-card:nth-child(3n+3) .feature-card__icon { color: var(--color-navy); }

.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.feature-card__body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

/* Numbered variant */
.feature-card--numbered .feature-card__number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  display: block;
  line-height: 1;
}

/* ─── Stat card (large number highlight) ───────────────────── */

.stat-card {
  padding: 1.5rem 1rem;
  text-align: center;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-card__label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.45;
  display: block;
}

/* Brand color rotation */
.stat-card:nth-child(1) .stat-card__value { color: var(--color-navy); }
.stat-card:nth-child(2) .stat-card__value { color: var(--color-orange); }
.stat-card:nth-child(3) .stat-card__value { color: var(--color-green-text); }
.stat-card:nth-child(4) .stat-card__value { color: var(--color-navy); }

/* Vertical dividers between stats on desktop */
@media (min-width: 768px) {
  .stat-card + .stat-card {
    border-left: 1px solid var(--border-subtle);
  }
}

@media (max-width: 575.98px) {
  .stat-card {
    padding-block: 1rem;
  }
}

/* ─── Leader / Person card  (editorial photo card) ─────────── */

.leader-card {
  background: var(--surface-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  height: 100%;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.leader-card:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus), var(--shadow-xl);
}

.leader-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-muted);
  flex-shrink: 0;
}

.leader-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

.leader-card__photo.loaded {
  opacity: 1;
}

.leader-card:hover .leader-card__photo {
  transform: scale(1.05);
}

.leader-card__role-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 130, 0, 0.88);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-card__body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.15rem;
}

.leader-card__name {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  margin: 0;
}

.leader-card__major {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
  margin: 0;
}

.leader-card__linkedin {
  display: inline-flex;
  align-items: center;
  color: var(--color-navy);
  font-size: 1.15rem;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.15s ease;
  width: fit-content;
}

.leader-card__linkedin:hover { color: var(--color-orange); }

/* Avatar placeholder for missing photos */
.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder i {
  font-size: 3rem;
  color: var(--text-muted);
}

/* ─── Full-width team photo band ─────────────────────────────── */

.team-photo-band {
  position: relative;
  width: 100%;
  height: clamp(300px, 46vw, 580px);
  overflow: hidden;
}

/* Hero variant — taller, used as the first element on the leadership page */
.team-photo-band--hero {
  height: clamp(460px, 62vw, 720px);
}

.team-photo-band__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-photo-band__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(4, 30, 66, 0.70), transparent);
  padding: 2.5rem 2rem 1.1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.90);
  font-family: var(--font-ui);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Centered overlay used on the --hero variant */
.team-photo-band__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(4,30,66,0.30), rgba(4,30,66,0.58));
  padding: 2rem;
}

.team-photo-band__eyebrow {
  color: var(--color-orange);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-photo-band__eyebrow::before,
.team-photo-band__eyebrow::after {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: var(--color-orange);
  flex-shrink: 0;
}

.team-photo-band__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.team-photo-band__sub {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  max-width: 500px;
  line-height: 1.65;
  margin: 0;
}

/* Simple board section heading (replaces pill + h2 + subtitle stack) */
.board-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--color-navy);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(4, 30, 66, 0.08);
  margin-bottom: 0;
}


/* ═══════════════════════════════════════════════════════════════
   9. CTA SECTION
   ═══════════════════════════════════════════════════════════════ */

.cta-section {
  background: var(--color-navy);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
}

.cta-section__content {
  max-width: 620px;
  margin: 0 auto;
}

.cta-section__eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-ui-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green);
  display: block;
  margin-bottom: 0.75rem;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.cta-section__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.cta-section__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════
   10. FORM CONTROLS
   ═══════════════════════════════════════════════════════════════ */

/* Label */
.form-label {
  font-family: var(--font-ui);
  font-size: var(--text-ui-sm);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
  display: block;
}

/* Input + textarea */
.form-control {
  height: 48px;
  background: var(--surface-default);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-primary);
  padding: 0 1rem;
  width: 100%;
  transition: border-color var(--duration-fast) var(--ease-in-out), box-shadow var(--duration-fast) var(--ease-in-out);
  display: block;
}

.form-control::placeholder {
  color: var(--text-placeholder);
}

.form-control:hover {
  border-color: var(--border-strong);
}

.form-control:focus {
  border-color: var(--color-orange);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.form-control:disabled {
  background: var(--surface-muted);
  opacity: 0.6;
  cursor: not-allowed;
}

textarea.form-control {
  height: auto;
  min-height: 128px;
  padding: 0.75rem 1rem;
  resize: vertical;
}

/* Select */
.form-select {
  height: 48px;
  background: var(--surface-default);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-primary);
  padding: 0 2.5rem 0 1rem;
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23041E42' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-in-out), box-shadow var(--duration-fast) var(--ease-in-out);
}

.form-select:focus {
  border-color: var(--color-orange);
  box-shadow: var(--shadow-focus);
  outline: none;
}

/* Error state */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-error {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: #DC2626;
  margin-top: var(--space-2);
  display: block;
}

/* Helper text */
.form-help {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-top: var(--space-2);
  display: block;
}

/* Checkbox / Radio */
.form-check-input {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-xs);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--duration-fast) var(--ease-in-out), background var(--duration-fast) var(--ease-in-out);
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input:checked {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
}

.form-check-input:focus {
  box-shadow: var(--shadow-focus-navy);
  outline: none;
}

.form-check-label {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-primary);
  cursor: pointer;
}


/* ═══════════════════════════════════════════════════════════════
   11. SPONSOR MARQUEE
   ═══════════════════════════════════════════════════════════════ */

.sponsor-marquee {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  padding: 0.75rem 0 2.25rem;
  position: relative;
}

/* Fade edges */
.sponsor-marquee::before,
.sponsor-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

.sponsor-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface-soft) 0%, transparent 100%);
}

.sponsor-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--surface-soft) 0%, transparent 100%);
}

.sponsor-logos {
  animation: sponsor-scroll 28s linear infinite;
  display: flex;
  flex: 0 0 auto;
  gap: 2rem;
  min-width: max-content;
}

.sponsor-marquee:hover .sponsor-logos {
  animation-play-state: paused;
}

.sponsor-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--surface-default);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  min-width: 140px;
  min-height: 70px;
  transition: var(--transition-card);
}

.sponsor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.sponsor-card img {
  max-width: 120px;
  max-height: 45px;
  object-fit: contain;
  display: block;
}


/* ═══════════════════════════════════════════════════════════════
   12. UTILITIES
   ═══════════════════════════════════════════════════════════════ */

/* Soft panel — bordered inset box */
.soft-panel {
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* Icon link — small icon with hover feedback */
.icon-link {
  color: var(--text-muted);
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-in-out), transform var(--duration-fast) var(--ease-out);
}

.icon-link:hover {
  color: var(--color-navy);
  transform: translateY(-2px);
}

.icon-link:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

/* Calendar embed wrapper */
.calendar-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.calendar-wrapper iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: none;
}

@media (max-width: 575.98px) {
  .calendar-wrapper iframe {
    height: 420px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   13. ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

/* Unified entrance animation — replaces the old fadeInUp + fadeUp duplicates */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Legacy aliases kept for backwards compat until each page migrates */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }

@keyframes sponsor-scroll {
  from { transform: translateX(calc(-100% - 2rem)); }
  to   { transform: translateX(0); }
}

/* Apply animation classes */
.fade-in-up {
  opacity: 0;
  animation: fade-up 1.2s var(--ease-out) forwards;
}

.fade-title {
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) forwards;
  animation-delay: 0.1s;
}

.fade-subtitle {
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) forwards;
  animation-delay: 0.4s;
}

/* Staggered team cards */
.team-card {
  opacity: 0;
  animation: fade-up 1s var(--ease-out) forwards;
}

.middle-card { animation-delay: 0.8s;  }
.left-card   { animation-delay: 1.2s;  }
.right-card  { animation-delay: 1.4s;  }

.team-card:hover {
  transform: translateY(-8px);
  transition: transform 0.3s ease;
}

/* ─── Scroll-reveal (IntersectionObserver adds .is-visible) ─── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Fade-only variant */
.reveal[data-anim="fade"] {
  transform: none;
}

/* Scale variant */
.reveal[data-anim="scale"] {
  transform: scale(0.96);
}
.reveal[data-anim="scale"].is-visible {
  transform: scale(1);
}

/* Slide variants */
.reveal[data-anim="slide-left"]  { transform: translateX(-24px); }
.reveal[data-anim="slide-right"] { transform: translateX(24px); }
.reveal[data-anim="slide-left"].is-visible,
.reveal[data-anim="slide-right"].is-visible { transform: none; }

/* Stagger delay utilities */
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="150"] { transition-delay: 150ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="250"] { transition-delay: 250ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="350"] { transition-delay: 350ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }
.reveal[data-delay="600"] { transition-delay: 600ms; }


/* ═══════════════════════════════════════════════════════════════
   14. REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  /* Strip hero entrance animations */
  .page-hero__title,
  .page-hero__subtitle,
  .page-hero__actions,
  .fade-in-up,
  .fade-title,
  .fade-subtitle,
  .team-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Strip scroll-reveal (all variants) */
  .reveal,
  .reveal[data-anim],
  .reveal[data-delay] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0ms !important;
  }

  /* Static marquee fallback */
  .sponsor-logos {
    animation: none !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .sponsor-logos[aria-hidden="true"] {
    display: none !important;
  }

  /* Keep functionality, remove hover motion */
  .program-card:hover,
  .feature-card:hover,
  .leader-card:hover,
  .pillar-card:hover,
  .sponsor-card:hover,
  .resource-card:hover {
    transform: none;
  }

  /* Dropdown animation off */
  .shpe-navbar .dropdown-menu {
    animation: none;
  }
}
