/* ==========================================
   PROGRAM PAGE STYLES — RosterWise™
   School-specific program profile pages.
   Visual design system: hero header with school colors,
   Quick Facts panel, US map, analysis pitch section.
   ========================================== */

/* --- Hero Section --- */
.program-hero {
  background: linear-gradient(170deg,
    var(--school-primary, #1a2744) 0%,
    color-mix(in srgb, var(--school-primary, #1a2744) 80%, #000) 100%);
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 40px) clamp(36px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}

/* Subtle secondary-color accent stripe at top */
.program-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--school-secondary, var(--gold));
}

/* Subtle geometric pattern overlay */
.program-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: radial-gradient(circle at 80% 40%,
    rgba(255,255,255,0.04) 0%,
    transparent 70%);
  pointer-events: none;
}

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

/* Breadcrumbs inside hero */
.program-hero .program-breadcrumbs {
  padding: 0 0 20px;
  max-width: none;
  margin: 0;
}

.program-hero .program-breadcrumbs ol {
  color: rgba(255,255,255,0.5);
}

.program-hero .program-breadcrumbs a {
  color: rgba(255,255,255,0.5);
}

.program-hero .program-breadcrumbs a:hover {
  color: var(--school-secondary, var(--gold));
}

.program-hero .program-breadcrumbs span[aria-current] {
  color: rgba(255,255,255,0.7);
}

.program-hero .program-breadcrumbs li::after {
  color: rgba(255,255,255,0.25);
}

/* School identity pills */
.program-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.program-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.program-pill--division {
  background: rgba(255,255,255,0.15);
  color: #fff;
  backdrop-filter: blur(4px);
}

.program-pill--school {
  background: #fff;
  color: var(--school-pill-text, var(--navy));
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  font-weight: 800;
}

.program-pill--conference {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Hero H1 */
.program-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 6px;
}

.program-hero-sport {
  color: var(--school-secondary, rgba(255,255,255,0.85));
}

.program-hero-school-name {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  margin-bottom: 16px;
}

.program-hero-summary {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  max-width: 680px;
}

/* --- Breadcrumbs (standalone, not in hero — for discontinued pages) --- */
.program-breadcrumbs {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 40px) 0;
}

.program-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.program-breadcrumbs li::after {
  content: "/";
  margin-left: 6px;
  color: #c0bdb5;
}

.program-breadcrumbs li:last-child::after { content: ""; }

.program-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.program-breadcrumbs a:hover { color: var(--gold); }

.program-breadcrumbs span[aria-current] {
  color: var(--navy);
  font-weight: 500;
}

/* --- Quick Facts panel (Component B) --- */
.program-facts {
  max-width: 900px;
  margin: -24px auto 0;
  padding: 0 clamp(20px, 5vw, 40px);
  position: relative;
  z-index: 2;
}

.program-facts-card {
  background: var(--white);
  border: 1px solid #e0dcd4;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.program-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.program-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0ede6;
}

.program-fact:nth-last-child(-n+2) {
  border-bottom: none;
}

.program-fact-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--school-primary, var(--navy));
  margin-top: 1px;
}

.program-fact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
}

.program-fact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

/* --- US Map (Component C) --- */
.program-map {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 0 clamp(20px, 5vw, 40px);
}

.program-map-card {
  background: var(--white);
  border: 1px solid #e0dcd4;
  border-radius: 12px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}

.program-map-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.program-map-header svg {
  width: 18px;
  height: 18px;
  color: var(--school-primary, var(--navy));
}

.program-map-header span {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.program-map-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.program-map-container .us-map {
  width: 100%;
  height: auto;
}

.program-map-container .us-map path {
  fill: #e8e5de;
  stroke: #fff;
  stroke-width: 1;
  transition: fill 0.2s ease;
}

.program-map-container .us-map path.state-active {
  fill: color-mix(in srgb, var(--school-primary, var(--gold)) 25%, #e8e5de);
}

/* Location pin on the map — dot is anchored exactly at the coordinate */
.program-map-pin {
  position: absolute;
  z-index: 5;
  width: 0;
  height: 0;
}

.program-map-pin-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  left: -7px;
  top: -7px;
  background: var(--school-primary, var(--navy));
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.program-map-pin-label {
  position: absolute;
  left: 0;
  bottom: 12px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--school-primary, var(--navy));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.program-map-pin-label::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--school-primary, var(--navy));
}

.program-map-caption {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.program-map-caption strong {
  color: var(--navy);
}

/* --- Main content sections --- */
.program-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 40px) 0;
}

.program-section {
  margin-bottom: 36px;
}

.program-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--school-primary, var(--gold));
}

.program-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.program-section ul,
.program-section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.program-section li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 6px;
}

/* --- Analysis Pitch Section (polished card) --- */
.program-analysis-card {
  background: linear-gradient(135deg, #f8f6f0 0%, #f0ede6 100%);
  border: 1px solid #e0dcd4;
  border-left: 4px solid var(--school-primary, var(--gold));
  border-radius: 12px;
  padding: clamp(28px, 4vw, 40px);
  margin-bottom: 36px;
}

.program-analysis-card h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
  color: var(--navy);
}

.program-analysis-card > p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.program-analysis-list {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}

.program-analysis-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
}

.program-analysis-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--school-primary, var(--gold));
  opacity: 0.7;
}

.program-analysis-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e0dcd4;
}

.program-analysis-footer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
}

/* --- Notable alumni list --- */
.program-alumni-list {
  list-style: none;
  padding-left: 0;
}

.program-alumni-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0ede6;
  font-size: 15px;
}

.program-alumni-list li:last-child {
  border-bottom: none;
}

/* --- Related Resources --- */
.program-related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.program-related-link {
  display: block;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid #e0dcd4;
  border-radius: 6px;
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.program-related-link:hover {
  border-color: var(--school-primary, var(--gold));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --- CTA Block (Component E) --- */
.program-cta {
  max-width: 900px;
  margin: 8px auto 0;
  padding: 0 clamp(20px, 5vw, 40px);
}

.program-cta-card {
  background: var(--navy);
  border-radius: 12px;
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
}

.program-cta-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  border: none;
  padding: 0;
}

.program-cta-card p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 24px;
}

.program-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.program-cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* --- Sources and footer metadata --- */
.program-footer-meta {
  max-width: 900px;
  margin: 32px auto 0;
  padding: 0 clamp(20px, 5vw, 40px) 48px;
}

.program-sources h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.program-sources ul {
  list-style: none;
  padding: 0;
}

.program-sources li {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.program-sources a {
  color: var(--gold-dark);
  text-decoration: none;
}

.program-sources a:hover {
  text-decoration: underline;
}

.program-last-updated {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Discontinued program styles --- */
.program-discontinued-notice {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.program-discontinued-notice p {
  color: #991b1b;
  font-size: 15px;
  margin-bottom: 0;
}

/* --- Status Badges (large, unmissable) --- */
.program-status-badge {
  display: inline-block;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  margin-bottom: 16px;
}

.program-status-badge--discontinued {
  background: #dc2626;
  color: white;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.program-status-badge--new {
  background: #16a34a;
  color: white;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

/* Discontinued hero variant (darker, muted) */
.program-hero--discontinued {
  background: linear-gradient(170deg,
    color-mix(in srgb, var(--school-primary, #1a2744) 50%, #333) 0%,
    color-mix(in srgb, var(--school-primary, #1a2744) 30%, #000) 100%);
}

.program-hero--discontinued .program-discontinued-notice {
  background: rgba(254, 242, 242, 0.1);
  border: 1px solid rgba(254, 202, 202, 0.3);
  border-left: 4px solid #ef4444;
}

.program-hero--discontinued .program-discontinued-notice p {
  color: rgba(255, 255, 255, 0.9);
}

/* Standalone header (for discontinued pages without hero) */
.program-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 40px) 0;
}

.program-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .program-hero {
    padding: 28px 20px 32px;
  }

  .program-hero-pills {
    gap: 8px;
  }

  .program-pill {
    font-size: 12px;
    padding: 5px 12px;
  }

  .program-facts {
    margin-top: -16px;
  }

  .program-facts-grid {
    grid-template-columns: 1fr;
  }

  .program-fact:last-child {
    border-bottom: none;
  }

  .program-map-pin-label {
    font-size: 11px;
    padding: 3px 8px;
  }

  .program-related {
    grid-template-columns: 1fr;
  }

  .program-analysis-card {
    padding: 24px 20px;
  }
}
