/* ==========================================================================
   JustJob Portal — Landing Page extensions
   (Navbar, Stats band, How-it-works, Features, Testimonials, CTA, Footer)
   Uses the same design tokens as theme.css — link AFTER theme.css.
   ========================================================================== */

/* ---------- Top navbar ---------- */

/* ===== Image hero w/ dark navy overlay (Recruiters + Employers pages) ===== */






.jj-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    padding-top: 5px;
    padding-bottom: 5px;
}

.jj-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.jj-navbar .brand img {
    display: block;
}

.jj-nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
}

    .jj-nav-links a {
        color: var(--text);
        font-weight: 600;
        font-size: .94rem;
    }

        .jj-nav-links a:hover {
            color: var(--primary);
        }

.jj-nav-cta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.jj-nav-toggle-input {
    display: none;
}

.jj-nav-toggle-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: #EAF5FA;
    color: var(--primary);
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
}

.jj-nav-mobile-menu {
    display: none;
}

@media (max-width: 860px) {
    .jj-nav-links {
        display: none;
    }

    .jj-nav-cta .btn-outline-brand {
        display: none;
    }

    .jj-nav-toggle-btn {
        display: inline-flex;
    }

    .jj-nav-toggle-input:checked ~ .jj-nav-mobile-menu {
        display: flex;
    }

    .jj-nav-mobile-menu {
        flex-direction: column;
        gap: 2px;
        position: absolute;
        left: 0;
        right: 0;
        top: 76px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: var(--sp-3) var(--sp-5) var(--sp-5);
    }

        .jj-nav-mobile-menu a {
            padding: .8rem .4rem;
            border-bottom: 1px solid var(--border);
            color: var(--text);
            font-weight: 600;
        }

        .jj-nav-mobile-menu .btn {
            margin-top: var(--sp-3);
            text-align: center;
        }
}

@media (max-width: 575px) {
    .jj-navbar-inner {
        height: 64px;
    }

    .jj-nav-mobile-menu {
        top: 64px;
    }
}

/* ---------- Section scaffolding ---------- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #EAF5FA;
    color: var(--primary);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .4rem .9rem;
    border-radius: var(--r-pill);
    margin-bottom: var(--sp-3);
}

.section-head {
    max-width: 640px;
    margin: 0 auto var(--sp-7);
    text-align: center;
}

    .section-head h2 {
        margin-bottom: var(--sp-2);
    }

    .section-head p {
        color: var(--muted);
        font-size: 1.05rem;
        margin: 0;
    }

    .section-head.left {
        text-align: left;
        margin: 0 0 var(--sp-6);
    }

/* ---------- Stats band ---------- */
.stats-band {
    background: var(--primary-dark);
    background: linear-gradient(120deg, var(--primary-dark), var(--primary));
    padding: var(--sp-6) 0;
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
}

.stat-block {
    text-align: center;
    color: #fff;
}

    .stat-block .num {
        font-family: 'Poppins', sans-serif;
        font-weight: 800;
        font-size: 2.1rem;
        line-height: 1.1;
    }

    .stat-block .lbl {
        font-size: .88rem;
        color: rgba(255,255,255,.78);
        font-weight: 500;
        margin-top: 4px;
    }

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-5) var(--sp-4);
    }

    .stat-block .num {
        font-size: 1.7rem;
    }
}

/* ---------- How it works (split by role) ---------- */
.steps-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
}

.steps-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
}

    .steps-card .steps-card-icon {
        width: 52px;
        height: 52px;
        border-radius: var(--r-md);
        display: grid;
        place-items: center;
        font-size: 22px;
        margin-bottom: var(--sp-4);
        color: #fff;
    }

    .steps-card.recruiter .steps-card-icon {
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
    }

    .steps-card.employer .steps-card-icon {
        background: linear-gradient(135deg, #C97A17, #E3A23D);
    }

.mini-flow {
    margin-top: var(--sp-4);
    display: flex;
    flex-direction: column;
}

.mini-flow-step {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: var(--sp-5);
}

    .mini-flow-step:last-child {
        padding-bottom: 0;
    }

    .mini-flow-step:not(:last-child)::before {
        content: "";
        position: absolute;
        left: 15px;
        top: 34px;
        bottom: 0;
        width: 2px;
        background: var(--border);
    }

    .mini-flow-step .num {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #EAF5FA;
        color: var(--primary);
        font-weight: 700;
        font-size: .9rem;
        display: grid;
        place-items: center;
        z-index: 1;
    }

    .mini-flow-step .txt strong {
        display: block;
        font-size: .96rem;
        margin-bottom: 2px;
    }

    .mini-flow-step .txt span {
        color: var(--muted);
        font-size: .86rem;
    }

@media (max-width: 767px) {
    .steps-split {
        grid-template-columns: 1fr;
    }
}

/* ---------- Feature cards ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-5);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: #A9D9EC;
    }

    .feature-card .role-icon {
        margin-bottom: var(--sp-3);
    }

    .feature-card h5 {
        margin-bottom: 6px;
    }

    .feature-card p {
        color: var(--muted);
        font-size: .92rem;
        margin: 0;
    }

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.testimonial-stars {
    color: #F5A623;
    font-size: .85rem;
    letter-spacing: 2px;
}

.testimonial-quote {
    color: var(--text);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #EAF5FA;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    font-size: .9rem;
}

.testimonial-role {
    color: var(--muted);
    font-size: .8rem;
}

@media (max-width: 900px) {
    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--r-lg);
    padding: var(--sp-8) var(--sp-6);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .cta-band::before {
        content: "";
        position: absolute;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        background: rgba(255,255,255,.06);
        left: -120px;
        bottom: -140px;
    }

    .cta-band h2 {
        color: #fff;
        margin-bottom: var(--sp-2);
    }

    .cta-band p {
        color: rgba(255,255,255,.85);
        max-width: 560px;
        margin: 0 auto var(--sp-5);
    }

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-3);
    position: relative;
    z-index: 2;
}

    .cta-actions .btn-primary-brand {
        background: #fff;
        border-color: #fff;
        color: var(--primary-dark);
    }

        .cta-actions .btn-primary-brand:hover {
            background: #EAF5FA;
            border-color: #EAF5FA;
        }

@media (max-width: 575px) {
    .cta-band {
        padding: var(--sp-7) var(--sp-4);
        border-radius: var(--r-md);
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.78);
    padding: var(--sp-8) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--sp-6);
    padding-bottom: var(--sp-7);
}

.footer-brand .brand,
.footer-brand .brand .accent {
    color: #fff;
}

.footer-brand p {
    color: rgba(255,255,255,.65);
    font-size: .9rem;
    max-width: 300px;
    margin-top: var(--sp-3);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: var(--sp-4);
}

    .footer-social a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255,255,255,.10);
        color: #fff;
        display: grid;
        place-items: center;
        font-size: .9rem;
    }

        .footer-social a:hover {
            background: var(--accent);
        }

.footer-col h6 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    margin-bottom: var(--sp-4);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: rgba(255,255,255,.7);
    font-size: .88rem;
}

    .footer-col a:hover {
        color: #fff;
    }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,.7);
    font-size: .88rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.14);
    padding: var(--sp-4) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-3);
    font-size: .82rem;
    color: rgba(255,255,255,.6);
}

.footer-bottom-links {
    display: flex;
    gap: var(--sp-4);
}

    .footer-bottom-links a {
        color: rgba(255,255,255,.6);
        font-size: .82rem;
    }

        .footer-bottom-links a:hover {
            color: #fff;
        }

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-5);
        padding-bottom: var(--sp-5);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* ---------- Role-specific hero (Recruiters.aspx / Employers.aspx) ---------- */
.role-hero {
    padding: 64px 0 20px;
    background: linear-gradient(160deg,#EAF5FA 0%,#FFFFFF 55%,#E7F3F8 100%);
    position: relative;
    overflow: hidden;
}

    .role-hero::after {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(0,153,216,.08);
        right: -140px;
        top: -140px;
    }

.role-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: var(--sp-7);
    align-items: center;
    position: relative;
    z-index: 2;
}

.role-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary);
    font-weight: 700;
    font-size: .82rem;
    padding: .45rem .95rem;
    border-radius: var(--r-pill);
    margin-bottom: var(--sp-4);
    box-shadow: var(--shadow-sm);
}

.role-hero-visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-md);
}

    .role-hero-visual .rhv-row {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: var(--sp-3) 0;
        border-bottom: 1px solid var(--border);
    }

        .role-hero-visual .rhv-row:last-child {
            border-bottom: none;
        }

    .role-hero-visual .rhv-icon {
        width: 44px;
        height: 44px;
        border-radius: var(--r-sm);
        background: #EAF5FA;
        color: var(--primary);
        display: grid;
        place-items: center;
        font-size: 19px;
        flex-shrink: 0;
    }

    .role-hero-visual .rhv-title {
        font-weight: 700;
        font-size: .92rem;
        margin: 0 0 2px;
    }

    .role-hero-visual .rhv-sub {
        color: var(--muted);
        font-size: .82rem;
        margin: 0;
    }

@media (max-width: 991px) {
    .role-hero {
        padding: 44px 0 10px;
    }

    .role-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ---------- Single-column highlighted steps (role landing pages) ---------- */
.steps-line {
    max-width: 760px;
    margin: 0 auto;
}

.steps-line-item {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: var(--sp-6);
}

    .steps-line-item:last-child {
        padding-bottom: 0;
    }

    .steps-line-item:not(:last-child)::before {
        content: "";
        position: absolute;
        left: 23px;
        top: 50px;
        bottom: 0;
        width: 2px;
        background: var(--border);
    }

    .steps-line-item .num {
        flex-shrink: 0;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        font-family: 'Poppins',sans-serif;
        font-weight: 800;
        font-size: 1.1rem;
        display: grid;
        place-items: center;
        z-index: 1;
    }

    .steps-line-item .content h4 {
        margin-bottom: 4px;
    }

    .steps-line-item .content p {
        color: var(--muted);
        margin: 0;
    }

/* ---------- Type / audience chips grid ---------- */
.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
}

.type-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-5) var(--sp-4);
    text-align: center;
}

    .type-card .role-icon {
        margin: 0 auto var(--sp-3);
    }

    .type-card h6 {
        margin-bottom: 4px;
        font-size: 1rem;
    }

    .type-card p {
        color: var(--muted);
        font-size: .84rem;
        margin: 0;
    }

@media (max-width: 900px) {
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .type-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- FAQ accordion (native details/summary, no JS) ---------- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0;
    overflow: hidden;
}

    .faq-item summary {
        cursor: pointer;
        list-style: none;
        padding: var(--sp-4) var(--sp-5);
        font-weight: 700;
        font-size: .96rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary::after {
            content: "+";
            font-size: 1.3rem;
            font-weight: 400;
            color: var(--primary);
            flex-shrink: 0;
            transition: transform .15s ease;
        }

    .faq-item[open] summary::after {
        content: "\2212";
    }

    .faq-item .faq-answer {
        padding: 0 var(--sp-5) var(--sp-4);
        color: var(--muted);
        font-size: .92rem;
        line-height: 1.6;
    }

/* ---------- Split promo band (image-less two-tone banner) ---------- */
.promo-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.promo-split-panel {
    padding: var(--sp-7) var(--sp-6);
    color: #fff;
}

    .promo-split-panel.a {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    }

    .promo-split-panel.b {
        background: linear-gradient(135deg, #C97A17, #A5620F);
    }

    .promo-split-panel h3 {
        color: #fff;
        margin-bottom: var(--sp-2);
    }

    .promo-split-panel p {
        color: rgba(255,255,255,.85);
        margin-bottom: var(--sp-4);
    }

@media (max-width: 767px) {
    .promo-split {
        grid-template-columns: 1fr;
    }
}

/* ---------- Marquee / trust strip ---------- */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-5);
    justify-content: center;
    opacity: .75;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
