*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #e1510a;
  --orange-light: #F78C45;
  --orange-dim: rgba(225, 81, 10, 0.15);
  --blue: #2288D8;
  --blue-light: #4BBEF7;
  --blue-dim: rgba(34, 136, 216, 0.12);
  --bg: #343437;
  --bg-1: #2b2b2b;
  --bg-2: #222222;
  --bg-card: #1f1f21;
  --border: rgba(255,255,255,0.09);
  --text: #eeeeee;
  --muted: #9aa0a6;
  --radius: 14px;
  --radius-lg: 22px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Section Wrapper ── */
section { padding: 90px 24px; }
.container { max-width: 1180px; margin: 0 auto; }

.section-label {
  font-family: 'Source Code Pro', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Source Code Pro', monospace;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 800px;
  margin-bottom: 28px;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .18s, transform .18s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--orange-light); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color .18s, color .18s, transform .18s;
}
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }

/* ── Section Header Row ── */
.section-header-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.section-header-text .section-sub { margin-bottom: 28px; }
.section-header-text .camp-legend { margin-bottom: 0; }
.section-collage { width: 100%; }
.collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.collage-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.collage-img--wide {
  grid-column: 1 / 3;
  height: 380px;
}
@media (max-width: 860px) {
  .section-header-row { grid-template-columns: 1fr; }
  .collage-img { height: 140px; }
  .collage-img--wide { height: 260px; }
}

/* ── Camp Legend ── */
.camp-legend {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}
.legend-dot.python { background: var(--orange); }
.legend-dot.maker  { background: var(--blue); }
.legend-name { font-size: 14px; font-weight: 600; color: var(--text); }
.legend-sub  { font-size: 12px; color: var(--muted); }

/* ── Calendar ── */
.cal-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.cal-month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.cal-month-title {
  font-family: 'Source Code Pro', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.cal-month-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 14px;
}
.cal-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
}
.cal-day-hdr {
  padding: 10px 0;
  font-family: 'Source Code Pro', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
}
.cal-day-hdr:last-child { border-right: none; }
.cal-day-hdr.weekend { background: var(--bg-2); color: #555; }
.cal-week { border-bottom: 1px solid var(--border); }
.cal-week:last-child { border-bottom: none; }
.cal-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-height: 110px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cal-date {
  padding: 0 0 8px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.cal-date:last-child { border-right: none; }
.cal-date span {
  font-family: 'Source Code Pro', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.cal-date.weekend { background: var(--bg-2); }
.cal-date.weekend span { color: #555; }
.cal-date.prev-month span { color: #444; }
.cal-date.camp-python { background: rgba(225,81,10,0.1); }
.cal-date.camp-maker  { background: rgba(1,103,184,0.1); }

/* Bubble bar */
.cal-event {
  position: absolute;
  left: calc(100% / 7 + 8px);
  right: calc(100% / 7 + 8px);
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 5px 16px;
  border-radius: 10px;
  border: 1px solid;
  transition: transform .18s, box-shadow .18s;
}
.cal-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.event-python {
  background: #d95c10;
  border-color: #F2711E;
}
.event-maker {
  background: #1870ba;
  border-color: #2288D8;
}
.event-no-camp {
  background: transparent;
  border-color: var(--border);
  border-style: dashed;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  justify-content: center;
  letter-spacing: 0.01em;
  cursor: default;
}
.event-no-camp:hover { transform: none; box-shadow: none; }
.event-inner-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 220px;
}
.event-name {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
  color: #fff;
}
.event-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.event-pill {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 2px 11px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.event-inner-right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}
.event-price {
  font-family: 'Source Code Pro', monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-align: right;
}
.event-price small { font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 400; margin-left: 2px; }
.event-early { font-size: 11px; color: rgba(255,255,255,0.65); text-align: right; margin-top: 3px; font-weight: 400; }
.btn-enroll {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: filter .18s, transform .18s;
  white-space: nowrap;
  color: #fff;
}
.btn-enroll:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-enroll-python { background: var(--orange); }
.btn-enroll-maker  { background: var(--blue-light); }

@media (max-width: 680px) {
  .cal-event { flex-direction: column; align-items: flex-start; }
  .event-inner-right { width: 100%; justify-content: space-between; }
  .cal-month-sub { display: none; }
}

/* ── Mobile Camp Cards ── */
.mobile-camps { display: none; }

@media (max-width: 680px) {
  .cal-wrapper { display: none; }
  .mobile-camps {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

.mobile-camp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  border-left-width: 4px;
}
.mobile-camp-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.mobile-camp-card--python { border-left-color: var(--orange); }
.mobile-camp-card--maker  { border-left-color: var(--blue); }
.mcc-left { flex: 1; min-width: 0; }
.mcc-name {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.mcc-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.mcc-pill {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.mcc-spots { font-size: 11.5px; color: var(--muted); }
.mcc-spots--low { color: var(--orange); font-weight: 600; }
.mcc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.mcc-price {
  font-family: 'Source Code Pro', monospace;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}
.mcc-price small { font-size: 10px; color: var(--muted); font-weight: 400; }
.mcc-early { font-size: 10.5px; color: var(--orange); font-weight: 600; text-align: right; }

/* ── Footer ── */
.spotlight-footer {
  background: #0b0b0c;
  color: #a8a8a8;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.spotlight-footer p { font-size: 13px; margin-bottom: 4px; }
.spotlight-footer a { color: #a8a8a8; text-decoration: none; transition: color .18s; }
.spotlight-footer a:hover { color: #eee; }
.spotlight-footer .text-muted { color: #555 !important; }

/* ── Camp Detail Modal ── */
.camp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.camp-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.camp-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: translateY(18px) scale(0.97);
  transition: transform .25s cubic-bezier(.34,1.3,.64,1), opacity .22s ease;
  opacity: 0;
}
.camp-modal-overlay.open .camp-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .18s, border-color .18s;
  z-index: 2;
}
.modal-close:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.modal-header {
  padding: 28px 28px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-family: 'Source Code Pro', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  line-height: 1.25;
  margin-bottom: 14px;
  padding-right: 32px;
}
.modal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.modal-pill {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.modal-body { padding: 24px 28px 28px; }
.modal-desc {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.modal-desc p + p { margin-top: 12px; }
.modal-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.modal-price-block { display: flex; flex-direction: column; gap: 4px; }
.modal-price {
  font-family: 'Source Code Pro', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.modal-price-note { font-size: 11px; color: var(--muted); margin-top: 3px; }
.modal-spots-low { color: var(--orange); font-weight: 600; }
.modal-enroll-btn { padding: 12px 28px; font-size: 14px; }
@media (max-width: 480px) {
  .modal-header { padding: 22px 20px 18px; }
  .modal-body { padding: 20px 20px 24px; }
  .modal-title { font-size: 1.05rem; }
}
