/*
  האקדמיה — design system
  Rebrand in one place:
    colors, type, radii  → the variables below
    business name, phones, email, Apps Script → BRAND in app.py
  Legacy pages still load style.css. New pages use this file only.
  Legacy pages also include partials/header.html, so header rules must not rely on .ac-page.
*/

:root {
  --color-cyan: #00bbf0;
  --color-cyan-deep: #007fa4;
  --color-cyan-soft: rgba(0, 187, 240, 0.1);
  --color-navy: #00204a;
  --color-navy-deep: #00152f;
  --color-purple: #231a6f;
  --color-ink: #142033;
  --color-muted: #5c6d7e;
  --color-line: #e5ebf2;
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-wa: #1f8f4e;
  --color-wa-deep: #187a42;
  --font: "Heebo", "Roboto", Arial, sans-serif;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 32, 74, 0.05), 0 2px 8px rgba(0, 32, 74, 0.04);
  --shadow: 0 1px 2px rgba(0, 32, 74, 0.04), 0 12px 32px -12px rgba(0, 32, 74, 0.16);
  --shadow-lg: 0 2px 4px rgba(0, 32, 74, 0.04), 0 28px 64px -24px rgba(0, 32, 74, 0.28);
  --header-h: 72px;
  --max: 1120px;
  --space: 112px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.ac-page {
  margin: 0;
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-surface);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

.ac-page *,
.ac-page *::before,
.ac-page *::after {
  box-sizing: border-box;
}

.ac-page img { max-width: 100%; display: block; }
/* Zero specificity so component link colors (buttons, cards) always win. */
:where(.ac-page) a { color: inherit; }
.ac-page h1,
.ac-page h2,
.ac-page h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 16px; color: var(--color-navy); }
.ac-page h3 { font-weight: 700; letter-spacing: -0.02em; }
.ac-page p { margin: 0 0 12px; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

/* Keyboard-only skip link: fully off-screen until it receives focus. */
.ac-skip {
  position: absolute;
  inset-inline-start: 12px;
  top: 8px;
  transform: translateY(-200%);
  background: var(--color-navy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
  z-index: 80;
  text-decoration: none;
}
.ac-skip:focus { transform: none; color: #fff; }

.ac-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.ac-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  font-family: var(--font);
  direction: rtl;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ac-header.is-scrolled {
  border-bottom-color: var(--color-line);
  box-shadow: 0 6px 24px -18px rgba(0, 32, 74, 0.35);
}

.ac-header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.ac-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.ac-brand:hover { color: var(--color-navy); text-decoration: none; }

.ac-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 3px, transparent 3.5px),
    linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 4px 12px -4px rgba(0, 127, 164, 0.6);
}

.ac-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: auto;
}

.ac-nav a {
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.ac-nav a:hover,
.ac-nav a[aria-current="page"] {
  background: var(--color-cyan-soft);
  color: var(--color-cyan-deep);
  text-decoration: none;
}

.ac-nav-sep {
  width: 1px;
  height: 22px;
  background: var(--color-line);
  margin-inline: 10px;
}

.ac-nav .ac-nav-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-navy);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.ac-nav .ac-nav-wa:hover,
.ac-nav .ac-nav-wa[aria-expanded="true"] { background: var(--color-cyan-soft); color: var(--color-cyan-deep); }
.ac-chat-icon { width: 18px; height: 18px; display: block; flex: 0 0 auto; }
.ac-nav .ac-nav-wa .ac-chat-icon { color: var(--color-cyan-deep); }

.ac-nav-cta,
.ac-nav .ac-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  margin-inline-start: 6px;
  border-radius: 999px;
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 6px 16px -8px rgba(0, 32, 74, 0.7);
  transition: background 0.15s ease, transform 0.15s ease;
}
.ac-nav-cta:hover,
.ac-nav .ac-nav-cta:hover { background: #003366; color: #fff; transform: translateY(-1px); text-decoration: none; }

.ac-header-cta-mobile { display: none; }

.ac-wa-icon { width: 18px; height: 18px; display: block; flex: 0 0 auto; }

.ac-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.ac-burger span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.ac-hero {
  position: relative;
  overflow: hidden;
  color: var(--color-navy);
  background:
    radial-gradient(60rem 28rem at 85% -10%, rgba(0, 187, 240, 0.16), transparent 60%),
    radial-gradient(40rem 24rem at 0% 10%, rgba(35, 26, 111, 0.08), transparent 60%),
    linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
  padding: 88px 0 72px;
  isolation: isolate;
}
.ac-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(0, 32, 74, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

.ac-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.ac-hero-art {
  justify-self: center;
  width: min(440px, 100%);
}
.ac-hero-art svg { width: 100%; height: auto; display: block; }

.ac-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-navy);
  border: 1px solid var(--color-line);
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.ac-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 0 4px rgba(0, 187, 240, 0.18);
}

.ac-hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 14em;
}

.ac-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--color-cyan-deep), var(--color-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ac-lead {
  font-size: 1.22rem;
  max-width: 36rem;
  color: var(--color-muted);
  margin: 8px 0 32px;
}

.ac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.ac-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.ac-stats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}
.ac-stats svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--color-cyan-soft);
  flex: 0 0 auto;
  color: var(--color-cyan-deep);
}

/* Hero product window: a calm look at the AI challenge students play. */
.ac-window {
  position: relative;
  width: 100%;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ac-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
  background: #fafbfd;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.ac-window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
}
.ac-window-bar b { margin-inline-start: auto; font-weight: 600; }
.ac-chat {
  display: grid;
  gap: 10px;
  padding: 20px 18px 8px;
}
.ac-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 !important;
}
.ac-msg-user {
  justify-self: start;
  background: var(--color-navy);
  color: #fff;
  border-start-start-radius: 4px;
}
.ac-msg-bot {
  justify-self: end;
  background: var(--color-bg);
  color: var(--color-navy);
  border: 1px solid var(--color-line);
  border-start-end-radius: 4px;
}
.ac-msg-bot small {
  display: block;
  color: var(--color-cyan-deep);
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 2px;
}
.ac-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.ac-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-muted);
  opacity: 0.4;
  animation: ac-typing 1.2s infinite ease-in-out;
}
.ac-typing span:nth-child(2) { animation-delay: 0.15s; }
.ac-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ac-typing {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 0.9; transform: translateY(-3px); }
}
.ac-window-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 18px 18px;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  color: #98a4b1;
  font-size: 0.9rem;
}
.ac-window-foot span:last-child {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--color-cyan);
  display: grid;
  place-items: center;
}
.ac-window-foot svg { width: 16px; height: 16px; color: var(--color-navy); }
.ac-float-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.ac-float-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan);
}
.ac-float-tag.is-a { top: 54px; inset-inline-end: -26px; }
.ac-float-tag.is-b { bottom: 88px; inset-inline-start: -30px; }
.ac-float-tag.is-b::before { background: var(--color-wa); }
.ac-hero-stage { position: relative; width: min(440px, 100%); justify-self: center; }

/* ---------- Sections ---------- */

.ac-section { padding: var(--space) 0; }
.ac-section-muted { background: var(--color-bg); }
.ac-section-tight { padding: 48px 0; }
.ac-section-line { border-top: 1px solid var(--color-line); }

.ac-section-head {
  max-width: 42rem;
  margin: 0 auto 48px;
  text-align: center;
}

.ac-eyebrow {
  display: inline-block;
  color: var(--color-cyan-deep);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px !important;
}

.ac-section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.ac-section-head p { color: var(--color-muted); margin: 0; font-size: 1.08rem; }

.ac-grid-3,
.ac-grid-2 {
  display: grid;
  gap: 20px;
}
.ac-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ac-grid-2 { grid-template-columns: 1fr 1fr; }

/* ---------- Cards ---------- */

.ac-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}
.ac-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d4e3ef;
}

.ac-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.ac-card p,
.ac-card li { color: var(--color-muted); }
.ac-card ul { margin: 0; padding-inline-start: 1.1rem; }
.ac-card > .ac-card-link,
.ac-card > .ac-actions { margin-top: auto; padding-top: 18px; }

.ac-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.ac-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--color-cyan-soft);
  color: var(--color-cyan-deep);
  font-weight: 800;
  flex: 0 0 auto;
}
.ac-icon svg { width: 24px; height: 24px; }
.ac-icon-purple { background: rgba(35, 26, 111, 0.08); color: var(--color-purple); }

.ac-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  color: var(--color-navy);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.ac-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 4px 0 18px;
  padding: 14px 0;
  border-top: 1px dashed var(--color-line);
  border-bottom: 1px dashed var(--color-line);
  font-size: 0.95rem;
}
.ac-meta dt { color: var(--color-muted); font-weight: 500; }
.ac-meta dd { margin: 0; color: var(--color-navy); font-weight: 700; }

.ac-checks {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
  display: grid;
  gap: 10px;
}
.ac-checks li {
  position: relative;
  padding-inline-start: 30px;
  color: var(--color-ink);
}
.ac-checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007fa4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.ac-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-cyan-deep);
  font-weight: 700;
  text-decoration: none;
}
.ac-card-link::after {
  content: "←";
  transition: transform 0.2s var(--ease);
}
.ac-card-link:hover { color: var(--color-navy); }
.ac-card-link:hover::after { transform: translateX(-4px); }

/* ---------- Buttons ---------- */

.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ac-btn:hover { transform: translateY(-1px); text-decoration: none; }
.ac-btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.ac-btn-primary,
.ac-btn-navy {
  background: var(--color-navy);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(0, 32, 74, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.ac-btn-primary:hover,
.ac-btn-navy:hover { background: #003366; color: #fff; }
.ac-btn-primary::after { content: "←"; transition: transform 0.2s var(--ease); }
.ac-btn-primary:hover::after { transform: translateX(-3px); }
.ac-btn-navy { width: 100%; }
.ac-btn-wa { background: var(--color-wa); color: #fff; }
.ac-btn-wa:hover { background: var(--color-wa-deep); color: #fff; }
.ac-btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-navy);
  border-color: var(--color-line);
  box-shadow: var(--shadow-sm);
}
.ac-btn-ghost:hover { border-color: #c4d3e1; color: var(--color-navy); }

.ac-note {
  background: #f3f8fc;
  border-inline-start: 4px solid var(--color-cyan);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--color-muted);
  margin-bottom: 22px;
}

.ac-choice {
  margin: 28px auto 0;
  text-align: center;
  color: var(--color-navy);
  font-weight: 600;
}

/* ---------- Steps ---------- */

.ac-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.ac-steps li {
  position: relative;
  counter-increment: step;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}
.ac-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  font-weight: 800;
}
.ac-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  inset-inline-end: -21px;
  width: 22px;
  border-top: 2px dashed #c9d7e4;
}
.ac-steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.ac-steps p { color: var(--color-muted); margin: 0; }

/* ---------- Quote ---------- */

.ac-quote {
  margin: 20px 0 0;
  background: linear-gradient(130deg, rgba(0, 187, 240, 0.08), rgba(35, 26, 111, 0.06));
  border-inline-start: 4px solid var(--color-cyan);
  border-radius: 14px;
  padding: 18px 20px;
}
.ac-quote p { color: var(--color-navy) !important; font-weight: 500; margin: 0; }
.ac-quote cite {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
  font-style: normal;
}

/* ---------- FAQ ---------- */

.ac-faq-list { display: grid; gap: 10px; }
.ac-faq details {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ac-faq details[open] { border-color: #cfe0ec; box-shadow: var(--shadow-sm); }
.ac-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-navy);
  list-style: none;
}
.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-cyan-deep);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}
.ac-faq details[open] summary::after { transform: rotate(45deg); background: var(--color-cyan-soft); }
.ac-faq details p { color: var(--color-muted); margin: 0; padding: 0 22px 20px; }
.ac-faq-more { text-align: center; margin-top: 24px; }

/* ---------- Contact / CTA ---------- */

.ac-cta {
  position: relative;
  background:
    radial-gradient(50rem 26rem at 100% 0%, rgba(0, 187, 240, 0.12), transparent 60%),
    var(--color-bg);
  color: var(--color-navy);
}
.ac-cta .ac-grid-2 { gap: 56px; align-items: start; }
.ac-cta h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.ac-cta p { color: var(--color-muted); font-size: 1.08rem; }
.ac-cta ul:not(.ac-checks) { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.ac-cta .ac-checks { margin: 24px 0 28px; }
.ac-cta li { color: var(--color-ink); }

.ac-form {
  background: var(--color-surface);
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.ac-form h3 { font-size: 1.4rem; margin-bottom: 4px; }
.ac-form > .ac-hint { margin-bottom: 20px; }
.ac-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ac-field { margin-bottom: 14px; }
.ac-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}
.ac-field input,
.ac-field select,
.ac-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d7e1eb;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-ink);
  background: #fbfcfe;
  direction: rtl;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ac-field textarea { resize: vertical; min-height: 96px; }
.ac-field input:hover,
.ac-field select:hover,
.ac-field textarea:hover { border-color: #c2d1df; }
.ac-field input:focus,
.ac-field select:focus,
.ac-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-cyan-deep);
  box-shadow: 0 0 0 4px rgba(0, 187, 240, 0.18);
}
.ac-field input[type="tel"],
.ac-field input[type="email"] { direction: ltr; text-align: right; }
.ac-form-note { color: var(--color-muted); font-size: 0.85rem; text-align: center; margin: 12px 0 0; }
.ac-hint { color: var(--color-muted); font-size: 0.92rem; font-weight: 400; }

/* ---------- Footer ---------- */

.ac-footer {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
  font-family: var(--font);
  direction: rtl;
  text-align: right;
}
.ac-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.ac-footer a:hover { color: var(--color-cyan); }
.ac-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ac-footer .ac-brand { color: #fff; margin-bottom: 14px; }
.ac-footer-about { max-width: 22rem; margin: 0; }
.ac-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.ac-footer-links {
  display: grid;
  gap: 10px;
}
.ac-footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.ac-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  font-size: 0.9rem;
  margin: 0;
}

.ac-float {
  position: fixed;
  /* Physical right, opposite the Enable widget that anchors to the bottom-left. */
  right: 20px;
  left: auto;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  direction: rtl;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(0, 32, 74, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.2s var(--ease), background 0.2s ease;
}
.ac-float .ac-chat-icon { width: 22px; height: 22px; color: var(--color-cyan); --ac-chat-dots: var(--color-navy); }
.ac-float:hover,
.ac-float[aria-expanded="true"] { background: #003366; transform: translateY(-2px); }

/* ---------- Contact menu ---------- */

.ac-contact-menu {
  position: fixed;
  /* Physical right, stacked above the floating button. */
  right: 20px;
  bottom: 84px;
  z-index: 60;
  width: min(340px, calc(100vw - 32px));
  padding: 18px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 32, 74, 0.02);
  font-family: var(--font);
  direction: rtl;
  text-align: right;
  color: var(--color-ink);
  animation: ac-menu-in 0.22s var(--ease);
}
.ac-contact-menu[hidden] { display: none; }
@keyframes ac-menu-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.ac-contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ac-contact-title { margin: 0; color: var(--color-navy); font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.ac-contact-sub { margin: 2px 0 0; color: var(--color-muted); font-size: 0.9rem; line-height: 1.4; }
.ac-contact-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.ac-contact-close:hover { background: var(--color-line); color: var(--color-navy); }
.ac-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ac-contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  color: var(--color-navy);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ac-contact-list a:hover,
.ac-contact-list a:focus-visible { border-color: #cfe0ec; background: #fafcfe; color: var(--color-navy); text-decoration: none; }
.ac-contact-list b { display: block; font-weight: 700; line-height: 1.3; }
.ac-contact-list small { display: block; color: var(--color-muted); font-size: 0.85rem; line-height: 1.3; }
.ac-contact-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.ac-contact-ico svg { width: 20px; height: 20px; }
.ac-contact-ico.is-wa { background: rgba(31, 143, 78, 0.1); color: var(--color-wa); }
.ac-contact-ico.is-call { background: rgba(0, 32, 74, 0.07); color: var(--color-navy); }
.ac-contact-ico.is-form { background: var(--color-cyan-soft); color: var(--color-cyan-deep); }

.ac-wa-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.ac-wa-row .ac-chat-icon { color: var(--color-cyan-deep); }

/* ---------- Clients ---------- */

.ac-clients { padding: 8px 0 12px; }
.ac-clients-title {
  text-align: center;
  color: var(--color-muted) !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  margin-bottom: 22px !important;
}
.ac-marquee {
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ac-marquee-track {
  display: flex;
  width: max-content;
  animation: ac-marquee 42s linear infinite;
}
.ac-marquee:hover .ac-marquee-track,
.ac-marquee:focus-within .ac-marquee-track {
  animation-play-state: paused;
}
.ac-marquee-set {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 6px 6px;
  list-style: none;
}
.ac-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 200px;
  height: 118px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--color-line);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  direction: rtl;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ac-wordmark img {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.ac-wordmark small {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}
.ac-wordmark:hover {
  border-color: #cfe0ec;
  box-shadow: var(--shadow-sm);
}
@keyframes ac-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .ac-wordmark { width: 160px; height: 104px; font-size: 0.92rem; padding: 10px 12px; }
  .ac-wordmark img { height: 54px; }
  .ac-marquee-track { animation-duration: 32s; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-marquee { -webkit-mask-image: none; mask-image: none; }
  .ac-marquee-track { animation: none; width: auto; justify-content: center; }
  .ac-marquee-set { flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .ac-marquee-set[aria-hidden="true"] { display: none; }
}

/* ---------- Programs ---------- */

.ac-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ac-path {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s ease;
}
.ac-path:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0ec; text-decoration: none; }
.ac-path h3 { margin-bottom: 4px; font-size: 1.3rem; }
.ac-path h3::after { content: " ←"; color: var(--color-cyan-deep); }
.ac-path p { color: var(--color-muted); margin: 0; }
.ac-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  margin-bottom: 28px;
}
.ac-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ac-chip {
  flex: 0 0 auto;
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-navy);
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ac-chip.is-on {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}
.ac-program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ac-program[hidden] { display: none; }
.ac-program {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ac-program:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ac-program-meta { display: flex; flex-wrap: wrap; gap: 8px; min-height: 28px; }
.ac-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  color: var(--color-navy);
  font-size: 0.84rem;
  font-weight: 600;
}
.ac-pill-topic { color: var(--color-cyan-deep); background: var(--color-cyan-soft); border-color: transparent; }
.ac-program h3 { font-size: 1.3rem; margin: 6px 0 0; }
.ac-program p { color: var(--color-muted); margin: 0; }
.ac-program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}
/* Full-width strip after the catalog cards; the link sits on the opposite side. */
.ac-program-custom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 32px;
  background: linear-gradient(160deg, rgba(0, 187, 240, 0.07), rgba(35, 26, 111, 0.05)), #fff;
  border: 1.5px dashed #b9d3e6;
}
.ac-program-custom > * { grid-column: 1; }
.ac-program-custom .ac-program-actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  margin: 0;
  padding: 0;
  border: 0;
}
@media (max-width: 640px) {
  .ac-program-custom { grid-template-columns: 1fr; }
  .ac-program-custom .ac-program-actions { grid-column: 1; grid-row: auto; padding-top: 8px; }
}

/* "Something else?" strip under the two home tracks. */
.ac-custom {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 22px 28px;
  background: #fff;
  border: 1.5px dashed #b9d3e6;
  border-radius: var(--radius-lg);
}
.ac-custom > div { flex: 1; }
.ac-custom h3 { font-size: 1.2rem; margin: 0 0 4px; }
.ac-custom h3 span { color: var(--color-cyan-deep); }
.ac-custom p { color: var(--color-muted); margin: 0; }
.ac-custom .ac-btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .ac-custom { flex-direction: column; align-items: stretch; text-align: right; padding: 22px 20px; }
  .ac-custom .ac-icon { display: none; }
}

.ac-catalog-empty { display: none; color: var(--color-muted); }
.ac-catalog-empty.is-visible { display: block; }

.ac-page :focus-visible {
  outline: 3px solid var(--color-cyan);
  outline-offset: 2px;
}

.ac-course details { margin-top: 8px; }
.ac-course summary { cursor: pointer; color: var(--color-cyan-deep); font-weight: 800; }

/* ---------- Syllabus ---------- */

.ac-title-en {
  margin: -6px 0 6px !important;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.ac-trust {
  margin: 22px 0 0 !important;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.ac-trust::before { content: "★ "; color: var(--color-cyan-deep); }

.ac-units { display: grid; gap: 16px; counter-reset: lesson; }
.ac-unit {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.ac-unit-head h3 { font-size: 1.3rem; margin: 0; }
.ac-lessons {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ac-lessons li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 10px 0 10px;
  padding-inline-start: 34px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
}
.ac-lessons li:last-child { border-bottom: 0; }
.ac-lessons li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan);
}
.ac-units.is-numbered .ac-lessons li { counter-increment: lesson; }
.ac-units.is-numbered .ac-lessons li::before {
  content: counter(lesson);
  inset-inline-start: 0;
  top: 11px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--color-cyan-soft);
  color: var(--color-cyan-deep);
  font-size: 0.8rem;
  font-weight: 800;
}
.ac-lessons b { color: var(--color-navy); font-weight: 700; }
.ac-lessons b + span { color: var(--color-muted); font-size: 0.95rem; }
.ac-note-wide { margin: 24px 0 0; }

.ac-prose { max-width: 720px; }
.ac-prose p { font-size: 1.12rem; color: var(--color-ink); }

/* ---------- Reveal on scroll (only when JS has marked the page) ---------- */

.ac-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.ac-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .ac-hero-grid,
  .ac-grid-3,
  .ac-paths,
  .ac-program-grid { grid-template-columns: 1fr 1fr; }
  .ac-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .ac-grid-2,
  .ac-cta .ac-grid-2 { grid-template-columns: 1fr; gap: 20px; }
  .ac-cta .ac-grid-2 { gap: 36px; }
  .ac-steps { grid-template-columns: 1fr; }
  .ac-unit { grid-template-columns: 1fr; gap: 12px; }
  .ac-steps li::after { display: none; }
  .ac-filters { flex-direction: column; align-items: stretch; }
  .ac-footer-grid { grid-template-columns: 1fr 1fr; }
  .ac-footer-grid > :first-child { grid-column: 1 / -1; }
  :root { --space: 72px; }
  .ac-burger { display: flex; }
  .ac-header-cta-mobile { display: inline-flex; margin-inline-start: auto; padding: 8px 14px; font-size: 0.92rem; }
  .ac-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 18px 30px -20px rgba(0, 32, 74, 0.35);
    margin: 0;
  }
  .ac-nav.is-open { display: flex; }
  .ac-nav a { padding: 12px 14px; }
  .ac-nav-sep { display: none; }
  .ac-nav .ac-nav-wa,
  .ac-nav .ac-nav-cta { justify-content: center; margin: 8px 0 0; padding: 12px; }
  .ac-nav .ac-nav-wa { border: 1px solid var(--color-line); }
  .ac-float { right: 16px; left: auto; bottom: 16px; }
  .ac-contact-menu { right: 16px; bottom: 80px; }
  .ac-float-tag.is-a { inset-inline-end: -8px; }
  .ac-float-tag.is-b { inset-inline-start: -8px; }
}

@media (max-width: 640px) {
  .ac-hero { padding: 48px 0 56px; }
  .ac-grid-3,
  .ac-paths,
  .ac-program-grid,
  .ac-form-row,
  .ac-footer-grid { grid-template-columns: 1fr; }
  .ac-wrap { width: min(var(--max), calc(100% - 32px)); }
  .ac-hero h1 { max-width: none; }
  .ac-card,
  .ac-form,
  .ac-program,
  .ac-path,
  .ac-unit,
  .ac-steps li { padding: 24px 20px; }
  .ac-section-head { margin-bottom: 32px; }
  .ac-actions .ac-btn { flex: 1 1 100%; }
  .ac-float-tag { display: none; }
  .ac-footer-bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ac-btn,
  .ac-card,
  .ac-path,
  .ac-program { transition: none; }
  .ac-btn:hover,
  .ac-card:hover,
  .ac-path:hover,
  .ac-program:hover { transform: none; }
  .ac-typing span { animation: none; }
  .ac-contact-menu { animation: none; }
  .ac-js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
