/* ============================================================
   Global Voices — IB PYP course page additions
   The activity pack and the trainee testimonial carousel.
   Layered on css/styles.css and using its tokens; scoped to
   .pack*, .act* and .wa-* so nothing else on the site moves.
   ============================================================ */

/* ---------- 1. Activity pack -------------------------------- */

.pack {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.pack__head {
  max-width: 48rem;
  margin: 0 auto clamp(1.5rem, 3.5vw, 2.25rem);
  text-align: center;
}

.pack__head h2 { margin: 0 0 0.7rem; }

.pack__head > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.pack__count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 210, 122, 0.3);
  background: rgba(255, 210, 122, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
}

.pack__count strong { font-size: 1.05rem; font-weight: 900; font-variant-numeric: tabular-nums; }

/* --- group tabs --- */

.pack__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.pack__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.pack__n {
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pack__tab:hover {
  color: #fff;
  border-color: rgba(255, 138, 30, 0.5);
  transform: translateY(-1px);
}

.pack__tab.is-on {
  background: var(--grad-btn);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-orange);
}

.pack__tab.is-on .pack__n { background: rgba(0, 0, 0, 0.24); color: #fff; }

.pack__lead {
  max-width: 46rem;
  margin: 0 auto 1.4rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.7;
  text-wrap: pretty;
}

/* --- activity cards --- */

.pack__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17.5rem, 100%), 1fr));
  align-items: start;
  gap: 1rem;
}

.act {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.act:hover {
  background: rgba(255, 138, 30, 0.06);
  border-color: rgba(255, 138, 30, 0.35);
  transform: translateY(-2px);
}

.act__name {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.32;
  color: #fff;
  text-wrap: balance;
}

/* Project Zero credit, kept small but readable and explained on hover */
.act__pz {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.4rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(122, 168, 255, 0.45);
  background: rgba(122, 168, 255, 0.12);
  color: #a8c6ff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  vertical-align: 2px;
  text-decoration: none;
  cursor: help;
}

.act__note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.act__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 0;
}

.act__stage,
.act__dok {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.act__stage {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink-faint);
}

.act__dok {
  border: 1px solid rgba(255, 138, 30, 0.35);
  background: rgba(255, 138, 30, 0.1);
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.pack__credit {
  margin: 1.5rem auto 0;
  max-width: 46rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-faint);
}

/* ---------- 2. Trainee testimonials ------------------------- */

.ib-testimonials { padding-block: clamp(1rem, 3vw, 2rem) 0; }

.wa-wrap { max-width: 48rem; margin: 2rem auto 0; text-align: center; }

.wa-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 1.15rem; }

.wa-carousel { position: relative; display: flex; align-items: center; gap: 0.65rem; }

.wa-track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--radius-md);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wa-track::-webkit-scrollbar { display: none; }

.wa-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: grid;
  place-items: center;
  padding: 0.4rem;
}

.wa-shot {
  max-width: 100%;
  padding: 0.5rem;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 22px 55px -22px rgba(0, 0, 0, 0.7);
}

.wa-shot img { display: block; width: 100%; height: auto; border-radius: 0.5rem; }

.wa-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 138, 30, 0.5);
  background: rgba(255, 138, 30, 0.15);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}

.wa-arrow:hover { background: rgba(255, 138, 30, 0.35); border-color: rgba(255, 138, 30, 0.85); }

.wa-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }

.wa-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.2s, transform 0.2s;
}

.wa-dots button.active { background: var(--orange); transform: scale(1.35); }

/* ---------- 3. Responsive ----------------------------------- */

@media (max-width: 560px) {
  .wa-arrow { width: 36px; height: 36px; font-size: 1.4rem; }
  .wa-title { font-size: 1.05rem; }
  .pack__tab { font-size: 0.84rem; padding: 0.5rem 0.9rem; }
}

/* ---------- 4. Reduced motion ------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .wa-track { scroll-behavior: auto; }
  .act, .pack__tab, .wa-arrow, .wa-dots button { transition: none; }
  .act:hover, .pack__tab:hover { transform: none; }
  .wa-dots button.active { transform: none; }
}

/* ---------- 5. Course package and price --------------------- */

.pkg {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: clamp(1.6rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 138, 30, 0.28);
  background: var(--panel-grad);
  box-shadow: var(--shadow-card);
}

.pkg__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.55rem, 3.6vw, 2.3rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}

.pkg__price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.pkg__price span {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.pkg__note { margin: 0; color: var(--ink-soft); line-height: 1.72; }

.pkg__list { margin: 0; padding: 0; list-style: none; display: grid; }

.pkg__list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.pkg__list li:first-child { border-top: 0; padding-top: 0; }
.pkg__list li:last-child { padding-bottom: 0; }

.pkg__list strong {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
}

.pkg__list strong::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-2px);
}

.pkg__list span { padding-left: 1.15rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

.pkg__list a,
.pkg__list button {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 138, 30, 0.4);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.pkg__list a:hover,
.pkg__list button:hover { color: var(--gold); text-decoration-color: currentColor; }

.pkg__cta { grid-column: 1 / -1; justify-self: start; margin-top: 0.5rem; }

@media (max-width: 820px) {
  .pkg { grid-template-columns: minmax(0, 1fr); }
  .pkg__cta { justify-self: stretch; text-align: center; }
}
