/**
 * Platform design tokens — layered on existing theme CSS (does not replace vendors).
 */
:root {
    --jp-font-sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    --jp-color-bg: #fafbfc;
    --jp-color-surface: #ffffff;
    --jp-color-text: #111827;
    --jp-color-muted: #6b7280;
    --jp-color-brand: #2563eb;
    --jp-color-brand-hover: #1d4ed8;
    --jp-radius-lg: 14px;
    --jp-radius-md: 10px;
    --jp-shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
    --jp-shadow-md: 0 10px 40px rgba(17, 24, 39, 0.08);
    --jp-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
    --jp-neon: #60a5fa;
}

body.main-body,
body {
    font-family: var(--jp-font-sans);
    background-color: var(--jp-color-bg);
    color: var(--jp-color-text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

.header-logo img,
.footer_logo img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

/* Layout shells */
.jp-landing-shell .section-box,
.jp-marketing-page .section-box {
    position: relative;
}

.jp-marketing-page .breacrumb-cover,
.jp-landing-shell .breacrumb-cover {
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.jp-marketing-page .content-page,
.jp-marketing-page .sidebar-shadow,
.jp-marketing-page .post-loop-grid,
.jp-marketing-page .contact-from-area {
    border-radius: 14px;
}

.jp-marketing-page .post-loop-grid .card-grid-3,
.jp-marketing-page .company_page .card-grid-1,
.jp-marketing-page .candidate_page .card-grid-2 {
    transition: transform var(--jp-transition), box-shadow var(--jp-transition);
}

.jp-marketing-page .post-loop-grid .card-grid-3:hover,
.jp-marketing-page .company_page .card-grid-1:hover,
.jp-marketing-page .candidate_page .card-grid-2:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.12), transparent 45%),
      radial-gradient(circle at 88% 8%, rgba(16, 185, 129, 0.1), transparent 40%);
    z-index: -1;
}

.header.sticky-bar {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.heading-banner {
    letter-spacing: -0.03em;
    text-wrap: balance;
    font-weight: 800;
}

.banner_section .form-find {
    border-radius: 18px;
    box-shadow: 0 15px 50px rgba(15, 23, 42, 0.12);
}

.jp-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.6);
    background: rgba(255, 255, 255, 0.55);
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1rem;
}

.jp-hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #475569;
}

.jp-hero-trust .dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #60a5fa;
}

/* Hero fallback when CMS images are missing */
.jp-hero-fallback {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #2563eb 100%) !important;
    min-height: 120px;
}

/* Cards & sections */
.main .section-box,
.card-grid-2 {
    border-radius: var(--jp-radius-md);
    transition: box-shadow var(--jp-transition), transform var(--jp-transition);
}

.card-grid-1,
.card-review-1,
.box-pricing-item,
.box-step,
.card-grid-3 {
    border-radius: 14px !important;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.card-grid-2:hover {
    box-shadow: var(--jp-shadow-md) !important;
    transform: translateY(-4px);
}

/* Primary actions */
.btn.btn-default,
.btn.btn-apply-now,
.btn.btn-find {
    border-radius: var(--jp-radius-md) !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn.btn-default {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border: 0 !important;
}

.btn.btn-default:hover {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn.btn-border {
    border-radius: 10px !important;
}

/* Empty state blocks */
.jp-empty-state {
    border-radius: var(--jp-radius-lg);
    background: var(--jp-color-surface);
    border: 1px dashed #e5e7eb;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--jp-color-muted);
    box-shadow: var(--jp-shadow-sm);
}

.swiper-button-next,
.swiper-button-prev {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
}

.header .main-menu > li > a {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.header .main-menu > li > a:hover {
    color: #1d4ed8;
}

.section-title {
    letter-spacing: -0.02em;
    font-weight: 800;
}

/* Hide duplicated legacy mobile wrapper instance */
.mobile-header-active + .mobile-header-active {
    display: none !important;
}

.mobile-header-wrapper-style .mobile-menu li a {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.banner-hero .banner-description,
.font-lg.color-text-paragraph-2 {
    line-height: 1.7;
}

/* Jobs index sidebar/content alignment */
.jp-jobs-layout {
    align-items: flex-start;
}

.jp-jobs-layout .content-page,
.jp-jobs-layout .jp-jobs-sidebar {
    height: 100%;
}

.jp-jobs-sidebar {
    padding: 24px !important;
    border-radius: 14px !important;
}

.jp-jobs-sidebar .filter-block.head-border {
    margin-top: 0 !important;
}

.jp-jobs-sidebar .sidebar-filters {
    position: sticky;
    top: 110px;
}

@media (max-width: 991.98px) {
    .jp-jobs-sidebar .sidebar-filters {
        position: static;
    }
}

/* Companies index sidebar/content alignment */
.jp-companies-layout,
.jp-candidates-layout {
    align-items: flex-start;
}

.jp-companies-sidebar,
.jp-candidates-sidebar {
    padding: 24px !important;
    border-radius: 14px !important;
}

.jp-companies-sidebar .sidebar-filters,
.jp-candidates-sidebar .sidebar-filters {
    position: sticky;
    top: 110px;
}

@media (max-width: 991.98px) {
    .jp-companies-sidebar .sidebar-filters,
    .jp-candidates-sidebar .sidebar-filters {
        position: static;
    }
}

.jp-empty-state h3 {
    color: var(--jp-color-text);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.jp-empty-state a {
    color: var(--jp-color-brand);
    font-weight: 600;
}

/* Breadcrumb polish */
.breacrumb-cover h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Form focus */
.form-input:focus,
.select2-container--default .select2-selection--single:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(37, 99, 235, 0.35) !important;
    outline-offset: 1px;
}
