/* Velocity Talent — CMS pages (about-us, terms-of-use, etc.)
   Dark-first + light-mode support
   ================================================================ */

/* ── Page wrapper ─────────────────────────────────────────────── */
.vt-cms {
  min-height: 100vh;
  background: var(--vt-bg, #0b1326);
  color: var(--vt-text, #dae2fd);
  font-family: 'Inter', 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
}

/* ── Hero banner ──────────────────────────────────────────────── */
.vt-cms__hero {
  position: relative;
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(2rem, 4vw, 4rem);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(77, 142, 255, 0.10) 0%, transparent 100%),
    linear-gradient(180deg, rgba(23, 31, 51, 0.6) 0%, transparent 60%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vt-cms__hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.vt-cms__title {
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 1rem + 3vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--vt-text, #dae2fd);
  margin: 0;
}

/* subtle accent line under title */
.vt-cms__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4d8eff, #4cd7f6);
  margin: 16px auto 0;
}

/* ── Content body ─────────────────────────────────────────────── */
.vt-cms__body {
  padding: clamp(2rem, 4vw, 4rem) 0 clamp(3rem, 6vw, 6rem);
}

.vt-cms__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glass card for the article */
.vt-cms__article {
  background: rgba(23, 31, 51, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Typography inside CMS content ────────────────────────────── */
.vt-cms__article h1,
.vt-cms__article h2,
.vt-cms__article h3,
.vt-cms__article h4,
.vt-cms__article h5,
.vt-cms__article h6 {
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  color: var(--vt-text, #dae2fd);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2em 0 0.6em;
  line-height: 1.3;
}
.vt-cms__article h1:first-child,
.vt-cms__article h2:first-child,
.vt-cms__article h3:first-child {
  margin-top: 0;
}

.vt-cms__article h1 { font-size: 1.75rem; }
.vt-cms__article h2 { font-size: 1.4rem; }
.vt-cms__article h3 { font-size: 1.15rem; }
.vt-cms__article h4 { font-size: 1.05rem; }

.vt-cms__article p {
  color: var(--vt-muted, #c2c6d6);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 1.1em;
}

.vt-cms__article a {
  color: #4cd7f6;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 200ms ease;
}
.vt-cms__article a:hover {
  color: #adc6ff;
}

.vt-cms__article ul,
.vt-cms__article ol {
  color: var(--vt-muted, #c2c6d6);
  padding-left: 1.5em;
  margin: 0 0 1.25em;
  font-size: 0.95rem;
  line-height: 1.75;
}
[dir="rtl"] .vt-cms__article ul,
[dir="rtl"] .vt-cms__article ol {
  padding-left: 0;
  padding-right: 1.5em;
}

.vt-cms__article li {
  margin-bottom: 0.4em;
}

.vt-cms__article ul li::marker {
  color: #4d8eff;
}

.vt-cms__article ol li::marker {
  color: #4cd7f6;
  font-weight: 600;
}

.vt-cms__article blockquote {
  border-left: 3px solid #4d8eff;
  margin: 1.5em 0;
  padding: 12px 20px;
  background: rgba(77, 142, 255, 0.06);
  border-radius: 0 8px 8px 0;
  color: var(--vt-muted, #c2c6d6);
  font-style: italic;
}
[dir="rtl"] .vt-cms__article blockquote {
  border-left: none;
  border-right: 3px solid #4d8eff;
  border-radius: 8px 0 0 8px;
}

.vt-cms__article hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2em 0;
}

.vt-cms__article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}
.vt-cms__article th,
.vt-cms__article td {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: start;
}
.vt-cms__article th {
  background: rgba(77, 142, 255, 0.08);
  color: var(--vt-text, #dae2fd);
  font-weight: 600;
}
.vt-cms__article td {
  color: var(--vt-muted, #c2c6d6);
}

.vt-cms__article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}

.vt-cms__article pre,
.vt-cms__article code {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  font-size: 0.85rem;
  color: #4cd7f6;
}
.vt-cms__article code {
  padding: 2px 6px;
}
.vt-cms__article pre {
  padding: 16px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.vt-cms__article pre code {
  padding: 0;
  background: transparent;
}

/* ── Strong / bold ────────────────────────────────────────────── */
.vt-cms__article strong,
.vt-cms__article b {
  color: var(--vt-text, #dae2fd);
  font-weight: 600;
}

/* ── CTA button ──────────────────────────────────────────────── */
/* Selectors are doubled (.vt-cms__cta-btn + a.vt-cms__cta-btn + .vt-cms__article a.vt-cms__cta-btn)
   to outrank the .vt-cms__article a rule above, which otherwise turns the CTA
   text cyan and underlined when the button sits inside an article. */
.vt-cms__cta-btn,
a.vt-cms__cta-btn,
.vt-cms__article a.vt-cms__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: #4d8eff;
  color: #fff;
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 200ms ease, transform 120ms ease;
}
.vt-cms__cta-btn:hover,
a.vt-cms__cta-btn:hover,
.vt-cms__article a.vt-cms__cta-btn:hover {
  background: #3a72e0;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .vt-cms__article {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .vt-cms__container {
    padding: 0 16px;
  }
}

/* ================================================================
   LIGHT MODE
   ================================================================ */
.vt-cms--light,
body.vt-light .vt-cms {
  --vt-bg: #f5f7fa;
  --vt-text: #1a1d26;
  --vt-muted: #4a4f5e;
  background: var(--vt-bg);
  color: var(--vt-text);
}

.vt-cms--light .vt-cms__hero,
body.vt-light .vt-cms .vt-cms__hero {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(77, 142, 255, 0.08) 0%, transparent 100%),
    linear-gradient(180deg, rgba(245, 247, 250, 0.8) 0%, transparent 60%);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.vt-cms--light .vt-cms__article,
body.vt-light .vt-cms .vt-cms__article {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.vt-cms--light .vt-cms__article a,
body.vt-light .vt-cms .vt-cms__article a {
  color: #2563eb;
}
.vt-cms--light .vt-cms__article a:hover,
body.vt-light .vt-cms .vt-cms__article a:hover {
  color: #1d4ed8;
}

.vt-cms--light .vt-cms__article blockquote,
body.vt-light .vt-cms .vt-cms__article blockquote {
  background: rgba(77, 142, 255, 0.04);
}

.vt-cms--light .vt-cms__article th,
body.vt-light .vt-cms .vt-cms__article th {
  background: rgba(77, 142, 255, 0.06);
}

.vt-cms--light .vt-cms__article th,
body.vt-light .vt-cms .vt-cms__article th,
.vt-cms--light .vt-cms__article td,
body.vt-light .vt-cms .vt-cms__article td {
  border-color: rgba(0, 0, 0, 0.08);
}

.vt-cms--light .vt-cms__article hr,
body.vt-light .vt-cms .vt-cms__article hr {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.vt-cms--light .vt-cms__article pre,
body.vt-light .vt-cms .vt-cms__article pre,
.vt-cms--light .vt-cms__article code,
body.vt-light .vt-cms .vt-cms__article code {
  background: rgba(0, 0, 0, 0.04);
  color: #2563eb;
}
.vt-cms--light .vt-cms__article pre code,
body.vt-light .vt-cms .vt-cms__article pre code {
  background: transparent;
}
