/* ---------- Fonts ---------- */
@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("../images/Gfx/Noto_Sans_Hebrew/NotoSansHebrew-VariableFont_wdth%2Cwght.ttf") format("truetype-variations"),
       url("../images/Gfx/Noto_Sans_Hebrew/NotoSansHebrew-VariableFont_wdth%2Cwght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
h1, h2, h3, h4, h5, h6, p, span, a, li, div { font-family: inherit; }

/* ---------- Root palette ----------
   All design-system colors live here.
   Use var(--token) for solids, and rgba(var(--token-rgb), 0.XX) for opacity.
*/
:root {
  /* --- Brand --- */
  --navy:        #0e2a5c;
  --navy-deep:   #071c46;
  --blue:        #2b73fa;
  --blue-light:  #eef3ff;
  --coral:       #f97d70;
  --coral-soft:  #fdb8a5;
  --peach-bg:    #fff2ec;

  /* --- Neutrals --- */
  --white: #ffffff;
  --black: #000000;

  /* --- Text --- */
  --text:          #1b2140;
  --text-subtitle: #3f4a73;
  --text-muted:    #6b7392;

  /* --- Surfaces --- */
  --card:   #ffffff;
  --bg:     #e8eef9;
  --border: #e6ebf3;

  /* --- RGB components (for rgba(..., opacity)) --- */
  --navy-rgb:  14, 42, 92;
  --blue-rgb:  43, 115, 250;
  --coral-rgb: 249, 125, 112;
  --white-rgb: 255, 255, 255;
  --black-rgb: 0, 0, 0;

  /* --- Shadows --- */
  --shadow-sm: 0 2px 6px rgba(var(--navy-rgb), 0.06);
  --shadow-md: 0 8px 24px rgba(var(--navy-rgb), 0.10);

  --radius: 14px;
  --radius-lg: 22px;
  --max: 1200px;
  --step-card-w: 112px;

  /* ---------- Font-size ladder ---------- */
  --fs-xs:   14px;                           /* fine print: copyright, breadcrumbs, badges */
  --fs-sm:   16px;                           /* secondary text: footer links, snippets, descriptions */
  --fs-md:   18px;                           /* body default: paragraphs, nav, menu */
  --fs-lg:   20px;                           /* CTA, download bars, small headings */
  --fs-xl:   22px;                           /* section subtitles, hero-card titles */
  --fs-2xl:  26px;                           /* mid headings (h3), step num, icon badges */
  --fs-3xl:  clamp(28px, 2.8vw, 42px);       /* hero / page titles */
  --fs-4xl:  clamp(32px, 3.6vw, 48px);       /* main section titles */
}

body {
  font-family: "Noto Sans Hebrew", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  direction: rtl;
  line-height: 1.55;
  font-size: var(--fs-md);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}
.logo img { height: 44px; }
.logo.small img { height: 36px; }
.menu-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.menu-toggle:hover { background: var(--navy-deep); }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
}
.hero .hero-inner {
  position: relative;
  width: 100%;
}
.hero-banner {
  width: 100vw;
  height: auto;
  display: block;
}
.hero-title-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(var(--white-rgb), 0.94);
  backdrop-filter: blur(4px);
  border-radius: 22px;
  padding: 26px 40px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(var(--navy-rgb), 0.18);
  max-width: min(500px, 90vw);
}
.hero-title-card .logo-720 {
  width: clamp(240px, 26vw, 400px);
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ---------- Inner page header (title zone) ---------- */
.page-hero {
  background: var(--bg);
  color: var(--navy);
  padding: 56px 24px 72px;
  position: relative;
  overflow: visible;
}
.page-hero .inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  color: var(--navy);
  font-size: var(--fs-4xl);
  margin: 0 0 14px;
  font-weight: 700;
}
.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-subtitle);
  font-size: var(--fs-md);
}
.page-hero .breadcrumbs {
  color: var(--blue);
  font-size: var(--fs-sm);
  margin-bottom: 10px;
  font-weight: 500;
}
.page-hero .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 26px;
  color: var(--white);
  background: var(--coral);
  border-radius: 999px;
  font-size: var(--fs-lg);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(var(--coral-rgb), 0.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.page-hero .hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--coral-rgb), 0.55);
}
.page-hero .hero-cta svg { width: 14px; height: 14px; }
.page-hero .fingerprint-bg {
  position: absolute;
  opacity: 0.35;
  width: 160px;
  pointer-events: none;
}
.page-hero .fingerprint-bg.left  { left: 24px; bottom: 12px; }
.page-hero .fingerprint-bg.right { right: 24px; top: 20px; }

/* ---------- Section wrapper ---------- */
.section {
  padding: 56px 24px;
}
.section .inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section.has-deco {
  position: relative;
  overflow: hidden;
}

/* Decorative fingerprint accents (gfx1.png / gfx2.png) */
.deco-fingerprint {
  position: absolute;
  width: clamp(72px, 7.2vw, 120px);
  height: auto;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.deco-fingerprint.tl { top: 24px;    left: 32px; }
.deco-fingerprint.tr { top: 24px;    right: 32px; }
.deco-fingerprint.bl { bottom: 24px; left: 32px; }
.deco-fingerprint.br { bottom: 24px; right: 32px; }
/* Tips section: gfx2 sits at the top edge, aligned under the left corner
   of the (physical LEFT) video thumbnail in the split-banner above. */
.deco-fingerprint.deco-tips {
  top: 0;
  left: calc(25vw - 90px);
}
/* Updates section: gfx1 sits at the top edge, aligned under the ladybug
   which is on the physical RIGHT of the participants row. */
.deco-fingerprint.deco-updates {
  top: 0;
  right: calc(15vw - 40px);
}
/* Inner page hero: gfx1 sits at the bottom-left, flipped so it points up. */
.deco-fingerprint.deco-hero-bl {
  bottom: 0;
  left: calc(15vw - 40px);
  transform: scaleY(-1);
}
/* Inner page tips section: gfx2 sits at the top-right, natural (pointing down). */
.deco-fingerprint.deco-tips-tr {
  top: 0;
  right: calc(15vw - 40px);
}
/* Page hero itself needs to serve as positioning context (already position: relative). */
.page-hero .deco-fingerprint { z-index: 1; }
.page-hero .inner { position: relative; z-index: 2; }
.section.has-deco .inner { position: relative; z-index: 1; }
.section-title {
  text-align: center;
  color: var(--navy);
  font-size: var(--fs-3xl);
  margin: 0 0 8px;
  font-weight: 700;
}
.section-subtitle {
  text-align: center;
  color: var(--text-subtitle);
  margin: 0 0 32px;
  font-size: var(--fs-xl);
}
.section-subtitle--lg { font-size: var(--fs-2xl); margin-bottom: 16px; }
.section-sub-heading {
  text-align: center;
  color: var(--navy);
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin: 48px 0 20px;
}
.coming-soon {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-md);
  margin: 0;
}
.section.alt { background: var(--bg); }

/* ---------- Participants (role) cards ---------- */
.participants-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* chatbot | roles | empty counter-balance */
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}
.participants-row .chatbot {
  justify-self: start;   /* chatbot hugs the physical right (RTL start) */
  transform: translateX(10vw);  /* nudge further to the physical right */
}
.roles {
  display: grid;
  grid-template-columns: repeat(5, 160px);   /* equal-width tracks so icons are evenly spaced */
  gap: 24px;
  justify-self: center;
}
.role-pill-cta--below { margin-top: 24px; }
.role-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: var(--coral);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: var(--fs-lg);
  box-shadow: 0 4px 12px rgba(var(--coral-rgb), 0.35);
  white-space: nowrap;
}
.role-pill-cta:hover { filter: brightness(1.05); }
.role-card {
  background: transparent;
  border-radius: 0;
  text-align: center;
  padding: 6px 8px;
  border: none;
  transition: transform .15s ease;
  display: block;
}
.role-card:hover {
  transform: translateY(-3px);
}
.role-card .icon {
  width: 96px; height: 96px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.role-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.role-card h3 {
  margin: 6px 0 0;
  font-size: var(--fs-md);
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Chatbot (ladybug) ---------- */
.chatbot {
  position: relative;
  z-index: 40;                    /* keep the dropdown above sibling sections */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 30px 0 0;             /* leave room for the speech bubble */
  box-shadow: none;
  min-width: 0;
}
.chatbot .chatbot-hello {
  position: absolute;
  /* Sit above-and-to-the-left of the ladybug at ~45° */
  top: 0;
  left: 50%;
  transform: translate(-100%, -60%);
  width: clamp(90px, 7.5vw, 120px);
  height: auto;
  margin: 0;
  z-index: 3;
  pointer-events: none;
}
.chatbot .avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: url("../images/Gfx/חיפושית.png") center/contain no-repeat;
  flex: none;
}
.chatbot-search {
  position: relative;
  margin-top: 6px;
  z-index: 50;   /* keep the dropdown above later sections (split-banner etc.) */
}
.chatbot .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  background: url("../images/Gfx/מסגרת גדריינט.png") no-repeat center / 100% 100%;
  border: none;
  border-radius: 999px;
  cursor: text;
  transition: transform .15s ease;
}
.chatbot .cta:hover { transform: translateY(-1px); }
.chatbot .cta .cta-icon {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
}
.chatbot .cta-input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--navy);
  width: 190px;
  min-width: 0;
}
.chatbot .cta-input::placeholder { color: var(--navy); opacity: 0.85; }
.chatbot .cta-input::-webkit-search-cancel-button { display: none; }

/* Dropdown results */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 50%;
  transform: translateX(50%);
  width: min(320px, 88vw);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(var(--navy-rgb), 0.18);
  padding: 6px;
  z-index: 30;
  max-height: 360px;
  overflow-y: auto;
  display: none;
  text-align: right;
}
.search-dropdown.open { display: block; }
.search-dropdown .empty {
  padding: 14px 12px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}
.search-result {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  transition: background .12s ease;
}
.search-result:hover,
.search-result:focus { background: var(--bg); outline: none; }
.search-result .page {
  font-size: var(--fs-xs);
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}
.search-result .snippet {
  font-size: var(--fs-sm);
  color: var(--navy);
  line-height: 1.4;
}
.search-result mark {
  background: rgba(var(--blue-rgb), 0.18);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}
.chat-answer {
  padding: 12px 14px;
  margin: 2px 0 6px;
  background: var(--blue-light);
  color: var(--navy);
  border-radius: 10px;
  font-size: var(--fs-md);
  line-height: 1.55;
  white-space: pre-line;
}
.chat-sources-label {
  padding: 6px 12px 2px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chatbot-floating {
  position: absolute;
  right: 40px;
  bottom: 0;
  transform: translateY(50%);   /* center of the chatbot sits on the section border */
  z-index: 40;
}

/* ---------- Split banner ---------- */
.split-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 240px;
  padding: 0;
}
.split-banner > a,
.split-banner > .video-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}
.split-banner .left   { background: var(--navy); }
.split-banner .middle { background: var(--navy-deep); }
.split-banner .right  { background: var(--coral); }
.split-banner.mentoring-videos--three { grid-template-columns: 1fr 1fr 1fr; }
.split-banner.mentoring-videos--four  { grid-template-columns: 1fr 1fr 1fr 1fr; }
.split-banner .video-thumb-wrap {
  position: relative;
  height: 70%;
  aspect-ratio: 16 / 10;
}
.split-banner .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(var(--black-rgb), 0.28);
  transition: transform .25s ease;
}
.split-banner a:hover .thumb { transform: scale(1.03); }
.split-banner.mentoring-videos .thumb { object-position: center 55%; }
/* Mentoring tiles: more vertical room + reserved caption space so thumbs
   stay aligned across tiles even when a caption wraps to two lines. */
.split-banner.mentoring-videos { height: 290px; }
.split-banner.mentoring-videos .caption {
  min-height: 2.8em;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 10px;
}
.video-tile--disabled { cursor: default; }
.video-tile--disabled .thumb { filter: grayscale(0.35) brightness(0.78); }
.video-tile--disabled .play { display: none; }
.video-tile-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  color: var(--coral);
  font-weight: 700;
  font-size: var(--fs-md);
  padding: 6px 20px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(var(--black-rgb), 0.25);
}
.split-banner .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 5px 12px rgba(var(--black-rgb), 0.4));
  transition: transform .2s ease;
}
.split-banner .play img { width: 100%; height: 100%; display: block; }
.split-banner a:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.split-banner .caption {
  color: var(--white);
  font-size: var(--fs-md);
  font-weight: 600;
  text-align: center;
}

/* ---------- Mentoring videos carousel (דקה עם מיכל) ---------- */
:root { --mentoring-tile-w: 240px; }
.mentoring-carousel {
  display: grid;
  grid-template-columns: 44px auto 44px;
  align-items: center;
  gap: 12px;
  justify-content: center;
  max-width: calc(4 * var(--mentoring-tile-w) + 3 * 16px + 2 * 44px + 2 * 12px);
  margin: 0 auto;
}
.mentoring-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: calc(4 * var(--mentoring-tile-w) + 3 * 16px);
  padding: 8px 0 12px;
  justify-content: safe center;
}
.mentoring-track::-webkit-scrollbar { display: none; }
.mentoring-track .video-tile {
  flex: 0 0 var(--mentoring-tile-w);
  scroll-snap-align: start;
  height: 490px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
}
.mentoring-track .video-tile:nth-child(3n+1) { background: var(--navy); }
.mentoring-track .video-tile:nth-child(3n+2) { background: var(--navy-deep); }
.mentoring-track .video-tile:nth-child(3n)   { background: var(--coral); }
.mentoring-track .video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
}
.mentoring-track .thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(var(--black-rgb), 0.28);
  transition: transform .25s ease;
}
.mentoring-track .video-tile:hover .thumb { transform: scale(1.03); }
.mentoring-track .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 5px 12px rgba(var(--black-rgb), 0.4));
  transition: transform .2s ease;
}
.mentoring-track .play img { width: 100%; height: 100%; display: block; }
.mentoring-track .video-tile:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.mentoring-track .caption {
  color: var(--white);
  font-size: var(--fs-md);
  font-weight: 600;
  text-align: center;
  min-height: 2.8em;
  line-height: 1.3;
  padding: 0 10px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ---------- Video lightbox ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal .backdrop {
  position: absolute; inset: 0;
  background: rgba(var(--black-rgb), 0.82);
}
.video-modal .player {
  position: relative;
  width: min(1000px, 92vw);
  aspect-ratio: 16 / 9;
  background: var(--black);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(var(--black-rgb), 0.5);
}
.video-modal iframe {
  width: 100%; height: 100%; border: 0;
}
.video-modal .close {
  position: absolute;
  top: -44px; right: 0;
  width: 36px; height: 36px;
  color: var(--white);
  font-size: var(--fs-xl);
  line-height: 1;
  background: rgba(var(--white-rgb), 0.12);
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.video-modal .close:hover { background: rgba(var(--white-rgb), 0.22); }

/* ---------- Partners ---------- */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 36px;
  align-items: center;
  margin: 20px auto 0;
  max-width: 1000px;
}
.partners-grid .partner {
  flex: 0 0 calc((100% - 3 * 36px) / 4);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.partners-grid .partner--labelled {
  flex-direction: column;
  gap: 6px;
}
.partners-grid .partner--labelled img { max-height: 70%; }
.partners-grid .partner-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 500;
}
.partners-grid .partner img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter .2s ease, transform .2s ease;
}
.partners-grid .partner img:hover {
  filter: grayscale(0);
  transform: scale(1.04);
}

/* ---------- Video / tips carousel ---------- */
.tips-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
}
.tips-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.tips-track::-webkit-scrollbar { display: none; }
.tips-track > * {
  flex: 0 0 calc((100% - 4 * 18px) / 5);
  scroll-snap-align: start;
}
.tip-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
}
.tip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tip-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--border) center/cover no-repeat;
}
.tip-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: url("../images/Gfx/Play.png") center/44px no-repeat;
  opacity: 0.9;
}
.tip-card .caption {
  padding: 12px 12px 14px;
  font-size: var(--fs-sm);
  color: var(--text);
  text-align: center;
  min-height: 68px;
}
.tips-nav {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.tips-nav:hover { background: var(--blue-light); }

/* Blue-arrow image for the tips carousel */
.tips-carousel .tips-nav {
  background: url("../images/Gfx/חץ כחול.png") center / 28px auto no-repeat;
  border: none;
  border-radius: 0;
  box-shadow: none;
  width: 44px;
  height: 44px;
  transition: transform .15s ease;
}
.tips-carousel .tips-nav svg { display: none; }
.tips-carousel .tips-nav[data-next] { transform: scaleX(-1); }   /* mirror to point left */
.tips-carousel .tips-nav:hover { background-color: transparent; transform: scale(1.1); }
.tips-carousel .tips-nav[data-next]:hover { transform: scaleX(-1) scale(1.1); }

/* ---------- Updates ---------- */
.updates-list {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.update-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 6px 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.update-item .icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--coral-soft) url("../images/Gfx/megaphone.png") center/18px no-repeat;
}
.update-item p { margin: 0; font-size: var(--fs-md); color: var(--text); }

/* ---------- Meetings / steps carousel (inner page 3.png) ---------- */
.steps-carousel {
  display: grid;
  grid-template-columns: 40px auto 40px;
  align-items: center;
  gap: 10px;
  justify-content: center;
  max-width: calc(5 * var(--step-card-w) + 4 * 16px + 2 * 40px + 2 * 10px);
  margin: 0 auto;
}
.steps-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 0 12px;
  /* Show exactly 5 cards + 4 gaps in the visible track; rest scrolls */
  width: calc(5 * var(--step-card-w) + 4 * 16px);
  /* Center cards when there are fewer than the track fits;
     `safe` prevents centering (and thus content clipping) when they overflow. */
  justify-content: safe center;
}
.steps-track::-webkit-scrollbar { display: none; }
.steps-track > * {
  flex: 0 0 var(--step-card-w);
  scroll-snap-align: start;
}
.step-card {
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(90deg, var(--blue) 0%, var(--coral) 100%) border-box;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
  aspect-ratio: 1 / 1.75;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.step-card:hover {
  background:
    linear-gradient(var(--navy), var(--navy)) padding-box,
    linear-gradient(90deg, var(--blue) 0%, var(--coral) 100%) border-box;
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(var(--navy-rgb), 0.25);
}
.step-card:hover .num { color: var(--white); }
.step-card:hover h4  { color: var(--white); }
.step-card:hover .step-icon img { filter: hue-rotate(20deg) brightness(0.85) saturate(1.2); }
.step-card--disabled { cursor: default; opacity: 0.6; }
.step-card--disabled:hover {
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(90deg, var(--blue) 0%, var(--coral) 100%) border-box;
  color: inherit;
  transform: none;
  box-shadow: none;
}
.step-card--disabled:hover .num,
.step-card--disabled:hover h4 { color: var(--navy); }
.step-card--disabled:hover .step-icon img { filter: none; }
.step-card .step-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.step-card .step-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.step-card .step-icon svg { width: 26px; height: 26px; color: var(--navy); }
.step-card .num {
  font-family: "Noto Sans Hebrew", sans-serif;
  font-size: var(--fs-2xl);
  color: var(--navy);
  font-weight: 400;
  font-variation-settings: "wght" 400;
  line-height: 1;
  white-space: nowrap;
}
.step-card .divider {
  width: 34px;
  height: 3px;
  background: var(--coral-soft);
  margin: 10px auto;
  border-radius: 3px;
}
.step-card h4 {
  margin: 0;
  font-size: var(--fs-md);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
}
.step-card.active {
  background:
    linear-gradient(var(--navy), var(--navy)) padding-box,
    linear-gradient(90deg, var(--blue) 0%, var(--coral) 100%) border-box;
  color: var(--white);
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(var(--navy-rgb), 0.25);
}
.step-card.active .num { color: var(--white); }
.step-card.active h4 { color: var(--white); }
.step-card.active .divider { background: rgba(var(--white-rgb), 0.6); }
.step-card.active .step-icon { background: rgba(var(--white-rgb), 0.15); color: var(--white); }

/* ---------- Downloads row ---------- */
.downloads-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}
.download-tile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.download-tile .badge {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(var(--coral-rgb), 0.35);
}
.download-tile .badge svg { width: 26px; height: 26px; }
.download-tile span { font-size: var(--fs-md); color: var(--text); font-weight: 500; }
.download-tile--disabled { cursor: default; opacity: 0.6; }
.download-tile--disabled .badge { box-shadow: none; }
.download-tile .badge--science {
  background: var(--navy);
  box-shadow: 0 6px 16px rgba(var(--navy-rgb), 0.35);
}
.download-tile-badge {
  background: var(--white);
  color: var(--coral);
  font-weight: 700;
  font-size: var(--fs-xs);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--coral);
}
.downloads-divider {
  max-width: 780px;
  margin: 28px auto;
  border: 0;
  border-top: 1px solid rgba(var(--navy-rgb), 0.18);
}
.downloads-row-secondary { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
.downloads-row-triple { grid-template-columns: repeat(3, 1fr); max-width: 680px; }
.downloads-row-single { grid-template-columns: 1fr; max-width: 260px; }

/* ---------- Meeting-page hero (two-column, image + navy body) ---------- */
.meeting-hero {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.meeting-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1500px;
  margin: 0 auto;
  min-height: 240px;
  direction: rtl;                       /* keep the body on the right in RTL */
}
.meeting-hero-media {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}
.meeting-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.meeting-hero-body {
  padding: 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.meeting-hero-body .breadcrumbs {
  font-size: var(--fs-sm);
  color: rgba(var(--white-rgb), 0.65);
  margin-bottom: 12px;
}
.meeting-hero-body h1 {
  font-size: var(--fs-3xl);
  color: var(--white);
  margin: 0 0 14px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meeting-hero-body h1 .meeting-title-prefix {
  font-size: var(--fs-xl);
  color: var(--coral-soft);
  font-weight: 500;
}
.meeting-hero-body h1 .meeting-title-name {
  /* inherits h1's font-size + color */
}
.meeting-hero-body p {
  color: rgba(var(--white-rgb), 0.82);
  font-size: var(--fs-md);
  max-width: 560px;
  margin: 0 auto 20px;
}
.meeting-hero-body .hero-divider {
  border: none;
  border-top: 1px solid rgba(var(--blue-rgb), 0.55);
  margin: 14px auto 22px;
  width: 80%;
}
.meeting-hero-body .hero-cta { margin-top: 0; align-self: center; }

/* ---------- Section with an icon badge on the side ---------- */
.icon-block {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  margin: 0 auto 34px;
  max-width: 860px;
}
.icon-badge {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex: none;
}
.icon-badge.coral { background: var(--coral); }
.icon-badge.blue  { background: var(--blue); }
.icon-badge svg { width: 22px; height: 22px; stroke-width: 1.8; }
.icon-body h3 {
  color: var(--navy);
  font-size: var(--fs-3xl);
  margin: 0 0 10px;
  font-weight: 700;
}
.icon-body p,
.icon-body ul {
  color: var(--text);
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.7;
}
.icon-body ul {
  padding-right: 22px;
  padding-left: 0;
}
.icon-body ul li { margin: 2px 0; }

/* ---------- Section-title row: badge next to a centered title ---------- */
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 24px;
  flex-wrap: wrap;
}
.section-title-row .section-title { margin: 0; }
.section-title-row .icon-badge { flex: none; }

/* icon-block variant used when the badge was lifted into the title row */
.icon-block--bodyonly {
  grid-template-columns: 1fr;
  max-width: 860px;
}
.icon-block--bodyonly .icon-body {
  padding-right: 28px;
}

/* ---------- Full-width download bars ---------- */
.download-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
}
.download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--coral);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-lg);
  box-shadow: 0 6px 16px rgba(var(--coral-rgb), 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.download-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--coral-rgb), 0.35);
}
.download-bar .download-bar-icon { width: 22px; height: 22px; flex: none; }
.download-bar--disabled {
  cursor: default;
  opacity: 0.6;
  box-shadow: none;
}
.download-bar--disabled:hover {
  transform: none;
  box-shadow: none;
}
.download-bar-badge {
  background: var(--white);
  color: var(--coral);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 4px 12px;
  border-radius: 999px;
  flex: none;
}

/* ---------- Vertical tip cards (meeting-page carousel) ---------- */
.tips-carousel-vertical {
  display: grid;
  grid-template-columns: 40px auto 40px;
  gap: 10px;
  justify-content: center;
  align-items: center;
  max-width: calc(5 * 170px + 4 * 16px + 2 * 40px + 2 * 10px);
  margin: 0 auto;
}
.tips-track-vertical {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 0 12px;
  width: calc(5 * 170px + 4 * 16px);
  justify-content: safe center;
}
.tips-track-vertical::-webkit-scrollbar { display: none; }
.tips-track-vertical > * {
  flex: 0 0 170px;
  scroll-snap-align: start;
}
.tip-card-vertical {
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 5 / 8;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tip-card-vertical:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(var(--navy-rgb), 0.28);
}
.tip-card-vertical .caption {
  padding: 12px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-align: center;
  color: var(--white);
  min-height: 62px;
}
.tip-card-vertical .thumb {
  flex: 1;
  background: var(--navy) center/cover no-repeat;
}

@media (max-width: 800px) {
  .meeting-hero-inner { grid-template-columns: 1fr; }
  .icon-block { grid-template-columns: 56px 1fr; gap: 16px; }
}

/* ---------- Content blocks (inner page body) ---------- */
.content-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 0 auto 18px;
  max-width: 900px;
}
.content-block h3 {
  color: var(--navy);
  margin: 0 0 8px;
  font-size: var(--fs-lg);
}
.content-block p { color: var(--text-muted); margin: 0; font-size: var(--fs-md); }

/* ---------- Footer strip + footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(var(--white-rgb), 0.85);
  padding: 34px 24px 26px;
}
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .brand { display: flex; align-items: center; gap: 12px; }
.site-footer .brand img { height: 34px; filter: brightness(0) invert(1); }
.site-footer .brand span { font-size: var(--fs-sm); opacity: 0.75; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a {
  font-size: var(--fs-sm);
  color: rgba(var(--white-rgb), 0.9);
  transition: color .15s ease;
}
.site-footer nav a:hover { color: var(--coral-soft); }
.site-footer .copy { font-size: var(--fs-xs); opacity: 0.6; }
.footer-strip {
  height: 22px;
  background: linear-gradient(90deg, var(--coral) 0%, var(--coral-soft) 100%);
}

/* ---------- Menu overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.menu-overlay .backdrop {
  position: absolute; inset: 0;
  background: rgba(var(--navy-rgb), 0.35);
  opacity: 0;
  transition: opacity .2s ease;
}
.menu-overlay .panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 88vw);
  background: var(--navy);
  color: var(--white);
  transform: translateX(100%);
  transition: transform .28s ease;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-overlay .panel .close {
  align-self: flex-start;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.menu-overlay a.menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(var(--white-rgb), 0.08);
  font-size: var(--fs-md);
  color: var(--white);
  transition: color .15s ease;
}
.menu-overlay a.menu-item:hover { color: var(--coral-soft); }
.menu-overlay a.menu-item svg { width: 20px; height: 20px; }
.menu-overlay .divider { height: 1px; background: rgba(var(--white-rgb), 0.2); margin: 10px 0; }
.menu-overlay.open { pointer-events: auto; }
.menu-overlay.open .backdrop { opacity: 1; }
.menu-overlay.open .panel { transform: translateX(0); }

/* ---------- Utilities ---------- */
.rel { position: relative; }

/* ==========================================================================
   Responsive layers
   Breakpoints:
     ≤ 1200 px  — smaller laptop windows
     ≤ 1000 px  — landscape tablets / small laptops
     ≤ 780  px  — portrait tablets
     ≤ 600  px  — mobile (portrait)
     ≤ 420  px  — small phones
   ========================================================================== */

/* --- ≤ 1200 px : hug the max container more tightly ------------------------ */
@media (max-width: 1200px) {
  .site-header .inner,
  .section .inner,
  .page-hero .inner,
  .site-footer .inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* --- ≤ 1000 px : landscape tablet / small laptop --------------------------- */
@media (max-width: 1000px) {
  .participants-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
  }
  .participants-row .chatbot { transform: none; justify-self: center; }
  .roles { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* Mentoring carousel: 3 tiles visible */
  .mentoring-carousel {
    max-width: calc(3 * var(--mentoring-tile-w) + 2 * 16px + 2 * 44px + 2 * 12px);
  }
  .mentoring-track {
    width: calc(3 * var(--mentoring-tile-w) + 2 * 16px);
  }

  .partners-grid { gap: 20px 28px; }
  .partners-grid .partner { flex: 0 0 calc((100% - 2 * 28px) / 3); }

  .tips-track > * { flex: 0 0 calc((100% - 2 * 18px) / 3); }

  .downloads-row { grid-template-columns: repeat(2, 1fr); }

  /* Steps carousel: keep 5-visible logic but cap card size proportionally */
  :root { --step-card-w: 100px; }

  /* Chatbot floats away from the section border and centers under the hero */
  .chatbot-floating {
    position: static;
    transform: none;
    margin: 12px auto -30px;
    display: block;
    width: max-content;
  }
  .page-hero { padding-bottom: 40px; }

  .site-footer .inner { flex-direction: column; align-items: flex-start; gap: 14px; text-align: right; }
  .site-footer nav { justify-content: flex-start; }
}

/* --- ≤ 780 px : portrait tablet ------------------------------------------- */
@media (max-width: 780px) {
  :root { --step-card-w: 110px; }

  .site-header .inner { padding: 12px 18px; gap: 10px; }
  .logo img { height: 36px; }
  .menu-toggle { width: 40px; height: 40px; }

  .section, .page-hero { padding-left: 18px; padding-right: 18px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .page-hero { padding-top: 40px; }

  .hero-banner { min-height: 220px; }
  .hero-title-card { padding: 18px 28px; max-width: min(360px, 88vw); }
  .hero-title-card .logo-720 { width: clamp(200px, 42vw, 280px); }

  .split-banner { min-height: 200px; }
  .split-banner .thumb { height: 70%; }
  .split-banner .play  { width: 54px; height: 54px; }

  .partners-grid { gap: 20px 24px; }
  .partners-grid .partner { flex: 0 0 calc((100% - 24px) / 2); height: 70px; }

  /* Steps carousel: reduce visible cards from 5 to 4 */
  .steps-carousel {
    max-width: calc(4 * var(--step-card-w) + 3 * 16px + 2 * 40px + 2 * 10px);
  }
  .steps-track { width: calc(4 * var(--step-card-w) + 3 * 16px); }

  .icon-block { grid-template-columns: 52px 1fr; gap: 14px; }

  .download-bar { padding: 12px 20px; }

  .tips-track-vertical > * { flex: 0 0 150px; }
  .tips-carousel-vertical {
    max-width: calc(4 * 150px + 3 * 16px + 2 * 40px + 2 * 10px);
  }
  .tips-track-vertical { width: calc(4 * 150px + 3 * 16px); }
}

/* --- ≤ 600 px : mobile portrait ------------------------------------------ */
@media (max-width: 600px) {
  :root { --step-card-w: 120px; }

  .section, .page-hero { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 32px; padding-bottom: 32px; }

  .hero-banner { min-height: 180px; }
  .hero-title-card { padding: 14px 22px; max-width: 88vw; }
  .hero-title-card .logo-720 { width: clamp(170px, 55vw, 240px); }

  .roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
  .roles .role-card { flex: 0 0 calc(50% - 7px); }
  .role-card .icon { width: 78px; height: 78px; }

  .split-banner,
  .split-banner.mentoring-videos--three,
  .split-banner.mentoring-videos--four { grid-template-columns: 1fr; height: auto; }
  .split-banner > a { padding: 22px 0; }
  .split-banner .thumb { height: auto; width: min(280px, 78%); }

  .partners-grid { gap: 18px; }
  .partners-grid .partner { flex: 0 0 calc((100% - 18px) / 2); }

  /* Steps carousel: 3 visible on mobile */
  .steps-carousel {
    grid-template-columns: 32px auto 32px;
    max-width: calc(3 * var(--step-card-w) + 2 * 12px + 2 * 32px + 2 * 8px);
    gap: 8px;
  }
  .steps-track {
    width: calc(3 * var(--step-card-w) + 2 * 12px);
    gap: 12px;
  }

  /* Mentoring carousel: 2 tiles visible */
  .mentoring-carousel {
    max-width: calc(2 * var(--mentoring-tile-w) + 1 * 16px + 2 * 36px + 2 * 8px);
    grid-template-columns: 36px auto 36px;
    gap: 8px;
  }
  .mentoring-track {
    width: calc(2 * var(--mentoring-tile-w) + 1 * 16px);
  }

  .tips-track > * { flex: 0 0 calc(100% - 40px); }

  .downloads-row { grid-template-columns: 1fr; gap: 18px; }
  .download-tile .badge { width: 54px; height: 54px; }

  /* Meeting hero stacks & tightens */
  .meeting-hero-inner { grid-template-columns: 1fr; }
  .meeting-hero-media { min-height: 200px; max-height: 260px; }
  .meeting-hero-body { padding: 28px 20px; }

  .icon-block { grid-template-columns: 44px 1fr; gap: 12px; margin-bottom: 24px; }
  .icon-badge { width: 44px; height: 44px; }
  .icon-badge svg { width: 22px; height: 22px; }

  .download-bars { max-width: 100%; }
  .download-bar { padding: 12px 18px; }

  .tips-track-vertical > * { flex: 0 0 62%; }
  .tips-carousel-vertical {
    grid-template-columns: 32px auto 32px;
    max-width: calc(2 * 62vw + 16px + 2 * 32px + 2 * 8px);
    gap: 8px;
  }
  .tips-track-vertical { width: 100%; }

  /* Updates: keep icons but stack padding tighter */
  .update-item { grid-template-columns: 28px 1fr; gap: 10px; }

  .site-footer { padding: 24px 18px 20px; }

  /* Menu overlay: full width on phones */
  .menu-overlay .panel { width: 100vw; max-width: none; padding: 18px 20px; }
  .menu-overlay a.menu-item { padding: 14px 4px; }   /* better touch target */

  /* Chatbot: keep the ladybug the same size, but shrink the search pill */
  .chatbot .cta-input { width: 170px; }

  .search-dropdown { width: min(300px, 88vw); }

  /* Speech bubble stays *inside* the chatbot's own box on mobile so it
     can never overflow into whatever section is above (participants row,
     page hero, etc.). We reserve the extra space with padding-top and
     drop the negative-Y translate. */
  .chatbot { padding-top: 54px; }
  .chatbot .chatbot-hello {
    top: 0;
    left: 50%;
    transform: translateX(-85%);
    width: clamp(72px, 22vw, 96px);
  }

  .hero-cta, .role-pill-cta {
    padding: 11px 22px;
  }
}

/* --- ≤ 420 px : small phones --------------------------------------------- */
@media (max-width: 420px) {
  :root { --step-card-w: 108px; }

  .site-header .inner { padding: 10px 14px; }
  .section { padding-top: 26px; padding-bottom: 26px; }

  /* Even tighter chatbot on tiny phones */
  .chatbot { padding-top: 48px; }
  .chatbot .chatbot-hello { width: 66px; }

  .hero-title-card .logo-720 { width: clamp(150px, 62vw, 220px); }

  .roles { gap: 10px; }
  .roles .role-card { flex: 0 0 calc(50% - 5px); }
  .role-card .icon { width: 68px; height: 68px; }

  /* Steps: 2.5 visible → user can scroll */
  .steps-carousel {
    max-width: calc(2 * var(--step-card-w) + 1 * 10px + 2 * 28px + 2 * 6px);
    grid-template-columns: 28px auto 28px;
  }
  .steps-track { width: calc(2 * var(--step-card-w) + 10px); gap: 10px; }

  /* Mentoring carousel: 1 tile visible */
  .mentoring-carousel {
    max-width: calc(var(--mentoring-tile-w) + 2 * 28px + 2 * 6px);
    grid-template-columns: 28px auto 28px;
    gap: 6px;
  }
  .mentoring-track { width: var(--mentoring-tile-w); }

  .partners-grid .partner { height: 60px; }

  .download-bar { padding: 10px 16px; gap: 6px; }
  .download-bar .download-bar-icon { width: 18px; height: 18px; }
}

/* ---------- Systems page: tabs + panels ---------- */
/* The floating chatbot hangs ~120px below the hero (translateY(50%)); push
   the tabs down far enough that the chatbot doesn't cover the first tab. */
.systems-section { padding-top: 140px; }

.systems-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.systems-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  min-height: 92px;
}
.systems-tab:hover {
  border-color: var(--coral-soft);
  box-shadow: var(--shadow-sm);
}
.systems-tab.is-active {
  border-color: var(--coral);
  background: var(--peach-bg);
  box-shadow: 0 4px 12px rgba(var(--coral-rgb), 0.18);
}
.systems-tab img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
}
.systems-tab-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  line-height: 1.1;
}

.systems-panel {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 8px;
}
.systems-panel[hidden] { display: none; }
.systems-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.systems-panel-title {
  color: var(--navy);
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin: 0;
  flex: 1;
  text-align: center;
}
.systems-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--coral);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-md);
  box-shadow: 0 4px 12px rgba(var(--coral-rgb), 0.3);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.systems-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--coral-rgb), 0.4);
}

/* Panel body: materials row on the start (right in RTL), divider, side on end. */
.systems-panel-body {
  display: flex;
  align-items: stretch;
  gap: 20px;
}
.systems-materials {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}
.systems-materials .material-card {
  flex: 1 1 180px;
  min-width: 170px;
  max-width: 260px;
}
/* Vertical divider between materials and the "inside the system" sidebar. */
.systems-panel-body .systems-side {
  flex: 0 0 220px;
  border-inline-start: 1px solid rgba(var(--navy-rgb), 0.15);
  padding-inline-start: 20px;
}

.material-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-height: 70px;
}
.material-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--coral-soft);
}
.material-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
}
.material-icon svg {
  width: 100%;
  height: 100%;
}
.material-icon--play {
  background: var(--coral);
  color: var(--white);
  border-radius: 50%;
  padding: 8px;
}
.material-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.material-title {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--navy);
  line-height: 1.2;
}
.material-meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.material-download {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.systems-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-inline-start: 4px;
  align-self: center;
}
.systems-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: var(--fs-md);
}
.systems-side-head svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.systems-side-text {
  margin: 0;
  color: var(--text-subtitle);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* Internal-only providers: no cards, just the centered "inside the system" note. */
.systems-panel--internal-only .systems-panel-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.systems-panel--internal-only .systems-panel-title { flex: none; }
.systems-panel--internal-only .systems-internal-only {
  text-align: center;
  color: var(--text-subtitle);
  font-size: var(--fs-md);
  margin: 12px 0 4px;
}
/* Centered help-center button row under provider title. */
.systems-help-btn-row,
.partners-cta-row {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
}
/* Sidebar text (YuviSpark / Smart Edwin) centered. */
.systems-panel .systems-side { align-items: center; }
.systems-panel .systems-side-head { justify-content: center; text-align: center; }
.systems-panel .systems-side-text { text-align: center; }

/* --- Responsive tweaks for systems page --- */
@media (max-width: 1000px) {
  /* Chatbot is already pushed into the hero at this breakpoint via its own
     responsive rule, so the tabs don't need the big top offset anymore. */
  .systems-section { padding-top: 40px; }
  .systems-tabs { grid-template-columns: repeat(4, 1fr); }
  .systems-panel-body { flex-direction: column; }
  .systems-panel-body .systems-side {
    flex: 1 1 auto;
    border-inline-start: 0;
    border-top: 1px solid rgba(var(--navy-rgb), 0.15);
    padding-top: 16px;
    padding-inline-start: 0;
  }
}
@media (max-width: 640px) {
  .systems-tabs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .systems-tab { min-height: 80px; padding: 10px 6px; }
  .systems-tab img { max-height: 28px; }
  .systems-tab-label { font-size: var(--fs-xs); }
  .systems-panel { padding: 20px 16px; }
  .systems-panel-head { flex-direction: column; align-items: stretch; }
  .systems-panel-title { text-align: center; }
  .systems-login-btn { align-self: center; }
  .systems-materials { grid-template-columns: 1fr; }
}

/* --- Old wide-viewport tweaks kept for reference -------------------------- */
@media (min-width: 1400px) {
  .hero-banner { min-height: 460px; }
}
