/* ==========================================================================
   CRA Portal – public website
   ========================================================================== */

/* Top bar */
.topbar { background: var(--brand); color: rgba(255,255,255,.85); font-size: .8rem; }
[data-bs-theme="dark"] .topbar { background: #070c18; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .scam { color: var(--accent); font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header .navbar { padding-top: .7rem; padding-bottom: .7rem; }
.brand-mark { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand-mark img { height: 46px; width: auto; }
.brand-mark .mono { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; letter-spacing: .02em; }
.brand-mark .name { font-family: var(--font-head); font-weight: 800; line-height: 1.05; font-size: 1.02rem; }
.brand-mark .name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.site-nav .nav-link { color: var(--text); font-weight: 600; font-size: .92rem; padding: .5rem .8rem !important; border-radius: 999px; transition: background .2s, color .2s; }
.site-nav .nav-link:hover { background: rgba(var(--brand-rgb), .07); color: var(--brand-ink); }
.site-nav .nav-link.active { color: var(--brand-ink); background: rgba(var(--brand-rgb), .09); }
@media (max-width: 1199.98px) {
  .site-nav .nav-link { padding: .75rem 1rem !important; border-radius: 12px; }
}

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero-slide { min-height: min(86vh, 760px); display: flex; align-items: center; background-size: cover; background-position: center; position: relative; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); z-index: 0; }
.hero-slide.no-image { background: radial-gradient(1200px 600px at 85% 20%, rgba(var(--brand-2-rgb), .55), transparent 60%),
                                  radial-gradient(900px 500px at 10% 90%, rgba(var(--accent-rgb), .18), transparent 60%),
                                  linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #000) 100%); }
.hero-slide.no-image::before { background: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; }
.hero .lead { color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.6vw, 1.25rem); max-width: 640px; }
.hero .eyebrow { display: inline-flex; gap: .5rem; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px); }
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .3); }
.hero-grid { position: absolute; inset: 0; z-index: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
.hero-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(14px); border-radius: var(--radius-lg); padding: 1.5rem; color: #fff; }
.hero-card .stat { font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; }
.hero-search { margin-top: -48px; position: relative; z-index: 5; }
.hero-search .card { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Page header (inner pages) */
.page-hero { position: relative; color: #fff; padding: 4.5rem 0 3.5rem; overflow: hidden;
  background: radial-gradient(900px 400px at 90% 0%, rgba(var(--brand-2-rgb), .55), transparent 60%), linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, #000)); }
.page-hero.has-image { background-size: cover; background-position: center; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.85); max-width: 720px; font-size: 1.1rem; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); --bs-breadcrumb-item-active-color: rgba(255,255,255,.9); margin-bottom: .75rem; font-size: .85rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }

/* Sections */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--surface); }
.section-dark { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #000)); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h5 { color: #fff; }
.section-dark .text-muted { color: rgba(255,255,255,.7) !important; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker { text-transform: uppercase; font-size: .78rem; letter-spacing: .14em; font-weight: 700; color: var(--brand-2); }
.section-head h2 { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.5rem); margin: .4rem 0 .75rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Stats strip */
.stats-strip { margin-top: -60px; position: relative; z-index: 4; }
.stats-strip .card { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.stat-big { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--brand-ink); line-height: 1; }

/* Feature / service cards */
.feature-card { padding: 1.75rem; height: 100%; position: relative; overflow: hidden; }
.feature-card h5 { font-weight: 700; margin: 1.1rem 0 .5rem; }
.feature-card p { color: var(--muted); margin-bottom: 0; }
.feature-card .more { font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; margin-top: 1rem; }
.feature-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(var(--brand-2-rgb), .06); transition: transform .4s var(--ease); }
.feature-card:hover::after { transform: scale(1.8); }

/* Industry tiles */
.industry-tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; text-decoration: none; color: inherit; height: 100%; }
.industry-tile h6 { font-weight: 700; margin-bottom: .25rem; }
.industry-tile p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Job cards */
.job-card { padding: 1.25rem 1.35rem; height: 100%; display: flex; flex-direction: column; }
.job-card .title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.job-card .meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--muted); font-size: .85rem; }
.job-card .meta i { color: var(--brand-2); }
.job-card .salary { font-family: var(--font-head); font-weight: 700; color: var(--brand-ink); }
.job-flag { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; color: var(--brand-ink); }

/* Process steps */
.process { counter-reset: step; }
.process-step { position: relative; padding: 1.5rem; height: 100%; }
.process-step .num { position: absolute; top: 1rem; right: 1.25rem; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: rgba(var(--brand-rgb), .08); line-height: 1; }
[data-bs-theme="dark"] .process-step .num { color: rgba(255,255,255,.06); }

/* Timeline */
.timeline { position: relative; padding-left: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--brand-2), rgba(var(--brand-2-rgb), .1)); transform: translateX(-50%); }
.timeline-item { position: relative; width: 50%; padding: 0 2.5rem 2.5rem 0; }
.timeline-item:nth-child(even) { margin-left: 50%; padding: 0 0 2.5rem 2.5rem; }
.timeline-item::before { content: ""; position: absolute; top: 1.2rem; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 4px solid var(--brand-2); z-index: 1; }
.timeline-item:nth-child(even)::before { left: -9px; right: auto; }
.timeline-item .year { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--brand-ink); }
@media (max-width: 767.98px) {
  .timeline::before { left: 12px; }
  .timeline-item, .timeline-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 2rem 2.5rem; }
  .timeline-item::before, .timeline-item:nth-child(even)::before { left: 3px; right: auto; }
}

/* Clients */
.client-logo { height: 96px; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; font-weight: 700; font-size: .9rem; color: var(--muted); }
.client-logo img { max-height: 60px; max-width: 100%; filter: grayscale(1); opacity: .75; transition: all .25s; }
.client-logo:hover img { filter: none; opacity: 1; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .client-logo { min-width: 200px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Testimonials */
.quote-card { padding: 2rem; height: 100%; }
.quote-card .bi-quote { font-size: 2.5rem; color: rgba(var(--brand-2-rgb), .35); line-height: 1; }

/* WorldHireNet band */
.whn-band { border-radius: var(--radius-lg); overflow: hidden; position: relative; color: #fff; padding: clamp(2rem, 5vw, 3.5rem);
  background: radial-gradient(800px 400px at 100% 0%, rgba(var(--accent-rgb), .35), transparent 60%), linear-gradient(135deg, var(--brand), var(--brand-2)); }
.whn-band h2 { color: #fff; font-weight: 800; }
.whn-band ul li { margin-bottom: .45rem; }
.token-card { background: rgba(255,255,255,.12); border: 1px dashed rgba(255,255,255,.45); border-radius: 18px; padding: 1.25rem; backdrop-filter: blur(10px); }
.token-card .code { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; letter-spacing: .06em; }

/* News */
.news-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.news-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(var(--brand-rgb), .15), rgba(var(--brand-2-rgb), .25)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .thumb i { font-size: 2.5rem; color: var(--brand-ink); opacity: .5; }
.news-card .body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

/* CTA */
.cta-band { border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(rgba(var(--brand-2-rgb), .22), transparent 70%); }

/* Map */
#globalMap { height: 460px; border-radius: var(--radius-lg); border: 1px solid var(--border); z-index: 1; }
.leaflet-popup-content-wrapper { border-radius: 12px; }

/* Forms (public) */
.form-card { padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: var(--radius-lg); }
.stepper { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.stepper .s { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); transition: background .3s; }
.stepper .s.on { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp .35s var(--ease); }

/* Footer */
.site-footer { background: #07142b; color: rgba(255,255,255,.72); padding-top: 4rem; font-size: .93rem; }
[data-theme] .site-footer { background: color-mix(in srgb, var(--brand) 22%, #050a16); }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .list-unstyled li { margin-bottom: .55rem; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; margin-top: 3rem; font-size: .82rem; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); }
.site-footer .social a:hover { background: var(--brand-2); }
.site-footer .form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.site-footer .form-control::placeholder { color: rgba(255,255,255,.5); }
.licence-badge { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(255,255,255,.18); padding: .45rem .8rem; border-radius: 12px; font-size: .8rem; color: #fff; }

/* Floating actions */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; flex-direction: column; gap: 10px; }
.float-actions a, .float-actions button { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; border: 0; box-shadow: var(--shadow); }
.fab-whatsapp { background: #25d366; color: #fff; }
.fab-top { background: var(--surface); color: var(--text); opacity: 0; pointer-events: none; transition: opacity .25s; }
.fab-top.show { opacity: 1; pointer-events: auto; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Filters sidebar (jobs) */
.filter-card { position: sticky; top: 96px; }
@media (max-width: 991.98px) { .filter-card { position: static; } }

/* Mobile tweaks */
@media (max-width: 575.98px) {
  .section { padding: 3.5rem 0; }
  .hero-slide { min-height: 78vh; padding: 4rem 0 5rem; }
  .brand-mark .name { font-size: .9rem; }

  .stats-strip { margin-top: -40px; }
}

/* ==========================================================================
   Header v2 – single-line nav, framed logo, clean actions
   ========================================================================== */
.site-header { background: color-mix(in srgb, var(--surface) 92%, transparent); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-2-rgb), .55), rgba(var(--accent-rgb), .55), transparent); opacity: 0; transition: opacity .3s; }
.site-header.scrolled::after { opacity: 1; }
.site-header .navbar { padding-top: .6rem; padding-bottom: .6rem; }
.header-inner { gap: 1.25rem; flex-wrap: nowrap; }

/* Logo */
.brand-mark { gap: .8rem; flex-shrink: 0; white-space: nowrap; }
.logo-ring { position: relative; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: #fff; box-shadow: 0 0 0 1px rgba(var(--brand-rgb), .12), 0 6px 16px -6px rgba(var(--brand-rgb), .45); transition: transform .3s var(--ease), box-shadow .3s; }
.logo-ring::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 210deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .9; }
.logo-ring img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }
.logo-ring .mono { width: 44px; height: 44px; font-size: .95rem; }
.brand-mark:hover .logo-ring { transform: rotate(-6deg) scale(1.04); }
.brand-mark .name { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.brand-mark .name .n1 { font-family: var(--font-head); font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; color: var(--text); }
.brand-mark .name small { margin-top: .3rem; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: .55rem; }
.brand-mark .name small .dot-sep + .dot-sep::before { content: "•"; margin-right: .55rem; color: var(--accent); }

/* Nav links */
.site-nav { gap: .1rem; }
.site-nav .nav-link { white-space: nowrap; font-size: .9rem; font-weight: 600; padding: .5rem .7rem !important; border-radius: 10px; position: relative; color: var(--text); }
.site-nav .nav-link:hover { background: transparent; color: var(--brand-ink); }
.site-nav .nav-link.active { background: transparent; color: var(--brand-ink); }
@media (min-width: 1200px) {
  .site-nav .nav-link::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .15rem; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-2), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
}

/* Actions */
.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.btn-nav { white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.05rem; font-size: .88rem; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: rgba(var(--brand-2-rgb), .5); color: var(--brand-ink); background: rgba(var(--brand-rgb), .04); }
.btn-cta { padding-left: 1.2rem; padding-right: 1.25rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important; border: 0; }
.btn-cta:hover { filter: brightness(1.07); }

/* Medium-large desktops: tighten so everything stays on one line */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .header-inner { gap: .75rem; }
  .site-nav .nav-link { font-size: .84rem; padding: .5rem .5rem !important; }
  .site-nav .nav-link::after { left: .5rem; right: .5rem; }
  .brand-mark .name .n1 { font-size: .98rem; }
  .btn-nav .lbl { display: none; }              /* Sign in → icon only */
  .btn-ghost.btn-nav { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 12px; }
}

/* Mobile / offcanvas menu */
@media (max-width: 1199.98px) {
  .header-inner { justify-content: space-between; }
  .site-nav { margin: 0 0 1rem; }
  .site-nav .nav-link { font-size: 1rem; padding: .8rem 1rem !important; border-radius: 12px; }
  .site-nav .nav-link.active, .site-nav .nav-link:hover { background: rgba(var(--brand-rgb), .07); }
  .header-actions { flex-direction: column; align-items: stretch; }
  .header-actions .btn-nav { justify-content: center; padding: .75rem 1rem; }
  .offcanvas-xl { max-width: 360px; }
}
@media (max-width: 575.98px) {
  .logo-ring { width: 44px; height: 44px; }
  .logo-ring img, .logo-ring .mono { width: 37px; height: 37px; }
  .brand-mark { gap: .6rem; }
  .brand-mark .name .n1 { font-size: .9rem; }
  .brand-mark .name small { font-size: .6rem; }
}

/* Themed SVG logo inside the header ring */
.logo-ring { width: auto; height: auto; background: none; box-shadow: none; border-radius: 50%; }
.logo-ring::before { display: none; }
.logo-ring .cra-logo { filter: drop-shadow(0 6px 14px rgba(var(--brand-rgb), .35)); }
.site-footer .brand-mark .cra-logo { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4)); }
@media (max-width: 575.98px) { .logo-ring .cra-logo { width: 42px; height: 42px; } }

/* ---- Chairman photo (CMS pages) ---- */
.prose .chairman-photo { float: inline-end; width: 260px; margin: .25rem 0 1.25rem 1.75rem; text-align: center; }
[dir="rtl"] .prose .chairman-photo { margin: .25rem 1.75rem 1.25rem 0; }
.prose .chairman-photo img { width: 100%; aspect-ratio: 520 / 456; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); border: 4px solid var(--surface, #fff); outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.prose .chairman-photo figcaption { margin-top: .75rem; line-height: 1.3; }
.prose .chairman-photo figcaption strong { display: block; color: var(--text); }
.prose .chairman-photo figcaption span { font-size: .85rem; color: var(--brand); font-weight: 600; }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 575.98px) { .prose .chairman-photo { float: none; width: 100%; max-width: 300px; margin: 0 auto 1.5rem; } }

/* ---- Advice pages (CV / interview): Do & Don't cards ---- */
.prose .advice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.prose .advice-card { border-radius: 16px; padding: 1.25rem 1.4rem; border: 1px solid var(--border, rgba(0,0,0,.08)); background: var(--surface-2, #f7f9fc); }
.prose .advice-card h3 { font-size: 1.05rem; margin: 0 0 .75rem; display: flex; align-items: center; gap: .5rem; }
.prose .advice-card ul { margin: 0; padding-inline-start: 1.1rem; }
.prose .advice-card li { margin-bottom: .45rem; }
.prose .advice-card.do { border-top: 4px solid #16a34a; }
.prose .advice-card.do h3 i { color: #16a34a; }
.prose .advice-card.dont { border-top: 4px solid #dc2626; }
.prose .advice-card.dont h3 i { color: #dc2626; }
.prose .advice-cta { margin-top: 1.5rem; }
.prose .advice-cta .btn { text-decoration: none; }

/* ---- Old-site content: values, chips, org chart, flow chart, logo wall, letters ---- */
.prose .values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.prose .value-card { padding: 1.25rem; border-radius: 16px; background: var(--surface-2, #f7f9fc); border: 1px solid var(--border, rgba(0,0,0,.08)); }
.prose .value-card i { font-size: 1.6rem; color: var(--brand); display: inline-block; margin-bottom: .5rem; }
.prose .value-card h3 { font-size: 1.02rem; margin: 0 0 .35rem; }
.prose .value-card p { font-size: .92rem; margin: 0; color: var(--muted); }
.prose .chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.prose .chip-list .chip { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; font-weight: 600; }

.prose .org-chart { margin: 2rem 0 1rem; display: flex; flex-direction: column; align-items: center; gap: 0; }
.prose .org-level { display: flex; justify-content: center; position: relative; padding-bottom: 1.5rem; }
.prose .org-level::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 2px; height: 1.5rem; background: color-mix(in srgb, var(--brand) 40%, transparent); }
.prose .org-box { background: var(--surface, #fff); border: 1px solid var(--border, rgba(0,0,0,.1)); border-top: 3px solid var(--brand-2, var(--brand)); border-radius: 12px; padding: .6rem .9rem; text-align: center; font-size: .85rem; min-width: 170px; box-shadow: 0 6px 18px -12px rgba(0,0,0,.35); }
.prose .org-box strong { display: block; font-size: .9rem; }
.prose .org-box span { display: block; color: var(--muted); font-size: .8rem; }
.prose .org-box.org-top { background: var(--brand); color: #fff; border-color: var(--brand); }
.prose .org-box.org-top span { color: rgba(255,255,255,.85); }
.prose .org-branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; width: 100%; padding-top: 1.5rem; border-top: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.prose .org-branch { display: flex; flex-direction: column; align-items: center; gap: .9rem; position: relative; }
.prose .org-branch .org-box { width: 100%; min-width: 0; }
.prose .org-branch .org-box + .org-box { position: relative; }
.prose .org-branch .org-box + .org-box::before { content: ""; position: absolute; top: -.9rem; left: 50%; width: 2px; height: .9rem; background: color-mix(in srgb, var(--brand) 40%, transparent); }
@media (max-width: 767.98px) { .prose .org-branches { grid-template-columns: 1fr 1fr; border-top: 0; } }
@media (max-width: 459.98px) { .prose .org-branches { grid-template-columns: 1fr; } }

.flow-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 980px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; counter-reset: none; }
.flow-step { display: flex; align-items: flex-start; gap: .9rem; background: var(--surface, #fff); border: 1px solid var(--border, rgba(0,0,0,.08)); border-radius: 16px; padding: 1rem 1.15rem; position: relative; }
.flow-step h3 { font-size: .98rem; font-weight: 700; margin: 0 0 .2rem; }
.flow-step p { font-size: .88rem; color: var(--muted); margin: 0; }
.flow-num { position: absolute; top: -.6rem; inset-inline-start: -.6rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; box-shadow: 0 4px 12px -4px rgba(0,0,0,.4); }
.flow-icon { flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-2, var(--brand)) 14%, transparent); color: var(--brand); font-size: 1.2rem; }
.flow-step:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 480px; justify-self: center; width: 100%; }
@media (max-width: 767.98px) { .flow-steps { grid-template-columns: 1fr; } }

.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .85rem; }
.logo-wall-item { background: #fff; border: 1px solid var(--border, rgba(0,0,0,.08)); border-radius: 14px; height: 92px; display: grid; place-items: center; padding: .6rem; transition: transform .2s, box-shadow .2s; }
.logo-wall-item:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -16px rgba(0,0,0,.45); }
.logo-wall-item img { max-width: 100%; max-height: 72px; object-fit: contain; filter: grayscale(.15); }
.letter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.letter-card { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border, rgba(0,0,0,.08)); background: #fff; aspect-ratio: 3 / 4; }
.letter-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.letter-card span { position: absolute; inset: auto .5rem .5rem auto; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.letter-card:hover img { transform: scale(1.04); }
.letter-card:hover span { opacity: 1; }

/* ---- Jobs filter sidebar: keep long industry names and counts inside the card ---- */
.facet-list { grid-template-columns: minmax(0, 1fr); }
.facet-list .btn { white-space: normal; min-width: 0; line-height: 1.3; }
.facet-list .facet { display: flex; align-items: center; gap: .5rem; }
.facet-list .facet-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.facet-list .facet-count { flex-shrink: 0; min-width: 1.6rem; text-align: center; font-size: .75rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: var(--surface-2, rgba(0,0,0,.05)); color: var(--muted); }
.facet-list .btn-soft .facet-count { background: var(--brand); color: #fff; }
