/* ============================================
   PROGRAM PAGES (/programs/<name>/) — shared by every page programs/page.php renders.
   The colour and shadow variables come from includes/header.php; the card and label
   styles copy the homepage's (index.php) so the pages look like part of it.
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.prog img { max-width: 100%; height: auto; display: block; }
.prog a { color: var(--blue-dark); }
/* Alex, 2026-10-14 (AG_17218): no plain blue underlined links in the words — navy, bold, a gold
   underline; a phone number or email gets its own small icon */
.prog-section p a, .prog-section li a, .prog-faq details a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.prog-section p a:hover, .prog-section li a:hover, .prog-faq details a:hover { color: var(--blue-dark); text-decoration-color: var(--blue-dark); }
.prog-section a[href^="tel:"]::before, .prog-section a[href^="mailto:"]::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.8em;
  color: var(--blue-dark);
  margin-right: 5px;
  display: inline-block;
}
.prog-section a[href^="tel:"]::before { content: '\f095'; }
.prog-section a[href^="mailto:"]::before { content: '\f0e0'; }
.prog-section a[href^="tel:"], .prog-section a[href^="mailto:"] { white-space: nowrap; }

.prog h1, .prog h2, .prog h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 10px;
}
.prog h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 800; text-transform: uppercase; }
.prog h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); text-transform: uppercase; }
.prog h3 { font-size: 1.2rem; }
.prog p { margin: 0 0 10px; }
.prog ul { margin: 0 0 10px; padding-left: 22px; }
.prog li { margin-bottom: 4px; }
.prog-section p:last-child, .prog-section ul:last-child { margin-bottom: 0; }

.prog-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.prog-narrow { max-width: 820px; }

/* AC_17176: Alex found the pages too long for the words on them, so the spacing is kept tight */
.prog-section { padding: 26px 0; }
.prog-section--alt { background: var(--off-white); }
@media (min-width: 768px) { .prog-section { padding: 34px 0; } }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin: 0 0 8px;
}

/* ── Breadcrumb ── */
.prog-crumbs { font-size: 0.9rem; color: var(--gray-600); padding: 12px 0 0; }
.prog-crumbs a { text-decoration: none; }
.prog-crumbs span { margin: 0 6px; }

/* ── Intro: words beside the photo ── */
.prog-intro { padding: 16px 0 32px; }
.prog-intro-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; margin-top: 10px; }
@media (min-width: 900px) { .prog-intro-grid { grid-template-columns: 1.2fr 1fr; gap: 36px; } }
.prog-lead { font-size: 1.05rem; color: var(--gray-600); }
/* Alex, 2026-10-14 (AG_17218): a bolder navy band behind the title, words and photo, the words centred */
.prog-intro { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #1E3A5F 100%); color: var(--white); }
.prog-intro h1 { color: var(--white); }
.prog-intro .section-label { color: var(--blue); }
.prog-intro .prog-lead { color: rgba(255, 255, 255, 0.85); }
.prog-intro .prog-lead a, .prog-intro .prog-crumbs a { color: var(--blue); }
.prog-intro .prog-crumbs { color: rgba(255, 255, 255, 0.65); }
.prog-intro-text { text-align: center; }
.prog-intro .prog-btn { border-color: var(--gold); }
.prog-intro .prog-btn:hover { border-color: var(--gold); }
.prog-lead p { margin-bottom: 8px; }
.prog-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
/* A smaller photo inside a section's words (the Nerf photo on Birthday Parties, AG_17218) */
.prog-photo.prog-photo--small { max-width: 420px; aspect-ratio: auto; max-height: none; height: auto; margin: 4px 0 0; }
/* A page with 'imageWhole' => true shows its whole photo, narrower and taller, never cropped (AG_17218) */
.prog-photo.prog-photo--whole { aspect-ratio: auto; max-height: none; width: auto; max-width: min(100%, 440px); height: auto; margin: 0 auto; }

/* ── The gold button — the homepage's Get Started look, without the pulse ── */
.prog-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy) !important;
  border: 4px solid var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 34px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(15, 27, 45, 0.2);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  margin-top: 6px;
}
.prog-btn:hover { background: var(--navy); color: var(--gold) !important; transform: translateY(-2px); }
.prog-btn i { margin-right: 7px; }

/* ── Class-time tables ── */
.prog-table-wrap { overflow-x: auto; margin: 0 0 12px; }
.prog-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}
.prog-table th, .prog-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.prog-table th {
  background: var(--navy);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prog-table tr:last-child td { border-bottom: none; }
.prog-table td:first-child { font-weight: 600; white-space: nowrap; }
.prog-table th:first-child, .prog-table td:first-child { width: 40%; }   /* the Level 1 and Level 2 tables line up */
.prog-note { font-size: 0.9rem; color: var(--gray-600); }
.prog-class-group { margin: 14px 0 6px; }
.prog-class-group:first-of-type { margin-top: 0; }

/* ── Fact tiles (parties, open gym) ── */
.prog-facts-section { padding: 20px 0; }
.prog-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0; }
.prog-fact {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  /* Alex, 2026-10-14 (AG_17218): each tile's words centred both ways */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.prog-fact i { color: var(--gold); font-size: 1.2rem; margin-bottom: 4px; display: block; }
.prog-fact strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; color: var(--navy); text-transform: uppercase; letter-spacing: 0.03em; }

/* ── FAQ ── */
.prog-faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 8px;
}
.prog-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}
.prog-faq details p { margin: 8px 0 0; color: var(--gray-600); }

/* ── More programs: the homepage's program cards, as links — two across even on a phone ── */
.programs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
@media (min-width: 768px) { .programs-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.program-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
}
.program-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-md); }
.prog .program-card-img { width: 100%; height: 90px; object-fit: cover; }
@media (min-width: 768px) { .prog .program-card-img { height: 120px; } }
.program-card-body { padding: 8px 10px; text-align: center; }
.program-card-body h3 { font-size: 1.05rem; color: var(--navy); margin: 0 0 2px; }
.program-card-body .program-ages { font-size: 0.8rem; color: var(--blue-dark); font-weight: 600; margin: 0; }

