/* =========================================================
   Cybersafe Community — consolidated stylesheet
   Purpose: one lean CSS file for the multi-page static site.
   Keeps the dark cyber / blue-green glow aesthetic while removing
   repeated patches from the old long stylesheet.
   ========================================================= */

:root {
  --bg: #050b14;
  --bg-soft: #07111f;
  --bg-panel: #0a192f;
  --bg-panel-2: #0b1d31;
  --card: rgba(12, 27, 47, 0.78);
  --card-strong: rgba(10, 25, 47, 0.92);
  --text: #eaf6ff;
  --text-strong: #f8fbff;
  --muted: #99adc8;
  --muted-2: #6f86a6;
  --cyan: #38bdf8;
  --cyan-2: #0ea5e9;
  --green: #00e676;
  --green-2: #00c978;
  --amber: #f59e0b;
  --danger: #ef4444;
  --line: rgba(56, 189, 248, 0.18);
  --line-strong: rgba(56, 189, 248, 0.32);
  --line-green: rgba(0, 230, 118, 0.20);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 16px 48px rgba(0, 0, 0, 0.28);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --nav-h: 78px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 2%, rgba(14, 165, 233, .12), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(0, 230, 118, .07), transparent 28%),
    linear-gradient(135deg, #050b14 0%, #071426 42%, #081a2d 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, .05));
}

body::after {
  content: "";
  position: fixed;
  inset: auto -10% -35% -10%;
  height: 70vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, .12), transparent 64%);
  filter: blur(12px);
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--green);
}

img {
  max-width: 100%;
  display: block;
}

button,
a,
input,
select,
textarea {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}

button {
  font: inherit;
}

svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.16em;
}

.container {
  max-width: var(--container);
}

main,
#main {
  min-height: 70vh;
  position: relative;
  z-index: 1;
}

.has-top-nav main {
  padding-top: var(--nav-h);
}

.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 99999;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  top: 14px;
}

/* =========================================================
   Fixed top navigation
   ========================================================= */
.site-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(56, 189, 248, .16);
  background:
    linear-gradient(180deg, rgba(5, 11, 20, .92), rgba(5, 11, 20, .78)),
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, .18), transparent 36%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 50px rgba(0, 0, 0, .28);
}

.topbar-shell {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-menu-button {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  gap: 5px;
  border: 1px solid rgba(56, 189, 248, .26);
  border-radius: 15px;
  background: rgba(12, 27, 47, .72);
  color: var(--text-strong);
  box-shadow: inset 0 0 18px rgba(56, 189, 248, .04);
}

.topbar-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.topbar-menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar-menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(.2);
}

.topbar-menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.topbar-brand,
.route-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text-strong);
}

.topbar-brand:hover,
.route-home:hover {
  color: var(--text-strong);
  transform: translateY(-1px);
}

.topbar-brand strong,
.route-home strong {
  display: block;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.topbar-brand small,
.route-home small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: 2px;
}

.brand-mark,
.icon-pill,
.mission-panel-icon,
.mini-package-icon,
.credential-panel-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--green);
  background: rgba(0, 230, 118, .10);
  border: 1px solid var(--line-green);
  box-shadow: 0 0 28px rgba(0, 230, 118, .10), inset 0 0 18px rgba(0, 230, 118, .04);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 1.2rem;
}

.icon-pill {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 1.15rem;
}

.topbar-links,
.route-links,
.footer-lite-shell div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-links a,
.route-links a,
.footer-lite-shell a {
  color: var(--muted);
  font-weight: 800;
  font-size: .92rem;
  padding: 10px 12px;
  border-radius: 999px;
}

.topbar-links a:hover,
.route-links a:hover,
.footer-lite-shell a:hover {
  color: var(--text-strong);
  background: rgba(56, 189, 248, .10);
}

.topbar-links .topbar-cta,
.route-links .route-cta {
  color: #02130b;
  background: linear-gradient(135deg, var(--green), #83ffc0);
  box-shadow: 0 10px 30px rgba(0, 230, 118, .18);
}

.topbar-links .topbar-cta:hover,
.route-links .route-cta:hover {
  color: #02130b;
  transform: translateY(-1px);
}

/* Legacy navigation from earlier versions stays hidden if accidentally present. */
.app-nav,
.side-timeline-nav,
.sidebar-menu-toggle,
.theme-icon-toggle,
.timeline-dot {
  display: none !important;
}

/* =========================================================
   Sections, headings, buttons
   ========================================================= */
.section-pad {
  padding: 88px 0;
  position: relative;
}

.section-pad.compact {
  padding: 68px 0;
}

.soft-section,
#credentials {
  background:
    radial-gradient(circle at 16% 12%, rgba(14, 165, 233, .12), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(0, 230, 118, .05), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #0a192f 55%, #061426 100%);
}

.accent-feature-section,
.tools-section,
#experience {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, .16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0, 230, 118, .08), transparent 32%),
    linear-gradient(135deg, #07111f 0%, #0a192f 52%, #050b14 100%);
}

.impact-section,
#impact {
  background:
    radial-gradient(circle at 20% 8%, rgba(14, 165, 233, .14), transparent 32%),
    radial-gradient(circle at 78% 78%, rgba(0, 230, 118, .05), transparent 30%),
    linear-gradient(180deg, #050b14 0%, #081827 48%, #061426 100%);
}

.request-section,
#builder,
#contact {
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 230, 118, .07), transparent 30%),
    radial-gradient(circle at 88% 25%, rgba(14, 165, 233, .15), transparent 34%),
    linear-gradient(135deg, #061426 0%, #0b1628 52%, #050b14 100%);
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 42px;
}

.section-heading h2,
.hero-title,
.profile-card h2,
.impact-summary h3,
.request-form-shell h3,
.card-lite h3,
.topic-card h3,
.resource-card h3,
.stat-card h3,
.motivation-card h3 {
  color: var(--text-strong);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.06;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading p {
  color: var(--muted);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.justify-content-center {
  justify-content: center;
}

.muted {
  color: var(--muted) !important;
}

.small {
  font-size: .88rem;
}

.leadish {
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-width: 1px;
}

.btn-lg {
  padding: .88rem 1.25rem;
  font-size: 1rem;
}

.btn-primary {
  color: #03150c !important;
  border-color: rgba(0, 230, 118, .35) !important;
  background: linear-gradient(135deg, var(--green), #9effca) !important;
  box-shadow: 0 16px 42px rgba(0, 230, 118, .20), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(0, 230, 118, .26);
}

.btn-outline-custom {
  color: var(--text-strong) !important;
  border-color: var(--line-strong) !important;
  background: rgba(10, 25, 47, .58) !important;
}

.btn-outline-custom:hover {
  border-color: var(--green) !important;
  background: rgba(0, 230, 118, .09) !important;
  transform: translateY(-2px);
}

/* =========================================================
   Hero and home page
   ========================================================= */
.hero-section {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 11, 20, .78) 0%, rgba(5, 11, 20, .52) 46%, rgba(5, 11, 20, .22) 100%),
    radial-gradient(circle at 18% 10%, rgba(14, 165, 233, .30), transparent 34%),
    url("data/images/site/night-city-moon.webp") center 18% / cover no-repeat;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 11, 20, .02) 0%, rgba(5, 11, 20, .14) 58%, rgba(5, 11, 20, .68) 100%),
    radial-gradient(circle at 72% 22%, rgba(0, 230, 118, .13), transparent 28%);
}

.special-cover-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr);
  gap: 34px;
  align-items: center;
}

.special-cover-copy {
  max-width: 760px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6.4rem);
  margin: 0 0 22px;
}

.hero-title span {
  color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 720px;
  color: #c8d8ed;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 0;
}

.hero-actions {
  align-items: center;
}

.mission-tabs-card,
.credentials-tabs-card,
.request-form-shell,
.impact-card,
.phish-game,
.profile-card,
.training-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(12, 27, 47, .88), rgba(5, 11, 20, .72)),
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, .12), transparent 35%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mission-tabs-card {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 18px;
}

.mission-tabs,
.credentials-tabs,
.session-tabs {
  display: grid;
  gap: 10px;
}

.mission-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mission-tab,
.credential-tab,
.session-tab,
.path-tab,
.option-button,
.domain-card {
  border: 1px solid rgba(56, 189, 248, .16);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 13px;
  text-align: left;
  font-weight: 850;
}

.mission-tab,
.credential-tab,
.path-tab,
.option-button {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mission-tab {
  min-height: 70px;
}

.mission-tab:hover,
.credential-tab:hover,
.session-tab:hover,
.path-tab:hover,
.option-button:hover,
.domain-card:hover {
  border-color: var(--line-strong);
  background: rgba(56, 189, 248, .08);
  transform: translateY(-1px);
}

.mission-tab.active,
.credential-tab.active,
.session-tab.active,
.path-tab.active,
.option-button.active,
.domain-card.active {
  color: var(--text-strong);
  border-color: rgba(0, 230, 118, .42);
  background: linear-gradient(135deg, rgba(0, 230, 118, .14), rgba(56, 189, 248, .09));
  box-shadow: 0 0 28px rgba(0, 230, 118, .08);
}

.mission-tab-panel,
.credential-tab-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(0, 230, 118, .16);
  border-radius: 22px;
  background: rgba(0, 230, 118, .045);
}

.mission-panel-icon,
.credential-panel-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 1.2rem;
}

.mission-panel-kicker,
.credential-panel-kicker {
  margin: 0 0 4px;
  color: var(--green);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.mission-tab-panel h3,
.credential-tab-panel h3 {
  margin: 0 0 5px;
  font-size: 1.25rem;
  font-weight: 900;
}

.mission-tab-panel p,
.credential-tab-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

/* =========================================================
   Cards, news/motivation, stats, directory
   ========================================================= */
.card-lite,
.topic-card,
.resource-card,
.stat-card,
.page-link-card,
.motivation-card,
.quote-card,
.media-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(12, 27, 47, .78), rgba(8, 20, 36, .66)),
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, .10), transparent 38%);
  box-shadow: var(--shadow-soft);
}

.card-lite,
.topic-card,
.resource-card,
.stat-card,
.page-link-card,
.quote-card {
  padding: 24px;
}

.card-lite:hover,
.topic-card:hover,
.resource-card:hover,
.stat-card:hover,
.page-link-card:hover,
.motivation-card:hover,
.media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 230, 118, .30);
  box-shadow: 0 24px 68px rgba(0, 0, 0, .36), 0 0 36px rgba(0, 230, 118, .07);
}

.card-lite h3,
.topic-card h3,
.resource-card h3,
.stat-card h3 {
  margin: 16px 0 10px;
}

.tag,
.source-chip,
.field-tag,
.form-mini-pill,
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tag,
.source-chip {
  color: var(--green);
  background: rgba(0, 230, 118, .10);
  border: 1px solid var(--line-green);
  padding: 7px 9px;
}

.stat-number {
  margin-top: 18px;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: 1;
}

.source-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
  font-weight: 850;
  font-size: .9rem;
}

.page-link-card {
  display: grid;
  gap: 12px;
  color: var(--text);
}

.page-link-card strong {
  color: var(--text-strong);
  font-size: 1.1rem;
}

.page-link-card small {
  color: var(--muted);
}

.motivation-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.motivation-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: rgba(255, 255, 255, .06);
}

.motivation-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.motivation-card-body h3 {
  font-size: 1.15rem;
  margin: 0;
}

.motivation-card-body p {
  color: var(--muted);
  margin: 0;
}

.motivation-card-body a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   About and credentials
   ========================================================= */
.about-credentials-layout {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.profile-card {
  padding: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  overflow: hidden;
}

.profile-pic {
  width: min(100%, 310px);
  height: auto;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  object-position: center 28%;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.sidebar-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.sidebar-socials a {
  --social-accent: var(--blue);
  --social-hover-bg: var(--blue);
  --social-hover-color: #fff;
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  color: var(--social-accent);
  border: 1px solid rgba(56, 189, 248, .26);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--social-accent) 18%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  box-shadow: 0 14px 30px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}

.sidebar-socials svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: .2px;
}

.sidebar-socials a[aria-label*="LinkedIn"] {
  --social-accent: #0a66c2;
  --social-hover-bg: #0a66c2;
}

.sidebar-socials a[aria-label*="GitHub"] {
  --social-accent: #f8fafc;
  --social-hover-bg: #050505;
}

.sidebar-socials a[aria-label*="Email"] {
  --social-accent: #e2e8f0;
  --social-hover-bg: #ef4444;
}

.sidebar-socials a:hover,
.sidebar-socials a:focus-visible {
  color: var(--social-hover-color);
  border-color: color-mix(in srgb, var(--social-hover-bg) 72%, white 28%);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .28), transparent 42%),
    var(--social-hover-bg);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--social-hover-bg) 34%, transparent), inset 0 1px 0 rgba(255, 255, 255, .24);
  transform: translateY(-3px);
}

.sidebar-socials a[aria-label*="Email"]:hover,
.sidebar-socials a[aria-label*="Email"]:focus-visible {
  color: #ef4444;
  border-color: rgba(239, 68, 68, .72);
  background:
    radial-gradient(circle at 34% 24%, rgba(239, 68, 68, .22), transparent 44%),
    linear-gradient(145deg, rgba(239, 68, 68, .12), rgba(15, 23, 42, .88));
  box-shadow: 0 18px 38px rgba(239, 68, 68, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.about-copy h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.about-copy p {
  color: var(--muted);
}

.about-training-stack {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.training-card {
  padding: 26px;
}

.credentials-tabs-card {
  padding: 18px;
}

.credentials-tabs {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.brand-provider-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  color: var(--green);
  background: linear-gradient(145deg, rgba(5, 16, 30, .95), rgba(15, 34, 58, .86));
  border: 1px solid rgba(56, 189, 248, .30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 24px rgba(0, 0, 0, .16);
}

.brand-provider-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .13), transparent 48%);
  pointer-events: none;
}

.brand-provider-icon .brand-number {
  position: absolute;
  right: 6px;
  top: 5px;
  color: rgba(226, 232, 240, .50);
  font-size: .52rem;
  font-weight: 950;
  letter-spacing: .04em;
  line-height: 1;
}

.brand-provider-icon i,
.brand-provider-icon svg {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  display: block;
}

.training-symbol-green {
  color: #00e676;
  border-color: rgba(0, 230, 118, .42);
}

.training-symbol-blue {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, .44);
}

.training-symbol-cyan {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, .42);
}

.training-symbol-teal {
  color: #2dd4bf;
  border-color: rgba(45, 212, 191, .42);
}

.training-symbol-rose {
  color: #fb7185;
  border-color: rgba(251, 113, 133, .42);
}

.credential-tab-label {
  display: block;
  color: var(--text-strong);
}

/* =========================================================
   Workshops page and interactive mini game
   ========================================================= */
.domain-options,
.option-grid,
.path-meta,
.session-meta-line {
  display: grid;
  gap: 12px;
}

.domain-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.domain-card {
  text-align: center;
  padding: 16px;
  font-size: 1.05rem;
}

.result-box {
  min-height: 48px;
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed rgba(56, 189, 248, .24);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
}

.control-group,
.path-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, .035);
}

.option-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.path-meta {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 18px;
}

.path-meta>div {
  border: 1px solid rgba(56, 189, 248, .14);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
}

.path-meta strong {
  color: var(--text-strong);
}

/* =========================================================
   Impact page: sessions, gallery, testimonials, modal
   ========================================================= */
.impact-dashboard {
  padding: 18px;
}

.impact-main-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.session-tabs-card,
.impact-session-sidebar,
.impact-gallery-panel,
.impact-testimonials-section {
  border: 1px solid rgba(56, 189, 248, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
}

.session-tabs-card {
  padding: 14px;
}

.session-tabs {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.session-tab-copy {
  display: grid;
  gap: 2px;
}

.session-title {
  color: var(--text-strong);
  font-weight: 900;
}

.session-date {
  color: var(--muted);
  font-size: .86rem;
}

.impact-session-sidebar {
  padding: 20px;
}

.impact-summary-header {
  margin-bottom: 16px;
}

.session-meta-line {
  grid-template-columns: 1fr;
  color: var(--muted);
}

.impact-gallery-panel,
.impact-testimonials-section {
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading h3 {
  margin: 0;
  font-weight: 900;
  color: var(--text-strong);
}

.media-scroll,
.testimonial-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery-grid-scroll {
  grid-auto-columns: minmax(250px, 310px);
}

.media-card,
.quote-card {
  scroll-snap-align: start;
  overflow: hidden;
}

.media-thumb-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.media-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #07111f;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-body {
  padding: 14px;
}

.media-body h4 {
  color: var(--text-strong);
  font-weight: 900;
  font-size: 1rem;
  margin: 0 0 6px;
}

.media-body p {
  color: var(--muted);
  margin: 0;
}

.media-more {
  margin-top: 10px;
  color: var(--green);
  background: none;
  border: 0;
  padding: 0;
  font-weight: 900;
}

.play-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #03150c;
  background: linear-gradient(135deg, var(--green), #9effca);
  padding: 8px 10px;
}

.quote-card blockquote {
  color: var(--text);
  font-size: 1.02rem;
  margin: 0 0 12px;
}

.quote-card figcaption,
.quote-card p {
  color: var(--muted);
  margin: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .22);
}

.carousel-dot.active {
  width: 26px;
  background: var(--green);
}

.empty-gallery-note {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 20px;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.media-modal[aria-hidden="false"] {
  display: flex;
}

.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, .82);
  border: 0;
}

.media-modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, 96vw);
  max-height: 88vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.media-modal-image {
  min-height: 420px;
  background: #02060c center / cover no-repeat;
}

.media-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-modal-content {
  padding: 28px;
  position: relative;
  overflow-y: auto;
}

.media-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 1.4rem;
}

.media-modal-close:hover {
  color: #03150c;
  background: var(--green);
}

.media-modal-caption {
  color: var(--text);
  font-weight: 800;
}

.media-modal-description {
  color: var(--muted);
}

/* =========================================================
   Request form
   ========================================================= */
.request-form-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px;
}

.compact-request-form {
  max-width: 860px;
}

.form-mini-header,
.mini-package-preview,
.compact-form-actions,
.footer-lite-shell,
.route-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-mini-header {
  margin-bottom: 22px;
}

.form-mini-header h3 {
  margin: 0;
}

.form-mini-pill {
  color: var(--green);
  border: 1px solid var(--line-green);
  background: rgba(0, 230, 118, .10);
  padding: 9px 11px;
  white-space: nowrap;
}

.standard-form-grid,
.compact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  min-width: 0;
}

.form-label {
  color: var(--text-strong);
  font-weight: 850;
  margin-bottom: 7px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-tag {
  padding: 6px 8px;
  border: 1px solid rgba(56, 189, 248, .18);
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
}

.field-tag.required {
  color: #ffd2d2;
  border-color: rgba(239, 68, 68, .28);
  background: rgba(239, 68, 68, .08);
}

.field-tag.optional {
  color: var(--muted);
}

.form-control,
.form-select {
  color: var(--text) !important;
  border: 1px solid rgba(56, 189, 248, .20) !important;
  border-radius: 15px !important;
  background-color: rgba(3, 13, 25, .76) !important;
  min-height: 48px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.form-control::placeholder {
  color: rgba(153, 173, 200, .62);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(0, 230, 118, .55) !important;
  box-shadow: 0 0 0 .22rem rgba(0, 230, 118, .12) !important;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.compact-textarea {
  min-height: 94px !important;
}

.optional-form-details,
.email-template-wrapper {
  margin-top: 16px;
  border: 1px solid rgba(56, 189, 248, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}

.optional-form-details summary,
.email-template-wrapper summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--text-strong);
  font-weight: 900;
}

.optional-form-details>.standard-form-grid {
  padding: 0 16px 16px;
}

.mini-package-preview {
  justify-content: flex-start;
  border: 1px solid var(--line-green);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(0, 230, 118, .07);
}

.mini-package-preview strong {
  display: block;
  color: var(--text-strong);
}

.mini-package-preview small {
  color: var(--muted);
}

.compact-form-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 18px;
}

.alert {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}

.email-template-box {
  min-height: 170px;
  margin: 0 16px 16px;
  width: calc(100% - 32px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .9rem;
}

.copy-template-status {
  color: var(--green);
  margin: 0 16px 16px;
}

.direct-email-line {
  color: var(--muted);
}

/* =========================================================
   Page route shortcuts and footer
   ========================================================= */
.page-route-section {
  padding-top: calc(var(--nav-h) + 28px);
}

.route-shell,
.footer-lite-shell {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(5, 11, 20, .54);
  box-shadow: var(--shadow-soft);
}

.site-footer-lite {
  padding: 26px 0;
  border-top: 1px solid rgba(56, 189, 248, .14);
  background: rgba(5, 11, 20, .72);
}

.footer-lite-shell {
  box-shadow: none;
}

.footer-lite-shell span {
  color: var(--text-strong);
  font-weight: 900;
}

.anchor-offset {
  position: relative;
  top: calc(-1 * var(--nav-h));
}

.d-none {
  display: none !important;
}

/* =========================================================
   Responsive behaviour
   ========================================================= */
@media (max-width: 1100px) {

  .special-cover-shell,
  .about-credentials-layout,
  .impact-main-layout,
  .media-modal-card {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: relative;
    top: auto;
  }

  .media-modal-image {
    min-height: 300px;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 74px;
  }

  html {
    scroll-padding-top: 96px;
  }

  .has-top-nav main {
    padding-top: var(--nav-h);
  }

  /* Mobile nav: horizontal pill bar instead of hamburger dropdown */
  .site-topbar {
    min-height: var(--nav-h);
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(56, 189, 248, .18);
    background:
      linear-gradient(180deg, rgba(5, 14, 27, .94), rgba(5, 14, 27, .84)),
      radial-gradient(circle at 12% 0%, rgba(14, 165, 233, .18), transparent 42%);
  }

  .topbar-shell {
    min-height: var(--nav-h);
    display: block;
    padding: 8px 10px;
    max-width: 100%;
  }

  .topbar-brand {
    display: none;
  }

  .topbar-menu-button {
    display: none;
  }

  .topbar-links {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 2px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .topbar-links::-webkit-scrollbar {
    display: none;
  }

  .topbar-links a {
    flex: 0 0 auto;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 12px 18px;
    color: var(--text-strong);
    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 999px;
    background:
      radial-gradient(circle at 35% 20%, rgba(56, 189, 248, .10), transparent 38%),
      rgba(12, 27, 47, .84);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    font-size: .96rem;
  }

  .topbar-links a:hover,
  .topbar-links a:focus-visible {
    color: var(--text-strong);
    border-color: rgba(0, 230, 118, .38);
    background:
      radial-gradient(circle at 35% 20%, rgba(0, 230, 118, .16), transparent 40%),
      rgba(12, 35, 55, .94);
    transform: translateY(-1px);
  }

  .topbar-links .topbar-cta {
    color: #02130b;
    border-color: rgba(0, 230, 118, .42);
    background: linear-gradient(135deg, var(--green), #8dfcc4);
  }

  .section-pad {
    padding: 64px 0;
  }

  /* Mobile hero: centered text, brighter skyline, compact spacing */
  .hero-section {
    min-height: auto;
    align-items: flex-start;
    padding: 78px 0 52px;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(5, 11, 20, .32) 0%, rgba(5, 11, 20, .46) 48%, rgba(5, 11, 20, .70) 100%),
      radial-gradient(circle at 50% 10%, rgba(14, 165, 233, .25), transparent 44%),
      url("data/images/site/night-city-moon.webp") center top / cover no-repeat;
  }

  .hero-section::after {
    background:
      linear-gradient(180deg, rgba(5, 11, 20, 0) 0%, rgba(5, 11, 20, .10) 56%, rgba(5, 11, 20, .58) 100%),
      radial-gradient(circle at 50% 28%, rgba(0, 230, 118, .10), transparent 34%);
  }

  .special-cover-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    justify-items: center;
  }

  .special-cover-copy {
    max-width: 760px;
    margin-inline: auto;
  }

  .hero-eyebrow,
  .special-cover-copy .eyebrow {
    justify-content: center;
    text-align: center;
  }

  .hero-title {
    max-width: 16ch;
    margin-inline: auto;
    font-size: clamp(3rem, 9.8vw, 4.9rem);
    line-height: .98;
    letter-spacing: -.055em;
    text-align: center;
    text-wrap: balance;
  }

  .hero-copy {
    max-width: 36rem;
    margin-inline: auto;
    font-size: 1.08rem;
    line-height: 1.58;
    text-align: center;
    color: rgba(232, 242, 255, .84);
  }

  .hero-actions {
    justify-content: center;
    gap: 12px;
  }

  .hero-actions .btn {
    min-width: 210px;
  }

  .standard-form-grid,
  .compact-form-grid,
  .domain-options {
    grid-template-columns: 1fr;
  }

  /* Mobile/tablet home principle grid: centered compact module */
  .mission-tabs-card {
    width: min(100%, 680px);
    margin: 1.75rem auto 0;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
  }

  .mission-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .mission-tab {
    min-height: 58px;
    padding: 11px 13px;
    border-width: 0 1px 1px 0;
    border-radius: 0;
    background: rgba(10, 25, 47, .62);
    gap: 9px;
  }

  .mission-tab:nth-child(2n) {
    border-right: 0;
  }

  .mission-tab span {
    font-size: .9rem;
    line-height: 1.12;
  }

  .mission-tab svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    color: var(--green);
  }

  .mission-tab-panel {
    margin-top: 0;
    padding: 18px 18px;
    border-width: 1px 0 0;
    border-radius: 0 0 24px 24px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    text-align: left;
  }

  .mission-panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .mission-tab-panel h3 {
    font-size: clamp(1.35rem, 4.8vw, 1.75rem);
    line-height: 1.05;
  }

  .mission-tab-panel p {
    font-size: .98rem;
    line-height: 1.5;
  }

  .form-mini-header,
  .mini-package-preview,
  .route-shell,
  .footer-lite-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-links {
    width: 100%;
  }

  .compact-form-actions .btn {
    width: 100%;
  }

  .about-credentials-layout {
    gap: 22px;
  }

  .profile-card {
    max-width: 560px;
    margin: 0 auto;
  }

  .profile-pic {
    width: min(100%, 280px);
    aspect-ratio: 1 / 1.12;
    object-position: center 24%;
  }
}

@media (max-width: 560px) {
  .topbar-shell {
    padding-inline: 6px;
  }

  .topbar-links {
    gap: 8px;
  }

  .topbar-links a {
    min-height: 50px;
    padding: 11px 14px;
    font-size: .92rem;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .hero-section {
    padding: 68px 0 44px;
    background:
      linear-gradient(180deg, rgba(5, 11, 20, .28) 0%, rgba(5, 11, 20, .42) 48%, rgba(5, 11, 20, .66) 100%),
      radial-gradient(circle at 50% 10%, rgba(14, 165, 233, .24), transparent 44%),
      url("data/images/site/night-city-moon.webp") center top / cover no-repeat;
  }

  .hero-title {
    max-width: 15.5ch;
    font-size: clamp(2.65rem, 11vw, 3.9rem);
    line-height: 1;
    text-wrap: balance;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions .btn {
    width: min(100%, 310px);
  }

  .profile-card {
    padding: 16px;
  }

  .profile-pic {
    width: min(100%, 235px);
    border-radius: 20px;
  }

  .sidebar-socials {
    justify-content: center;
    gap: 9px;
  }

  .sidebar-socials a {
    width: 44px;
    height: 44px;
  }

  .card-lite,
  .topic-card,
  .resource-card,
  .stat-card,
  .page-link-card,
  .quote-card,
  .request-form-shell,
  .training-card {
    padding: 18px;
    border-radius: 20px;
  }

  .mission-tabs-card,
  .impact-dashboard {
    border-radius: 22px;
  }

  .mission-tabs-card {
    width: min(100%, 390px);
    margin: 1.5rem auto 0;
  }

  .mission-tab {
    min-height: 50px;
    padding: 9px 10px;
  }

  .mission-tab span {
    font-size: .8rem;
  }

  .mission-tab svg {
    width: 1rem;
    height: 1rem;
  }

  .mission-tab-panel {
    padding: 15px 14px;
    gap: 11px;
  }

  .mission-panel-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .mission-tab-panel h3 {
    font-size: 1.25rem;
  }

  .mission-tab-panel p {
    grid-column: 1 / -1;
    font-size: .92rem;
  }

  .media-scroll,
  .testimonial-scroll {
    grid-auto-columns: minmax(230px, 86vw);
  }

  .media-modal {
    padding: 12px;
  }

  .media-modal-card {
    border-radius: 20px;
  }

  .media-modal-content {
    padding: 22px;
  }
}


@media (max-width: 390px) {
  .hero-title {
    max-width: 15ch;
    font-size: clamp(2.45rem, 10.7vw, 3.45rem);
    line-height: 1.02;
  }

  .hero-copy {
    max-width: 30rem;
    font-size: .96rem;
  }
}


/* Scalable impact/workshop library refinements */
.impact-workshop-library {
  display: grid;
  gap: 22px;
}

.impact-library-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(14, 165, 233, .08), rgba(16, 185, 129, .06));
}

.impact-library-intro code,
.impact-summary code {
  color: var(--accent-2);
  background: rgba(0, 0, 0, .24);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  padding: 2px 6px;
}

.split-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.impact-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 7px 11px;
  border: 1px solid rgba(16, 185, 129, .35);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(16, 185, 129, .08);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.session-library-card {
  display: grid;
  gap: 10px;
}

.session-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.session-card {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15, 23, 42, .62);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.session-card:hover,
.session-card.active {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, .72);
  background: linear-gradient(135deg, rgba(16, 185, 129, .14), rgba(14, 165, 233, .08));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.session-card-button {
  width: 100%;
  min-height: 100%;
  display: grid;
  gap: 12px;
  padding: 18px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.session-card-topline,
.session-card-meta,
.session-view-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.session-card-topline {
  justify-content: space-between;
}

.session-kicker {
  color: var(--accent-2);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.session-card .session-title {
  color: var(--text-strong);
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 900;
}

.session-card-meta {
  color: var(--muted);
  font-size: .86rem;
}

.session-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.session-card-meta svg,
.session-view-label svg {
  width: 15px;
  height: 15px;
}

.session-mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
  gap: 8px;
}

.session-mini-stats span {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 14px;
  background: rgba(0, 0, 0, .16);
  color: var(--muted);
  font-size: .74rem;
}

.session-mini-stats strong {
  color: var(--text-strong);
  font-size: .86rem;
}

.session-view-label {
  color: var(--accent-2);
  font-size: .82rem;
  font-weight: 900;
}

.impact-outcome-box,
.impact-topic-list,
.impact-link-list {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(16, 185, 129, .26);
  border-radius: 18px;
  background: rgba(16, 185, 129, .06);
}

.impact-outcome-box strong,
.impact-topic-list strong,
.impact-link-list strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.impact-outcome-box p {
  color: var(--muted);
  margin: 0;
}

.impact-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.impact-stat-grid div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, .62);
}

.impact-stat-grid strong {
  color: var(--text-strong);
  font-size: 1rem;
}

.impact-stat-grid span {
  color: var(--muted);
  font-size: .78rem;
}

.impact-topic-list ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

.impact-link-list {
  display: grid;
  gap: 9px;
}

.impact-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--accent-1);
  font-weight: 800;
  text-decoration: none;
}

.impact-link-list a:hover {
  color: var(--accent-2);
}

.impact-link-list svg,
.impact-topic-list svg,
.impact-outcome-box svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 767px) {

  .impact-library-intro,
  .split-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .session-card-grid {
    grid-template-columns: 1fr;
  }

  .session-card-button {
    padding: 16px;
  }
}


/* Final safety + impact polish */
.public-cta-card {
  align-items: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, .10), rgba(0, 230, 118, .07));
}

.public-cta-card .btn {
  min-width: 150px;
  text-align: center;
  justify-content: center;
}

.session-org-title {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem) !important;
  letter-spacing: -.02em;
}

.impact-summary-header .eyebrow {
  color: var(--green);
}

/* =========================================================
   Impact gallery professional polish
   - Organization card = org name + date only.
   - Selected details stay left; 2x2 gallery stays right.
   - Gallery shows four slots at a time and advances by two images.
   - Testimonials show one at a time.
   ========================================================= */
.topbar-cta {
  white-space: nowrap;
}

.impact-page-heading {
  max-width: 980px;
  margin-inline: auto;
}

.impact-top-book-link {
  margin-top: 16px;
}

.impact-workshop-library .public-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.session-library-card .split-heading {
  align-items: center;
}

.session-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.session-card-button {
  min-height: 118px;
  align-content: center;
  justify-items: start;
}

.session-title-line {
  display: grid;
  gap: 7px;
  width: 100%;
}

.session-org-title {
  display: block;
  max-width: 100%;
  color: var(--text-strong);
  font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-date-subline {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: .02em;
  line-height: 1.2;
}

.impact-detail-gallery-layout {
  grid-template-columns: minmax(285px, 400px) minmax(0, 1fr);
  align-items: start;
}

.impact-session-sidebar,
.impact-gallery-panel,
.impact-testimonials-section,
.session-tabs-card {
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

.impact-session-sidebar {
  position: sticky;
  top: 104px;
}

.impact-summary-header h3 {
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.session-meta-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 18px;
}

.session-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.session-meta-line svg {
  width: 17px;
  height: 17px;
  color: var(--accent-1);
}

.impact-gallery-panel {
  min-width: 0;
}

.impact-gallery-panel .panel-heading,
.impact-testimonials-section .panel-heading {
  margin-bottom: 18px;
}

.gallery-grid-scroll {
  --gallery-gap: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(150px, 1fr));
  grid-auto-columns: calc((100% - var(--gallery-gap)) / 2);
  gap: var(--gallery-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.gallery-grid-scroll .media-card {
  min-width: 0;
  height: 100%;
  border-radius: 22px;
  scroll-snap-align: start;
}

.gallery-grid-scroll .media-thumb-button,
.gallery-grid-scroll .media-thumb {
  height: 100%;
}

.gallery-grid-scroll .media-thumb {
  aspect-ratio: auto;
  min-height: 150px;
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 230, 118, .12), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, .88), rgba(2, 6, 23, .96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.gallery-grid-scroll .media-thumb img {
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}

.gallery-grid-scroll .media-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.media-hover-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #02120b;
  background: linear-gradient(135deg, var(--green), #a7f3d0);
  font-size: .78rem;
  font-weight: 950;
  transition: opacity .2s ease, transform .2s ease;
}

.media-card:hover .media-hover-label,
.media-thumb-button:focus-visible .media-hover-label {
  opacity: 1;
  transform: translateY(0);
}

.media-card-placeholder .placeholder-thumb {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: rgba(148, 163, 184, .72);
  border-style: dashed;
}

.media-card-placeholder svg {
  width: 30px;
  height: 30px;
  color: rgba(34, 211, 238, .72);
}

.media-card-placeholder span {
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.testimonial-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.testimonial-slide {
  min-height: 190px;
  display: grid;
  align-content: center;
  border-radius: 22px;
}

.testimonial-slide blockquote {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.carousel-dots[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .impact-detail-gallery-layout {
    grid-template-columns: 1fr;
  }

  .impact-session-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .impact-workshop-library .public-cta-card {
    flex-direction: column;
    align-items: stretch;
  }

  .impact-workshop-library .public-cta-card .btn {
    width: 100%;
  }

  .session-card-button {
    min-height: 96px;
  }

  .session-org-title {
    white-space: normal;
  }

  .gallery-grid-scroll {
    grid-template-rows: repeat(2, minmax(120px, 1fr));
    grid-auto-columns: calc((100% - var(--gallery-gap)) / 2);
  }

  .gallery-grid-scroll .media-thumb {
    min-height: 120px;
  }
}

@media (max-width: 520px) {
  .topbar-cta {
    width: 100%;
    justify-content: center;
  }

  .gallery-grid-scroll {
    --gallery-gap: 10px;
    grid-template-rows: repeat(2, minmax(105px, 1fr));
  }

  .gallery-grid-scroll .media-thumb {
    min-height: 105px;
    border-radius: 18px;
  }

  .media-hover-label {
    display: none;
  }
}

/* =========================================================
   Impact page final navigation polish
   Stable 2×2 gallery frame, no native scrollbar, cleaner layout.
   ========================================================= */
.impact-workshop-library {
  display: grid;
  gap: 28px;
}

.impact-workshop-library .public-cta-card {
  align-items: center;
  border-color: rgba(34, 211, 238, .22);
}

.session-tabs-card .panel-heading h3,
.impact-gallery-panel .panel-heading h3,
.impact-testimonials-section .panel-heading h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.05;
}

.session-tabs-card .panel-heading h3 svg,
.impact-gallery-panel .panel-heading h3 svg,
.impact-testimonials-section .panel-heading h3 svg {
  flex: 0 0 auto;
}

.session-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.session-card-button {
  min-height: 104px;
  padding: 20px 22px;
}

.session-title-line {
  gap: 8px;
}

.session-org-title {
  line-height: 1.03;
}

.impact-detail-gallery-layout {
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 24px;
}

.impact-session-sidebar {
  max-height: calc(100vh - 124px);
  overflow: auto;
  scrollbar-width: thin;
}

.compact-impact-summary h3 {
  margin-bottom: 12px;
}

.compact-impact-summary p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.session-meta-line {
  gap: 10px;
  margin-top: 18px;
}

.impact-outcome-box.compact-outcome,
.impact-topic-list.compact-topic-list {
  margin-top: 18px;
}

.compact-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.impact-gallery-panel {
  min-width: 0;
  overflow: hidden;
}

.gallery-grid-scroll {
  --gallery-gap: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(180px, 1fr));
  gap: var(--gallery-gap);
  overflow: hidden;
  padding: 2px;
  scrollbar-width: none;
}

.gallery-grid-scroll::-webkit-scrollbar,
.testimonial-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-grid-scroll .media-card {
  min-width: 0;
  height: 100%;
  border-radius: 22px;
  animation: impactFadeIn .28s ease both;
}

.gallery-grid-scroll .media-thumb-button,
.gallery-grid-scroll .media-thumb {
  width: 100%;
  height: 100%;
}

.gallery-grid-scroll .media-thumb {
  aspect-ratio: auto;
  min-height: 180px;
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 16%, rgba(34, 211, 238, .14), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .028), 0 16px 36px rgba(0, 0, 0, .18);
}

.gallery-grid-scroll .media-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}

.gallery-grid-scroll .media-card:hover img,
.gallery-grid-scroll .media-thumb-button:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.media-hover-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #02120b;
  background: linear-gradient(135deg, var(--green), #a7f3d0);
  font-size: .78rem;
  font-weight: 950;
  transition: opacity .2s ease, transform .2s ease;
}

.media-card:hover .media-hover-label,
.media-thumb-button:focus-visible .media-hover-label {
  opacity: 1;
  transform: translateY(0);
}

.media-card-placeholder .placeholder-thumb {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: rgba(148, 163, 184, .72);
  border-style: dashed;
}

.media-card-placeholder svg {
  width: 30px;
  height: 30px;
  color: rgba(34, 211, 238, .72);
}

.media-card-placeholder span {
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.testimonial-scroll {
  display: block;
  overflow: hidden;
  padding: 2px;
}

.testimonial-slide,
.testimonial-empty {
  min-height: 160px;
  display: grid;
  align-content: center;
  border-radius: 22px;
  animation: impactFadeIn .28s ease both;
}

.testimonial-slide blockquote {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 15px;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, .36);
  cursor: pointer;
  transition: width .18s ease, background .18s ease, transform .18s ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  transform: translateY(-1px);
  background: rgba(34, 211, 238, .86);
  outline: none;
}

.carousel-dot.active {
  width: 34px;
  background: linear-gradient(135deg, var(--green), var(--accent-1));
}

.carousel-dots[hidden] {
  display: none !important;
}

@keyframes impactFadeIn {
  from {
    opacity: .65;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .impact-detail-gallery-layout {
    grid-template-columns: 1fr;
  }

  .impact-session-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .compact-impact-summary p {
    -webkit-line-clamp: unset;
  }
}

@media (max-width: 760px) {
  .session-card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid-scroll {
    --gallery-gap: 11px;
    grid-template-rows: repeat(2, minmax(118px, 1fr));
  }

  .gallery-grid-scroll .media-thumb {
    min-height: 118px;
    border-radius: 18px;
  }

  .media-hover-label {
    display: none;
  }

  .impact-testimonials-section,
  .impact-gallery-panel,
  .impact-session-sidebar {
    padding: 18px;
  }
}

/* =========================================================
   Impact gallery redesign: featured media + compact navigator
   ========================================================= */
.impact-gallery-panel {
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 6%, rgba(34, 211, 238, .13), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, .94), rgba(2, 6, 23, .97));
}

.impact-gallery-panel .panel-heading {
  margin-bottom: 18px;
}

.gallery-grid-scroll {
  display: block;
  overflow: visible;
  padding: 0;
}

.gallery-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, .85fr);
  gap: 18px;
  min-height: 420px;
}

.gallery-feature-card,
.gallery-side-panel,
.testimonial-showcase {
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(34, 211, 238, .1), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, .78), rgba(2, 6, 23, .94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 18px 44px rgba(0, 0, 0, .18);
}

.gallery-feature-card {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  overflow: hidden;
  animation: impactFadeIn .3s ease both;
}

.gallery-feature-button {
  appearance: none;
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 310px;
  cursor: pointer;
  background: transparent;
  text-align: left;
}

.gallery-feature-image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, .08), transparent),
    rgba(2, 6, 23, .95);
}

.gallery-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .42s ease, filter .42s ease, opacity .42s ease;
}

.gallery-feature-card:hover .gallery-feature-image img,
.gallery-feature-button:focus-visible .gallery-feature-image img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.gallery-feature-button:focus-visible {
  outline: 3px solid rgba(34, 211, 238, .8);
  outline-offset: -3px;
}

.gallery-open-chip,
.gallery-counter,
.next-card-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.gallery-open-chip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  color: #02120b;
  background: linear-gradient(135deg, var(--green), #a7f3d0);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.gallery-feature-card:hover .gallery-open-chip,
.gallery-feature-button:focus-visible .gallery-open-chip {
  opacity: 1;
  transform: translateY(0);
}

.gallery-feature-copy {
  padding: 18px 20px 20px;
}

.gallery-counter {
  margin-bottom: 8px;
  padding: 5px 9px;
  color: var(--green);
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .24);
}

.gallery-feature-copy h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  letter-spacing: -.03em;
}

.gallery-feature-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.gallery-side-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  min-width: 0;
  overflow: hidden;
}

.gallery-next-card {
  border: 1px solid rgba(16, 185, 129, .28);
  border-radius: 20px;
  padding: 12px;
  background: rgba(6, 78, 59, .18);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.gallery-next-card:hover,
.gallery-next-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, .62);
  background: rgba(6, 78, 59, .28);
  outline: none;
}

.next-card-label {
  margin-bottom: 10px;
  color: var(--green);
}

.next-card-thumb {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
  background: rgba(2, 6, 23, .75);
  border: 1px solid rgba(56, 189, 248, .2);
}

.next-card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-next-card strong {
  display: block;
  line-height: 1.2;
}

.gallery-next-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  text-align: center;
  cursor: default;
}

.gallery-next-empty svg {
  color: var(--accent-1);
}

.gallery-thumb-list {
  display: grid;
  gap: 10px;
  max-height: 252px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.gallery-thumb-item {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(56, 189, 248, .16);
  border-radius: 16px;
  padding: 8px;
  background: rgba(15, 23, 42, .56);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.gallery-thumb-item:hover,
.gallery-thumb-item:focus-visible,
.gallery-thumb-item.active {
  transform: translateX(2px);
  border-color: rgba(16, 185, 129, .56);
  background: rgba(16, 185, 129, .12);
  outline: none;
}

.gallery-thumb-number {
  color: var(--green);
  font-weight: 950;
  font-size: .78rem;
  min-width: 24px;
}

.gallery-thumb-image {
  width: 58px;
  height: 44px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(2, 6, 23, .8);
  border: 1px solid rgba(255, 255, 255, .08);
}

.gallery-thumb-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-thumb-text {
  min-width: 0;
}

.gallery-thumb-text strong,
.gallery-thumb-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-thumb-text strong {
  font-size: .88rem;
}

.gallery-thumb-text small {
  color: var(--text-muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.gallery-empty-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 320px;
  border: 1px dashed rgba(56, 189, 248, .3);
  border-radius: 24px;
  color: var(--text-muted);
  text-align: center;
  padding: 28px;
  background: rgba(2, 6, 23, .55);
}

.gallery-empty-card svg {
  width: 42px;
  height: 42px;
  color: var(--accent-1);
}

.impact-testimonials-section {
  padding: 22px;
}

.testimonial-scroll {
  overflow: visible;
  padding: 0;
}

.testimonial-showcase {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 150px;
  padding: 22px;
  animation: impactFadeIn .3s ease both;
}

.testimonial-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--green);
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .24);
}

.testimonial-copy blockquote {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.08rem, 1.45vw, 1.35rem);
  line-height: 1.55;
  letter-spacing: -.01em;
}

.testimonial-person strong,
.testimonial-person small {
  display: block;
}

.testimonial-person small {
  color: var(--text-muted);
}

.testimonial-counter {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
}

.testimonial-empty {
  align-items: center;
}

@media (max-width: 1180px) {
  .gallery-showcase {
    grid-template-columns: 1fr;
  }

  .gallery-side-panel {
    grid-template-columns: minmax(190px, .7fr) 1fr;
    grid-template-rows: auto;
  }

  .gallery-thumb-list {
    max-height: 210px;
  }
}

@media (max-width: 760px) {

  .impact-gallery-panel,
  .impact-testimonials-section {
    padding: 16px;
  }

  .gallery-showcase {
    min-height: 0;
  }

  .gallery-feature-button {
    min-height: 230px;
  }

  .gallery-side-panel {
    grid-template-columns: 1fr;
  }

  .gallery-thumb-list {
    max-height: none;
  }

  .testimonial-showcase {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .testimonial-counter {
    position: static;
    margin-top: 8px;
  }
}

/* =========================================================
   Overall testimonials marquee redesign
   - Small, separate cards.
   - Continuous horizontal movement.
   - Hover/focus pauses the carousel.
   ========================================================= */
.impact-testimonials-section {
  margin-top: 24px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 10%, rgba(16, 185, 129, .13), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, .88), rgba(2, 6, 23, .96));
  border: 1px solid rgba(56, 189, 248, .2);
  overflow: hidden;
}

.impact-testimonials-section .panel-heading {
  margin-bottom: 16px;
}

.testimonial-scroll {
  overflow: hidden;
  padding: 2px 0 4px;
}

.testimonial-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.testimonial-marquee-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  animation: testimonialMarquee 34s linear infinite;
  will-change: transform;
}

.impact-testimonials-section:hover .testimonial-marquee-track,
.impact-testimonials-section:focus-within .testimonial-marquee-track {
  animation-play-state: paused;
}

.testimonial-mini-card {
  flex: 0 0 clamp(240px, 28vw, 340px);
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(56, 189, 248, .22);
  background:
    radial-gradient(circle at 16% 0%, rgba(34, 211, 238, .14), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, .82), rgba(2, 6, 23, .96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 16px 34px rgba(0, 0, 0, .18);
}

.testimonial-mini-card:hover,
.testimonial-mini-card:focus-within {
  border-color: rgba(16, 185, 129, .55);
  background:
    radial-gradient(circle at 16% 0%, rgba(16, 185, 129, .18), transparent 36%),
    linear-gradient(145deg, rgba(15, 23, 42, .9), rgba(2, 6, 23, .98));
}

.testimonial-session-name {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, .28);
  background: rgba(16, 185, 129, .1);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-mini-card blockquote {
  margin: 0;
  color: #fff;
  font-size: clamp(.98rem, 1.05vw, 1.08rem);
  line-height: 1.55;
  letter-spacing: -.01em;
}

.compact-testimonial-person {
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, .16);
}

.compact-testimonial-person strong,
.compact-testimonial-person small {
  display: block;
}

.compact-testimonial-person strong {
  color: #fff;
  font-weight: 900;
}

.compact-testimonial-person small {
  color: var(--text-muted);
  font-size: .86rem;
}

.testimonial-dots {
  display: none !important;
}

@keyframes testimonialMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 760px) {
  .impact-testimonials-section {
    padding: 16px;
  }

  .testimonial-marquee {
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  }

  .testimonial-mini-card {
    flex-basis: min(82vw, 310px);
    min-height: 166px;
    padding: 16px;
  }
}

/* =========================================================
   Impact mobile + showcase polish pass
   - Removes leftover gallery dot controls under the showcase.
   - Makes the Impact page faster to scan on phones.
   - Uses a compact session selector and collapsible extra details.
   ========================================================= */
.gallery-dots {
  display: none !important;
}

.impact-top-book-link {
  margin-top: 8px;
}

.impact-more-details {
  margin-top: 16px;
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 20px;
  background: rgba(15, 23, 42, .52);
  overflow: hidden;
}

.impact-more-details summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.impact-more-details summary::-webkit-details-marker {
  display: none;
}

.impact-more-details summary svg {
  color: var(--green);
  transition: transform .2s ease;
}

.impact-more-details[open] summary svg {
  transform: rotate(180deg);
}

.impact-more-details .impact-outcome-box,
.impact-more-details .impact-topic-list,
.impact-more-details .impact-link-list {
  margin: 0 14px 14px;
}

.gallery-showcase {
  align-items: stretch;
}

.gallery-feature-card {
  min-width: 0;
}

.gallery-side-panel {
  min-height: 0;
}

.gallery-thumb-list {
  overscroll-behavior: contain;
}

.gallery-thumb-item {
  min-height: 64px;
}

@media (max-width: 1180px) {
  .gallery-side-panel {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .impact-section {
    padding-top: 96px;
  }

  .impact-page-heading {
    margin-bottom: 18px;
  }

  .impact-page-heading h2 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

  .impact-page-heading p {
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }

  .impact-workshop-library {
    gap: 18px;
  }

  .impact-workshop-library .public-cta-card {
    display: none;
  }

  .session-library-card {
    padding: 16px;
    border-radius: 22px;
  }

  .session-library-card .panel-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .session-library-card .panel-heading p {
    display: none;
  }

  .impact-count-pill {
    padding: 7px 10px;
    font-size: .72rem;
    white-space: nowrap;
  }

  .session-card-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .session-card-grid::-webkit-scrollbar {
    display: none;
  }

  .session-card {
    flex: 0 0 min(72vw, 260px);
    scroll-snap-align: start;
  }

  .session-card-button {
    min-height: 78px;
    padding: 16px;
  }

  .session-org-title {
    font-size: 1.15rem;
  }

  .session-date-subline {
    font-size: .82rem;
  }

  .impact-detail-gallery-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .impact-gallery-panel {
    order: 1;
    padding: 16px;
    border-radius: 22px;
  }

  .impact-session-sidebar {
    order: 2;
    padding: 16px;
    border-radius: 22px;
  }

  .impact-gallery-panel .panel-heading,
  .impact-testimonials-section .panel-heading {
    margin-bottom: 12px;
  }

  .impact-gallery-panel .panel-heading p,
  .impact-testimonials-section .panel-heading p {
    display: none;
  }

  .gallery-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
  }

  .gallery-feature-card {
    border-radius: 20px;
  }

  .gallery-feature-button {
    min-height: 218px;
  }

  .gallery-feature-copy {
    padding: 14px 15px 16px;
  }

  .gallery-feature-copy h4 {
    font-size: 1.1rem;
  }

  .gallery-feature-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .93rem;
  }

  .gallery-open-chip {
    opacity: 1;
    transform: none;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
  }

  .gallery-side-panel {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .gallery-next-card {
    display: none;
  }

  .gallery-thumb-list {
    display: flex;
    gap: 10px;
    max-height: none;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .gallery-thumb-list::-webkit-scrollbar {
    display: none;
  }

  .gallery-thumb-item {
    flex: 0 0 178px;
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 66px;
    scroll-snap-align: start;
  }

  .gallery-thumb-number {
    display: none;
  }

  .gallery-thumb-image {
    width: 44px;
    height: 44px;
  }

  .gallery-thumb-text strong {
    font-size: .82rem;
  }

  .gallery-thumb-text small {
    font-size: .68rem;
  }

  .compact-impact-summary h3 {
    font-size: clamp(1.85rem, 8.5vw, 2.5rem);
  }

  .compact-impact-summary p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .session-meta-line {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .session-meta-line span {
    padding: 9px 10px;
  }

  .compact-stat-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .impact-more-details {
    margin-top: 12px;
    border-radius: 18px;
  }

  .impact-more-details summary {
    padding: 13px 14px;
  }

  .impact-more-details .impact-outcome-box,
  .impact-more-details .impact-topic-list,
  .impact-more-details .impact-link-list {
    margin: 0 10px 10px;
  }

  .impact-testimonials-section {
    margin-top: 18px;
    padding: 16px;
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .gallery-feature-button {
    min-height: 190px;
  }

  .gallery-thumb-item {
    flex-basis: 152px;
  }

  .testimonial-mini-card {
    flex-basis: min(78vw, 290px);
  }
}


/* Final Impact CTA cleanup: remove the old inner pitch card and make the hero booking link clearly visible. */
.impact-top-book-link {
  margin-top: 22px;
  padding: 0.82rem 1.25rem;
  color: #03150c !important;
  border: 1px solid rgba(0, 230, 118, .45) !important;
  background: linear-gradient(135deg, var(--green), #9effca) !important;
  box-shadow: 0 18px 42px rgba(0, 230, 118, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.impact-top-book-link:hover,
.impact-top-book-link:focus-visible {
  color: #03150c !important;
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(0, 230, 118, .30), inset 0 1px 0 rgba(255, 255, 255, .4);
}

@media (max-width: 760px) {
  .impact-top-book-link {
    width: min(100%, 280px);
    margin-top: 18px;
  }

  .impact-page-heading {
    padding-inline: 10px;
  }
}

/* =========================================================
   Sample quiz answer feedback
   Works with the current Spot-the-Phish buttons: .domain-card
   JS adds: .correct, .wrong, .missed, and result-box status classes.
   ========================================================= */

.domain-card,
.quiz-option,
.option-button {
  position: relative;
}

.domain-card.correct,
.quiz-option.correct,
.option-button.correct {
  color: #dcffe9;
  border-color: rgba(0, 230, 118, 0.72);
  background:
    linear-gradient(135deg, rgba(0, 230, 118, 0.20), rgba(56, 189, 248, 0.08)),
    rgba(0, 230, 118, 0.08);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.16);
}

.domain-card.wrong,
.quiz-option.wrong,
.option-button.wrong {
  color: #ffe4e4;
  border-color: rgba(239, 68, 68, 0.78);
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(15, 23, 42, 0.38)),
    rgba(239, 68, 68, 0.08);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.14);
}

.domain-card.missed {
  color: #dcffe9;
  border-color: rgba(0, 230, 118, 0.55);
  background:
    linear-gradient(135deg, rgba(0, 230, 118, 0.14), rgba(56, 189, 248, 0.06)),
    rgba(0, 230, 118, 0.06);
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.10);
}

.domain-card.correct::after,
.quiz-option.correct::after,
.option-button.correct::after {
  content: " : Correct";
  margin-left: auto;
  color: #00e676;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.domain-card.wrong::after,
.quiz-option.wrong::after,
.option-button.wrong::after {
  content: " : Wrong";
  margin-left: auto;
  color: #ff8a8a;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.domain-card.missed::after {
  content: " : Right answer";
  margin-left: auto;
  color: #00e676;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.result-box.is-correct {
  color: #dcffe9;
  border-color: rgba(0, 230, 118, 0.62);
  background:
    linear-gradient(135deg, rgba(0, 230, 118, 0.14), rgba(56, 189, 248, 0.05)),
    rgba(0, 230, 118, 0.07);
}

.result-box.is-wrong {
  color: #ffe4e4;
  border-color: rgba(239, 68, 68, 0.68);
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(15, 23, 42, 0.32)),
    rgba(239, 68, 68, 0.07);
}

.quiz-option:disabled,
.option-button:disabled {
  cursor: not-allowed;
  opacity: 0.92;
}

