/* =========================================================================
   EduCtrl website design system v2 (Nov 2026)
   Source: "EduCtrl Home Page Redesign" canvas, StyleGuide artboard.
   Loaded after style.css / responsive.css. Component classes are prefixed
   `ec-` so they never collide with Bootstrap or the old theme.
   ========================================================================= */

:root {
  --ec-brand-50: #EFF4FC;
  --ec-brand-100: #D2DFF6;
  --ec-brand: #1F5FD1;
  --ec-brand-700: #17479D;
  --ec-navy: #0B1B3F;
  --ec-sky: #9CC0FF;
  --ec-navy-text: #B6C3DD;
  --ec-ink: #0F172A;
  --ec-slate-800: #1E293B;
  --ec-slate-700: #334155;
  --ec-slate-600: #475569;
  --ec-slate-500: #64748B;
  --ec-slate-300: #CBD5E1;
  --ec-border: #E2E8F0;
  --ec-surface: #F8FAFC;
  --ec-white: #FFFFFF;

  --ec-success: #15803D;
  --ec-success-bg: #DCFCE7;
  --ec-warning: #B45309;
  --ec-warning-text: #92400E;
  --ec-warning-bg: #FEF3C7;
  --ec-danger: #B91C1C;
  --ec-danger-bg: #FEE2E2;
  --ec-danger-soft: #FEF2F2;

  --ec-r-chip: 8px;
  --ec-r-btn: 12px;
  --ec-r-card: 20px;
  --ec-r-panel: 28px;
  --ec-r-pill: 999px;

  --ec-shadow-card: 0 24px 48px -24px rgba(11, 27, 63, 0.2);
  --ec-shadow-hero: 0 30px 60px -20px rgba(11, 27, 63, 0.25);
  --ec-shadow-pop: 0 16px 32px -12px rgba(11, 27, 63, 0.25);

  --ec-font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --ec-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ec-max: 1200px;
  --ec-gutter: 24px;
  --ec-section-y: 104px;
}

@media (max-width: 820px) {
  :root { --ec-section-y: 64px; --ec-gutter: 16px; }
}

/* ---------- Global base (applies to every page on the main layout) ---------- */
/* style.css sets overflow-x:hidden on html+body, which turns body into a scroll
   container and breaks the sticky header. `clip` hides overflow without that. */
html, body { overflow-x: clip !important; }
body {
  font-family: var(--ec-font-body);
  color: var(--ec-ink);
  background: var(--ec-white);
  font-size: 16px;
  line-height: 1.6;
}
p { font-family: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ec-font-head);
  color: var(--ec-navy);
  letter-spacing: -0.01em;
}
a { color: var(--ec-brand); }
a:hover { color: var(--ec-brand-700); }
:focus-visible { outline: 3px solid var(--ec-brand-100); outline-offset: 2px; }

/* Bootstrap colour mapping so older pages pick up the brand */
.btn-primary, .bg-primary { background-color: var(--ec-brand) !important; border-color: var(--ec-brand) !important; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--ec-brand-700) !important; border-color: var(--ec-brand-700) !important; }
.text-primary { color: var(--ec-brand) !important; }
.btn-outline-primary { color: var(--ec-brand); border-color: var(--ec-brand); }
.btn-outline-primary:hover { background: var(--ec-brand); border-color: var(--ec-brand); color: #fff; }
.btn-dark { background-color: var(--ec-brand); border-color: var(--ec-brand); color: #fff; border-radius: 10px; font-weight: 600; }
.btn-dark:hover, .btn-dark:focus { background-color: var(--ec-brand-700); border-color: var(--ec-brand-700); color: #fff; }

/* ---------- Layout ---------- */
.ec-page { font-family: var(--ec-font-body); color: var(--ec-ink); }
.ec-page *, .ec-page *::before, .ec-page *::after,
.ec-header *, .ec-footer * { box-sizing: border-box; }
.ec-page h1, .ec-page h2, .ec-page h3, .ec-page h4, .ec-page p { margin: 0; }
.ec-container { max-width: var(--ec-max); margin: 0 auto; padding-left: var(--ec-gutter); padding-right: var(--ec-gutter); }
section.ec-section, .ec-section { padding: var(--ec-section-y) 0; position: relative; }
.ec-section--soft { background: var(--ec-brand-50); }
.ec-section--surface { background: var(--ec-surface); border-top: 1px solid var(--ec-border); border-bottom: 1px solid var(--ec-border); }
.ec-section--navy { background: var(--ec-navy); color: #fff; }
.ec-stack { display: flex; flex-direction: column; }
.ec-split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.ec-split > * { flex: 1 1 400px; min-width: 0; }
.ec-grid { display: grid; gap: 24px; }
.ec-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ec-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ec-grid--6 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.ec-section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; display: flex; flex-direction: column; gap: 16px; }
.ec-section-head--left { margin-left: 0; text-align: left; }

/* ---------- Type ---------- */
.ec-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ec-brand); }
.ec-section--navy .ec-eyebrow { color: var(--ec-sky); }
.ec-h1 { font-family: var(--ec-font-head); font-size: clamp(38px, 5vw, 58px); line-height: 1.07; letter-spacing: -0.025em; font-weight: 800; color: var(--ec-navy); }
.ec-h2 { font-family: var(--ec-font-head); font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; color: var(--ec-navy); }
.ec-h2--sm { font-size: clamp(28px, 3.2vw, 38px); }
.ec-h3 { font-family: var(--ec-font-head); font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--ec-ink); }
.ec-h3--sm { font-size: 18px; }
.ec-section--navy .ec-h2, .ec-section--navy .ec-h3 { color: #fff; }
.ec-lead { font-size: 18px; line-height: 1.6; color: var(--ec-slate-600); }
.ec-lead--lg { font-size: 19px; max-width: 540px; }
.ec-body { font-size: 16px; line-height: 1.6; color: var(--ec-slate-600); }
.ec-small { font-size: 14px; line-height: 1.55; color: var(--ec-slate-600); }
.ec-section--navy .ec-lead, .ec-section--navy .ec-body { color: var(--ec-navy-text); }

/* ---------- Buttons ---------- */
.ec-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 26px; border-radius: var(--ec-r-btn);
  font-family: var(--ec-font-body); font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none !important; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.ec-btn--primary { background: var(--ec-brand); color: #fff !important; }
.ec-btn--primary:hover, .ec-btn--primary:focus { background: var(--ec-brand-700); color: #fff !important; }
.ec-btn--secondary { background: #fff; border-color: var(--ec-slate-300); color: var(--ec-ink) !important; }
.ec-btn--secondary:hover { border-color: var(--ec-brand); color: var(--ec-brand) !important; background: #fff; }
.ec-btn--on-dark { background: #fff; color: var(--ec-navy) !important; }
.ec-btn--md { height: 44px; padding: 0 20px; border-radius: 10px; font-size: 15px; }
.ec-btn--block { width: 100%; }
.ec-btn[disabled] { background: var(--ec-border); color: var(--ec-slate-500) !important; cursor: not-allowed; }
.ec-link { font-weight: 600; color: var(--ec-brand); text-decoration: none; }

/* ---------- Cards, badges, lists ---------- */
.ec-card { background: #fff; border: 1px solid var(--ec-border); border-radius: var(--ec-r-card); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.ec-card--sm { border-radius: 16px; padding: 24px; gap: 12px; }
.ec-card--md { border-radius: 16px; padding: 28px; gap: 12px; }
.ec-card--dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); border-radius: 18px; padding: 28px; gap: 12px; color: #fff; text-decoration: none !important; transition: background-color .15s ease; }
a.ec-card--dark:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ec-card--tinted { border-color: var(--ec-brand-100); border-radius: 18px; padding: 28px; gap: 12px; }
.ec-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ec-icon--sm { width: 44px; height: 44px; }
.ec-icon--danger { background: var(--ec-danger-soft); color: var(--ec-danger); }
.ec-icon--brand { background: var(--ec-brand-50); color: var(--ec-brand); }
.ec-icon--sky { background: rgba(156,192,255,0.16); color: var(--ec-sky); }
.ec-step { width: 32px; height: 32px; border-radius: var(--ec-r-pill); background: var(--ec-brand); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }

.ec-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--ec-r-pill); line-height: 1.5; white-space: nowrap; }
.ec-badge--neutral { color: var(--ec-slate-700); background: #F1F5F9; }
.ec-badge--brand { color: var(--ec-brand-700); background: var(--ec-brand-50); }
.ec-badge--success { color: var(--ec-success); background: var(--ec-success-bg); }
.ec-badge--warning { color: var(--ec-warning-text); background: var(--ec-warning-bg); }
.ec-badge--danger { color: var(--ec-danger); background: var(--ec-danger-bg); }
.ec-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ec-brand-100); color: var(--ec-brand); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: var(--ec-r-pill); }
.ec-dot { width: 8px; height: 8px; border-radius: var(--ec-r-pill); background: currentColor; flex: none; display: inline-block; }

.ec-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--ec-slate-700); }
.ec-checks li { display: flex; gap: 10px; align-items: flex-start; }
.ec-checks svg { flex: none; margin-top: 2px; color: var(--ec-success); }
.ec-ticks { display: flex; flex-wrap: wrap; gap: 20px; color: var(--ec-slate-700); font-size: 15px; font-weight: 500; }
.ec-ticks span { display: inline-flex; align-items: center; gap: 8px; }
.ec-ticks svg { color: var(--ec-success); }

/* ---------- Forms ---------- */
.ec-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ec-slate-700); margin: 0; }
.ec-input, .ec-field input, .ec-field select, .ec-field textarea {
  height: 46px; border: 1px solid var(--ec-slate-300); border-radius: 10px; padding: 0 14px;
  font-family: var(--ec-font-body); font-weight: 400; font-size: 15px; color: var(--ec-ink); background: #fff; width: 100%;
}
.ec-field textarea { height: auto; padding: 10px 14px; }
.ec-field input:focus, .ec-field select:focus, .ec-field textarea:focus { outline: none; border-color: var(--ec-brand); box-shadow: 0 0 0 4px var(--ec-brand-100); }

/* ---------- FAQ ---------- */
.ec-faq { border-top: 1px solid var(--ec-border); }
.ec-faq details { border-bottom: 1px solid var(--ec-border); padding: 22px 4px; }
.ec-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 18px; color: var(--ec-ink); cursor: pointer; list-style: none; }
.ec-faq summary::-webkit-details-marker { display: none; }
.ec-faq summary svg { flex: none; transition: transform .2s ease; }
.ec-faq details[open] summary svg { transform: rotate(180deg); }
.ec-faq details > div { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--ec-slate-600); }
.ec-faq details > div p + p, .ec-faq details > div p + ul { margin-top: 8px; }
.ec-faq details ul { margin: 8px 0 0; padding-left: 20px; }

/* ---------- Product mocks ---------- */
.ec-mock { background: #fff; border: 1px solid var(--ec-border); border-radius: var(--ec-r-card); box-shadow: var(--ec-shadow-card); overflow: hidden; }
.ec-mock--hero { box-shadow: var(--ec-shadow-hero); }
.ec-mock__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ec-border); }
.ec-mock__title { font-family: var(--ec-font-head); font-weight: 700; font-size: 16px; }
.ec-mock__search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--ec-border); border-radius: 8px; color: var(--ec-slate-500); font-size: 13px; width: 180px; }
.ec-mock__scroll { overflow-x: auto; }
.ec-kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px; background: var(--ec-surface); min-width: 560px; }
.ec-kanban__col { display: flex; flex-direction: column; gap: 10px; }
.ec-kanban__head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ec-slate-700); }
.ec-kanban__head b { margin-left: auto; color: var(--ec-slate-500); font-weight: 600; }
.ec-kanban__card { background: #fff; border: 1px solid var(--ec-border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.ec-kanban__card strong { font-size: 13px; font-weight: 600; }
.ec-kanban__card span { font-size: 12px; color: var(--ec-slate-500); }
.ec-kanban__card .ec-badge { font-size: 11px; padding: 2px 8px; align-self: flex-start; }
.ec-toast { position: absolute; left: -20px; bottom: -28px; background: #fff; border: 1px solid var(--ec-border); border-radius: 14px; box-shadow: var(--ec-shadow-pop); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.ec-toast__icon { width: 36px; height: 36px; border-radius: var(--ec-r-pill); background: var(--ec-success-bg); color: var(--ec-success); display: flex; align-items: center; justify-content: center; flex: none; }
.ec-toast strong { display: block; font-size: 14px; font-weight: 600; }
.ec-toast small { display: block; font-size: 12px; color: var(--ec-slate-500); }
@media (max-width: 640px) { .ec-toast { position: relative; left: auto; bottom: auto; margin-top: 12px; } }

.ec-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--ec-border); }
.ec-chip { font-size: 13px; font-weight: 500; color: var(--ec-slate-700); border: 1px solid var(--ec-border); border-radius: var(--ec-r-chip); padding: 6px 10px; }
.ec-chip--on { font-weight: 600; color: var(--ec-brand); background: var(--ec-brand-50); border-color: var(--ec-brand-100); }
.ec-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; margin: 0; }
.ec-table th { background: var(--ec-surface); color: var(--ec-slate-500); text-align: left; padding: 12px 20px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.ec-table td { padding: 14px 20px; border-top: 1px solid var(--ec-border); color: var(--ec-slate-600); }
.ec-table td:first-child { font-weight: 600; color: var(--ec-ink); }

.ec-phone-wrap { display: flex; justify-content: center; background: var(--ec-brand-50); border-radius: 24px; padding: 48px 24px; }
.ec-phone { width: 290px; max-width: 100%; background: #fff; border: 8px solid var(--ec-navy); border-radius: 40px; padding: 28px 18px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 48px -20px rgba(11,27,63,0.35); }
.ec-phone__hello { font-size: 13px; color: var(--ec-slate-500); }
.ec-phone__name { font-family: var(--ec-font-head); font-weight: 800; font-size: 22px; color: var(--ec-navy); margin-top: -10px; }
.ec-phone__status { background: var(--ec-brand); color: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.ec-phone__status small { font-size: 12px; opacity: .9; }
.ec-phone__status strong { font-size: 16px; }
.ec-phone__steps { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.ec-phone__steps div { display: flex; align-items: center; gap: 10px; }
.ec-phone__tick { width: 22px; height: 22px; border-radius: var(--ec-r-pill); display: flex; align-items: center; justify-content: center; flex: none; font-size: 12px; font-weight: 700; }
.ec-phone__tick--done { background: var(--ec-success-bg); color: var(--ec-success); }
.ec-phone__tick--todo { background: var(--ec-warning-bg); color: var(--ec-warning-text); }
.ec-phone__cta { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 12px; border: 1px solid var(--ec-brand-100); color: var(--ec-brand); font-weight: 600; font-size: 14px; }

/* ---------- Logos ---------- */
.ec-logos { border-bottom: 1px solid var(--ec-border); padding: 48px 0; }
.ec-logos__label { font-size: 14px; font-weight: 600; color: var(--ec-slate-500); letter-spacing: 0.06em; text-transform: uppercase; text-align: center; margin-bottom: 24px !important; }
/* Single-row scrolling logo strip. The track holds two identical groups and
   slides left by exactly one group (-50%), so the loop has no visible seam. */
.ec-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ec-marquee__track { display: flex; width: max-content; animation: ec-marquee 45s linear infinite; }
.ec-marquee:hover .ec-marquee__track { animation-play-state: paused; }
.ec-marquee__group { display: flex; align-items: center; gap: 56px; padding: 0 56px 0 0; margin: 0; list-style: none; flex: none; }
.ec-marquee__group li { flex: none; display: flex; align-items: center; height: 56px; }
.ec-marquee__group img { height: auto; max-height: 48px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s ease, opacity .2s ease; }
.ec-marquee__group img:hover { filter: none; opacity: 1; }
@keyframes ec-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .ec-marquee__track { animation-duration: 30s; }
  .ec-marquee__group { gap: 36px; padding-right: 36px; }
  .ec-marquee__group img { max-height: 40px; max-width: 120px; }
}
/* No motion for people who ask for less: show one row they can swipe instead. */
@media (prefers-reduced-motion: reduce) {
  .ec-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ec-marquee__track { animation: none; }
  .ec-marquee__group[aria-hidden="true"] { display: none; }
}

/* ---------- Demo CTA ---------- */
.ec-cta { background: var(--ec-brand); border-radius: var(--ec-r-panel); padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; color: #fff; }
.ec-cta > * { min-width: 0; }
.ec-cta__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; }
.ec-cta__text .ec-h2 { color: #fff; }
.ec-cta__text p { font-size: 18px; line-height: 1.6; color: #fff; opacity: .92; }
.ec-cta__contact { display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 500; }
.ec-cta__contact a { color: #fff; text-decoration: none; }
.ec-cta__contact a:hover { color: #fff; text-decoration: underline; }
.ec-cta__form { flex: 1 1 440px; background: #fff; color: var(--ec-ink); border-radius: var(--ec-r-card); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.ec-cta__form .ec-span { grid-column: 1 / -1; }
.ec-cta__note { font-size: 14px; color: var(--ec-slate-500); text-align: center; }
.ec-form-msg { font-size: 14px; font-weight: 500; text-align: center; min-height: 0; }
.ec-form-msg--error { color: var(--ec-danger); }
@media (max-width: 640px) { .ec-cta { padding: 32px 20px; } .ec-cta__form { padding: 24px 18px; } }

/* =========================================================================
   Header
   ========================================================================= */
.ec-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--ec-border); font-family: var(--ec-font-body); }
.ec-header__inner { max-width: var(--ec-max); margin: 0 auto; padding: 12px var(--ec-gutter); display: flex; align-items: center; gap: 36px; min-height: 68px; }
.ec-logo { display: flex; align-items: center; text-decoration: none !important; flex: none; }
.ec-logo img { height: 36px; width: auto; display: block; }
.ec-nav { display: flex; align-items: center; gap: 4px; flex: 1; margin: 0; padding: 0; list-style: none; }
.ec-nav > li { position: relative; margin: 0; }
.ec-nav__link {
  display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--ec-slate-700) !important; text-decoration: none !important; font-weight: 500; font-size: 15px;
  background: none; border: 0; cursor: pointer; font-family: inherit; line-height: 1;
}
.ec-nav__link:hover, .ec-nav__link[aria-expanded="true"] { color: var(--ec-brand) !important; background: var(--ec-brand-50); }
.ec-nav__link svg { transition: transform .2s ease; }
.ec-nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.ec-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.ec-header__login { color: var(--ec-slate-700) !important; text-decoration: none !important; font-weight: 600; font-size: 15px; padding: 0 8px; height: 44px; display: inline-flex; align-items: center; }
.ec-header__login:hover { color: var(--ec-brand) !important; }
.ec-burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--ec-border); background: #fff; color: var(--ec-ink); align-items: center; justify-content: center; padding: 0; }
.ec-burger:hover { background: var(--ec-surface); color: var(--ec-ink); }

/* Dropdown panels */
.ec-menu { position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border: 1px solid var(--ec-border); border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(11,27,63,0.25); padding: 24px; display: none; z-index: 40; }
.ec-menu.is-open { display: block; }
.ec-menu--products { width: 640px; left: -40px; }
.ec-menu--resources { width: 340px; padding: 16px; }
.ec-menu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ec-menu__col { display: flex; flex-direction: column; gap: 4px; }
.ec-menu__col + .ec-menu__col { border-left: 1px solid var(--ec-border); padding-left: 24px; }
.ec-menu__label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ec-slate-500); padding: 0 10px 6px; margin: 0; }
.ec-menu__item { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none !important; transition: background-color .15s ease; }
.ec-menu__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--ec-brand-50); color: var(--ec-brand); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background-color .15s ease, color .15s ease; }
.ec-menu__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ec-menu__item strong { font-weight: 600; font-size: 15px; color: var(--ec-ink); line-height: 1.35; }
.ec-menu__text > span { font-size: 13px; color: var(--ec-slate-600); line-height: 1.45; }
.ec-menu__item:hover, .ec-menu__item.is-current { background: var(--ec-brand-50); }
.ec-menu__item:hover .ec-menu__icon, .ec-menu__item.is-current .ec-menu__icon { background: var(--ec-brand); color: #fff; }
.ec-menu__item:hover strong, .ec-menu__item.is-current strong { color: var(--ec-brand-700); }

@media (max-width: 1080px) {
  .ec-header__inner { gap: 16px; }
  .ec-nav__link { padding: 0 8px; }
}
@media (max-width: 991.98px) {
  .ec-burger { display: inline-flex; }
  .ec-header__login, .ec-header__actions .ec-btn { display: none; }
  .ec-header__inner { flex-wrap: wrap; }
  .ec-nav-wrap { display: none; width: 100%; order: 3; padding: 8px 0 16px; border-top: 1px solid var(--ec-border); }
  .ec-nav-wrap.is-open { display: block; }
  .ec-nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .ec-nav__link { width: 100%; justify-content: space-between; height: 48px; font-size: 16px; }
  .ec-menu { position: static; width: auto !important; box-shadow: none; border: 0; padding: 4px 0 8px 8px; }
  .ec-menu__grid { grid-template-columns: 1fr; gap: 12px; }
  .ec-menu__col + .ec-menu__col { border-left: 0; padding-left: 0; border-top: 1px solid var(--ec-border); padding-top: 12px; }
  .ec-nav-mobile-cta { display: flex !important; flex-direction: column; gap: 10px; padding-top: 12px; }
}
@media (min-width: 992px) {
  .ec-nav-wrap { display: contents; }
  .ec-nav-mobile-cta { display: none !important; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.ec-footer { background: var(--ec-navy); color: var(--ec-navy-text); font-family: var(--ec-font-body); }
.ec-footer__inner { max-width: var(--ec-max); margin: 0 auto; padding: 72px var(--ec-gutter) 32px; display: flex; flex-direction: column; gap: 48px; }
.ec-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .ec-footer__grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.ec-footer__brand { display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.6; }
.ec-footer__brand img { height: 34px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
.ec-footer__brand p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ec-navy-text); }
.ec-footer a { color: var(--ec-navy-text); text-decoration: none; }
.ec-footer a:hover { color: #fff; }
.ec-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; margin: 0; }
.ec-footer__col h2 { color: #fff; font-family: var(--ec-font-body); font-weight: 600; font-size: 15px; margin: 0 0 2px; letter-spacing: 0; }
.ec-footer__social { display: flex; gap: 10px; }
.ec-footer__social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); display: inline-flex; align-items: center; justify-content: center; }
.ec-footer__social a:hover { background: rgba(255,255,255,0.08); }
.ec-footer__news { display: flex; gap: 8px; margin-top: 4px; }
.ec-footer__news input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; padding: 0 12px; font-size: 14px; font-family: inherit; }
.ec-footer__news input::placeholder { color: var(--ec-navy-text); }
.ec-footer__news button { height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: #fff; color: var(--ec-navy); font-weight: 600; font-size: 14px; }
.ec-footer__news button:hover { background: var(--ec-brand-50); color: var(--ec-navy); }
.ec-footer__bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; }
.ec-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.ec-footer--slim .ec-footer__inner { padding-top: 32px; gap: 0; }
.ec-footer--slim .ec-footer__bottom { border-top: 0; padding-top: 0; }

/* Back-to-top + WhatsApp keep working; restyle the back-to-top button */
.back-to-top button { background: var(--ec-brand) !important; border-color: var(--ec-brand) !important; border-radius: 12px; }

/* Enquiry modal */
#enquiryModal .modal-content { border: 0; border-radius: var(--ec-r-card); font-family: var(--ec-font-body); }
#enquiryModal .modal-header { border-bottom: 1px solid var(--ec-border); padding: 20px 24px; }
#enquiryModal .modal-title { font-family: var(--ec-font-head); font-weight: 800 !important; color: var(--ec-navy); font-size: 20px; }
#enquiryModal .modal-body { padding: 20px 24px 28px; }
#enquiryModal .form-control { height: 46px; border: 1px solid var(--ec-slate-300); border-radius: 10px; font-size: 15px; }
#enquiryModal textarea.form-control { height: auto; }
#enquiryModal .form-control:focus { border-color: var(--ec-brand); box-shadow: 0 0 0 4px var(--ec-brand-100); }
#enquiryModal #enquiry-form-submit { height: 50px; padding: 0 32px; border-radius: 12px; }

/* Utilities */
.ec-hide-sm { }
@media (max-width: 820px) { .ec-hide-sm { display: none !important; } }
.ec-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================================
   Page components (inner pages)
   ========================================================================= */
/* Page hero: product label + page-size h1 on Brand 50, like the home hero */
.ec-hero { background: var(--ec-brand-50); padding: 72px 0 88px; }
.ec-hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.ec-hero__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ec-hero__media { flex: 1 1 460px; min-width: 0; }
.ec-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ec-h1--page { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
@media (max-width: 768px) { .ec-hero { padding: 48px 0 56px; } .ec-hero__grid { gap: 36px; } }

/* Product name shown above an h1: visibly smaller, never a heading itself */
.ec-product-label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--ec-font-head); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--ec-brand) !important; text-decoration: none !important; align-self: flex-start; }
.ec-product-label__icon { width: 34px; height: 34px; border-radius: 10px; background: var(--ec-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
a.ec-product-label:hover { color: var(--ec-brand-700) !important; }
@media (max-width: 640px) { .ec-product-label { font-size: 17px; } .ec-product-label__icon { width: 30px; height: 30px; } }

/* Screenshot in a browser-style frame */
.ec-shot { background: #fff; border: 1px solid var(--ec-border); border-radius: 16px; box-shadow: var(--ec-shadow-card); overflow: hidden; }
.ec-shot__bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--ec-border); background: var(--ec-surface); }
.ec-shot__bar span { width: 10px; height: 10px; border-radius: 999px; background: var(--ec-slate-300); }
.ec-shot img { display: block; width: 100%; height: auto; }
.ec-shot--phone { max-width: 300px; margin: 0 auto; border-radius: 28px; border: 8px solid var(--ec-navy); }
.ec-shot--plain { border: 0; box-shadow: none; background: transparent; }

/* Compact multi-column checklist (e.g. "everything included") */
.ec-feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 24px; }
.ec-feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--ec-border); border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--ec-slate-800); line-height: 1.4; }
.ec-feature-list svg { flex: none; color: var(--ec-success); margin-top: 1px; }
@media (max-width: 520px) { .ec-feature-list { grid-template-columns: 1fr 1fr; gap: 8px; } .ec-feature-list li { padding: 10px 12px; font-size: 14px; } }

/* CTA band (no form) */
.ec-cta-band { background: var(--ec-brand); color: #fff; border-radius: var(--ec-r-panel); padding: 56px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ec-cta-band .ec-h2 { color: #fff; }
.ec-cta-band p { font-size: 18px; line-height: 1.6; color: #fff; opacity: .92; margin: 0; }
.ec-cta-band .ec-btn { margin-top: 8px; }

/* Chat window mock (Askly page hero) */
.ec-chat { max-width: 380px; margin: 0 auto; background: #fff; border: 1px solid var(--ec-border); border-radius: 20px; box-shadow: var(--ec-shadow-hero); overflow: hidden; }
.ec-chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--ec-brand); color: #fff; }
.ec-chat__avatar { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.ec-chat__head strong { display: block; font-size: 15px; }
.ec-chat__head small { display: block; font-size: 12px; opacity: .85; }
.ec-chat__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--ec-surface); }
.ec-chat__msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.ec-chat__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--ec-border); color: var(--ec-ink); border-bottom-left-radius: 4px; }
.ec-chat__msg--user { align-self: flex-end; background: var(--ec-brand); color: #fff; border-bottom-right-radius: 4px; }
.ec-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-chat__chips span { font-size: 13px; font-weight: 600; color: var(--ec-brand-700); background: #fff; border: 1px solid var(--ec-brand-100); border-radius: 999px; padding: 6px 12px; }

/* Segmented tabs */
.ec-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--ec-border); border-radius: 14px; }
.ec-tabs a, .ec-tabs button { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 10px; border: 0; background: transparent; color: var(--ec-slate-700) !important; font-weight: 600; font-size: 15px; text-decoration: none !important; }
.ec-tabs a.active, .ec-tabs button.active, .ec-tabs a:hover { background: var(--ec-brand-50); color: var(--ec-brand-700) !important; }

/* =========================================================================
   Legacy page harmonisation
   Restyles the old theme's shared classes so pages that still use the old
   markup look like the new design. Scoped to classes from style.css; a rule
   can be deleted once no page uses that class.
   ========================================================================= */

/* Heroes (.tw-hero-slider / .slider-2 / .banner-gp / .consultancy-slider-2) */
.tw-hero-slider, .tw-hero-slider .slider-2, .tw-hero-slider .consultancy-slider-2 { background: var(--ec-brand-50) !important; }
.tw-hero-slider .slider-wrapper { height: auto !important; min-height: 0 !important; padding: 72px 0 88px !important; }
@media (max-width: 768px) { .tw-hero-slider .slider-wrapper { padding: 48px 0 56px !important; } }
.tw-hero-slider h1 { font-family: var(--ec-font-head); font-size: clamp(32px, 4vw, 48px) !important; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--ec-navy) !important; margin-bottom: 16px; }
.tw-hero-slider p { font-size: 18px; line-height: 1.6; color: var(--ec-slate-600) !important; }
.tw-hero-slider .text-white { color: var(--ec-navy) !important; }
.tw-hero-slider .slider-img { border-radius: 16px; }

/* Page banners (.banner-area / .banner-title): compact Brand 50 header */
/* Some pages use id="banner-area" without the class, so target both. Inline
   background images (banner5.jpg) are overridden by !important. */
.banner-area, #banner-area { background: var(--ec-brand-50) !important; background-image: none !important; border-top: 0 !important; padding: 48px 0 !important; }
#banner-area > .banner-text, #banner-area > div:not(.container) { max-width: var(--ec-max); margin: 0 auto; padding: 0 var(--ec-gutter); }
.banner-title, .banner-area h1, #banner-area h1 { font-family: var(--ec-font-head); font-size: clamp(30px, 3.6vw, 42px) !important; font-weight: 800 !important; letter-spacing: -0.02em; color: var(--ec-navy) !important; margin: 0 !important; }
.banner-area p, #banner-area p { color: var(--ec-slate-600) !important; font-size: 17px; margin: 10px 0 0; }
.banner-area .breadcrumb, .banner-area .breadcrumb a, .banner-area .breadcrumb-item,
#banner-area .breadcrumb, #banner-area .breadcrumb a, #banner-area .breadcrumb-item { background: transparent; color: var(--ec-slate-600) !important; }
#banner-area .text-white { color: var(--ec-navy) !important; }

/* Section headings */
.section-heading h2, .column-title { font-family: var(--ec-font-head); font-weight: 800 !important; letter-spacing: -0.02em; color: var(--ec-navy); }
.section-heading h2 span, .column-title span, h2 span.text-primary { color: var(--ec-brand) !important; }
.animate-border { display: none !important; }

/* Cards */
.promo-single, .tw-features-box, .tw-service-box, .tw-feature-box { border: 1px solid var(--ec-border) !important; border-radius: var(--ec-r-card) !important; box-shadow: none !important; }
.promo-single { padding: 28px; }
.custom-shadow { box-shadow: var(--ec-shadow-card) !important; }

/* Bootstrap tabs used as feature switchers */
.feature-tab-list-2 { display: inline-flex !important; flex-wrap: wrap; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--ec-border); border-radius: 14px; }
.feature-tab-list-2 a { margin: 0 !important; border: 0 !important; background: transparent !important; border-radius: 10px !important; padding: 0 18px !important; height: 40px; display: inline-flex; align-items: center; font-family: var(--ec-font-body) !important; font-weight: 600 !important; font-size: 15px !important; color: var(--ec-slate-700) !important; }
.feature-tab-list-2 a.active, .feature-tab-list-2 a:hover { background: var(--ec-brand-50) !important; color: var(--ec-brand-700) !important; }

/* Buttons */
.btn-outline, .request-demo { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px !important; border-radius: 12px !important; background: var(--ec-brand) !important; border: 1px solid var(--ec-brand) !important; color: #fff !important; font-weight: 600 !important; font-size: 16px !important; text-decoration: none !important; }
.btn-outline:hover, .request-demo:hover { background: var(--ec-brand-700) !important; border-color: var(--ec-brand-700) !important; color: #fff !important; }
.btn-info { background: #fff !important; border: 1px solid var(--ec-slate-300) !important; color: var(--ec-ink) !important; border-radius: 12px !important; font-weight: 600 !important; padding: 10px 20px !important; }
.btn-info:hover { border-color: var(--ec-brand) !important; color: var(--ec-brand) !important; }

/* Old dark CTA band → brand panel */
.cta-subscribe.bg-dark { background: var(--ec-brand) !important; border-radius: var(--ec-r-panel); max-width: calc(var(--ec-max) - 2 * var(--ec-gutter)); margin: 0 auto 104px; padding: 56px 24px !important; }
.cta-subscribe .btn-dark { background: #fff !important; color: var(--ec-navy) !important; border-color: #fff !important; }
@media (max-width: 1248px) { .cta-subscribe.bg-dark { margin-left: var(--ec-gutter); margin-right: var(--ec-gutter); } }

/* Old accordions */
.tw-faq-content .card { border: 0 !important; border-bottom: 1px solid var(--ec-border) !important; border-radius: 0 !important; background: transparent !important; }
.tw-faq-content .card-header { background: transparent !important; border: 0 !important; padding: 18px 4px !important; cursor: pointer; }
.tw-faq-content .card-header h4, .tw-faq-content .card-header a { font-family: var(--ec-font-body); font-size: 17px !important; font-weight: 600 !important; color: var(--ec-ink) !important; margin: 0; }
.tw-faq-content .card-block { padding: 0 4px 18px; color: var(--ec-slate-600); line-height: 1.65; }

/* Old marquee logo strips */
.marquee-images img { height: 40px !important; width: auto !important; max-width: 140px; object-fit: contain; margin: 0 28px; filter: grayscale(1); opacity: .75; }

/* Screenshots */
.image-styling { border-radius: 16px !important; box-shadow: var(--ec-shadow-card) !important; border: 1px solid var(--ec-border); }

/* Light grey section backgrounds → design Surface */
section.bg-light { background: var(--ec-surface) !important; }

/* Banner heading had min-height:190px, which made every page header tall */
#banner-area .banner-heading, .banner-area .banner-heading { min-height: 0 !important; }

/* FAQ accordion plus icons (old yellow) */
.faq-indicator { color: var(--ec-brand) !important; }

/* Pricing: product switch and duration pills */
.tw-pricing ul.nav { border-color: var(--ec-border) !important; }
.tw-pricing ul.nav .nav-item a.active { background: var(--ec-brand) !important; box-shadow: none !important; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--ec-brand) !important; }

/* EduCtrl CMS page (Sandbox-template markup) */
.wrapper.bg-soft-primary { background: var(--ec-brand-50) !important; }
.wrapper .display-1 { color: var(--ec-navy) !important; font-weight: 800 !important; letter-spacing: -0.02em; }

/* =========================================================================
   Pricing page (.tw-pricing) — markup and IDs are kept because the currency
   and duration switches (changeCurrency / durationClick) depend on them.
   ========================================================================= */
.tw-pricing { padding-top: 56px !important; }
/* Every boxed block on the page used an inline 30px grey shadow: replace it */
.tw-pricing [style*="box-shadow"] { box-shadow: none !important; border: 1px solid var(--ec-border); border-radius: var(--ec-r-card); background: #fff; }
.tw-pricing .row[style*="box-shadow"] { padding: 32px 24px !important; margin-left: 0 !important; margin-right: 0 !important; }

/* Plan cards */
.tw-pricing .tw-price-box { padding: 32px 24px 28px !important; display: flex; flex-direction: column; transition: border-color .15s ease, box-shadow .15s ease; }
.tw-pricing .tw-price-box:hover { border-color: var(--ec-brand-100) !important; box-shadow: var(--ec-shadow-card) !important; }
.tw-pricing .tw-price-box > div:last-child { margin-top: auto; }
.tw-pricing .tw-price-box h3 { font-family: var(--ec-font-head); font-weight: 800; font-size: 24px; color: var(--ec-navy); border-bottom: 0 !important; padding-bottom: 4px !important; margin-bottom: 0; }
.tw-pricing .pricing-price { color: var(--ec-slate-600); font-size: 15px; line-height: 1.6; }
.tw-pricing .pricing-price p { font-size: 15px; color: var(--ec-slate-600); min-height: 3.2em; margin: 0 0 8px; }
.tw-pricing .pricing-price strong[id] { font-family: var(--ec-font-head); font-size: 48px; font-weight: 800; color: var(--ec-navy); letter-spacing: -0.02em; line-height: 1.1; }
.tw-pricing .pricing-price sup, .tw-pricing .currencySymbol, .tw-pricing .currencySymbolOneTime { font-family: var(--ec-font-head); font-size: 22px !important; font-weight: 700; color: var(--ec-navy); top: -18px !important; }
.tw-pricing .pricing-price u { color: var(--ec-brand); text-decoration: none; border-bottom: 1px dashed var(--ec-brand); cursor: help; font-size: 14px; }
.tw-pricing .tw-price-box .btn-outline { width: 100%; max-width: 260px; }
/* Middle plan gets a brand outline */
.tw-pricing .row.justify-content-center > div:nth-child(2) > .tw-price-box[style*="box-shadow"] { border: 2px solid var(--ec-brand) !important; }

/* Product switch (Study Abroad CRM / Coaching CRM) */
.tw-pricing ul.nav:not(.flex-nowrap) { width: auto !important; max-width: 480px; padding: 4px; border-radius: 14px !important; background: #fff; }
.tw-pricing ul.nav:not(.flex-nowrap) .nav-item a { border-radius: 10px !important; padding: 10px 0 !important; font-weight: 700; color: var(--ec-slate-700); }
.tw-pricing ul.nav:not(.flex-nowrap) .nav-item a.active { color: #fff !important; }
.tw-pricing .btn, .tw-pricing .btn-outline { text-transform: none !important; }

/* Duration / user-count switches */
.tw-pricing ul.nav.flex-nowrap { display: inline-flex !important; background: #fff !important; border: 1px solid var(--ec-border); border-radius: 14px; padding: 4px !important; gap: 4px; width: auto !important; }
.tw-pricing ul.nav.flex-nowrap .nav-link { border-radius: 10px !important; padding: 8px 20px !important; font-weight: 600; color: var(--ec-slate-700) !important; white-space: nowrap; }
.tw-pricing ul.nav.flex-nowrap .nav-link.active { background: var(--ec-brand) !important; color: #fff !important; }

/* Currency select */
.tw-pricing #currency { height: 44px; border: 1px solid var(--ec-slate-300) !important; border-radius: 10px !important; padding: 0 36px 0 14px; font-weight: 600; font-size: 15px; color: var(--ec-ink); background-color: #fff; }

/* Section headings inside the pricing page */
.tw-pricing h2 { font-family: var(--ec-font-head); font-weight: 800; color: var(--ec-navy); letter-spacing: -0.02em; }
.tw-pricing h2 small { display: block; font-family: var(--ec-font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ec-brand); margin-bottom: 8px; }
.tw-pricing h4 { font-family: var(--ec-font-head); font-weight: 700; color: var(--ec-navy); }
.tw-pricing .fa-check { color: var(--ec-success) !important; }
/* External-link icon (links that open another website) */
.ec-ext { display: inline-block; vertical-align: -1px; margin-left: 4px; opacity: .7; flex: none; }
a:hover .ec-ext { opacity: 1; }

/* "Add-on" tag in feature lists */
.ec-addon-badge { display: inline-block; font-family: var(--ec-font-body); font-size: 11px; font-weight: 700; line-height: 1.6; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ec-brand-700); background: var(--ec-brand-50); border: 1px solid var(--ec-brand-100); border-radius: 999px; padding: 0 8px; vertical-align: middle; }

/* Contact form fields: pill inputs → design fields */
.contact-us-form .form-control { border-radius: 10px !important; border-color: var(--ec-slate-300) !important; height: 46px; }
.contact-us-form textarea.form-control { height: auto; }
.contact-us-form .form-control:focus { border-color: var(--ec-brand) !important; box-shadow: 0 0 0 4px var(--ec-brand-100) !important; }


/* =========================================================================
   PREMIUM LAYER — hover effects, graphic backgrounds, motion, new sections
   All motion is disabled for visitors who prefer reduced motion (see end).
   ========================================================================= */

/* ---------- Icons ---------- */
.ec-i { display: inline-block; flex: none; vertical-align: middle; }

/* ---------- Reveal on scroll (only when ec-site.js adds .ec-motion) ---------- */
.ec-motion [data-reveal] { transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.ec-motion [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(16px); }

/* ---------- Header: frosted glass after scrolling ---------- */
.ec-header { transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ec-header__inner { transition: min-height .2s ease; }
.ec-header.is-scrolled { background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 10px 30px -18px rgba(11,27,63,.35); border-bottom-color: transparent; }
.ec-header.is-scrolled .ec-header__inner { min-height: 60px; }
.ec-nav__link { position: relative; }
.ec-nav__link[aria-current="page"] { color: var(--ec-brand) !important; }
.ec-nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--ec-brand); }

/* ---------- Hover system ---------- */
.ec-card, .ec-feature-list li, .ec-shot, .ec-mock, .ec-stat, .ec-trust__item, .ec-compare__col { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease; }
.ec-card:not(.ec-card--static):hover { transform: translateY(-4px); border-color: var(--ec-brand-100); box-shadow: var(--ec-shadow-card); }
.ec-card--dark:not(.ec-card--static):hover { border-color: rgba(156,192,255,.45); box-shadow: 0 24px 48px -24px rgba(0,0,0,.55); }
.ec-icon { transition: background-color .22s ease, color .22s ease, transform .22s ease; }
.ec-card:hover .ec-icon--brand, .ec-stat:hover .ec-icon--brand, .ec-trust__item:hover .ec-icon--brand { background: var(--ec-brand); color: #fff; }
.ec-card:hover .ec-icon--danger { background: var(--ec-danger); color: #fff; }
.ec-card--dark:hover .ec-icon--sky { background: var(--ec-sky); color: var(--ec-navy); }
.ec-card:hover .ec-icon { transform: scale(1.06); }
.ec-card:hover .ec-step { box-shadow: 0 0 0 6px var(--ec-brand-100); }
.ec-step { transition: box-shadow .22s ease; }
.ec-feature-list li:hover { border-color: var(--ec-brand-100); background: var(--ec-brand-50); transform: translateY(-2px); }

.ec-btn { transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
.ec-btn--primary { box-shadow: 0 1px 2px rgba(11,27,63,.08); }
.ec-btn--primary:hover { box-shadow: 0 12px 26px -12px rgba(31,95,209,.75); transform: translateY(-1px); }
.ec-btn--on-dark:hover { box-shadow: 0 12px 26px -12px rgba(0,0,0,.45); transform: translateY(-1px); }
.ec-btn--secondary:hover { transform: translateY(-1px); }
.ec-btn .ec-i, .ec-btn svg { transition: transform .18s ease; }
.ec-btn:hover .ec-i:last-child, .ec-btn:hover > svg:last-child { transform: translateX(3px); }

.ec-link { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 1px; transition: background-size .25s ease, color .15s ease; }
.ec-link:hover { background-size: 100% 1.5px; text-decoration: none !important; }

.ec-shot:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(11,27,63,.38); }
.ec-shot__bar span { transition: background-color .2s ease; }
.ec-shot:hover .ec-shot__bar span:nth-child(1) { background: #FF5F57; }
.ec-shot:hover .ec-shot__bar span:nth-child(2) { background: #FEBC2E; }
.ec-shot:hover .ec-shot__bar span:nth-child(3) { background: #28C840; }

.ec-footer__col a, .ec-footer__brand a { display: inline-flex; align-items: center; gap: 8px; transition: color .15s ease, transform .15s ease; }
.ec-footer__col a:hover { transform: translateX(2px); }
.ec-footer__brand .ec-i { color: var(--ec-sky); }
.ec-footer__social a { transition: background-color .15s ease, transform .15s ease, border-color .15s ease; }
.ec-footer__social a:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.35); }

.ec-logos__row img, .ec-marquee__group img { transition: filter .2s ease, opacity .2s ease, transform .2s ease; }
.ec-marquee__group img:hover { transform: scale(1.06); }

.tw-pricing .tw-price-box:hover { transform: translateY(-4px); }
.tw-pricing .tw-price-box { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }

/* ---------- Graphic backgrounds ---------- */
/* Heroes: dotted grid fading out + two soft colour glows */
.ec-hero, .ec-bg-hero, .tw-hero-slider, #banner-area, .banner-area { position: relative; isolation: isolate; overflow: hidden; }
.wrapper.bg-soft-primary { position: relative; isolation: isolate; }
.ec-hero::before, .ec-bg-hero::before, .tw-hero-slider::before, #banner-area::before, .banner-area::before, .wrapper.bg-soft-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(31,95,209,.16) 1.1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 55%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 55%, transparent 95%);
}
.ec-hero::after, .ec-bg-hero::after, .tw-hero-slider::after, #banner-area::after, .banner-area::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; right: -220px; top: -280px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31,95,209,.18), transparent 70%);
}
.ec-glow { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(10px); }
.ec-glow--sky { width: 520px; height: 520px; left: -200px; bottom: -260px; background: radial-gradient(closest-side, rgba(156,192,255,.45), transparent 70%); }

/* Navy band: faint line grid + brand glow */
.ec-section--navy { position: relative; isolation: isolate; overflow: hidden; }
.ec-section--navy::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%);
}
.ec-section--navy::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 640px; height: 640px; right: -200px; top: -320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31,95,209,.55), transparent 70%);
}

/* CTA panels: brand gradient + translucent circles */
.ec-cta-band, .ec-cta { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, #1F5FD1 0%, #2E6FE0 45%, #17479D 100%); }
.ec-cta-band::before, .ec-cta::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: rgba(255,255,255,.08); }
.ec-cta-band::after, .ec-cta::after { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; left: -100px; bottom: -160px; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); }

/* Surface sections: very light dot texture */
.ec-section--surface { background-color: var(--ec-surface); background-image: radial-gradient(rgba(15,23,42,.035) 1px, transparent 1.2px); background-size: 18px 18px; }

/* ---------- Floating hero elements ---------- */
@keyframes ec-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ec-float { animation: ec-float 6s ease-in-out infinite; }
.ec-float--slow { animation-duration: 8s; }
.ec-float--delay { animation-delay: -3s; }
.ec-toast--top { left: auto; right: -18px; bottom: auto; top: -26px; }
@media (max-width: 640px) { .ec-toast--top { display: none; } }

/* ---------- Eyebrow with icon ---------- */
.ec-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.ec-section-head .ec-eyebrow { align-self: center; }
.ec-section-head--left .ec-eyebrow { align-self: flex-start; }
.ec-eyebrow .ec-i { width: 16px; height: 16px; }

/* ---------- Stats band ---------- */
.ec-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.ec-stat { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: #fff; border: 1px solid var(--ec-border); border-radius: var(--ec-r-card); }
.ec-stat:hover { transform: translateY(-3px); border-color: var(--ec-brand-100); box-shadow: var(--ec-shadow-card); }
.ec-stat__num { display: block; font-family: var(--ec-font-head); font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--ec-navy); }
.ec-stat__label { display: block; font-size: 14px; color: var(--ec-slate-600); line-height: 1.4; margin-top: 4px; }

/* ---------- Before / after comparison ---------- */
.ec-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.ec-compare__col { border: 1px solid var(--ec-border); border-radius: var(--ec-r-card); padding: 32px; background: #fff; }
.ec-compare__col--good { border: 2px solid var(--ec-brand); box-shadow: var(--ec-shadow-card); position: relative; }
.ec-compare__col--good::before { content: "Recommended"; position: absolute; top: -13px; left: 28px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--ec-brand); border-radius: 999px; padding: 3px 12px; }
.ec-compare__title { display: flex; align-items: center; gap: 12px; font-family: var(--ec-font-head); font-weight: 800; font-size: 20px; color: var(--ec-navy); margin: 0 0 18px; }
.ec-compare__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ec-compare__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--ec-slate-700); }
.ec-compare__list .ec-i { margin-top: 2px; }
.ec-compare__col--bad .ec-compare__list .ec-i { color: var(--ec-danger); }
.ec-compare__col--good .ec-compare__list .ec-i { color: var(--ec-success); }
.ec-compare__col--bad { background: linear-gradient(180deg, #fff, #FEFAFA); }

/* ---------- Security / trust strip ---------- */
.ec-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.ec-trust--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .ec-trust--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ec-trust--3 { grid-template-columns: 1fr; } }
.ec-trust__item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--ec-border); }
.ec-trust__item:hover { border-color: var(--ec-brand-100); transform: translateY(-3px); box-shadow: var(--ec-shadow-card); }
.ec-trust__item strong { display: block; font-size: 16px; color: var(--ec-ink); margin-bottom: 2px; }
.ec-trust__item span { font-size: 14px; color: var(--ec-slate-600); line-height: 1.5; }
.ec-chips-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ec-chip-i { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ec-border); font-size: 14px; font-weight: 600; color: var(--ec-slate-700); transition: border-color .15s ease, color .15s ease; }
.ec-chip-i .ec-i { color: var(--ec-brand); }
.ec-chip-i:hover { border-color: var(--ec-brand-100); color: var(--ec-brand-700); }

/* ---------- Video ---------- */
.ec-video { max-width: 980px; margin: 0 auto; }
.ec-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--ec-navy); box-shadow: var(--ec-shadow-hero); border: 1px solid var(--ec-border); }
.ec-video__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform .6s ease; }
.ec-video__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,27,63,.15), rgba(11,27,63,.55)); pointer-events: none; transition: opacity .3s ease; }
.ec-video__frame:hover img { transform: scale(1.03); }
.ec-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ec-video__frame.is-playing::after { display: none; }
.ec-video__play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 999px; border: 0; background: #fff; color: var(--ec-brand); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); transition: transform .2s ease, background-color .2s ease, color .2s ease; padding: 0; }
.ec-video__play .ec-i { margin-left: 4px; }
.ec-video__play::before { content: ""; position: absolute; inset: -10px; border-radius: 999px; border: 2px solid rgba(255,255,255,.7); animation: ec-pulse 2.2s ease-out infinite; }
.ec-video__play:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--ec-brand); color: #fff; }
@keyframes ec-pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.ec-video__label { position: absolute; z-index: 2; left: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 14px; background: rgba(11,27,63,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 7px 14px; border-radius: 999px; }
.ec-video__caption { text-align: center; margin-top: 16px; font-size: 15px; color: var(--ec-slate-600); }
@media (max-width: 640px) { .ec-video__play { width: 68px; height: 68px; } .ec-video__frame { border-radius: 16px; } }

/* ---------- "How it works" connector line (desktop, single row) ---------- */
@media (min-width: 1100px) {
  .ec-steps { position: relative; }
  .ec-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 40px; border-top: 2px dashed var(--ec-brand-100); z-index: 0; }
  .ec-steps > * { position: relative; z-index: 1; }
}

/* ---------- Page hero badges ---------- */
.ec-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Pricing extras ---------- */
.ec-plan-icon { display: flex; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; background: var(--ec-brand-50); color: var(--ec-brand); align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease; }
.tw-pricing .tw-price-box:hover .ec-plan-icon { background: var(--ec-brand); color: #fff; }
.ec-pricing-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px auto 0; }

/* ---------- Reduced motion: no transforms, no animation ---------- */
@media (prefers-reduced-motion: reduce) {
  .ec-float, .ec-video__play::before { animation: none !important; }
  .ec-card:hover, .ec-shot:hover, .ec-stat:hover, .ec-trust__item:hover, .ec-feature-list li:hover,
  .ec-btn:hover, .ec-video__frame:hover img, .tw-pricing .tw-price-box:hover, .ec-footer__col a:hover,
  .ec-marquee__group img:hover, .ec-card:hover .ec-icon { transform: none !important; }
  .ec-btn:hover .ec-i:last-child, .ec-btn:hover > svg:last-child { transform: none !important; }
  .ec-video__play:hover { transform: translate(-50%, -50%) !important; }
}
.ec-cta-band__icon { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ec-ticks .ec-i { color: var(--ec-brand); }
.ec-phone__cta { gap: 8px; }
.ec-cta__note .ec-i { vertical-align: -2px; margin-right: 2px; }
.ec-cta__text .ec-cta-band__icon { align-self: flex-start; }
.ec-toast--top { top: -48px; right: -28px; }
.ec-page .ec-compare__title { margin-bottom: 20px; }
.ec-video__caption { margin-top: 22px; }

/* Legacy heroes: let the outer hero's graphic background show through the inner slider layers */
.tw-hero-slider .slider-2, .tw-hero-slider .consultancy-slider-2 { background: transparent !important; }

/* Legacy pages: same hover language as the new components */
.sa-card, .tc-card, .sa-mini-card, .tw-service-box, .technologies-box, .card.h-100, .related-card, .tc-step, .sa-path-step { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease; }
.sa-card:hover, .tc-card:hover, .sa-mini-card:hover, .tw-service-box:hover, .technologies-box:hover, .card.h-100:hover, .related-card:hover, .tc-step:hover, .sa-path-step:hover { transform: translateY(-4px); box-shadow: var(--ec-shadow-card) !important; border-color: var(--ec-brand-100) !important; }
.sa-icon, .tc-icon, .service-icon { transition: background-color .22s ease, color .22s ease, transform .22s ease; }
.sa-card:hover .sa-icon, .tc-card:hover .tc-icon { background: var(--ec-brand) !important; color: #fff !important; transform: scale(1.06); }
.tw-service-box:hover .service-icon { transform: scale(1.06); }
.image-styling { transition: transform .3s ease, box-shadow .3s ease; }
.image-styling:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 40px 70px -30px rgba(11,27,63,.38) !important; }
.list-group-item { transition: background-color .15s ease, padding-left .15s ease; }
.list-group-item:hover { background: var(--ec-brand-50); padding-left: 1.5rem; }
.cta-subscribe.bg-dark { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, #1F5FD1 0%, #2E6FE0 45%, #17479D 100%) !important; }
.cta-subscribe.bg-dark::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-subscribe.bg-dark::after { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; left: -100px; bottom: -160px; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); }
.sa-cta, .tc-cta { position: relative; isolation: isolate; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .sa-card:hover, .tc-card:hover, .sa-mini-card:hover, .tw-service-box:hover, .technologies-box:hover, .card.h-100:hover, .related-card:hover, .tc-step:hover, .sa-path-step:hover,
  .image-styling:hover, .sa-card:hover .sa-icon, .tc-card:hover .tc-icon, .tw-service-box:hover .service-icon { transform: none !important; }
}
.card.h-100 { border-radius: var(--ec-r-card) !important; border: 1px solid var(--ec-border) !important; box-shadow: none !important; overflow: hidden; }

/* Testimonials */
.ec-testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ec-testimonial { position: relative; margin: 0; gap: 18px; box-shadow: var(--ec-shadow-card); transition: transform .2s ease, box-shadow .2s ease; }
.ec-testimonial:hover { transform: translateY(-4px); box-shadow: var(--ec-shadow-pop); }
.ec-testimonial::before { content: "\201C"; position: absolute; top: 14px; right: 28px; font-family: Georgia, serif; font-size: 96px; line-height: 1; color: var(--ec-brand-100); pointer-events: none; }
.ec-testimonial__stars { display: flex; gap: 3px; color: #F5A524; }
.ec-testimonial__quote { flex: 1; margin: 0; padding: 0; border: 0; }
.ec-testimonial__quote p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ec-slate-700); }
.ec-testimonial__author { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--ec-border); }
.ec-testimonial__avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--ec-brand), var(--ec-brand-700)); color: #fff; font-family: var(--ec-font-head); font-weight: 700; font-size: 18px; }
.ec-testimonial__author strong { display: block; font-family: var(--ec-font-head); font-size: 16px; color: var(--ec-ink); }
.ec-testimonial__author span span, .ec-testimonial__author strong + span { display: block; font-size: 14px; color: var(--ec-slate-500); }
@media (max-width: 820px) { .ec-testimonials { grid-template-columns: 1fr; } .ec-testimonial { padding: 26px 22px; } }
@media (prefers-reduced-motion: reduce) { .ec-testimonial:hover { transform: none; } }

/* Feature pages: jump links, wide screenshots, grouped feature cards */
.ec-jump { background: #fff; border-bottom: 1px solid var(--ec-border); }
.ec-jump__inner { display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.ec-jump__inner::-webkit-scrollbar { display: none; }
.ec-jump a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--ec-r-pill); border: 1px solid var(--ec-border); background: #fff; color: var(--ec-slate-700); font-size: 14px; font-weight: 600; text-decoration: none !important; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.ec-jump a:hover { border-color: var(--ec-brand-100); background: var(--ec-brand-50); color: var(--ec-brand); }
.ec-jump a svg { color: var(--ec-brand); }
.ec-anchor { scroll-margin-top: 80px; }
.ec-shot--wide { max-width: 1100px; margin: 0 auto; }
.ec-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ec-card--new { border-color: var(--ec-brand-100); background: linear-gradient(180deg, var(--ec-brand-50) 0%, #fff 55%); }
.ec-feature-group + .ec-feature-group { margin-top: 56px; }
.ec-feature-group__title { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-family: var(--ec-font-head); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ec-slate-500); }
.ec-feature-group__title::after { content: ""; flex: 1; height: 1px; background: var(--ec-border); }
.ec-next-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 64px; }
@media (max-width: 640px) { .ec-jump__inner { justify-content: flex-start; } .ec-next-links .ec-btn { width: 100%; justify-content: center; } }

/* Colourful icon tones (soft tint + strong glyph) */
.ec-tone-blue   { background: #E8F0FE; color: #1F5FD1; }
.ec-tone-violet { background: #F1EAFE; color: #7C3AED; }
.ec-tone-green  { background: #E3F7EC; color: #15803D; }
.ec-tone-amber  { background: #FEF3C7; color: #B45309; }
.ec-tone-rose   { background: #FDE8EC; color: #E11D48; }
.ec-tone-teal   { background: #DDF6F3; color: #0F766E; }
.ec-tone-orange { background: #FFEDD5; color: #EA580C; }
.ec-tone-indigo { background: #E6E9FD; color: #4338CA; }
.ec-tone-cyan   { background: #DFF4FB; color: #0E7490; }
.ec-tone-pink   { background: #FCE7F6; color: #DB2777; }
.ec-card:hover .ec-icon[class*="ec-tone-"] { box-shadow: 0 8px 18px -8px currentColor; }

/* Horizontal cards (icon left) */
.ec-grid--app { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ec-card--row { flex-direction: row; align-items: flex-start; gap: 18px; }
@media (max-width: 820px) { .ec-grid--app { grid-template-columns: 1fr; } }

/* Key module cards: coloured top edge + checklist */
.ec-grid--key { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ec-card--key { position: relative; overflow: hidden; padding: 32px; gap: 22px; background: #fff !important; }
.ec-card--key::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: currentColor; }
.ec-card--key__head { display: flex; gap: 18px; align-items: flex-start; }
.ec-card--key .ec-h3, .ec-card--key .ec-checks { color: var(--ec-slate-700); }
.ec-card--key .ec-h3 { color: var(--ec-ink); }
.ec-checks--sm { font-size: 15px; gap: 10px; }
.ec-checks--sm svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .ec-grid--key { grid-template-columns: 1fr; } .ec-card--key { padding: 26px 22px; } }

/* Application stage tracker */
.ec-stages { max-width: 1000px; margin: 0 auto; padding: 32px 28px 22px; background: #fff; border: 1px solid var(--ec-border); border-radius: var(--ec-r-card); box-shadow: var(--ec-shadow-card); }
.ec-stages__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ec-stages__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 4px; }
.ec-stages__item::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--ec-border); z-index: 0; }
.ec-stages__item:first-child::before { display: none; }
.ec-stages__item.is-done::before, .ec-stages__item.is-current::before { background: var(--ec-brand); }
.ec-stages__dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: #fff; border: 2px solid var(--ec-slate-300); color: var(--ec-slate-500); }
.ec-stages__item.is-done .ec-stages__dot { background: var(--ec-brand); border-color: var(--ec-brand); color: #fff; }
.ec-stages__item.is-current .ec-stages__dot { border-color: var(--ec-brand); color: var(--ec-brand); box-shadow: 0 0 0 5px var(--ec-brand-50); }
.ec-stages__label { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ec-slate-500); }
.ec-stages__item.is-done .ec-stages__label { color: var(--ec-slate-700); }
.ec-stages__item.is-current .ec-stages__label { color: var(--ec-brand); }
.ec-stages__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 0 !important; padding-top: 16px; border-top: 1px solid var(--ec-border); font-size: 13px; color: var(--ec-slate-500); }
@media (max-width: 720px) {
  .ec-stages { padding: 24px 20px 18px; }
  .ec-stages__list { grid-template-columns: 1fr; gap: 14px; }
  .ec-stages__item { flex-direction: row; text-align: left; gap: 14px; }
  .ec-stages__item::before { top: -14px; left: 16.5px; width: 3px; height: 14px; }
}
.ec-tone-blue-card { color: #1F5FD1; } .ec-tone-violet-card { color: #7C3AED; } .ec-tone-green-card { color: #15803D; } .ec-tone-amber-card { color: #D97706; }
/* Numbered journey (colourful step dots) */
.ec-stages--steps { padding-bottom: 32px; }
.ec-stages--steps .ec-stages__dot[class*="ec-tone-"] { border-color: transparent; width: 40px; height: 40px; font-size: 15px; }
.ec-stages--steps .ec-stages__item::before { top: 19px; }
.ec-stages--steps .ec-stages__label { color: var(--ec-slate-700); }
@media (max-width: 720px) { .ec-stages--steps .ec-stages__item::before { left: 18.5px; } }
.ec-shot--narrow { flex: 0 1 440px !important; max-width: 440px; margin: 0 auto; }
@media (max-width: 900px) { .ec-shot--narrow { flex-basis: 100% !important; } }

/* Pricing: All features */
.ec-allfeat { margin: 40px 0 96px; }
.ec-allfeat__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.ec-allfeat__card { display: flex; flex-direction: column; margin: 0; position: relative; overflow: hidden; background: #fff; border: 1px solid var(--ec-border); border-radius: 18px; padding: 24px 24px 18px; box-shadow: 0 12px 28px -22px rgba(11,27,63,.25); transition: transform .2s ease, box-shadow .2s ease; }
.ec-allfeat__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: currentColor; }
.ec-allfeat__card:hover { transform: translateY(-3px); box-shadow: var(--ec-shadow-card); }
.ec-allfeat__head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--ec-border); }
.ec-allfeat__head .ec-h3 { flex: 1; margin: 0; color: var(--ec-ink); }
.ec-allfeat__count { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: var(--ec-r-pill); background: var(--ec-surface); border: 1px solid var(--ec-border); color: var(--ec-slate-500); }
.ec-allfeat__list { list-style: none; margin: 0; padding: 0; }
.ec-allfeat__list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 15px; line-height: 1.45; }
.ec-allfeat__list li + li { border-top: 1px dashed #EEF2F7; }
.ec-allfeat__tick { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: currentColor; }
.ec-allfeat__tick svg { color: #fff; }
.ec-allfeat__name { font-weight: 500; color: var(--ec-slate-800); }
.ec-allfeat__note { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ec-slate-500); }
@media (prefers-reduced-motion: reduce) { .ec-allfeat__card:hover { transform: none; } }
@media (max-width: 1080px) { .ec-allfeat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .ec-allfeat__grid { grid-template-columns: 1fr; } }
.ec-allfeat__addons { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 16px 20px; margin-top: 24px; padding: 20px 24px; border-radius: 18px; background: var(--ec-brand-50); border: 1px solid var(--ec-brand-100); }
.ec-allfeat__addons-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ec-brand-700); white-space: nowrap; }
.ec-allfeat__addon { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--ec-border); border-radius: 14px; text-decoration: none !important; transition: border-color .15s ease, box-shadow .15s ease; }
.ec-allfeat__addon:hover { border-color: var(--ec-brand-100); box-shadow: var(--ec-shadow-pop); }
.ec-allfeat__addon > span:nth-child(2) { flex: 1; min-width: 0; }
.ec-allfeat__addon strong { display: block; font-size: 15px; color: var(--ec-ink); }
.ec-allfeat__addon strong + span { display: block; font-size: 13px; line-height: 1.45; color: var(--ec-slate-500); }
.ec-allfeat__addon-arrow { color: var(--ec-brand); flex: none; }
@media (max-width: 980px) { .ec-allfeat__addons { grid-template-columns: 1fr; } }
/* Pricing: plan cards, shared by the Study Abroad and Coaching tabs (pricing.blade.php, pricing-coaching-block.blade.php) */
.tw-pricing { --ec-plan-line: #D3DCE8; --ec-plan-shadow: 0 1px 2px rgba(11,27,63,.05), 0 14px 32px -22px rgba(11,27,63,.28); }

/* Product switch (Study Abroad CRM / Coaching CRM) and the duration / user-count switches */
.tw-pricing .pricing-tab > ul.nav { border: 1px solid var(--ec-plan-line) !important; box-shadow: var(--ec-plan-shadow); }
.tw-pricing .pricing-tab > ul.nav .nav-item a.active { background: var(--ec-brand) !important; box-shadow: 0 8px 18px -10px rgba(31,95,209,.7) !important; }
.ec-plan-switch { display: flex; justify-content: center; margin: 0 0 32px; }
.ec-plan-switch ul.nav.flex-nowrap { border-color: var(--ec-plan-line) !important; box-shadow: var(--ec-plan-shadow); }
.ec-plan-switch ul.nav.flex-nowrap .nav-link:not(.active):hover { background: var(--ec-brand-50) !important; color: var(--ec-brand-700) !important; }

/* Heading above both tabs + currency picker */
.ec-plan-content { margin-top: 48px !important; }
.ec-plan-head--top { margin-bottom: 20px !important; }
.ec-plan-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 0 0 24px; }
.ec-plan-toolbar__label { margin: 0; font-size: 14px; font-weight: 600; color: var(--ec-slate-600); }
.tw-pricing .ec-plan-toolbar #currency { border-color: var(--ec-plan-line) !important; box-shadow: var(--ec-plan-shadow); cursor: pointer; }

/* Cards */
.ec-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.ec-plan-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ec-plan-line); border-radius: var(--ec-r-card); padding: 32px 28px 28px; text-align: center; box-shadow: var(--ec-plan-shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.ec-plan-card:hover { transform: translateY(-4px); border-color: #A9BEE0; box-shadow: var(--ec-shadow-card); }
.ec-plan-card--featured, .ec-plan-card--featured:hover { border: 2px solid var(--ec-brand); }
.ec-plan-card--featured { box-shadow: 0 1px 2px rgba(11,27,63,.05), 0 22px 44px -24px rgba(31,95,209,.45); }
.ec-plan-card:hover .ec-plan-icon { background: var(--ec-brand); color: #fff; }
.ec-plan-card__name { font-family: var(--ec-font-head); font-size: 24px; font-weight: 800; color: var(--ec-navy); }
.ec-plan-card__desc { margin-top: 8px !important; font-size: 15px; line-height: 1.5; color: var(--ec-slate-600); min-height: 3em; }
.ec-plan-card__cta { margin-top: auto; padding-top: 24px; }
.ec-plan-card__cta .btn-outline { width: 100%; }
.ec-plan-card__foot { margin-top: auto !important; padding-top: 16px; font-size: 13px; line-height: 1.5; color: var(--ec-slate-500); }

/* Feature cards: left-aligned, plan name beside its icon */
.ec-plan-card--features { text-align: left; padding: 28px 28px 20px; }
.ec-plan-card__top { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--ec-plan-line); }
.ec-plan-card__top .ec-plan-icon { margin: 0; flex: none; }
.ec-plan-card__top .ec-plan-card__name { font-size: 21px; }
.ec-plan-card__sub { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--ec-brand); }

/* Price */
.ec-plan-price { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 20px 0 0; padding: 20px 0; border-top: 1px solid var(--ec-plan-line); }
.ec-plan-card--compact .ec-plan-price { margin: 0 0 8px; padding: 0 0 20px; border-top: 0; border-bottom: 1px solid var(--ec-plan-line); }
.ec-plan-price + .ec-plan-list { border-top: 1px solid var(--ec-plan-line); padding-top: 8px; }
.ec-plan-card--compact .ec-plan-price + .ec-plan-list { border-top: 0; padding-top: 0; }
.ec-plan-price__main { font-family: var(--ec-font-head); font-size: 48px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--ec-navy); }
.ec-plan-price__main sup { font-size: 22px; font-weight: 700; top: -0.9em; margin-right: 2px; }
.ec-plan-price__per { font-size: 14px; font-weight: 600; color: var(--ec-slate-500); }
.ec-plan-price__alt { margin-top: 10px; padding: 5px 14px; border-radius: var(--ec-r-pill); background: var(--ec-surface); border: 1px solid var(--ec-plan-line); font-size: 14px; color: var(--ec-slate-600); }
.ec-plan-price__alt strong { color: var(--ec-navy); }
.ec-plan-price__total { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ec-brand); border-bottom: 1px dashed currentColor; cursor: help; }
.ec-plan-price__total:hover, .ec-plan-price__total:focus { color: var(--ec-brand-700); outline: none; }

/* Tick lists */
.ec-plan-list { color: var(--ec-success); text-align: left; }
.ec-plan-list li + li { border-top-color: #E8EDF4; }
.ec-plan-list strong { font-weight: 700; color: var(--ec-ink); }
.ec-plan-list__link { color: inherit; text-decoration: none; border-bottom: 1px solid var(--ec-brand-100); }
.ec-plan-list__link:hover { color: var(--ec-brand); border-bottom-color: var(--ec-brand); }
.ec-plan-badge { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.6; letter-spacing: .02em; text-transform: uppercase; border-radius: 999px; padding: 0 8px; vertical-align: middle; }
.ec-plan-badge--beta { color: var(--ec-warning-text); background: var(--ec-warning-bg); border: 1px solid #FCD34D; }

/* Notes, trust row, sections */
.ec-plan-note { margin-top: 16px !important; text-align: center; }
.ec-plan-trust { margin-top: 32px; }
.ec-plan-trust .ec-chip-i { border-color: var(--ec-plan-line); }
.ec-plan-section { margin-top: 88px; }
.ec-plan-head { margin-bottom: 40px; }
.ec-plan-notes { margin-top: 24px; padding: 20px 28px; border-radius: var(--ec-r-card); background: var(--ec-surface); border: 1px solid var(--ec-plan-line); }
.ec-plan-notes__title { font-family: var(--ec-font-head); font-size: 17px; font-weight: 700; color: var(--ec-navy); margin-bottom: 4px !important; }
.ec-plan-notes__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.ec-plan-notes__list li + li { border-top: 0; }

/* "All plans include" box (Coaching tab) */
.ec-plan-features { background: #fff; border: 1px solid var(--ec-plan-line); border-radius: var(--ec-r-card); padding: 20px 32px; box-shadow: var(--ec-plan-shadow); }
.ec-plan-features__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
.ec-plan-features__list li + li { border-top: 0; }
.ec-plan-features__list li { border-bottom: 1px dashed #E8EDF4; }

/* Add-ons */
.ec-plan-addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ec-plan-addon { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--ec-plan-line); border-radius: var(--ec-r-card); padding: 24px; box-shadow: var(--ec-plan-shadow); }
.ec-plan-addon__title { font-family: var(--ec-font-head); font-size: 18px; font-weight: 700; color: var(--ec-ink); }
.ec-plan-addon__price { display: inline-block; margin-top: 6px; font-family: var(--ec-font-head); font-size: 20px; font-weight: 800; color: var(--ec-navy); }
.ec-plan-addon__text { margin-top: 6px !important; font-size: 15px; line-height: 1.5; color: var(--ec-slate-600); }
.ec-plan-addon__link { display: inline-flex; align-items: center; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ec-brand); }

@media (max-width: 900px) {
  .ec-plan-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .ec-plan-features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-plan-addons, .ec-plan-notes__list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ec-plan-features { padding: 12px 20px; }
  .ec-plan-features__list { grid-template-columns: 1fr; }
  .ec-plan-toolbar { justify-content: center; }
  .ec-plan-switch ul.nav.flex-nowrap .nav-link { padding: 8px 14px !important; }
}
@media (prefers-reduced-motion: reduce) { .ec-plan-card:hover { transform: none; } }

/* Thank-you page after a demo request (resources/views/frontend/thankyou-req-demo.blade.php) */
.ec-ty { padding: 72px 0 96px; }
.ec-ty__inner { position: relative; max-width: 900px; }
.ec-ty__head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 36px; }
.ec-ty__tick { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ec-success); color: #fff; box-shadow: 0 0 0 10px var(--ec-success-bg); margin-bottom: 8px; }
.ec-ty__head .ec-lead { max-width: 600px; }
.ec-ty__card { background: #fff; border: 1px solid #D3DCE8; border-radius: var(--ec-r-card); box-shadow: 0 1px 2px rgba(11,27,63,.05), 0 24px 48px -28px rgba(11,27,63,.35); padding: 28px; }
.ec-ty__demo { display: flex; align-items: center; gap: 16px; padding: 4px 0 24px; border-bottom: 1px solid #D3DCE8; }
.ec-ty__demo-text { flex: 1; min-width: 0; }
.ec-ty__title { font-family: var(--ec-font-head); font-size: 19px; font-weight: 700; color: var(--ec-ink); }
.ec-ty__url { display: block; margin-top: 2px; font-size: 14px; color: var(--ec-slate-500); overflow-wrap: anywhere; }
.ec-ty__open { flex: none; gap: 8px; }
.ec-ty__subtitle { margin: 22px 0 12px !important; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ec-slate-500); }
.ec-ty__logins { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ec-ty__login-btn { grid-column: 4; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; font-size: 14px; font-weight: 600; color: #fff !important; background: var(--ec-brand); border: 1px solid var(--ec-brand); border-radius: 10px; padding: 7px 14px; text-decoration: none !important; transition: background-color .15s ease; }
.ec-ty__login-btn:hover { background: var(--ec-brand-700); border-color: var(--ec-brand-700); }
.ec-ty__login-btn:focus-visible { outline: 2px solid var(--ec-brand); outline-offset: 2px; }
.ec-ty__login { display: grid; grid-template-columns: 100px minmax(0, 1.3fr) minmax(0, 1fr) 140px; align-items: center; gap: 12px 16px; padding: 12px 14px; border-radius: 14px; background: var(--ec-surface); border: 1px solid var(--ec-border); }
.ec-ty__role { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ec-navy); }
.ec-ty__role-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ec-brand-50); color: var(--ec-brand); }
.ec-ty__cred { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ec-ty__label { font-size: 12px; font-weight: 600; color: var(--ec-slate-500); }
.ec-ty__cred code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: var(--ec-ink); background: #fff; border: 1px solid var(--ec-border); border-radius: 8px; padding: 5px 9px; }
.ec-ty__copy { flex: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ec-brand); background: #fff; border: 1px solid var(--ec-brand-100); border-radius: 8px; padding: 5px 10px; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.ec-ty__copy:hover { background: var(--ec-brand-50); }
.ec-ty__copy:focus-visible { outline: 2px solid var(--ec-brand); outline-offset: 2px; }
.ec-ty__copy.is-copied { color: var(--ec-success); border-color: #86EFAC; background: var(--ec-success-bg); }
@media (max-width: 720px) {
  .ec-ty { padding: 48px 0 72px; }
  .ec-ty__card { padding: 20px; }
  .ec-ty__demo { flex-wrap: wrap; }
  .ec-ty__open { width: 100%; justify-content: center; }
  .ec-ty__login { grid-template-columns: 1fr; }
  .ec-ty__label { flex: none; width: 60px; }
  .ec-ty__login-btn { grid-column: auto; width: 100%; padding: 9px 14px; }
}

/* Group titles ("Courses and referrals" etc.): .ec-page h3 { margin:0 } was cancelling the bottom gap */
.ec-page .ec-feature-group__title { margin: 0 0 28px; }

/* Blog listing */
.ec-blog-hero { padding: 88px 0 72px; }
.ec-blog { padding-top: 64px; }
.ec-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ec-border); border-radius: var(--ec-r-card); overflow: hidden; color: inherit; text-decoration: none !important; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.ec-post:hover { transform: translateY(-4px); box-shadow: var(--ec-shadow-card); border-color: var(--ec-brand-100); }
.ec-post__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--ec-brand-50), var(--ec-brand-100)); }
.ec-post__media::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%231F5FD1' stroke-opacity='.35' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E") center / 48px no-repeat; z-index: 0; }
.ec-post__media img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ec-post:hover .ec-post__media img { transform: scale(1.04); }
.ec-post__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.ec-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ec-slate-500); }
.ec-post__title { display: block; font-family: var(--ec-font-head); font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--ec-ink); transition: color .15s ease; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ec-post:hover .ec-post__title { color: var(--ec-brand); }
.ec-post__excerpt { display: block; font-size: 15px; line-height: 1.6; color: var(--ec-slate-600); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ec-post__more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ec-brand); }
.ec-post__more svg { transition: transform .18s ease; }
.ec-post:hover .ec-post__more svg { transform: translateX(3px); }
.ec-post__author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ec-slate-700); }
.ec-post__author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.ec-post--lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 48px; box-shadow: var(--ec-shadow-card); }
.ec-post--lead .ec-post__media { aspect-ratio: auto; min-height: 320px; height: 100%; }
.ec-post--lead .ec-post__body { justify-content: center; gap: 16px; padding: 40px 44px; }
.ec-post--lead .ec-badge { align-self: flex-start; }
.ec-post--lead .ec-post__title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; -webkit-line-clamp: 4; }
.ec-post--lead .ec-post__excerpt { font-size: 16px; -webkit-line-clamp: 4; }
.ec-post--lead .ec-post__more { margin-top: 8px; font-size: 15px; }

.ec-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.ec-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 56px; }
.ec-pager > :first-child { justify-self: start; }
.ec-pager > :last-child { justify-self: end; }
.ec-pager__page { font-size: 14px; font-weight: 600; color: var(--ec-slate-500); }
.ec-pager__flip { display: inline-flex; transform: rotate(180deg); }

.ec-readmore { margin-top: 80px; padding: 32px; background: var(--ec-surface); border: 1px solid var(--ec-border); border-radius: var(--ec-r-card); }
.ec-readmore .ec-h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.ec-readmore__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.ec-readmore__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ec-border); font-size: 15px; font-weight: 500; color: var(--ec-slate-800); text-decoration: none !important; transition: color .15s ease; }
.ec-readmore__list a svg { flex: none; color: var(--ec-slate-300); transition: color .15s ease, transform .15s ease; }
.ec-readmore__list a:hover { color: var(--ec-brand); }
.ec-readmore__list a:hover svg { color: var(--ec-brand); transform: translateX(3px); }

@media (max-width: 1024px) { .ec-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .ec-post--lead { grid-template-columns: 1fr; }
  .ec-post--lead .ec-post__media { aspect-ratio: 16 / 9; min-height: 0; }
  .ec-post--lead .ec-post__body { padding: 26px 24px 28px; }
  .ec-readmore__list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ec-blog-hero { padding: 56px 0 48px; }
  .ec-post-grid { grid-template-columns: 1fr; gap: 20px; }
  .ec-pager { grid-template-columns: 1fr 1fr; }
  .ec-pager__page { display: none; }
  .ec-readmore { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { .ec-post:hover, .ec-post:hover .ec-post__media img { transform: none; } }
/* Width-capped lead text inside a centred section head must be centred too */
.ec-section-head:not(.ec-section-head--left) .ec-lead--lg { margin-left: auto; margin-right: auto; }

/* Taller header at the top of the page; compact once sticky (.is-scrolled) */
.ec-header__inner { min-height: 84px; }
.ec-logo img { height: 40px; transition: height .2s ease; }
.ec-header.is-scrolled .ec-header__inner { min-height: 60px; }
.ec-header.is-scrolled .ec-logo img { height: 36px; }
@media (max-width: 991.98px) { .ec-header__inner { min-height: 72px; } }

/* ============ Knowledgebase & FAQ ============ */
.kb-hero { padding: 80px 0 64px; }
.kb-hero .ec-section-head { max-width: 760px; }
.kb-hero--sub { padding: 40px 0 44px; }
.kb-hero--article { padding: 40px 0 36px; background: var(--ec-brand-50); border-bottom: 1px solid var(--ec-border); }
.kb-section { padding: 56px 0 96px; }
.kb-section--article { padding-top: 48px; }

/* Search box */
.kb-search-wrap { width: 100%; }
.kb-search-form { width: 100%; max-width: 560px; margin: 0; }
.kb-search-wrap--lg .kb-search-form { max-width: 640px; margin: 8px auto 0; }
.kb-search-field { position: relative; width: 100%; }
.kb-search-input-group { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--ec-border); border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px -18px rgba(11,27,63,.25); transition: border-color .15s ease, box-shadow .15s ease; }
.kb-search-input-group:focus-within { border-color: var(--ec-brand); box-shadow: 0 0 0 4px var(--ec-brand-50), 0 10px 30px -18px rgba(11,27,63,.25); }
.kb-search-icon { flex: none; display: inline-flex; padding-left: 10px; color: var(--ec-slate-500); }
.kb-search-input { flex: 1; min-width: 0; height: 44px; border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent !important; padding: 0 8px !important; font-size: 16px; color: var(--ec-ink); }
.kb-search-input::placeholder { color: #94A3B8; }
.kb-search-btn { flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--ec-brand); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .15s ease; }
.kb-search-btn:hover, .kb-search-btn:focus-visible { background: var(--ec-brand-700); }
.kb-search-wrap--lg .kb-search-input-group { padding: 8px; border-radius: 16px; }
.kb-search-wrap--lg .kb-search-input, .kb-search-wrap--lg .kb-search-btn { height: 52px; }
.kb-search-wrap--lg .kb-search-input { font-size: 17px; }
.kb-search-suggestions { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1050; display: none; max-height: 340px; overflow-y: auto; margin: 0; padding: 6px; text-align: left; background: #fff; border: 1px solid var(--ec-border); border-radius: 14px; box-shadow: var(--ec-shadow-pop); }
.kb-search-suggestions.is-open { display: block; }
.kb-search-suggestions .dropdown-item { display: block; padding: 10px 12px; border-radius: 10px; white-space: normal; font-size: 15px; font-weight: 500; color: var(--ec-ink); }
.kb-search-suggestions .dropdown-item small { margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--ec-slate-500) !important; }
.kb-search-suggestion.active, .kb-search-suggestion:hover { background: var(--ec-brand-50); color: var(--ec-brand-700); }
.kb-search-clear { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--ec-slate-500); text-decoration: none !important; }
.kb-search-clear:hover { color: var(--ec-brand); }

/* Quick links under the hero search */
.kb-quick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; color: var(--ec-slate-500); }
.kb-quick a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--ec-r-pill); background: #fff; border: 1px solid var(--ec-border); color: var(--ec-slate-700); font-weight: 500; text-decoration: none !important; transition: border-color .15s ease, color .15s ease; }
.kb-quick a:hover { border-color: var(--ec-brand-100); color: var(--ec-brand); }
.kb-quick a svg { color: var(--ec-brand); }

/* Section title row */
.kb-section-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 28px; }
.kb-section-title span { font-size: 14px; font-weight: 600; color: var(--ec-slate-500); }

/* Category cards (home) */
.kb-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kb-cat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ec-border); border-radius: var(--ec-r-card); padding: 8px 8px 16px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.kb-cat:hover { border-color: var(--ec-brand-100); box-shadow: var(--ec-shadow-card); transform: translateY(-3px); }
.kb-cat__head { display: flex; align-items: center; gap: 14px; padding: 14px 14px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--ec-border); text-decoration: none !important; }
.kb-cat__name { display: block; font-family: var(--ec-font-head); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ec-ink); transition: color .15s ease; }
.kb-cat__head:hover .kb-cat__name { color: var(--ec-brand); }
.kb-cat__count { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--ec-slate-500); }
.kb-cat__list { list-style: none; margin: 0; padding: 0; }
.kb-cat__list a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 14px; border-radius: 10px; font-size: 15px; line-height: 1.45; color: var(--ec-slate-700); text-decoration: none !important; transition: background-color .15s ease, color .15s ease; }
.kb-cat__list a svg { flex: none; margin-top: 2px; color: var(--ec-slate-300); transition: color .15s ease; }
.kb-cat__list a:hover { background: var(--ec-surface); color: var(--ec-brand); }
.kb-cat__list a:hover svg { color: var(--ec-brand); }
.kb-cat__empty { padding: 10px 14px; font-size: 14px; color: var(--ec-slate-500); }
.kb-cat__all { display: inline-flex; align-items: center; gap: 6px; margin: auto 14px 0; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--ec-brand); text-decoration: none !important; }
.kb-cat__all svg { transition: transform .15s ease; }
.kb-cat__all:hover svg { transform: translateX(3px); }

/* Sub-page header */
.kb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--ec-slate-500); }
.kb-crumbs a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ec-brand); text-decoration: none !important; }
.kb-crumbs a:hover { color: var(--ec-brand-700); text-decoration: underline !important; }
.kb-crumbs [aria-current] { color: var(--ec-slate-700); font-weight: 500; }
.kb-hero__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.kb-hero__row .kb-search-wrap { flex: 0 1 440px; }
.kb-hero__title { display: flex; align-items: center; gap: 18px; }
.kb-hero__title .ec-h1 { margin: 0; }
.kb-hero__sub { margin: 4px 0 0 !important; font-size: 15px; font-weight: 500; color: var(--ec-slate-500); }
.kb-article-title { max-width: 880px; margin: 0 0 16px; }
.kb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 14px; color: var(--ec-slate-500); }
.kb-meta > span { display: inline-flex; align-items: center; gap: 6px; }

/* Two-column layout */
.kb-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.kb-layout--article { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
.kb-layout--faq { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
.kb-main { min-width: 0; }
.kb-aside { display: flex; flex-direction: column; gap: 20px; }
.kb-aside--sticky { position: sticky; top: 88px; }
.kb-aside__block, .kb-help-card { background: #fff; border: 1px solid var(--ec-border); border-radius: 18px; padding: 18px; }
.kb-aside__search { padding: 12px; }
.kb-aside__search .kb-search-form { max-width: none; }
.kb-aside__search .kb-search-btn { padding: 0 14px; }
.kb-aside__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ec-slate-500); }
.kb-aside__title svg { color: var(--ec-brand); }

/* Category nav */
.kb-catnav { list-style: none; margin: 0; padding: 0; }
.kb-catnav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 15px; color: var(--ec-slate-700); text-decoration: none !important; transition: background-color .15s ease, color .15s ease; }
.kb-catnav a:hover { background: var(--ec-surface); color: var(--ec-brand); }
.kb-catnav a.is-current { background: var(--ec-brand-50); color: var(--ec-brand-700); font-weight: 600; }
.kb-catnav__dot { flex: none; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.kb-catnav__name { flex: 1; min-width: 0; }
.kb-catnav__count { flex: none; min-width: 26px; padding: 1px 8px; border-radius: var(--ec-r-pill); background: var(--ec-surface); font-size: 12px; font-weight: 600; text-align: center; color: var(--ec-slate-500); }
.kb-catnav a.is-current .kb-catnav__count { background: #fff; color: var(--ec-brand-700); }

/* Article list (category + search) */
.kb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kb-item { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--ec-border); border-radius: 16px; text-decoration: none !important; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.kb-item:hover { border-color: var(--ec-brand-100); box-shadow: var(--ec-shadow-card); transform: translateY(-2px); }
.kb-item__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.kb-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kb-item__cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ec-slate-500); }
.kb-item__title { font-family: var(--ec-font-head); font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--ec-ink); transition: color .15s ease; }
.kb-item:hover .kb-item__title { color: var(--ec-brand); }
.kb-item__excerpt { font-size: 15px; line-height: 1.6; color: var(--ec-slate-600); }
.kb-item__arrow { flex: none; align-self: center; color: var(--ec-slate-300); transition: color .15s ease, transform .15s ease; }
.kb-item:hover .kb-item__arrow { color: var(--ec-brand); transform: translateX(3px); }
.kb-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 15px; font-weight: 600; color: var(--ec-brand); text-decoration: none !important; }
.kb-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; text-align: center; background: var(--ec-surface); border: 1px dashed var(--ec-slate-300); border-radius: 18px; }
.kb-empty .ec-body { max-width: 460px; }

/* Article content */
.kb-prose { font-size: 17px; line-height: 1.75; color: var(--ec-slate-700); }
.kb-prose > *:first-child { margin-top: 0 !important; }
.kb-prose p { margin: 0 0 18px; font-size: inherit; line-height: inherit; font-family: inherit; }
.kb-prose h2 { margin: 44px 0 16px; padding-top: 4px; font-family: var(--ec-font-head); font-size: 26px; font-weight: 700; line-height: 1.3; color: var(--ec-ink); scroll-margin-top: 96px; }
.kb-prose h3 { margin: 30px 0 12px; font-family: var(--ec-font-head); font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--ec-ink); scroll-margin-top: 96px; }
.kb-prose h4 { margin: 24px 0 10px; font-size: 17px; font-weight: 700; color: var(--ec-ink); }
.kb-prose ul, .kb-prose ol { margin: 0 0 20px; padding-left: 24px; }
.kb-prose li { margin: 6px 0; padding-left: 4px; }
.kb-prose li::marker { color: var(--ec-brand); font-weight: 600; }
.kb-prose a { color: var(--ec-brand); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.kb-prose strong { color: var(--ec-ink); }
.kb-prose img { max-width: 100%; height: auto; border: 1px solid var(--ec-border); border-radius: 12px; box-shadow: 0 12px 30px -22px rgba(11,27,63,.35); }
.kb-prose figure { margin: 24px 0; }
.kb-prose figcaption { margin-top: 8px; font-size: 14px; text-align: center; color: var(--ec-slate-500); }
.kb-prose table { width: 100%; margin: 0 0 24px; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.kb-prose th, .kb-prose td { padding: 10px 14px; border: 1px solid var(--ec-border); text-align: left; vertical-align: top; }
.kb-prose th { background: var(--ec-surface); font-weight: 600; color: var(--ec-ink); }
.kb-prose blockquote { margin: 0 0 20px; padding: 14px 18px; background: var(--ec-brand-50); border-left: 4px solid var(--ec-brand); border-radius: 0 12px 12px 0; color: var(--ec-slate-700); }
.kb-prose code { padding: 2px 6px; border-radius: 6px; background: var(--ec-surface); border: 1px solid var(--ec-border); font-size: .9em; color: var(--ec-brand-700); }
.kb-prose pre { margin: 0 0 20px; padding: 16px; border-radius: 12px; background: var(--ec-navy); color: #E2E8F0; overflow-x: auto; }
.kb-prose pre code { padding: 0; border: 0; background: none; color: inherit; }

/* Tags, chips, prev/next */
.kb-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--ec-r-pill); background: #fff; border: 1px solid var(--ec-border); font-size: 13px; font-weight: 600; color: var(--ec-slate-700); text-decoration: none !important; transition: border-color .15s ease, color .15s ease; }
.kb-chip:hover { border-color: var(--ec-brand-100); color: var(--ec-brand); }
.kb-meta .kb-chip .kb-catnav__dot { width: 24px; height: 24px; border-radius: 50%; }
.kb-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ec-border); }
.kb-tags > span { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ec-slate-500); }
.kb-tags .kb-chip { padding: 4px 12px; font-weight: 500; }
.kb-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.kb-prevnext__link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: #fff; border: 1px solid var(--ec-border); border-radius: 16px; text-decoration: none !important; transition: border-color .2s ease, box-shadow .2s ease; }
.kb-prevnext__link:hover { border-color: var(--ec-brand-100); box-shadow: var(--ec-shadow-card); }
.kb-prevnext__link--next { text-align: right; align-items: flex-end; }
.kb-prevnext__label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ec-slate-500); }
.kb-prevnext__title { font-family: var(--ec-font-head); font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ec-ink); }
.kb-prevnext__link:hover .kb-prevnext__title { color: var(--ec-brand); }

/* Table of contents + sibling articles */
.kb-toc, .kb-siblings { list-style: none; margin: 0; padding: 0; }
.kb-toc a, .kb-siblings a { display: block; padding: 7px 10px; border-left: 2px solid var(--ec-border); font-size: 14px; line-height: 1.45; color: var(--ec-slate-600); text-decoration: none !important; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.kb-toc a:hover, .kb-siblings a:hover { color: var(--ec-brand); border-left-color: var(--ec-brand-100); }
.kb-siblings a.is-current { color: var(--ec-brand-700); font-weight: 600; border-left-color: var(--ec-brand); background: var(--ec-brand-50); border-radius: 0 8px 8px 0; }
.kb-siblings { max-height: 320px; overflow-y: auto; }

/* Help: sidebar card + full strip */
.kb-help-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kb-help-card a { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none !important; transition: background-color .15s ease; }
.kb-help-card a:hover { background: var(--ec-surface); }
.kb-help-card strong { display: block; font-size: 15px; color: var(--ec-ink); }
.kb-help-card strong + span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ec-slate-500); }
.kb-help { display: grid; grid-template-columns: minmax(200px, .8fr) 3fr; align-items: center; gap: 24px 32px; margin-top: 56px; padding: 28px 32px; background: var(--ec-brand-50); border: 1px solid var(--ec-brand-100); border-radius: var(--ec-r-card); }
.kb-help__intro .ec-h3 { margin: 0 0 6px; }
.kb-help__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kb-help__option { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--ec-border); border-radius: 14px; text-decoration: none !important; transition: border-color .2s ease, box-shadow .2s ease; }
.kb-help__option:hover { border-color: var(--ec-brand-100); box-shadow: var(--ec-shadow-pop); }
.kb-help__option strong { display: block; font-size: 15px; color: var(--ec-ink); }
.kb-help__option strong + span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ec-slate-500); }
.kb-main .kb-help { grid-template-columns: 1fr; }

/* FAQ: card panel + numbered questions */
.faq-panel { background: #fff; border: 1px solid var(--ec-border); border-radius: var(--ec-r-card); padding: 8px 28px; box-shadow: 0 12px 30px -24px rgba(11,27,63,.3); }
.faq-panel .ec-faq { border-top: 0; counter-reset: faq; }
.faq-panel .ec-faq details:last-child { border-bottom: 0; }
.faq-panel .ec-faq summary { justify-content: flex-start; }
.faq-panel .ec-faq summary svg { margin-left: auto; color: var(--ec-slate-500); }
.faq-panel .ec-faq summary::before { counter-increment: faq; content: counter(faq, decimal-leading-zero); flex: none; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--ec-brand-50); color: var(--ec-brand); font-size: 14px; font-weight: 700; transition: background-color .15s ease, color .15s ease; }
.faq-panel .ec-faq details[open] summary::before { background: var(--ec-brand); color: #fff; }
.faq-panel .ec-faq details[open] summary { color: var(--ec-brand-700); }
.faq-panel .ec-faq details > div { padding-left: 52px; }

@media (max-width: 1080px) {
  .kb-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-layout--article, .kb-layout--faq { grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; }
  .kb-help { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .kb-layout, .kb-layout--article, .kb-layout--faq { grid-template-columns: 1fr; }
  .kb-aside--sticky { position: static; }
  .kb-layout:not(.kb-layout--article):not(.kb-layout--faq) .kb-aside { order: 2; }
  .kb-hero__row .kb-search-wrap { flex-basis: 100%; }
  .kb-help__options { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kb-hero { padding: 56px 0 44px; }
  .kb-hero--sub, .kb-hero--article { padding: 28px 0 32px; }
  .kb-cat-grid { grid-template-columns: 1fr; }
  .kb-item { padding: 16px; gap: 12px; }
  .kb-item__arrow { display: none; }
  .kb-prose { font-size: 16px; }
  .kb-prose h2 { font-size: 22px; }
  .kb-prevnext { grid-template-columns: 1fr; }
  .faq-panel { padding: 4px 18px; }
  .faq-panel .ec-faq summary { font-size: 16px; }
  .faq-panel .ec-faq details > div { padding-left: 0; }
  .kb-help { padding: 22px 18px; }
  .kb-search-btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { .kb-cat:hover, .kb-item:hover { transform: none; } }

/* ============ KB article body (v2) ============ */
.kb-prose { counter-reset: kbsec; }
/* Intro summary */
.kb-prose .kb-intro { position: relative; margin: 0 0 32px; padding: 22px 24px 22px 26px; font-size: 18px; line-height: 1.7; color: var(--ec-slate-700); background: linear-gradient(135deg, var(--ec-brand-50), #fff 70%); border: 1px solid var(--ec-brand-100); border-radius: 16px; }
.kb-prose .kb-intro::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ec-brand); }

/* Numbered section headings */
.kb-prose > h2 { counter-increment: kbsec; display: flex; align-items: center; gap: 14px; margin: 52px 0 20px; padding-top: 28px; border-top: 1px solid var(--ec-border); }
.kb-prose > h2::before { content: counter(kbsec, decimal-leading-zero); flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--ec-brand); color: #fff; font-size: 15px; font-weight: 700; font-family: var(--ec-font-body); box-shadow: 0 8px 18px -10px var(--ec-brand); }
.kb-prose > .kb-intro + h2, .kb-prose > h2:first-child, .kb-prose > .kb-infobox + h2 { border-top: 0; padding-top: 0; margin-top: 36px; }

/* Prerequisites / before you begin */
.kb-prose .kb-infobox { margin: 0 0 32px; padding: 20px 24px 6px; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 16px; }
.kb-prose .kb-infobox h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0; border: 0; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #15803D; }
.kb-prose .kb-infobox h2::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 8px; background: #15803D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.kb-prose .kb-infobox ul { list-style: none; padding-left: 0; }
.kb-prose .kb-infobox li { position: relative; padding-left: 26px; }
.kb-prose .kb-infobox li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }

/* Step-by-step numbered lists */
.kb-prose ol { list-style: none; counter-reset: kbstep; padding-left: 0; margin: 0 0 24px; }
.kb-prose ol > li { counter-increment: kbstep; position: relative; min-height: 34px; margin: 0; padding: 4px 0 18px 52px; }
.kb-prose ol > li::before { content: counter(kbstep); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--ec-brand); color: var(--ec-brand); font-size: 14px; font-weight: 700; z-index: 1; }
.kb-prose ol > li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--ec-brand-100); }
.kb-prose ol > li::marker { content: none; }

/* Bullets */
.kb-prose ul { list-style: none; padding-left: 0; }
.kb-prose ul > li { position: relative; padding-left: 24px; }
.kb-prose ul > li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--ec-brand); }
.kb-prose ul ul { margin: 6px 0 4px; }
.kb-prose ul ul > li::before { width: 6px; height: 6px; border-radius: 50%; transform: none; background: transparent; border: 1.5px solid var(--ec-brand); }
.kb-prose li > p { margin: 0 0 8px; }

/* Sub-section cards (h3 blocks) */
.kb-prose .kb-sub { margin: 0 0 16px; padding: 20px 22px 6px; background: #fff; border: 1px solid var(--ec-border); border-radius: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.kb-prose .kb-sub:hover { border-color: var(--ec-brand-100); box-shadow: 0 14px 30px -24px rgba(11,27,63,.35); }
.kb-prose .kb-sub > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 18px; }
.kb-prose .kb-sub > h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--ec-brand); box-shadow: 0 0 0 4px var(--ec-brand-50); }
.kb-prose .kb-sub > p { margin-bottom: 14px; }
.kb-prose .kb-sub > ul, .kb-prose .kb-sub > ol { margin-bottom: 14px; }

/* UI labels in bold read like interface terms */
.kb-prose li strong, .kb-prose .kb-sub p strong { padding: 1px 6px; border-radius: 6px; background: var(--ec-surface); border: 1px solid var(--ec-border); font-weight: 600; font-size: .95em; white-space: nowrap; }

/* Screenshots framed like an app window */
.kb-prose figure.image, .kb-prose figure { position: relative; margin: 20px 0 22px; padding: 30px 8px 8px; background: var(--ec-surface); border: 1px solid var(--ec-border); border-radius: 14px; max-width: 100%; }
.kb-prose figure::before { content: ""; position: absolute; top: 11px; left: 14px; width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; box-shadow: 15px 0 0 #FEBC2E, 30px 0 0 #28C840; }
.kb-prose figure img { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 8px; box-shadow: none; }
.kb-prose figure.image_resized img { width: 100%; }

/* Note / tip callouts */
.kb-prose .kb-note { margin: 0 0 20px; padding: 14px 18px 14px 48px; position: relative; border-radius: 12px; background: var(--ec-brand-50); border: 1px solid var(--ec-brand-100); }
.kb-prose .kb-note::before { content: "i"; position: absolute; left: 16px; top: 14px; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ec-brand); color: #fff; font: 700 13px/1 Georgia, serif; }
.kb-prose .kb-note--tip { background: #F0FDF4; border-color: #BBF7D0; }
.kb-prose .kb-note--tip::before { background: #15803D; }
.kb-prose .kb-note--important, .kb-prose .kb-note--warning { background: var(--ec-warning-bg); border-color: #FCD34D; }
.kb-prose .kb-note--important::before, .kb-prose .kb-note--warning::before { content: "!"; background: var(--ec-warning); font-family: inherit; }

/* Mobile "In this article" */
.kb-toc-mobile { display: none; margin: 0 0 28px; background: #fff; border: 1px solid var(--ec-border); border-radius: 14px; }
.kb-toc-mobile summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; color: var(--ec-ink); }
.kb-toc-mobile summary::-webkit-details-marker { display: none; }
.kb-toc-mobile summary svg { color: var(--ec-brand); }
.kb-toc-mobile summary span { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ec-slate-500); }
.kb-toc-mobile .kb-toc { padding: 0 12px 12px; }
.kb-toc a.is-active { color: var(--ec-brand-700); font-weight: 600; border-left-color: var(--ec-brand); background: var(--ec-brand-50); border-radius: 0 8px 8px 0; }

/* FAQ topics */
.faq-panel { counter-reset: faq; }
.faq-panel .ec-faq { counter-reset: none; }
.faq-topic { margin: 28px 0 4px; padding-top: 24px; border-top: 1px solid var(--ec-border); font-family: var(--ec-font-head); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ec-brand); scroll-margin-top: 96px; }
.faq-panel .faq-topic:first-child { margin-top: 16px; padding-top: 0; border-top: 0; }

@media (max-width: 900px) { .kb-toc-mobile { display: block; } }
@media (max-width: 640px) {
  .kb-prose .kb-intro { padding: 18px 18px 18px 22px; font-size: 16px; }
  .kb-prose > h2 { gap: 12px; }
  .kb-prose > h2::before { width: 34px; height: 34px; font-size: 13px; }
  .kb-prose .kb-sub, .kb-prose .kb-infobox { padding: 16px 16px 4px; }
  .kb-prose ol > li { padding-left: 46px; }
  .kb-prose li strong, .kb-prose .kb-sub p strong { white-space: normal; }
}
