/* ARCHITECT THEME V5 - MINIMAL, STRUCTURED, HIGH-END */
:root {
    --mj-accent: var(--brand-primary, #E11D48);
    --mj-accent-soft: var(--brand-primary-soft, rgba(225, 29, 72, 0.05));
    --mj-slate-900: #0f172a;
    --mj-slate-700: #334155;
    --mj-slate-500: #64748b;
    --mj-slate-400: #94a3b8;
    --mj-slate-200: #e2e8f0;
    --mj-slate-50: #f8fafc;
}

.animate-spin-slow {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-5%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

body {
    background-color: #fff;
    color: var(--mj-slate-900);
}

/* DOT GRID BACKGROUND */
.mj-grid-bg {
    background-image: radial-gradient(var(--mj-slate-200) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* HERO SECTION - ARCHITECTURAL */
.mj-hero-v5 {
    border-bottom: 1px solid var(--mj-slate-200);
    padding: 60px 0 40px 0;
    /* Reduced top/bottom padding */
    background: linear-gradient(to bottom, #fff, var(--mj-slate-50));
    position: relative;
    overflow: hidden;
}

.mj-hero-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 1024px) {
    .mj-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mj-hero-image {
        order: -1;
        margin-bottom: 40px;
    }

    .mj-command-search {
        margin: 0 auto;
    }
}

.mj-hero-v5 h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.mj-hero-v5 p {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--mj-slate-500);
    max-width: 600px;
    margin-bottom: 32px;
    /* Reduced from 48px */
}

.mj-hero-image-wrap {
    position: relative;
    max-width: 460px;
    aspect-ratio: 4 / 3;
    margin-right: auto;
}

.mj-hero-frame-bg {
    position: absolute;
    top: 24px;
    right: -24px;
    bottom: -24px;
    left: 24px;
    background: var(--mj-slate-50);
    border: 1px solid var(--mj-slate-200);
    border-radius: 8px;
    z-index: 1;
}

.mj-hero-img-primary {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 1px solid var(--mj-slate-900);
    border-radius: 8px;
    z-index: 2;
    box-shadow: 20px 20px 0px rgba(15, 23, 42, 0.03);
}

.mj-hero-floating-card {
    position: absolute;
    bottom: 24px;
    right: -48px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--mj-slate-200);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    z-index: 3;
}

@media (max-width: 768px) {
    .mj-hero-floating-card {
        right: 0;
        bottom: -20px;
    }
}

/* COMMAND SEARCH BAR */
.mj-command-search {
    background: #fff;
    border: 1px solid var(--mj-slate-200);
    box-shadow: 12px 12px 0px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    padding: 6px;
    /* Back to slim */
    max-width: 1400px;
    /* Even longer */
    border-radius: 8px;
    width: 100%;
}

@media (max-width: 768px) {
    .mj-command-search {
        flex-direction: column;
        gap: 8px;
    }
}

.mj-search-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 42px;
    gap: 12px;
}

.mj-search-group i {
    color: var(--mj-slate-400);
}

.mj-search-group input {
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
}

/* Lookup library overrides for Home context */
.mj-search-group .lookup-root {
    width: 100%;
}

.mj-search-group .lookup-box {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: auto !important;
}

.mj-search-group .lookup-input {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--mj-slate-900) !important;
}

.mj-search-group .lookup-btn {
    display: none !important;
    /* Hide the arrow inside the group as we have our icon */
}

/* Global Lookup Dropdown Styling (Matching Hesabim.cshtml) */
.lookup-dd {
    border: 1px solid var(--mj-slate-200) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    background: #fff !important;
}

.lookup-option {
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--mj-slate-700) !important;
    transition: all 0.2s ease !important;
}

.lookup-option:hover,
.lookup-option--active {
    background: var(--mj-slate-50) !important;
    color: var(--mj-accent) !important;
}

.lookup-option--selected {
    color: var(--mj-accent) !important;
    font-weight: 700 !important;
}

.lookup-dd-footer {
    padding: 8px 16px !important;
    font-size: 11px !important;
    color: var(--mj-slate-400) !important;
    border-top: 1px solid var(--mj-slate-50) !important;
}

.mj-search-btn {
    background: var(--mj-accent);
    color: #fff;
    border: none;
    height: 42px;
    padding: 0 32px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 8px;
    /* Standardized to 8px */
}

.mj-search-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* BENTO CATEGORIES */
.mj-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .mj-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

.mj-bento-item {
    background: #fff;
    border: 1px solid var(--mj-slate-200);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.mj-bento-item:hover {
    border-color: var(--mj-accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--mj-accent-soft);
}

.mj-bento-item.tall {
    grid-row: span 2;
}

.mj-bento-icon {
    width: 48px;
    height: 48px;
    background: var(--mj-slate-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 24px;
}

.mj-bento-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.mj-bento-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mj-slate-400);
}

/* LINEAR JOB CARD */
.mj-job-card-v5 {
    background: #fff;
    border: 1px solid var(--mj-slate-200);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
}

.mj-job-card-v5:hover {
    border-color: var(--mj-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mj-logo-wrap {
    width: 56px;
    height: 56px;
    background: #fff;
    border: 1px solid var(--mj-slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
}

.mj-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mj-job-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mj-slate-900);
    margin-bottom: 4px;
    display: block;
}

.mj-job-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mj-slate-500);
}

.mj-job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mj-job-meta i {
    color: var(--mj-slate-300);
}

/* SIDEBAR CARD */
.mj-sidebar-card {
    background: var(--mj-slate-900);
    color: #fff;
    padding: 32px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.mj-sidebar-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.mj-sidebar-btn {
    display: inline-block;
    background: #fff;
    color: var(--mj-slate-900);
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 24px;
    text-align: center;
}

/* SECTION HEADERS */
.mj-sidebar-stats {
    padding: 32px;
    border: 1px solid var(--mj-slate-200);
    background: var(--mj-slate-50);
    border-radius: 8px;
}

.mj-section-header {
    border-left: 4px solid var(--mj-accent);
    padding-left: 20px;
    margin-bottom: 40px;
}

.mj-section-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mj-slate-900);
}

/* HOW IT WORKS (Technical Tabs) */
.mj-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 48px;
    background: var(--mj-slate-100);
    padding: 6px;
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.mj-tab-btn {
    padding: 12px 36px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    color: var(--mj-slate-500);
}

.mj-tab-btn.active {
    background: #fff;
    color: var(--mj-accent);
    border: 1px solid var(--mj-accent);
    box-shadow: 0 4px 12px var(--mj-accent-soft);
}

.mj-process-content {
    display: none;
}

.mj-process-content.is-active {
    display: block;
    animation: mjFadeIn 0.5s ease forwards;
}

@keyframes mjFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mj-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .mj-process-grid {
        grid-template-columns: 1fr;
    }
}

.mj-process-card {
    background: #fff;
    padding: 40px;
    transition: all 0.3s ease;
    border: 1px solid var(--mj-slate-200);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.mj-process-card:hover {
    border-color: var(--mj-accent);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--mj-accent-soft);
}

.mj-process-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--mj-slate-100);
    line-height: 1;
    margin-bottom: 24px;
}

.mj-process-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mj-slate-900);
    margin-bottom: 16px;
}

.mj-process-card p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mj-slate-800);
    line-height: 1.7;
}

/* BUTTONS */
.mj-btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid var(--mj-slate-900);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    color: var(--mj-slate-900);
    background: transparent;
    text-align: center;
}

.mj-btn-outline:hover {
    background: var(--mj-accent);
    border-color: var(--mj-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--mj-accent-soft);
}

/* URGENT CARD */
.mj-urgent-card {
    background: #fff;
    border: 1px solid var(--mj-slate-200);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mj-urgent-card:hover {
    border-color: var(--mj-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mj-urgent-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--mj-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 12px;
    border-bottom-left-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FINAL CTA */
.mj-final-cta {
    background: var(--mj-accent);
    border-radius: 8px;
    padding: 64px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

@media (max-width: 1024px) {
    .mj-final-cta {
        flex-direction: column;
        text-align: center;
        padding: 48px 32px;
    }
}

.mj-cta-btn-white {
    background: #fff;
    color: var(--mj-accent);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.mj-cta-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mj-cta-btn-outline {
    background: transparent;
    color: #fff;
    padding: 13px 31px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: inline-block;
}

.mj-cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* TAGS */
.mj-tag-v5 {
    background: var(--mj-slate-50);
    border: 1px solid var(--mj-slate-200);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--mj-slate-600);
}

/* FEATURED JOBS SLIDER - REFINED & BALANCED */
.mj-featured-slider-section {
    padding: 60px 0;
    background: #fff;
    overflow: hidden;
}

.mj-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.mj-slider-container {
    position: relative;
    margin: 0 -20px;
    padding: 0 20px;
}

.mj-slider-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    padding-bottom: 20px;
}

.mj-slider-track::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

.mj-featured-card {
    min-width: 320px;
    width: 320px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 1px solid var(--mj-slate-200);
    background: var(--mj-slate-900);
}

.mj-featured-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(15, 23, 42, 0.85));
    z-index: 1;
}

.mj-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--mj-accent);
}

.mj-featured-card:hover img.card-bg {
    transform: scale(1.08);
}

img.card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.6s ease;
}

.mj-featured-card-content {
    position: relative;
    z-index: 2;
}

.mj-featured-tag {
    background: var(--mj-accent);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mj-featured-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #fff;
}

.mj-featured-card .company {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.mj-slider-nav {
    display: flex;
    gap: 8px;
}

.mj-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--mj-slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--mj-slate-900);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mj-nav-btn i {
    font-size: 14px;
}

.mj-nav-btn:hover {
    border-color: var(--mj-accent);
    color: var(--mj-accent);
    background: var(--mj-accent-soft);
}

@media (max-width: 768px) {
    .mj-featured-card {
        min-width: 280px;
        width: 280px;
        height: 180px;
    }
}

/* PREMIUM BANNER SLIDER - MJ ADAPTED V5 */
.mj-banner-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    margin: 0 -10px;
}

.mj-banner-track::-webkit-scrollbar {
    display: none;
}

.mj-banner-slide {
    min-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.mj-banner-wrapper {
    background: transparent;
    border-radius: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.mj-banner-inner {
    background: #000;
    border-radius: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.mj-banner-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.mj-banner-left {
    flex: 1;
}

.mj-banner-logo-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: -0.04em;
}

.mj-banner-logo-title span {
    display: block;
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 800;
}

.mj-banner-center {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mj-banner-badge {
    background: #7C3AED;
    /* Purple */
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 20px;
    display: inline-block;
}

.mj-banner-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #444;
    line-height: 1.5;
    margin-bottom: 24px;
}

.mj-banner-title strong {
    color: #000;
    font-weight: 800;
}

.mj-banner-btn {
    background: #0000FF;
    color: #fff;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.mj-banner-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 255, 0.3);
}

.mj-banner-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.mj-banner-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mj-banner-visual img {
    max-width: 180px;
    height: auto;
}

.mj-ai-badge {
    background: #F3E8FF;
    border: 1px solid #E9D5FF;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    min-width: 120px;
}

.mj-ai-badge .icon {
    background: #9333EA;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
}

.mj-ai-badge h6 {
    font-size: 12px;
    font-weight: 800;
    color: #000;
    margin-top: 8px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.mj-ai-badge p {
    font-size: 10px;
    font-weight: 700;
    color: #9333EA;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .mj-banner-inner {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

    .mj-banner-center {
        align-items: center;
    }

    .mj-banner-right {
        display: none;
    }
}