/* =========================================================
   World School Games — Staff Portal styles
   Brand: deep navy + red, white cards on light grey.
   ========================================================= */
:root {
  --navy: #1B2A63;
  --navy-2: #24337F;
  --red: #C0202F;
  --ink: #16233B;
  --ink-soft: #5A6779;
  --line: #E3E8EF;
  --line-2: #EFF2F7;
  --paper: #FFFFFF;
  --paper-2: #F4F6FB;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16,35,59,.06), 0 1px 3px rgba(16,35,59,.05);
  --shadow: 0 10px 30px rgba(16,35,59,.12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--paper-2); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 22px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.topbar-in { display: flex; align-items: center; gap: 14px; min-height: 74px; padding-block: 10px; }
.tb-badge { height: 50px; width: auto; flex: none; }
.tb-titles { display: flex; flex-direction: column; line-height: 1.15; }
.tb-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.tb-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.62); margin-top: 2px;
}
.tb-back {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: .9rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16);
  padding: 9px 15px; border-radius: 999px; transition: background .15s, border-color .15s;
}
.tb-back:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28); }
.tb-back svg { width: 16px; height: 16px; }

/* accent underline strip beneath the bar */
.topstripe { height: 4px; background: linear-gradient(90deg, var(--red) 0 55%, var(--navy-2) 55% 100%); }

/* ---------- Page intro ---------- */
.intro { padding: 34px 0 6px; }
.intro .eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.intro h1 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); margin-bottom: 10px; }
.intro p { color: var(--ink-soft); max-width: 64ch; }

main { display: block; padding-bottom: 64px; }

/* ---------- Sections ---------- */
.section { margin-top: 30px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sec-bar {
  background: var(--red); color: #fff; font-weight: 800;
  font-size: clamp(1.02rem, 2.4vw, 1.22rem); letter-spacing: -.01em;
  padding: 11px 18px; border-radius: 10px; display: inline-block;
}
.sec-note { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* ---------- Region cards (homepage) ---------- */
.region-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 18px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.region-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }

/* overlapping badge montage — the visual */
.region-badges { display: flex; align-items: center; margin-bottom: 16px; }
.region-badges img {
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  border: 2px solid #fff; box-shadow: var(--shadow-sm); object-fit: contain;
  margin-left: -12px;
}
.region-badges img:first-child { margin-left: 0; }
.region-badges .more {
  width: 46px; height: 46px; border-radius: 50%; margin-left: -12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 800; font-size: .82rem;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.region-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.region-card .blurb { color: var(--ink-soft); font-size: .9rem; flex: 1; margin-bottom: 16px; }
.region-foot { display: flex; align-items: center; justify-content: space-between; }
.region-count { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.region-go {
  font-weight: 700; font-size: .9rem; color: var(--red);
  display: inline-flex; align-items: center; gap: 6px;
}
.region-go svg { width: 16px; height: 16px; transition: transform .18s; }
.region-card:hover .region-go svg { transform: translateX(3px); }

/* ---------- Quick links (general, e.g. Book a Sales Call) ---------- */
.quicklinks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ql-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 600; color: var(--navy);
  background: #fff; border: 1.5px solid var(--line); padding: 9px 15px; border-radius: 999px;
  transition: border-color .15s, color .15s, transform .12s, box-shadow .15s;
}
.ql-btn:hover { border-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.ql-btn svg { width: 16px; height: 16px; }

/* ---------- Event resource cards (region subpage) ---------- */
.event-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.event-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.event-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-2);
}
.event-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; flex: none; }
.event-title { font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }

.res-list { display: flex; flex-direction: column; padding: 7px 8px 9px; }
.res-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px; transition: background .13s;
}
.res-row:hover { background: var(--paper-2); }
.res-ico {
  width: 31px; height: 31px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27,42,99,.08); color: var(--navy);
}
.res-ico svg { width: 16px; height: 16px; }
.res-label { flex: 1; min-width: 0; font-size: .9rem; font-weight: 600; color: var(--ink); }
.res-ext { color: var(--ink-soft); opacity: .5; display: flex; flex: none; }
.res-ext svg { width: 15px; height: 15px; }
.res-row:hover .res-ext { opacity: 1; color: var(--red); }

/* icon tints by resource type */
.res-brochure     { background: rgba(192,32,47,.10);  color: var(--red); }
.res-calculator   { background: rgba(27,42,99,.10);   color: var(--navy); }
.res-hotel        { background: rgba(16,145,106,.12); color: #0C7A4B; }
.res-course       { background: rgba(26,122,60,.12);  color: #1A7A3C; }
.res-info         { background: rgba(176,120,16,.14); color: #9A6B00; }
.res-registration { background: rgba(122,60,160,.12); color: #7A3CA0; }
.res-highlights   { background: rgba(192,32,47,.12);  color: var(--red); }
.res-replay       { background: rgba(27,42,99,.10);   color: var(--navy); }
.res-users        { background: rgba(20,120,120,.12); color: #0E7C86; }
.res-participants { background: rgba(46,125,107,.14); color: #2E7D6B; }
.res-liveblog     { background: rgba(192,32,47,.12);  color: var(--red); }
.res-parentpackage{ background: rgba(160,60,120,.12); color: #A03C78; }
.res-landing      { background: rgba(176,120,16,.14); color: #9A6B00; }

/* ---------- Feature card (Testimonials entry) ---------- */
.feature-card {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature-ico {
  width: 54px; height: 54px; flex: none; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(192,32,47,.10); color: var(--red);
}
.feature-ico svg { width: 28px; height: 28px; }
.feature-body { flex: 1; min-width: 0; }
.feature-body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.feature-body p { color: var(--ink-soft); font-size: .92rem; }
.feature-go {
  flex: none; font-weight: 700; font-size: .92rem; color: var(--red);
  display: inline-flex; align-items: center; gap: 6px;
}
.feature-go svg { width: 16px; height: 16px; transition: transform .18s; }
.feature-card:hover .feature-go svg { transform: translateX(3px); }

/* ---------- Filters (testimonials) ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 20px 0 22px; }
.filter {
  display: inline-flex; flex-direction: column; gap: 5px;
  font-size: .72rem; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .05em;
}
.filter select {
  font: inherit; font-size: .92rem; font-weight: 500; text-transform: none; letter-spacing: 0;
  color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 9px;
  padding: 9px 12px; min-width: 180px; cursor: pointer;
}
.filter select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,99,.12); }
.filter-count { margin-left: auto; color: var(--ink-soft); font-size: .85rem; font-weight: 600; padding-bottom: 10px; }
@media (max-width: 560px) { .filter-count { margin-left: 0; padding-bottom: 0; } .filter select { min-width: 140px; } }

/* ---------- Testimonial cards ---------- */
.tc-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.tc-card {
  position: relative; margin: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.tc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.tc-mark { color: var(--red); opacity: .9; }
.tc-mark svg { width: 26px; height: 26px; }
.tc-quote { margin: 0; font-size: .96rem; line-height: 1.55; color: var(--ink); flex: 1; }
.tc-foot { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.tc-flag { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: var(--shadow-sm); background: #fff; }
.tc-flag-none { width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--paper-2); border: 1px solid var(--line); }
.tc-who { display: flex; flex-direction: column; min-width: 0; }
.tc-name { font-weight: 800; font-size: .95rem; }
.tc-school { color: var(--ink-soft); font-size: .82rem; }
.tc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tc-event {
  font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--navy); background: rgba(27,42,99,.08); padding: 5px 10px; border-radius: 999px;
}
.tc-video {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  font-size: .84rem; font-weight: 700; color: var(--red);
}
.tc-video svg { width: 16px; height: 16px; }
.tc-video:hover { text-decoration: underline; }

/* ---------- Sales Workshop (private sub-page) ---------- */
.ws-badge {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  margin-left: 10px; font-size: .62rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy);
  background: rgba(27,42,99,.09); border: 1px solid rgba(27,42,99,.16);
  padding: 4px 9px; border-radius: 999px;
}
.ws-badge svg { width: 12px; height: 12px; }

/* jump-to contents */
.ws-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.ws-toc a {
  font-size: .82rem; font-weight: 600; color: var(--navy);
  background: #fff; border: 1.5px solid var(--line); padding: 7px 13px; border-radius: 999px;
  transition: border-color .15s, color .15s, transform .12s, box-shadow .15s;
}
.ws-toc a:hover { border-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* outline */
.ws-outline { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.ws-sec {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; scroll-margin-top: 20px;
}
.ws-sec-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.ws-sec.has-body .ws-sec-head { border-bottom: 1px solid var(--line-2); }
.ws-num {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 800; font-size: .95rem;
}
.ws-sec-head h2 { font-size: clamp(1.1rem, 2.6vw, 1.32rem); letter-spacing: -.01em; }

.ws-body { padding: 8px 20px 16px; }
.ws-l2 { display: flex; flex-direction: column; }
.ws-l2 > li { padding: 11px 4px; border-top: 1px solid var(--line-2); }
.ws-l2 > li:first-child { border-top: none; }
.ws-l2-label {
  display: flex; align-items: center; gap: 11px;
  font-size: 1rem; font-weight: 700; color: var(--ink);
}
.ws-l2-label::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
}
.ws-l3 { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; padding-left: 19px; }
.ws-l3 li {
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 8px;
}

/* ---------- Empty / fallback ---------- */
.empty { color: var(--ink-soft); padding: 20px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .topbar-in { min-height: 64px; }
  .tb-badge { height: 42px; }
  .tb-name { font-size: 1.05rem; }
  .event-grid { grid-template-columns: 1fr; }
}
