/* ══════════════════════════════════════════
   HACKATHON PROGRAM PAGE  (/program/ + /en/program/)
   Uses the main site variables: --teal, --teal-dark, --bg …
   All classes prefixed "pg-" so they never clash with home page styles.
══════════════════════════════════════════ */
:root {
  --pg-gold:    #c8960a;
  --pg-gold-lt: #FFD966;
  --pg-navy:    #00427E;
  --pg-light:   #F8F9FA;
}

/* Active link in navbar / drawer */
.nav-links a.is-active,
.nav-drawer a.is-active { color: var(--teal); background: var(--teal-glow); }

/* ── Header ── */
.pg-head {
  position: relative; overflow: hidden;
  background: var(--bg); color: #fff;
  padding: 136px 0 56px;               /* 80px fixed navbar + space */
}
.pg-head::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 85% 0%, rgba(0,145,158,.28), transparent 70%),
    radial-gradient(ellipse 40% 60% at 5% 100%, rgba(200,150,10,.12), transparent 70%);
}
.is-en .pg-head::before {
  background:
    radial-gradient(ellipse 60% 80% at 15% 0%, rgba(0,145,158,.28), transparent 70%),
    radial-gradient(ellipse 40% 60% at 95% 100%, rgba(200,150,10,.12), transparent 70%);
}
.pg-head .box { position: relative; }
.pg-head h1 {
  font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 900; line-height: 1.3; color: #fff;
}
.pg-head h1 span { color: var(--teal); }
.pg-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pg-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 50px; padding: 7px 16px;
  font-size: .85rem; font-weight: 600; color: #fff;
}
.pg-pill i { color: var(--pg-gold-lt); }

/* Day jump buttons */
.pg-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pg-jump a {
  color: #fff; text-decoration: none; line-height: 1.35;
  background: rgba(0,145,158,.16); border: 1px solid rgba(0,145,158,.4);
  border-radius: 12px; padding: 8px 18px;
  font-size: .9rem; font-weight: 700;
  transition: background .2s, transform .15s;
}
.pg-jump a:hover { background: var(--teal); transform: translateY(-2px); }
.pg-jump small { display: block; font-size: .72rem; font-weight: 600; opacity: .75; }

/* ── Body ── */
.pg-body { background: var(--pg-light); color: #1a2e2e; padding: 56px 0 72px; }
.pg-empty { text-align: center; color: #666; font-weight: 700; padding: 40px 0; }

.pg-day { margin-bottom: 44px; scroll-margin-top: 100px; }
.pg-day:last-of-type { margin-bottom: 24px; }
.pg-day-h { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pg-day-num {
  width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px;
  background: var(--teal); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1; box-shadow: 0 6px 18px rgba(0,145,158,.3);
}
.pg-day-num b     { font-size: 1.4rem; font-weight: 900; }
.pg-day-num small { font-size: .62rem; font-weight: 700; opacity: .85; margin-top: 3px; }
.pg-day-h h2 { font-size: 1.35rem; font-weight: 800; color: #1a2e2e; line-height: 1.3; }
.pg-day-h p  { font-size: .88rem; font-weight: 600; color: #666; }

.pg-card {
  background: #fff; border: 1px solid rgba(0,145,158,.18);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,60,70,.05);
}
.pg-row {
  display: grid; grid-template-columns: 150px 1fr auto; align-items: center;
  gap: 20px; padding: 16px 24px;
  border-bottom: 1px solid rgba(0,145,158,.1);
  transition: background .2s;
}
.pg-row:last-child { border-bottom: 0; }
.pg-row:hover { background: rgba(0,145,158,.05); }

.pg-time {
  font-size: .95rem; font-weight: 800; color: var(--teal-dark);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pg-time i { font-size: .75rem; opacity: .6; margin-inline-end: 6px; }
.pg-title { font-size: .98rem; font-weight: 700; color: var(--pg-navy); line-height: 1.5; }
.pg-note  { font-size: .8rem; font-weight: 600; color: #777; margin-top: 2px; }

.pg-badge {
  font-size: .75rem; font-weight: 800; white-space: nowrap;
  border-radius: 50px; padding: 4px 14px;
}
.is-en .pg-badge { letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; }
.pg-badge-setup   { color: #555; background: #eef1f1; }
.pg-badge-judging { color: #fff; background: var(--teal); }
.pg-badge-break   { color: #8a6a00; background: rgba(200,150,10,.12); }
.pg-badge-finale  { color: #1a1a1a; background: linear-gradient(135deg, var(--pg-gold), var(--pg-gold-lt)); }

/* Break row */
.pg-break { background: #fbf8ef; }
.pg-break:hover { background: #f7f1e0; }
.pg-break .pg-title { color: #6b5a1e; }
.pg-break .pg-time  { color: #8a6a00; }

/* Finale row — dark + gold */
.pg-finale, .pg-finale:hover {
  background: linear-gradient(135deg, #0e1e1e, #163030);
  padding-top: 22px; padding-bottom: 22px;
}
.pg-finale .pg-time  { color: var(--pg-gold-lt); }
.pg-finale .pg-title { color: #fff; font-size: 1.12rem; font-weight: 900; }
.pg-finale .pg-title i { color: var(--pg-gold-lt); margin-inline-end: 8px; }
.pg-finale .pg-note  { color: var(--pg-gold-lt); }
.pg-finale .pg-note i { margin-inline-end: 5px; }

.pg-foot-note { text-align: center; color: #888; font-size: .82rem; font-weight: 600; }

/* ── Tablet ── */
@media (max-width: 960px) {
  .pg-row { grid-template-columns: 130px 1fr auto; gap: 14px; padding: 14px 18px; }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .pg-head { padding: 100px 0 40px; }              /* 64px navbar */
  .pg-head h1 { font-size: 1.8rem; }
  .pg-pill { font-size: .78rem; padding: 7px 14px; }
  .pg-jump a { padding: 7px 14px; font-size: .82rem; }
  .pg-body { padding: 36px 0 48px; }
  .pg-day { margin-bottom: 32px; scroll-margin-top: 80px; }
  .pg-day-num { width: 46px; height: 46px; border-radius: 12px; }
  .pg-day-num b { font-size: 1.2rem; }
  .pg-day-h h2 { font-size: 1.15rem; }
  .pg-day-h p  { font-size: .8rem; }
  .pg-row { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; }
  .pg-time { grid-column: 1 / -1; font-size: .85rem; }
  .pg-title { font-size: .92rem; }
  .pg-finale .pg-title { font-size: 1rem; }
  /* Arabic: no letter-spacing on mobile */
  .is-ar .pg-pill, .is-ar .pg-jump a, .is-ar .pg-badge { letter-spacing: normal; }
}