/* Homepage — layout & visual accents only. Typography uses style.css + Bootstrap defaults. */

.nj-hero {
    position: relative;
    overflow: hidden;
}

.nj-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(10, 25, 60, 0.92) 0%,
        rgba(20, 80, 120, 0.78) 45%,
        rgba(180, 60, 40, 0.55) 100%
    );
    z-index: 0;
}

.nj-hero .container {
    position: relative;
    z-index: 1;
}

.nj-hero-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    margin-bottom: 12px;
}

.nj-hero .theme-cl {
    color: #7ee8cfff;
    text-shadow: 0 0 24px rgba(120, 230, 200, 0.45);
}

.nj-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 20px;
}

.nj-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 108px;
}

.nj-stat strong {
    display: block;
}

.nj-hero-search {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
    max-width: 520px;
}

.nj-hero-search .form-control {
    border-radius: 8px;
    border: 1px solid #dde3ea;
}

.nj-hero-cta .btn {
    margin-right: 6px;
    margin-bottom: 6px;
}

.nj-section-soft {
    background: linear-gradient(180deg, #f6f9fc 0%, #fff 100%);
}

/* —— Popular roles (homepage) —— */
.nj-popular-roles {
    margin-top: 28px;
    padding: 0;
    border-radius: 20px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    position: relative;
    overflow: hidden;
}

.nj-popular-roles__decor {
    position: absolute;
    right: -20%;
    top: -40%;
    width: 55%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(38, 174, 97, 0.35) 0%, transparent 65%);
    pointer-events: none;
}

.nj-popular-roles__decor::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, black 20%, transparent 75%);
}

.nj-popular-roles__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 8px;
    position: relative;
    z-index: 1;
}

.nj-popular-roles__head-text {
    min-width: 0;
}

.nj-popular-roles .nj-popular-roles__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #34d399;
    margin-bottom: 8px;
}

.nj-popular-roles .nj-popular-roles__title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f8fafc;
    line-height: 1.25;
    font-family: "Poppins", "Montserrat", sans-serif;
}

.nj-popular-roles .nj-popular-roles__sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #94a3b8;
    max-width: 36em;
}

.nj-popular-roles__all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #ecfdf5;
    background: rgba(38, 174, 97, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.35);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.nj-popular-roles__all:hover {
    background: rgba(38, 174, 97, 0.35);
    border-color: rgba(52, 211, 153, 0.55);
    color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}

.nj-popular-roles__all i {
    font-size: 14px;
    opacity: 0.9;
}

.nj-popular-roles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    padding: 16px 16px 20px;
    position: relative;
    z-index: 1;
}

.nj-popular-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 12px 12px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.nj-popular-card:hover {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(51, 65, 85, 0.85);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.nj-popular-card__rank {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #a7f3d0;
    background: linear-gradient(145deg, rgba(38, 174, 97, 0.35) 0%, rgba(15, 118, 110, 0.25) 100%);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.nj-popular-card__main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.nj-popular-card__title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: inherit;
}

.nj-popular-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #4ade80;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nj-popular-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.nj-popular-card__dot--muted {
    background: #64748b;
    box-shadow: none;
}

.nj-popular-card__meta--muted {
    color: #94a3b8;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
}

.nj-popular-card__go {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    color: #64748b;
    font-size: 12px;
    transition: background 0.2s, color 0.2s;
}

.nj-popular-card:hover .nj-popular-card__go {
    background: rgba(38, 174, 97, 0.35);
    color: #ecfdf5;
}

@media (max-width: 767px) {
    .nj-popular-roles {
        margin-top: 22px;
        border-radius: 16px;
    }

    .nj-popular-roles__head {
        flex-direction: column;
        padding: 20px 18px 4px;
        gap: 14px;
    }

    .nj-popular-roles__all {
        align-self: flex-start;
    }

    .nj-popular-roles .nj-popular-roles__title {
        font-size: 1.35rem;
    }

    .nj-popular-roles__grid {
        grid-template-columns: 1fr;
        padding: 12px 12px 16px;
    }
}

/*
 * Featured listings: Bootstrap 3 floats + uneven card heights break the grid
 * (e.g. 4th card tucks under column 3). Flex row + column flex fixes alignment.
 */
.nj-featured-row.row {
    display: flex;
    flex-wrap: wrap;
}

.nj-featured-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    float: none;
}

@media (min-width: 992px) {
    .nj-featured-row > .col-md-4 {
        flex: 0 0 33.33333333%;
        max-width: 33.33333333%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .nj-featured-row > .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .nj-featured-row > .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.nj-featured-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 16px;
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nj-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.nj-featured-card .btn.theme-btn {
    margin-top: auto;
    align-self: flex-start;
}

.nj-featured-card .nj-f-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
    padding: 4px;
    margin-bottom: 10px;
}

/* Index intro + About page — same body / heading scale (matches .heading p = 15px in style.css) */
.nj-section-soft p,
.nj-section-soft .nj-about-body p {
    font-size: 15px;
    line-height: 1.65;
}

.nj-section-soft > .container > .row > .col-md-8 > p.text-muted {
    font-size: 15px;
    line-height: 1.65;
}

.nj-section-soft h2 {
    font-family: "Poppins", "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
}

/* "N Jobs & Vacancies" on index: same scale as .nj-section-soft / .heading h2 (was h4 ~18px) */
.nj-home-job-list h4.job_vacancie {
    font-size: 30px;
    font-family: "Poppins", "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 18px;
    color: #334e6f;
}

@media screen and (max-width: 479px) {
    .nj-home-job-list h4.job_vacancie {
        font-size: 26px;
        line-height: 1.35;
    }
}

.nj-section-soft h3,
.nj-section-soft .nj-about-body h3 {
    font-family: "Poppins", "Montserrat", sans-serif;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 14px;
}

.nj-section-soft h4,
.nj-section-soft .nj-about-body h4 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
}

.nj-section-soft .nj-about-body ul li {
    font-size: 15px;
    line-height: 1.65;
}
