/* =====================================================================
   FacultyMe — Modern design system
   Loaded after the legacy theme in base.html. All new components are
   prefixed `fm-` so legacy markup and JS hooks are untouched.
   ===================================================================== */

:root {
  --fm-primary: #1660e8;
  --fm-primary-600: #0f4fc7;
  --fm-primary-50: #eef4ff;
  --fm-primary-100: #dbe8ff;
  --fm-orange: #f2681d;
  --fm-orange-600: #d9560f;
  --fm-orange-50: #fff4ec;
  --fm-orange-100: #ffe2cf;
  --fm-green: #16a34a;
  --fm-green-600: #12873d;
  --fm-green-50: #ecfaf1;
  --fm-green-100: #d2f2df;
  --fm-gold: #f5b70a;
  --fm-red: #ef4444;
  --fm-violet: #7c3aed;

  --fm-ink: #0b1b3f;
  --fm-ink-2: #22314f;
  --fm-muted: #5b6b8c;
  --fm-line: #e3e9f4;
  --fm-bg: #f6f8fc;
  --fm-surface: #ffffff;

  --fm-radius-sm: 10px;
  --fm-radius: 16px;
  --fm-radius-lg: 24px;
  --fm-shadow-sm: 0 1px 2px rgba(11, 27, 63, .06), 0 1px 3px rgba(11, 27, 63, .05);
  --fm-shadow: 0 10px 30px -12px rgba(11, 27, 63, .18), 0 2px 6px rgba(11, 27, 63, .05);
  --fm-shadow-lg: 0 24px 60px -20px rgba(11, 27, 63, .28);
  --fm-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body { font-family: var(--fm-font); color: var(--fm-ink-2); background: var(--fm-bg); }

/* ---------------------------------------------------------------------
   Header (legacy markup, restyled)
   --------------------------------------------------------------------- */
.header.sticky-bar {
  background: rgba(255, 255, 255, .86) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--fm-line);
  box-shadow: none !important;
  padding: 14px 0 !important;
}
.header.sticky-bar.stick { padding: 10px 0 !important; box-shadow: 0 8px 24px -16px rgba(11, 27, 63, .25) !important; }
.header .main-menu > li > a { font-weight: 600; color: var(--fm-ink-2); font-size: 15px; }
.header .main-menu > li > a:hover { color: var(--fm-primary) !important; }
.header .nav-main-menu .main-menu > li { padding: 8px 14px; }
.header .sub-menu { border-radius: var(--fm-radius) !important; border: 1px solid var(--fm-line) !important; box-shadow: var(--fm-shadow) !important; padding: 8px !important; }
.header .sub-menu li a { border-radius: 8px; padding: 9px 14px !important; }
.header .sub-menu li a:hover { background: var(--fm-primary-50); color: var(--fm-primary) !important; }
.header .header-right .btn.btn-default,
.header .header-right-mobile .btn.btn-default {
  background: var(--fm-primary); border: 0; border-radius: 999px; padding: 10px 20px;
  font-weight: 700; font-size: 14px; box-shadow: 0 8px 18px -8px rgba(22, 96, 232, .6);
}
.header .header-right .btn.btn-default:hover { background: var(--fm-primary-600); transform: translateY(-1px); }
.header .header-right .btn.btn-danger { background: #fff !important; color: var(--fm-red) !important; border: 1px solid #fecaca !important; box-shadow: none !important; }
.header .header-right .btn.btn-danger:hover { background: #fef2f2 !important; }

/* ---------------------------------------------------------------------
   Footer (legacy markup, restyled)
   --------------------------------------------------------------------- */
.seo-footer-links { background: radial-gradient(1200px 400px at 10% -10%, rgba(22, 96, 232, .45), transparent 60%), linear-gradient(160deg, #081634 0%, #0c2263 100%) !important; }
.seo-footer-links a:hover { color: #fff !important; text-decoration: underline !important; }
.footer { background: #061128 !important; padding: 28px 0 24px !important; }
.footer .footer-social a.fab { color: rgba(255, 255, 255, .8); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .07); margin: 0 4px; transition: .2s; }
.footer .footer-social a.fab:hover { background: var(--fm-primary); color: #fff; }
.footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1) !important; }
.footer .color-text-paragraph { color: rgba(255, 255, 255, .6) !important; }

/* ---------------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------------- */
.fm-page { background: var(--fm-bg); padding-bottom: 72px; }
.fm-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.fm-section { padding: 64px 0; }
.fm-section-sm { padding: 40px 0; }
.fm-grid { display: grid; gap: 24px; }
.fm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .fm-grid-3, .fm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fm-grid-2, .fm-grid-3, .fm-grid-4 { grid-template-columns: 1fr; } .fm-container { padding: 0 16px; } .fm-section { padding: 44px 0; } }

/* ---------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------- */
.fm-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-primary); background: var(--fm-primary-50); padding: 6px 12px; border-radius: 999px; }
.fm-h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; color: var(--fm-ink); margin: 16px 0 14px; }
.fm-h1 .fm-accent { color: var(--fm-primary); }
.fm-h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--fm-ink); margin: 0; }
.fm-h3 { font-size: 20px; line-height: 1.3; font-weight: 800; color: var(--fm-ink); margin: 0; letter-spacing: -.01em; }
.fm-lead { font-size: 18px; line-height: 1.6; color: var(--fm-muted); margin: 0; max-width: 620px; }
.fm-muted { color: var(--fm-muted); }
.fm-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.fm-section-head.center { flex-direction: column; align-items: center; text-align: center; }
.fm-section-head p { margin: 8px 0 0; color: var(--fm-muted); font-size: 16px; }
.fm-link { color: var(--fm-primary); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.fm-link:hover { color: var(--fm-primary-600); gap: 10px; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.fm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 15.5px; line-height: 1; text-decoration: none !important; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.fm-btn:hover { transform: translateY(-2px); }
.fm-btn-primary { background: var(--fm-primary); color: #fff !important; box-shadow: 0 10px 22px -10px rgba(22, 96, 232, .7); }
.fm-btn-primary:hover { background: var(--fm-primary-600); }
.fm-btn-orange { background: var(--fm-orange); color: #fff !important; box-shadow: 0 10px 22px -10px rgba(242, 104, 29, .7); }
.fm-btn-orange:hover { background: var(--fm-orange-600); }
.fm-btn-green { background: var(--fm-green); color: #fff !important; box-shadow: 0 10px 22px -10px rgba(22, 163, 74, .7); }
.fm-btn-green:hover { background: var(--fm-green-600); }
.fm-btn-outline { background: #fff; color: var(--fm-primary) !important; border-color: var(--fm-primary); }
.fm-btn-outline:hover { background: var(--fm-primary-50); }
.fm-btn-outline-orange { background: #fff; color: var(--fm-orange) !important; border-color: var(--fm-orange); }
.fm-btn-outline-orange:hover { background: var(--fm-orange-50); }
.fm-btn-ghost { background: rgba(255, 255, 255, .14); color: #fff !important; border-color: rgba(255, 255, 255, .35); }
.fm-btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.fm-btn-white { background: #fff; color: var(--fm-ink) !important; }
.fm-btn-lg { padding: 17px 30px; font-size: 16.5px; border-radius: 14px; }
.fm-btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.fm-btn-block { width: 100%; }

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */
.fm-card { background: var(--fm-surface); border: 1px solid var(--fm-line); border-radius: var(--fm-radius-lg); box-shadow: var(--fm-shadow-sm); padding: 28px; }
.fm-card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.fm-card-hover:hover { transform: translateY(-4px); box-shadow: var(--fm-shadow); border-color: var(--fm-primary-100); }

.fm-icon { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; background: var(--fm-primary); box-shadow: 0 10px 20px -10px currentColor; }
.fm-icon.orange { background: var(--fm-orange); }
.fm-icon.green { background: var(--fm-green); }
.fm-icon.violet { background: var(--fm-violet); }
.fm-icon.gold { background: var(--fm-gold); }
.fm-icon-soft { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: var(--fm-primary); background: var(--fm-primary-50); }
.fm-icon-soft.orange { color: var(--fm-orange); background: var(--fm-orange-50); }
.fm-icon-soft.green { color: var(--fm-green); background: var(--fm-green-50); }
.fm-icon-lg { width: 72px; height: 72px; flex-basis: 72px; font-size: 28px; }

/* Tinted action row (Post a Job / Walk-in / Find Teachers) */
.fm-action { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: var(--fm-radius-lg); text-decoration: none !important; border: 1px solid transparent; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.fm-action:hover { transform: translateY(-3px); box-shadow: var(--fm-shadow); }
.fm-action .fm-action-body { flex: 1; min-width: 0; }
.fm-action h3 { font-size: 20px; font-weight: 800; color: var(--fm-ink); margin: 0 0 4px; }
.fm-action p { margin: 0; color: var(--fm-muted); font-size: 15px; }
.fm-action .fm-chev { color: var(--fm-ink); font-size: 18px; transition: transform .2s; }
.fm-action:hover .fm-chev { transform: translateX(4px); }
.fm-action.blue { background: linear-gradient(135deg, #f1f6ff, #e6efff); border-color: #d7e5ff; }
.fm-action.orange { background: linear-gradient(135deg, #fff7f1, #ffeee2); border-color: #ffdcc4; }
.fm-action.green { background: linear-gradient(135deg, #f2fbf5, #e5f7ec); border-color: #cdeedb; }

/* Big option card (school landing — 3 hiring options) */
.fm-option { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding: 40px; border-radius: 28px; overflow: hidden; border: 1px solid transparent; }
.fm-option.green { background: linear-gradient(135deg, #f3fcf6 0%, #e4f7eb 100%); border-color: #cdeedb; }
.fm-option.orange { background: linear-gradient(135deg, #fff8f2 0%, #ffece0 100%); border-color: #ffdcc4; }
.fm-option.blue { background: linear-gradient(135deg, #f3f7ff 0%, #e4edff 100%); border-color: #d7e5ff; }
.fm-option-head { display: flex; gap: 18px; align-items: flex-start; }
.fm-option h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--fm-ink); margin: 0 0 6px; }
.fm-option .fm-option-sub { font-size: 16.5px; color: var(--fm-muted); margin: 0 0 18px; }
.fm-checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.fm-checks li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--fm-ink-2); font-weight: 500; }
.fm-checks li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--fm-primary); flex: 0 0 22px; }
.fm-option.green .fm-checks li::before { background: var(--fm-green); }
.fm-option.orange .fm-checks li::before { background: var(--fm-orange); }
.fm-option-visual { position: relative; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.fm-callout { display: inline-flex; gap: 10px; align-items: center; background: #fff7d6; border: 1px solid #fde68a; color: #6b4e00; font-weight: 700; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14.5px; }
@media (max-width: 900px) { .fm-option { grid-template-columns: 1fr; padding: 28px 22px; } .fm-option-visual { min-height: 0; } }

/* Mock UI tiles used as illustrations */
.fm-mock { background: #fff; border-radius: 18px; box-shadow: var(--fm-shadow-lg); padding: 20px; width: 100%; max-width: 360px; border: 1px solid var(--fm-line); }
.fm-mock-title { font-weight: 800; color: var(--fm-ink); font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.fm-mock-field { height: 34px; border-radius: 9px; background: var(--fm-bg); border: 1px solid var(--fm-line); margin-bottom: 9px; display: flex; align-items: center; padding: 0 12px; font-size: 12.5px; color: var(--fm-muted); }
.fm-mock-btn { height: 36px; border-radius: 9px; background: var(--fm-green); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.fm-mock-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--fm-line); margin-bottom: 8px; background: #fff; }
.fm-avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 14px; flex: 0 0 38px; background: linear-gradient(135deg, #60a5fa, #1660e8); }
.fm-avatar.o { background: linear-gradient(135deg, #fdba74, #f2681d); }
.fm-avatar.g { background: linear-gradient(135deg, #86efac, #16a34a); }

/* ---------------------------------------------------------------------
   Chips / badges
   --------------------------------------------------------------------- */
.fm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.fm-badge-plus { background: linear-gradient(90deg, #ffe7a3, #f7c948); color: #5a3e00; }
.fm-badge-green { background: var(--fm-green-50); color: var(--fm-green-600); }
.fm-badge-blue { background: var(--fm-primary-50); color: var(--fm-primary); }
.fm-badge-orange { background: var(--fm-orange-50); color: var(--fm-orange-600); }
.fm-badge-red { background: #fee2e2; color: #b91c1c; }
.fm-tag { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--fm-line); font-size: 14px; font-weight: 600; color: var(--fm-ink-2); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.fm-hero { position: relative; overflow: hidden; padding: 64px 0 56px; background:
  radial-gradient(800px 380px at 85% 0%, rgba(22, 96, 232, .14), transparent 65%),
  radial-gradient(600px 300px at 0% 100%, rgba(242, 104, 29, .08), transparent 60%),
  linear-gradient(180deg, #f8fbff 0%, var(--fm-bg) 100%); }
.fm-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.fm-hero-points { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.fm-hero-points > div { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--fm-ink-2); font-size: 14.5px; }
.fm-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 991px) { .fm-hero-grid { grid-template-columns: 1fr; } .fm-hero { padding: 44px 0 36px; } }

/* Dark gradient banner */
.fm-banner { position: relative; overflow: hidden; border-radius: 28px; padding: 40px 44px; color: #fff; background:
  radial-gradient(500px 240px at 100% 0%, rgba(96, 165, 250, .45), transparent 60%),
  linear-gradient(120deg, #0b2a7a 0%, #1660e8 100%); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.fm-banner h2, .fm-banner h3 { color: #fff; margin: 0 0 6px; font-weight: 800; letter-spacing: -.02em; }
.fm-banner p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 16px; }
.fm-banner.green { background: radial-gradient(500px 240px at 100% 0%, rgba(134, 239, 172, .35), transparent 60%), linear-gradient(120deg, #075e33 0%, #16a34a 100%); }
@media (max-width: 640px) { .fm-banner { padding: 28px 22px; } }

/* ---------------------------------------------------------------------
   Steps / how it works
   --------------------------------------------------------------------- */
.fm-step { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.fm-step-num { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--fm-primary); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--fm-primary-50); }
.fm-step-num.orange { background: var(--fm-orange); box-shadow: 0 0 0 6px var(--fm-orange-50); }
.fm-step-num.green { background: var(--fm-green); box-shadow: 0 0 0 6px var(--fm-green-50); }
.fm-step h4 { font-size: 17px; font-weight: 800; color: var(--fm-ink); margin: 6px 0 4px; }
.fm-step p { margin: 0; color: var(--fm-muted); font-size: 14.5px; line-height: 1.55; }
.fm-flow { color: var(--fm-muted); font-size: 14px; line-height: 1.7; }
.fm-flow b { color: var(--fm-ink-2); }

/* Stats */
.fm-stat { text-align: center; padding: 24px; border-radius: var(--fm-radius-lg); background: #fff; border: 1px solid var(--fm-line); }
.fm-stat .fm-stat-value { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--fm-primary); line-height: 1; }
.fm-stat .fm-stat-label { margin-top: 8px; font-weight: 600; color: var(--fm-muted); font-size: 15px; }

/* Logo strip */
.fm-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.fm-logo { height: 84px; border-radius: 16px; background: #fff; border: 1px solid var(--fm-line); display: flex; align-items: center; justify-content: center; padding: 14px; transition: .2s; }
.fm-logo img { max-height: 52px; max-width: 100%; object-fit: contain; filter: grayscale(.25); }
.fm-logo:hover { box-shadow: var(--fm-shadow); }
.fm-logo:hover img { filter: none; }
@media (max-width: 991px) { .fm-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fm-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Trust tiles */
.fm-trust { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--fm-line); }
.fm-trust b { display: block; color: var(--fm-ink); font-size: 14.5px; }
.fm-trust span { color: var(--fm-muted); font-size: 13px; }

/* Forms (static design + restyle of legacy inputs inside .fm-form) */
.fm-form label { display: block; font-weight: 700; color: var(--fm-ink-2); font-size: 14px; margin-bottom: 7px; }
.fm-input, .fm-form input[type=text], .fm-form input[type=tel], .fm-form input[type=email], .fm-form input[type=password], .fm-form input[type=number], .fm-form select, .fm-form textarea {
  width: 100%; height: 50px; border-radius: 12px; border: 1.5px solid var(--fm-line); background: #fff; padding: 0 16px; font-size: 15px; color: var(--fm-ink); transition: border-color .15s, box-shadow .15s; font-family: var(--fm-font);
}
.fm-form textarea { height: auto; padding: 12px 16px; }
.fm-input:focus, .fm-form input:focus, .fm-form select:focus, .fm-form textarea:focus { outline: none; border-color: var(--fm-primary); box-shadow: 0 0 0 4px rgba(22, 96, 232, .12); }
.fm-radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.fm-radio { flex: 1; min-width: 120px; display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--fm-line); background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; margin: 0 !important; }
.fm-radio input { margin: 0 !important; accent-color: var(--fm-primary); }
.fm-radio small { display: block; color: var(--fm-muted); font-weight: 500; font-size: 12px; }
.fm-radio:has(input:checked) { border-color: var(--fm-primary); background: var(--fm-primary-50); }

/* Utility */
.fm-divider { height: 1px; background: var(--fm-line); margin: 20px 0; border: 0; }
.fm-center { text-align: center; }
.fm-mt-0 { margin-top: 0 !important; }
.fm-stack { display: flex; flex-direction: column; gap: 16px; }
.fm-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fm-between { justify-content: space-between; }
.fm-note { font-size: 12.5px; color: var(--fm-muted); }

/* ---------------------------------------------------------------------
   Jobs listing (current-vacancies, nearby pages)
   --------------------------------------------------------------------- */
.fm-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fm-ink-2) !important; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--fm-line); }
.fm-back:hover { color: var(--fm-primary) !important; border-color: var(--fm-primary-100); }
.fm-crumbs { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; font-size: 13.5px; color: var(--fm-muted); }
.fm-crumbs li + li::before { content: "/"; margin-right: 8px; color: #b6c2d9; }
.fm-crumbs a { color: var(--fm-muted); }
.fm-jobs-hero { padding: 28px 0 8px; background: radial-gradient(700px 300px at 90% 0%, rgba(22, 96, 232, .12), transparent 60%); }
.fm-jobs #jobs-count.fm-jobs-count { display: inline-flex; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--fm-green-50); color: var(--fm-green-600); font-weight: 700; font-size: 14px; }
.fm-jobs #jobs-count:empty { display: none; }
.fm-jobs .fm-filter#search-form-container { background: rgba(255, 255, 255, .92) !important; backdrop-filter: blur(10px); border: 1px solid var(--fm-line); border-radius: 20px; padding: 16px !important; box-shadow: var(--fm-shadow); }
.fm-jobs .form-find form { gap: 10px; }
.fm-jobs .form-find select.form-control,
.fm-jobs .form-find #district-dropdown,
.fm-jobs .form-find .select2-container .select2-selection { height: 48px !important; border-radius: 12px !important; border: 1.5px solid var(--fm-line) !important; background-color: #fff; font-weight: 600; color: var(--fm-ink-2); }
.fm-jobs .form-find .select2-container .select2-selection__rendered { line-height: 45px !important; padding-left: 14px !important; }
.fm-jobs .form-find .select2-container .select2-selection__arrow { height: 46px !important; }
.fm-jobs .search-actions .btn-default { height: 48px !important; border-radius: 12px !important; background: var(--fm-primary) !important; padding: 0 22px !important; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; box-shadow: 0 10px 22px -10px rgba(22, 96, 232, .7); }
.fm-jobs #share-search-btn { height: 48px !important; border-radius: 12px !important; border: 1.5px solid var(--fm-primary-100) !important; color: var(--fm-primary) !important; background: var(--fm-primary-50) !important; font-weight: 700; }
.fm-jobs .fm-reset, .fm-jobs #reset-search-btn.fm-reset { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--fm-muted) !important; float: none; }
.fm-jobs .fm-reset:hover { color: var(--fm-primary) !important; }
.fm-wa-strip { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 20px; border-radius: 18px; background: linear-gradient(135deg, #f0fbf4, #def5e7); border: 1px solid #c7ecd6; text-decoration: none !important; color: var(--fm-ink) !important; transition: .2s; }
.fm-wa-strip:hover { box-shadow: var(--fm-shadow); transform: translateY(-2px); }
.fm-wa-strip b { display: block; font-size: 16px; color: var(--fm-ink); }
.fm-wa-strip small { display: block; color: var(--fm-muted); font-size: 13.5px; }
.fm-jobs-list { padding: 28px 0 40px; }
.fm-jobs-list .display-list > [class*=col-] { margin-bottom: 24px; }

.fm-job { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fm-line); border-radius: 22px; padding: 22px 22px 18px; box-shadow: var(--fm-shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s; }
.fm-job:hover { box-shadow: var(--fm-shadow); transform: translateY(-3px); border-color: var(--fm-primary-100); }
.fm-job-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; }
.fm-job-title { font-size: 19px; font-weight: 800; color: var(--fm-ink); margin: 0; line-height: 1.3; letter-spacing: -.01em; }
.fm-job-logo { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; background: var(--fm-primary-50); color: var(--fm-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.fm-job-school { margin: 12px 0 2px; font-weight: 600; color: var(--fm-ink-2); font-size: 15px; }
.fm-job-loc { margin: 0; color: var(--fm-muted); font-size: 14px; }
.fm-job-loc i { color: var(--fm-red); margin-right: 4px; }
.fm-job-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; padding: 14px; background: var(--fm-bg); border-radius: 14px; }
.fm-job-facts > div { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.fm-job-facts i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; background: #fff; color: var(--fm-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: var(--fm-shadow-sm); }
.fm-job-facts b { display: block; font-size: 13.5px; color: var(--fm-ink); font-weight: 700; line-height: 1.3; word-break: break-word; }
.fm-job-facts small { display: block; font-size: 12px; color: var(--fm-muted); }
.fm-job-more { margin: 0 0 14px; font-size: 14px; color: var(--fm-ink-2); }
.fm-job-more summary { cursor: pointer; font-weight: 700; color: var(--fm-primary); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.fm-job-more summary::-webkit-details-marker { display: none; }
.fm-job-more summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; transition: transform .2s; }
.fm-job-more[open] summary::after { transform: rotate(180deg); }
.fm-job-more p { margin: 8px 0 0; line-height: 1.55; }
.fm-job-actions { margin-top: auto; display: flex; gap: 10px; align-items: center; padding-top: 14px; border-top: 1px dashed var(--fm-line); }
.fm-job-actions .fm-job-cta { flex: 1.4; padding: 13px 16px; }
.fm-job-actions .fm-job-details { flex: 1; padding: 13px 16px; }
.fm-wa-btn { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: var(--fm-green); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 10px 20px -10px rgba(22, 163, 74, .8); }
.fm-wa-btn:hover { background: var(--fm-green-600); }
@media (max-width: 520px) { .fm-job-actions { flex-wrap: wrap; } .fm-job-actions .fm-job-details { order: 3; flex-basis: 100%; } }

/* Legacy pagination, restyled */
.fm-page .pagination .page-link { border-radius: 10px !important; min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--fm-line) !important; color: var(--fm-ink-2); font-weight: 700; margin: 0 3px; }
.fm-page .pagination .page-item.active .page-link { background: var(--fm-primary) !important; border-color: var(--fm-primary) !important; color: #fff !important; }
.fm-job-actions .fm-job-details { order: -1; }

/* ---------------------------------------------------------------------
   Nearby flow (nearby-jobs, nearby-teachers)
   --------------------------------------------------------------------- */
.fm-nearby-hero { padding: 36px 0 20px; background: radial-gradient(800px 320px at 90% 0%, rgba(22, 96, 232, .13), transparent 60%), linear-gradient(180deg, #f8fbff, var(--fm-bg)); }
.fm-nearby-hero .fm-hero-title { white-space: normal !important; font-size: clamp(28px, 3.4vw, 44px) !important; }
.fm-flow-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.fm-flow-steps li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--fm-line); border-radius: 16px; position: relative; }
.fm-flow-steps li > span { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: var(--fm-bg); color: var(--fm-muted); border: 1.5px solid var(--fm-line); }
.fm-flow-steps li b { display: block; font-size: 14.5px; color: var(--fm-ink); line-height: 1.2; }
.fm-flow-steps li small { display: block; font-size: 12.5px; color: var(--fm-muted); margin-top: 2px; }
.fm-flow-steps li.is-active { border-color: var(--fm-primary-100); background: linear-gradient(135deg, #fff, #f3f7ff); }
.fm-flow-steps li.is-active > span { background: var(--fm-primary); color: #fff; border-color: var(--fm-primary); }
@media (max-width: 991px) { .fm-flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fm-flow-steps li small { display: none; } }

.fm-nearby-body { padding: 8px 0 56px; }
.fm-nearby-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.fm-nearby-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.fm-nearby-aside { position: sticky; top: 96px; }
.fm-nearby-card { padding: 26px; }
.fm-step-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--fm-ink); margin-bottom: 16px; letter-spacing: .01em; }
.fm-step-label span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-primary); background: var(--fm-primary-50); padding: 5px 10px; border-radius: 999px; }
.fm-nearby-q { font-weight: 800; font-size: 22px; color: var(--fm-ink); margin: 0 0 4px; letter-spacing: -.01em; }
.fm-loc-form { display: flex; gap: 10px; }
.fm-loc-input { flex: 1; min-width: 0; position: relative; }
.fm-loc-input i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--fm-primary); }
.fm-loc-input input { width: 100%; height: 54px; border-radius: 14px; border: 1.5px solid var(--fm-line); padding: 0 16px 0 42px; font-size: 16px; font-weight: 600; color: var(--fm-ink); background: #fff; }
.fm-loc-input input:focus { outline: none; border-color: var(--fm-primary); box-shadow: 0 0 0 4px rgba(22, 96, 232, .12); }
.fm-loc-form .fm-btn { height: 54px; border-radius: 14px; }
.fm-or-line { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #9ca3af; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.fm-or-line::before, .fm-or-line::after { content: ""; flex: 1; height: 1px; background: var(--fm-line); }
.fm-loc-gps { background: var(--fm-primary-50); color: var(--fm-primary) !important; border-color: var(--fm-primary-100); height: 52px; }
.fm-loc-gps:hover { background: var(--fm-primary-100); }
.fm-loc-detected { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1.5px solid #a7f3d0; border-radius: 16px; padding: 14px 16px; align-items: center; justify-content: space-between; gap: 12px; }
.fm-radius-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--fm-line); }
.fm-radius-label { font-size: 15px; font-weight: 800; color: var(--fm-ink); margin-right: auto; }
.fm-nearby .radius-btn { border-radius: 12px !important; padding: 10px 20px !important; font-size: 14px !important; font-weight: 700 !important; border: 1.5px solid var(--fm-line) !important; color: var(--fm-ink-2) !important; background: #fff !important; }
.fm-nearby .radius-btn:hover { border-color: var(--fm-primary) !important; }
.fm-nearby .radius-btn.active-radius { background: var(--fm-primary-50) !important; color: var(--fm-primary) !important; border-color: var(--fm-primary) !important; box-shadow: none !important; }
.fm-empty { text-align: center; padding: 40px 20px; color: var(--fm-muted); }
.fm-map-card { border-radius: 24px; overflow: hidden; border: 1px solid var(--fm-line); box-shadow: var(--fm-shadow); background: #fff; position: relative; }
.fm-map-legend { display: flex; gap: 18px; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--fm-ink-2); border-top: 1px solid var(--fm-line); }
.fm-map-legend i { margin-right: 4px; }
.fm-nearby .school-card { border-radius: 16px !important; padding: 16px 18px !important; border: 1.5px solid var(--fm-line) !important; }
.fm-nearby .school-card:hover { border-color: var(--fm-primary-100) !important; box-shadow: var(--fm-shadow) !important; }
.fm-nearby .school-card.selected { border-color: var(--fm-green) !important; background: linear-gradient(135deg, #fff, #f0fbf4); box-shadow: 0 0 0 4px rgba(22, 163, 74, .12) !important; }
#enquire-fab #enquire-btn { background: var(--fm-primary) !important; border-radius: 14px !important; box-shadow: 0 16px 36px -12px rgba(22, 96, 232, .7) !important; padding: 16px 34px !important; }
.fm-nearby-modal .modal-content { border-radius: 22px !important; }
@media (max-width: 991px) { .fm-nearby-grid { grid-template-columns: 1fr; } .fm-nearby-aside { position: static; order: -1; } .fm-nearby-aside #nearby-map { height: 280px !important; } }

/* Nearby teachers */
.fm-nearby-t-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: start; }
.fm-nt-list { display: flex; flex-direction: column; }
.fm-nt-toolbar { display: flex; gap: 10px; align-items: center; }
.fm-nt-toolbar .fm-loc-input input.form-control { height: 52px; border-radius: 14px; padding-left: 42px; }
.fm-nearby-t #cluster-heading { font-size: 17px; font-weight: 800; color: var(--fm-ink); }
.fm-nearby-t #nearby-teachers-list .row { margin: 0 -8px; }
.fm-nearby-t #nearby-teachers-list .row > [class*=col-] { flex: 0 0 50%; max-width: 50%; padding: 0 8px; margin-bottom: 16px !important; }
.fm-nearby-t #nearby-teachers-list .card-grid-2 { border-radius: 18px !important; border: 1px solid var(--fm-line) !important; background: #fff; box-shadow: var(--fm-shadow-sm); height: 100%; display: flex; flex-direction: column; padding: 8px 6px 4px; }
.fm-nearby-t #nearby-teachers-list .card-grid-2:hover { box-shadow: var(--fm-shadow); border-color: var(--fm-primary-100) !important; }
.fm-nearby-t #nearby-teachers-list .card-grid-2 .card-block-info { flex: 1; }
.fm-nearby-t #nearby-teachers-list .card-grid-2 h6 a { color: var(--fm-ink); font-weight: 800; font-size: 16px; }
.fm-nearby-t #nearby-teachers-list .card-grid-2 .card-block-info > div:not(:first-child) { font-size: 13.5px !important; color: var(--fm-ink-2); }
.fm-nearby-t #nearby-teachers-list .card-grid-2 .card-block-info i { color: var(--fm-primary); margin-right: 10px !important; width: 14px !important; }
.fm-nearby-t #nearby-teachers-list .card-2-bottom .btn { border-radius: 12px !important; padding: 10px 14px !important; font-weight: 700 !important; }
.fm-nearby-t #nearby-teachers-list .card-2-bottom .btn-primary { background: var(--fm-primary) !important; border-color: var(--fm-primary) !important; }
.fm-nearby-t #nearby-teachers-list .card-2-bottom .btn-success { background: var(--fm-green) !important; border-color: var(--fm-green) !important; }
@media (max-width: 991px) { .fm-nearby-t-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fm-nearby-t #nearby-teachers-list .row > [class*=col-] { flex-basis: 100%; max-width: 100%; } }
.modal .apply-job-form { border-radius: 20px; border: 0; box-shadow: var(--fm-shadow-lg); }

/* Job alert */
.fm-alert-body { padding: 4px 0 56px; }
.fm-alert-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.fm-alert-card { padding: 34px; }
.fm-alert-aside { position: sticky; top: 96px; }
.fm-alert .form-group { margin-bottom: 18px; }
.fm-alert .form-control, .fm-alert .multiselect-display { min-height: 50px !important; border-radius: 12px !important; border: 1.5px solid var(--fm-line) !important; }
.fm-alert .multiselect-display { padding: 0 16px !important; }
.fm-alert .multiselect-dropdown-content { border-radius: 12px !important; border-color: var(--fm-line) !important; box-shadow: var(--fm-shadow) !important; max-height: 280px !important; }
.fm-alert .badge-item { background: var(--fm-primary-50) !important; color: var(--fm-primary) !important; border-radius: 999px !important; padding: 5px 10px !important; font-weight: 700; }
.fm-alert #preferred_locations_body_job_alert { border: 1.5px dashed var(--fm-line) !important; border-radius: 16px !important; background: var(--fm-bg); min-height: 70px; }
.fm-alert .btn-success { background: var(--fm-green) !important; border: 0 !important; border-radius: 10px !important; font-weight: 700 !important; }
.fm-alert .btn-grey-small { border-radius: 999px !important; background: #fff !important; border: 1px solid var(--fm-line) !important; }
.fm-wa-preview { padding: 22px; background: linear-gradient(180deg, #f0fbf4, #fff); }
.fm-wa-bubble { position: relative; background: #fff; border: 1px solid #d6f0df; border-radius: 4px 16px 16px 16px; padding: 14px 16px; font-size: 14px; line-height: 1.6; color: var(--fm-ink-2); box-shadow: var(--fm-shadow-sm); }
.fm-wa-cta { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--fm-line); color: var(--fm-green-600); font-weight: 800; }
@media (max-width: 991px) { .fm-alert-grid { grid-template-columns: 1fr; } .fm-alert-aside { position: static; } .fm-alert-card { padding: 24px 18px; } }

/* Walk-in job */
.fm-walkin-body { padding: 4px 0 56px; }
.fm-walkin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.fm-walkin-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.fm-walkin-card { padding: 28px !important; margin: 0 !important; }
.fm-walkin-h { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 800; color: var(--fm-ink); margin-bottom: 18px; }
.fm-walkin .form-group { margin-bottom: 18px; }
.fm-walkin .form-control { min-height: 50px; border-radius: 12px; border: 1.5px solid var(--fm-line); }
.fm-walkin textarea { border-radius: 12px; border: 1.5px solid var(--fm-line); padding: 12px 16px; width: 100%; }
.fm-walkin #add-new-job-btn, .fm-walkin #post-all-jobs-btn, .fm-walkin #save-to-queue-btn { border-radius: 10px !important; padding: 9px 16px !important; font-weight: 700 !important; border: 0 !important; }
.fm-walkin #add-new-job-btn, .fm-walkin #save-to-queue-btn { background: var(--fm-green) !important; }
.fm-walkin #post-all-jobs-btn { background: var(--fm-orange) !important; }
.fm-walkin #jobs-count { background: var(--fm-orange-50) !important; color: var(--fm-orange-600) !important; border-radius: 999px; }
.fm-walkin-aside { position: sticky; top: 96px; }
.fm-walkin-art-card { text-align: center; background: linear-gradient(160deg, #fff, #fff0e6); border-color: #ffdcc4; }
.fm-walkin-board { font-size: 28px; font-weight: 900; letter-spacing: .04em; color: #1e3a8a; line-height: 1.05; }
@media (max-width: 991px) { .fm-walkin-grid { grid-template-columns: 1fr; } .fm-walkin-aside { position: static; } .fm-walkin-card { padding: 20px 16px !important; } }

/* Registration */
.fm-reg-section { padding: 32px 0 64px; background: radial-gradient(700px 360px at 90% 0%, rgba(22, 96, 232, .12), transparent 60%); }
.fm-reg-shell { display: grid; grid-template-columns: 380px minmax(0, 1fr); background: #fff; border: 1px solid var(--fm-line); border-radius: 28px; overflow: hidden; box-shadow: var(--fm-shadow-lg); margin-top: 18px; }
.fm-reg-side { position: relative; padding: 40px 34px; color: #fff; background: radial-gradient(380px 240px at 100% 0%, rgba(96, 165, 250, .45), transparent 60%), linear-gradient(160deg, #0b2a7a, #1660e8); display: flex; flex-direction: column; gap: 14px; }
.fm-reg-side h3 { color: #fff; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 6px 0 0; }
.fm-reg-side p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 15.5px; }
.fm-reg-side ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.fm-reg-side li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; }
.fm-reg-side li i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: rgba(255, 255, 255, .14); display: inline-flex; align-items: center; justify-content: center; }
.fm-reg-trust { margin-top: auto; padding-top: 24px; font-size: 13.5px; color: rgba(255, 255, 255, .75); display: flex; gap: 8px; align-items: center; }
.fm-reg-main { padding: 40px 40px 34px; min-width: 0; }
.fm-reg-main .form-login-cover { padding: 0 !important; box-shadow: none !important; border: 0 !important; background: transparent !important; }
.fm-reg-title { font-size: 30px !important; font-weight: 800 !important; color: var(--fm-ink) !important; letter-spacing: -.02em; margin: 0 0 6px !important; }
.fm-reg .form-label, .fm-reg label { font-weight: 700; color: var(--fm-ink-2); font-size: 14px; }
.fm-reg .form-control { font-size: 16px !important; border-radius: 12px !important; border: 1.5px solid var(--fm-line) !important; }
.fm-reg .form-control:focus { border-color: var(--fm-primary) !important; box-shadow: 0 0 0 4px rgba(22, 96, 232, .12) !important; }
.fm-reg .job-form { background: var(--fm-bg); border: 1px solid var(--fm-line) !important; border-radius: 18px !important; padding: 20px !important; margin-bottom: 16px; }
.fm-reg .btn-brand-1 { border-radius: 12px !important; background: var(--fm-primary) !important; }
.fm-reg #register-footer, .fm-reg .text-muted.text-center { margin-top: 16px; }
@media (max-width: 991px) { .fm-reg-shell { grid-template-columns: 1fr; } .fm-reg-side { padding: 28px 22px; } .fm-reg-side ul, .fm-reg-trust { display: none; } .fm-reg-main { padding: 26px 18px; } }
.fm-reg-side .fm-eyebrow { align-self: flex-start; }

/* Home — testimonials */
.fm-testimonials { padding-bottom: 24px; }
.fm-testimonials .swiper { padding: 8px 6px 8px !important; }
.fm-testimonials .swiper-wrapper { padding: 0 !important; align-items: stretch; }
.fm-testimonials .swiper-slide { height: auto !important; }
.fm-testimonials .card-review-1 { position: relative; height: 100%; min-height: 0 !important; margin: 0 !important; padding: 24px !important; background: #fff !important; border: 1px solid var(--fm-line) !important; border-radius: 22px !important; box-shadow: var(--fm-shadow-sm); text-align: left; display: grid; grid-template-columns: 60px 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; align-items: start; align-content: start; transition: box-shadow .2s, transform .2s; }
.fm-testimonials .card-review-1:hover { box-shadow: var(--fm-shadow); transform: translateY(-3px); }
.fm-testimonials .card-review-1::after { content: "\201C"; position: absolute; top: 16px; right: 20px; font: 800 44px/1 Georgia, serif; color: var(--fm-primary-100); pointer-events: none; }
.fm-testimonials .image-review { position: static !important; margin: 0 !important; grid-row: 1; grid-column: 1; align-self: start; }
.fm-testimonials .image-review img { margin: 0 !important; width: 60px !important; height: 60px !important; border-radius: 50% !important; object-fit: cover; border: 3px solid #fff; box-shadow: var(--fm-shadow); }
.fm-testimonials .review-info { display: contents; }
.fm-testimonials .review-name { grid-row: 1; grid-column: 2; text-align: left; margin: 0 !important; padding: 4px 28px 0 0 !important; border: 0 !important; }
.fm-testimonials .review-name h5 { font-size: 17px; font-weight: 800; color: var(--fm-ink); margin: 0 0 2px; }
.fm-testimonials .review-name .font-xs { color: var(--fm-primary); font-weight: 600; font-size: 13px; }
.fm-testimonials .review-rating { grid-column: 1 / -1; text-align: left; margin: 18px 0 8px !important; padding-top: 16px; border-top: 1px solid var(--fm-line); align-self: start; }
.fm-testimonials .review-rating img { width: 15px; margin-right: 2px; }
.fm-testimonials .review-comment { grid-column: 1 / -1; align-self: start; max-height: 168px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; text-align: left; color: var(--fm-ink-2); font-size: 14.5px; line-height: 1.65; }
.fm-testimonials .swiper-pagination { position: static !important; margin-top: 24px; }
.fm-testimonials .swiper-pagination-bullet { width: 8px; height: 8px; background: #b9c6e4; opacity: 1; transition: width .2s; }
.fm-testimonials .swiper-pagination-bullet-active { width: 24px; border-radius: 999px; background: var(--fm-primary); }

/* Home — trust & credentials */
.fm-trust-block { padding-bottom: 72px; }
.fm-trust-card { background: #fff; border: 1px solid var(--fm-line); border-radius: 28px; box-shadow: var(--fm-shadow-sm); overflow: hidden; }
.fm-trust-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fm-cred { display: flex; align-items: center; gap: 16px; padding: 28px 30px; }
.fm-cred + .fm-cred { border-left: 1px solid var(--fm-line); }
.fm-cred-icon { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.fm-cred b { display: block; font-size: 18px; font-weight: 800; color: var(--fm-ink); letter-spacing: -.01em; }
.fm-cred > div > span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--fm-muted); font-weight: 600; word-break: break-word; }
.fm-tricolor { background: linear-gradient(180deg, #ff9933 0 33%, #fff 33% 66%, #138808 66%); color: #000080; border: 1px solid var(--fm-line); }
.fm-trust-mid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--fm-bg); border-top: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); }
.fm-trust-item { display: flex; align-items: flex-start; gap: 12px; padding: 18px 30px; font-weight: 700; color: var(--fm-ink-2); font-size: 15px; }
.fm-trust-item + .fm-trust-item { border-left: 1px dashed var(--fm-line); }
.fm-trust-item i { font-size: 22px; width: 26px; text-align: center; }
.fm-trust-item span small { display: block; font-weight: 600; color: var(--fm-muted); font-size: 13px; }
.fm-trust-bottom { display: flex; justify-content: center; gap: 12px 40px; flex-wrap: wrap; padding: 18px 24px; }
.fm-trust-bottom a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; color: var(--fm-ink-2) !important; }
.fm-trust-bottom a i { width: 34px; height: 34px; border-radius: 10px; background: var(--fm-primary-50); color: var(--fm-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.fm-trust-bottom a:hover { color: var(--fm-primary) !important; }
@media (max-width: 900px) {
  .fm-trust-top, .fm-trust-mid { grid-template-columns: 1fr; }
  .fm-cred + .fm-cred, .fm-trust-item + .fm-trust-item { border-left: 0; border-top: 1px solid var(--fm-line); }
  .fm-cred { padding: 20px; } .fm-trust-item { padding: 14px 20px; }
}
.fm-cred-logo { width: 96px; height: 64px; flex: 0 0 96px; border-radius: 14px; background: #fff; border: 1px solid var(--fm-line); display: inline-flex; align-items: center; justify-content: center; padding: 8px 10px; box-shadow: var(--fm-shadow-sm); }
.fm-cred-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (min-width: 901px) and (max-width: 1180px) { .fm-cred { flex-direction: column; align-items: flex-start; } }
.fm-cred > div > span { white-space: nowrap; }
.fm-cred { gap: 14px; padding: 26px 24px; }

/* Header fixes: submenu bullet, button links */
.header .main-menu li ul li a::after { display: none !important; }
.header .main-menu li ul li a:hover { padding-left: 18px !important; }
.header .main-menu li > a.btn::after { display: none !important; }
.header .main-menu li > a.btn,
.header .main-menu li > a.btn:hover,
.header .main-menu li > a.btn:focus { color: #fff !important; }
.header .main-menu li > a.btn.btn-danger,
.header .main-menu li > a.btn.btn-danger:hover { color: var(--fm-red) !important; }

/* PIN show/hide toggle (static/js/fm-pin-toggle.js) */
.fm-pin-wrap { position: relative; display: block; }
.fm-pin-wrap > input { padding-right: 52px !important; }
.fm-pin-eye { position: absolute; z-index: 5; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--fm-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; padding: 0; }
.fm-pin-eye:hover, .fm-pin-eye:focus-visible { color: var(--fm-primary); background: var(--fm-primary-50); outline: none; }
.fm-pin-eye, .fm-pin-eye i { color: var(--fm-muted) !important; }
.fm-pin-eye i { font-size: 16px !important; }
.fm-pin-eye:hover, .fm-pin-eye:focus, .fm-pin-eye:active { background: var(--fm-primary-50) !important; }
.fm-pin-eye:hover i, .fm-pin-eye:focus i, .fm-pin-eye:active i { color: var(--fm-primary) !important; }
