/**
 * NJ Process Elementor Widget Styles
 *
 * @package NJ_Core
 * @version 2.0.0
 */

:root {
    --nirja-font-main: 'Poppins', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nirja-font-heading: 'Marcellus', 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --nirja-font-body: 'Poppins', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}



/* --- Universal & Section Title Text Animations --- */
.nj-word,
.nj-sec1-title .nj-word {
    display: inline-block;
    vertical-align: top;
    margin-right: 0.28em;
    will-change: transform, opacity;
}

/* 1. Word by Word Slide Left to Right */
.nj-anim-word-slide-left-right .nj-word {
    opacity: 0;
    transform: translateX(-35px);
    animation: njWordSlideLeftRight var(--nj-anim-duration, 0.7s) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: calc(var(--nj-word-index, 0) * var(--nj-anim-delay, 0.12s));
}

@keyframes njWordSlideLeftRight {
    0% {
        opacity: 0;
        transform: translateX(-35px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 2. Word by Word Fade Up */
.nj-anim-word-fade-up .nj-word {
    opacity: 0;
    transform: translateY(28px);
    animation: njWordFadeUp var(--nj-anim-duration, 0.7s) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: calc(var(--nj-word-index, 0) * var(--nj-anim-delay, 0.12s));
}

@keyframes njWordFadeUp {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Word Wave (Continuous Loop) */
.nj-anim-word-wave .nj-word {
    display: inline-block;
    animation: njWordWave 3.2s ease-in-out infinite;
    animation-delay: calc(var(--nj-word-index, 0) * 0.16s);
}

@keyframes njWordWave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
        color: #4E5B4F;
    }
}

/* 4. Luxury Text Shimmer */
.nj-anim-text-shimmer {
    background: linear-gradient(90deg, #1D251F 0%, #4E5B4F 35%, #8B9988 50%, #4E5B4F 65%, #1D251F 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: njTextShimmer 4.5s ease-in-out infinite;
}

@keyframes njTextShimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* 5. Subtle Floating Wave */
.nj-anim-floating-wave {
    animation: njFloatingWave 4s ease-in-out infinite;
}

@keyframes njFloatingWave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

 * NJ PROCESS WIDGET: CIRCULAR 4-STEP PROCESS
 * ========================================================================= */
.nj-process-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.nj-process-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.nj-process-container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.nj-process-header {
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    margin-bottom: 48px;
}

.nj-process-subtitle {
    display: inline-block;
    font-family: var(--nirja-font-main, 'DM Sans', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4E5B4F;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.nj-process-title {
    font-family: var(--nirja-font-heading, 'Marcellus', 'Marcellus Pro', Georgia, serif);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.25;
    color: #1D251F;
    margin: 0 0 48px 0;
    transition: color 0.3s ease;
    word-break: break-word;
}

.nj-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 28px;
    row-gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

.nj-process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
}

.nj-process-step-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.nj-process-circle-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    flex-shrink: 0;
}

.nj-process-circle-outer {
    position: relative;
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    border: 10px solid #EFEAE2;
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f7f4ee;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.nj-process-circle-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nj-process-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.nj-process-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #4E5B4F;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 5;
    font-family: var(--nirja-font-main, 'DM Sans', sans-serif);
}

.nj-process-hover-zoom:hover .nj-process-img {
    transform: scale(1.1);
}

.nj-process-hover-zoom:hover .nj-process-circle-outer {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.nj-process-hover-zoom:hover .nj-process-badge {
    transform: scale(1.1) translateY(-2px);
}

.nj-process-body {
    box-sizing: border-box;
    width: 100%;
    padding: 22px 10px 0 10px;
    text-align: center;
}

.nj-process-step-title {
    font-family: var(--nirja-font-heading, 'Marcellus', 'Marcellus Pro', Georgia, serif);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    color: #1D251F;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.nj-process-step-desc {
    font-family: var(--nirja-font-main, 'DM Sans', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: #6C746B;
    margin: 0;
    transition: color 0.3s ease;
}

/* =========================================================================
 * NJ PROCESS: STYLE 3 (VERTICAL IMAGE CARD WITH HOVER OVERLAY REVEAL)
 * ========================================================================= */
.nj-process-style3 .nj-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 24px;
    row-gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.nj-process-s3-card {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.nj-process-s3-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

/* Vertical Image Card Wrap */
.nj-process-s3-img-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    min-height: 250px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s ease;
    background-color: #1A2420;
    cursor: pointer;
    box-sizing: border-box;
}

.nj-process-s3-card:hover .nj-process-s3-img-wrap {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

/* Background image */
.nj-process-s3-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.nj-process-s3-card:hover .nj-process-s3-img {
    transform: scale(1.08);
}

/* Gradient overlay on the image */
.nj-process-s3-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(16, 28, 24, 0.02) 0%, rgba(16, 28, 24, 0.38) 45%, rgba(16, 28, 24, 0.92) 100%);
    z-index: 2;
    transition: background 0.5s ease;
    pointer-events: none;
}

.nj-process-s3-card:hover .nj-process-s3-overlay {
    background: linear-gradient(180deg, rgba(16, 28, 24, 0.15) 0%, rgba(16, 28, 24, 0.68) 35%, rgba(16, 28, 24, 0.96) 100%);
}

/* Floating step badge */
.nj-process-s3-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    line-height: 1;
    letter-spacing: 0.8px;
    font-family: var(--nirja-font-main, 'DM Sans', sans-serif);
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.nj-process-s3-card:hover .nj-process-s3-badge {
    background: #A97725;
    border-color: #A97725;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(169, 119, 37, 0.4);
}

/* Content container inside the image card */
.nj-process-s3-content {
    position: relative;
    z-index: 3;
    width: 100%;
    box-sizing: border-box;
    padding: 24px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

/* Step Title on image */
.nj-process-style3 .nj-process-s3-title {
    color: #FFFFFF !important;
    font-family: var(--nirja-font-heading, 'Marcellus', 'Playfair Display', serif);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    text-align: left;
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.nj-process-s3-card:hover .nj-process-s3-title {
    color: #FFFFFF !important;
}

/* Hover Description Reveal Wrapper */
.nj-process-s3-desc-wrap {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transform: translateY(14px);
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.4s ease,
                transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                margin-top 0.45s ease;
}

.nj-process-s3-card:hover .nj-process-s3-desc-wrap {
    max-height: 250px;
    opacity: 1;
    margin-top: 10px;
    transform: translateY(0);
}

/* Step Description text inside overlay */
.nj-process-style3 .nj-process-s3-desc,
.nj-process-style3 .nj-process-s3-desc p {
    color: rgba(255, 255, 255, 0.88) !important;
    font-family: var(--nirja-font-main, 'DM Sans', sans-serif);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
    text-align: left;
}

.nj-process-style3 .nj-process-s3-desc p:not(:last-child) {
    margin-bottom: 6px;
}

/* Responsive Breakpoints for Style 3 */
@media (max-width: 1024px) {
    .nj-process-style3 .nj-process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 20px !important;
        row-gap: 24px !important;
    }
    .nj-process-s3-img-wrap {
        height: 250px;
        min-height: 250px;
    }
}

@media (max-width: 767px) {
    .nj-process-style3 .nj-process-grid {
        grid-template-columns: 1fr !important;
        row-gap: 20px !important;
    }
    .nj-process-s3-img-wrap {
        height: 250px;
        min-height: 250px;
    }
}



@media (max-width: 991px) {
    .nj-process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .nj-process-title {
        font-size: 2.1rem !important;
    }

    .nj-process-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Legacy Rehab Process Wrapper */
/**
 * NJ Process Steps Stylesheet
 * Google Material Card Shape, Process Lines, Staggered Animations & Poppins Typography
 */

/* ==================== GLOBAL WRAPPER ==================== */
.nj-process-wrapper {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 24px;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nj-process-wrapper.is-fullwidth {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.nj-process-wrapper.is-fullwidth .nj-process-header {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    max-width: 100%;
}

.nj-process-wrapper.is-fullwidth .nj-process-grid {
    width: 100%;
    margin: 0;
}

.nj-process-wrapper *,
.nj-process-wrapper *::before,
.nj-process-wrapper *::after {
    box-sizing: border-box;
}

/* ==================== GOOGLE ANIMATION STYLES ==================== */
@keyframes njGoogleFadeUp {
    0% {
        opacity: 0;
        transform: translateY(32px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes njGoogleScale {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(18px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes njGoogleFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Base animation triggers */
.nj-anim-fade-up .nj-process-item {
    animation: njGoogleFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nj-anim-scale .nj-process-item {
    animation: njGoogleScale 0.75s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.nj-anim-fade .nj-process-item {
    animation: njGoogleFade 0.75s ease forwards;
}

/* Staggered card delays */
.is-staggered .nj-process-item {
    animation-delay: var(--nj-delay, 0s);
}

/* ==================== HEADER (DEFAULT LEFT-ALIGNED / FULL WIDTH) ==================== */
.nj-process-header {
    text-align: left;
    max-width: 100%;
    margin: 0 0 36px 0;
}

.nj-process-subtitle {
    display: inline-flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.75rem, 1.6vw, 0.875rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f7941d;
    background-color: transparent !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 14px;
    transition: none;
    cursor: default;
}

.nj-process-subtitle:hover {
    background-color: transparent !important;
    background: transparent !important;
    color: #f7941d !important;
    transform: none !important;
    box-shadow: none !important;
}

.nj-process-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.25;
    color: #202124; /* Google Dark */
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    text-align: inherit;
}

.nj-process-description {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    font-weight: 400;
    line-height: 1.65;
    color: #5f6368;
    margin: 0;
    max-width: 820px;
    text-align: inherit;
}

/* ==================== PROCESS GRID ==================== */
.nj-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
    align-items: stretch;
    position: relative;
    width: 100%;
}

/* Column variations */
.nj-process-cols-1- .nj-process-grid,
.nj-process-cols-1 .nj-process-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0;
}

.nj-process-cols-2- .nj-process-grid,
.nj-process-cols-2 .nj-process-grid {
    grid-template-columns: repeat(2, 1fr);
}

.nj-process-cols-3- .nj-process-grid,
.nj-process-cols-3 .nj-process-grid {
    grid-template-columns: repeat(3, 1fr);
}

.nj-process-cols-4- .nj-process-grid,
.nj-process-cols-4 .nj-process-grid {
    grid-template-columns: repeat(4, 1fr);
}

.nj-process-cols-5- .nj-process-grid,
.nj-process-cols-5 .nj-process-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 18px;
}

.nj-process-cols-6- .nj-process-grid,
.nj-process-cols-6 .nj-process-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 16px;
}

.nj-process-cols-7- .nj-process-grid,
.nj-process-cols-7 .nj-process-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 20px 14px;
}

.nj-process-cols-7 .nj-process-card,
.nj-process-cols-7- .nj-process-card {
    padding: 24px 16px;
}

/* Item wrapper with relative positioning for connector lines */
.nj-process-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.nj-process-card-anchor {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ==================== GOOGLE CARD SHAPE ==================== */
.nj-process-card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 22px;
    padding: 32px 26px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.12),
                0 4px 8px 3px rgba(60, 64, 67, 0.05);
    transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1),
                box-shadow 0.35s cubic-bezier(0.2, 0, 0, 1),
                border-color 0.3s ease,
                background-color 0.3s ease;
    overflow: hidden;
    cursor: default;
}

/* Google Card Top Accent Line (Color Change on Hover) */
.nj-process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: transparent;
    transition: background-color 0.35s cubic-bezier(0.2, 0, 0, 1);
}

/* ==================== GOOGLE HOVER EFFECT ==================== */
.nj-process-card:hover {
    transform: translateY(-8px);
    border-color: #2b3992;
    box-shadow: 0 14px 28px -4px rgba(43, 57, 146, 0.18),
                0 6px 14px -2px rgba(60, 64, 67, 0.08);
}

.nj-process-card:hover::before {
    background-color: #2b3992;
}

/* ==================== CARD TOP ROW: NUMBER & BADGE ==================== */
.nj-process-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.nj-process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background-color: #e8f0fe;
    color: #2b3992;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.nj-process-card:hover .nj-process-number {
    background-color: #2b3992;
    color: #ffffff;
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 4px 12px rgba(43, 57, 146, 0.35);
}

.nj-process-badge {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5f6368;
    background-color: #f1f3f4;
    padding: 4px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Hide Step 1/Step badge in classic material cards unless explicitly enabled */
.nj-process-wrapper:not(.has-step-badge) .nj-process-card-top .nj-process-badge,
.nj-process-wrapper.no-step-badge .nj-process-card-top .nj-process-badge {
    display: none !important;
}

.nj-process-card:hover .nj-process-badge {
    color: #2b3992;
    background-color: #e8f0fe;
}

/* ==================== CARD TITLE & DESCRIPTION TYPOGRAPHY ==================== */
.nj-process-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.08rem, 1.4vw, 1.25rem);
    font-weight: 600;
    line-height: 1.4;
    color: #202124;
    margin: 0 0 14px 0;
    transition: color 0.3s ease;
}

.nj-process-card:hover .nj-process-card-title {
    color: #2b3992;
}

.nj-process-card-desc {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.88rem, 1.1vw, 0.94rem);
    font-weight: 400;
    line-height: 1.68;
    color: #5f6368;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.nj-process-card-desc p {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    margin: 0 0 10px 0;
}

.nj-process-card-desc p:last-child {
    margin-bottom: 0;
}

/* ==================== CARD FOOTER INDICATOR ==================== */
.nj-process-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px dashed #e8eaed;
    margin-top: auto;
}

.nj-process-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dadce0;
    transition: all 0.3s ease;
}

.nj-process-card:hover .nj-process-indicator-dot {
    background-color: #34a853; /* Google Green status */
    transform: scale(1.3);
}

.nj-process-indicator-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: #80868b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.nj-process-card:hover .nj-process-indicator-label {
    color: #202124;
}

/* ==================== PROCESS CONNECTING LINE AFTER EACH CARD ==================== */
.nj-process-line-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
    transition: all 0.35s ease;
}

.nj-line-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #dadce0;
    transition: all 0.35s ease;
}

.nj-line-bar {
    width: 14px;
    height: 2px;
    background-color: #dadce0;
    transition: all 0.35s ease;
}

.nj-line-arrow {
    color: #dadce0;
    transition: all 0.35s ease;
}

/* Process Line hover color change */
.nj-process-item:hover .nj-process-line-connector .nj-line-dot,
.nj-process-item:hover .nj-process-line-connector .nj-line-bar {
    background-color: #2b3992;
}

.nj-process-item:hover .nj-process-line-connector .nj-line-arrow {
    color: #2b3992;
    transform: translateX(4px);
}

/* Hide horizontal connectors on items at the end of each row in grid */
@media (min-width: 992px) {
    .nj-process-grid:not(.nj-process-cols-1) .nj-process-item:nth-child(3n) .nj-process-line-connector {
        display: none;
    }
}

/* Medium screens step down for 5, 6, 7 columns */
@media (max-width: 1200px) and (min-width: 992px) {
    .nj-process-cols-5- .nj-process-grid,
    .nj-process-cols-5 .nj-process-grid,
    .nj-process-cols-6- .nj-process-grid,
    .nj-process-cols-6 .nj-process-grid,
    .nj-process-cols-7- .nj-process-grid,
    .nj-process-cols-7 .nj-process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px 16px;
    }
}

/* ==================== RESPONSIVE: TABLET & MOBILE ==================== */
@media (max-width: 991px) {
    .nj-process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 28px 20px;
    }

    .nj-process-card {
        padding: 26px 22px;
    }

    .nj-process-grid .nj-process-item:nth-child(2n) .nj-process-line-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .nj-process-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .nj-process-header {
        margin-bottom: 35px;
    }

    .nj-process-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    /* In mobile 1 column, transform connector to vertical line pointing down to next card */
    .nj-process-line-connector {
        position: static;
        transform: none;
        margin: 10px auto -14px auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .nj-line-bar {
        width: 2px;
        height: 16px;
    }

    .nj-line-arrow {
        transform: rotate(90deg);
    }

    .nj-process-item:hover .nj-process-line-connector .nj-line-arrow {
        transform: rotate(90deg) translateX(4px);
    }
}

@media (max-width: 480px) {
    .nj-process-wrapper {
        padding: 20px 10px;
    }

    .nj-process-title {
        font-size: 1.55rem;
    }

    .nj-process-number {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
        border-radius: 12px;
    }

    .nj-process-card-title {
        font-size: 1.05rem;
    }

    .nj-process-card-desc {
        font-size: 0.88rem;
    }
}
