
/*
Theme Name: JobNivora Child
Template: astra
Version: 1.0.8
Description: Premium lightweight government jobs portal
*/

/* ==========================================
   1. DESIGN SYSTEM
========================================== */

:root {
    --jn-nav: #111c2d;
    --jn-nav-hover: #20334b;
    --jn-teal: #168c83;
    --jn-teal-bright: #19b5a5;
    --jn-teal-dark: #106d66;
    --jn-heading: #14243b;
    --jn-text: #34445b;
    --jn-muted: #65758a;
    --jn-hero: #f7f6f1;
    --jn-surface: #f5f7fa;
    --jn-border: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.jn-site-header,
.jn-site-footer,
#jobnivora-home {
    font-family: system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI",
        Arial, sans-serif;
}

.jn-site-header *,
.jn-site-header *::before,
.jn-site-header *::after,
#jobnivora-home *,
#jobnivora-home *::before,
#jobnivora-home *::after {
    box-sizing: border-box;
}

/* ==========================================
   2. NAVBAR
========================================== */

body .jn-site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: var(--jn-nav);
    border-bottom: 3px solid var(--jn-teal-bright);
}

body .jn-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(1600px, 99%);
    min-height: 72px;
    margin: 0 auto;
}

/* ==========================================
   3. LOGO
========================================== */

body .jn-site-header .jn-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-decoration: none !important;
}

body .jn-site-header .jn-brand-logo {
    display: block;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    max-width: none;
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}

body .jn-site-header .jn-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    white-space: nowrap;
}

body .jn-site-header .jn-brand-text strong {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.5px;
}

body .jn-site-header .jn-brand-text strong span {
    color: #5ee0d0;
}

body .jn-site-header .jn-brand-text small {
    color: #b3c1d3;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .2px;
}

/* ==========================================
   4. DESKTOP NAVIGATION
========================================== */

body .jn-site-header .jn-desktop-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(7px, 1.1vw, 20px);
    min-width: 0;
    margin: 0;
    padding: 0;
}

body .jn-site-header .jn-desktop-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 7px 2px;
    border-radius: 6px;
    background: transparent;
    color: #fff !important;
    font-size: clamp(11px, 1vw, 15px) !important;
    font-weight: 650 !important;
    line-height: 1.4;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .2s ease;
}

body .jn-site-header .jn-desktop-nav a:hover,
body .jn-site-header .jn-desktop-nav a:focus-visible {
    color: #5ee0d0 !important;
}

/* ==========================================
   5. BROWSE JOBS BUTTON
========================================== */

body .jn-site-header .jn-header-cta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 41px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: var(--jn-teal-bright) !important;
    color: #092a30 !important;
    font-size: clamp(11px, 1vw, 14px) !important;
    font-weight: 800 !important;
    line-height: 1.3;
    text-decoration: none !important;
    white-space: nowrap;
}

body .jn-site-header .jn-header-cta:hover {
    background: #51dacb !important;
}

/* ==========================================
   6. HAMBURGER BUTTON
========================================== */

body .jn-site-header .jn-menu-toggle {
    display: none;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid #40546d;
    border-radius: 8px;
    background: #20334b;
    box-shadow: none;
    cursor: pointer;
}

body .jn-site-header .jn-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

/* ==========================================
   7. MOBILE MENU
========================================== */

body .jn-site-header .jn-mobile-nav {
    display: none;
    width: 100%;
    margin: 0;
    padding: 10px 18px 18px;
    border-top: 1px solid #334155;
    background: var(--jn-nav);
}

body .jn-site-header .jn-mobile-nav[hidden] {
    display: none !important;
}

body .jn-site-header .jn-mobile-nav a {
    display: block;
    margin: 0;
    padding: 13px 9px;
    border-bottom: 1px solid #2a3a50;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
}

body .jn-site-header .jn-mobile-nav a:hover {
    color: #5ee0d0 !important;
}

body .jn-site-header .jn-mobile-nav .jn-mobile-cta {
    margin-top: 14px;
    padding: 13px;
    border: 0;
    border-radius: 8px;
    background: var(--jn-teal-bright);
    color: #092a30 !important;
    font-weight: 800;
    text-align: center;
}

/* ==========================================
   8. HOMEPAGE LAYOUT
========================================== */

body.home #content > .ast-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body.home #primary {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

#jobnivora-home {
    width: 100%;
    margin: 0;
    padding: 0;
}

#jobnivora-home .jn-container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* ==========================================
   9. COMPACT PREMIUM HERO
========================================== */

#jobnivora-home .jn-hero {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 30px 20px 35px;
    background: var(--jn-hero);
    color: var(--jn-heading);
    text-align: center;
}

#jobnivora-home .jn-hero::before {
    content: "";
    position: absolute;
    top: -130px;
    right: -110px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(22,140,131,.055);
    pointer-events: none;
}

#jobnivora-home .jn-hero > .jn-container {
    position: relative;
    z-index: 1;
}

#jobnivora-home .jn-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    max-width: 100%;
    margin: 0 0 11px;
    padding: 6px 12px;
    border: 1px solid #cce7e1;
    border-radius: 50px;
    background: #eaf7f3;
    color: var(--jn-teal-dark);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .7px;
}

#jobnivora-home .jn-live-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--jn-teal);
}

#jobnivora-home .jn-hero h1 {
    max-width: 850px;
    margin: 0 auto 10px;
    padding: 0;
    color: var(--jn-heading);
    font-size: clamp(29px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.9px;
}

#jobnivora-home .jn-hero h1 span {
    color: var(--jn-teal);
}

#jobnivora-home .jn-subtitle {
    max-width: 680px;
    margin: 0 auto 17px;
    padding: 0;
    color: #53647a;
    font-size: 13px;
    line-height: 1.65;
}

/* ==========================================
   10. SEARCH BAR
========================================== */

#jobnivora-home form.jn-search {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 5px;
    border: 1px solid #d7e1e5;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(15,23,42,.07);
}

#jobnivora-home .jn-search-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 40px;
    margin-left: 8px;
    color: #94a3b8;
}

#jobnivora-home .jn-search-icon svg {
    width: 18px;
    height: 18px;
}

#jobnivora-home form.jn-search input[type="search"] {
    display: block;
    flex: 1 1 0%;
    width: 0;
    min-width: 0;
    height: 41px;
    margin: 0;
    padding: 0 7px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--jn-heading);
    font-family: inherit;
    font-size: 13px;
    line-height: normal;
    appearance: none;
    -webkit-appearance: none;
}

#jobnivora-home form.jn-search input[type="search"]::placeholder {
    color: #8794a6;
    opacity: 1;
}

#jobnivora-home form.jn-search:focus-within {
    outline: 2px solid #8dd6cb;
    outline-offset: 2px;
}

#jobnivora-home form.jn-search button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 105px;
    height: 41px;
    min-height: 41px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    background: var(--jn-teal);
    box-shadow: none;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

#jobnivora-home form.jn-search button:hover {
    background: var(--jn-teal-dark);
}

#jobnivora-home .jn-hero-note {
    margin: 11px 0 0;
    color: #6c7b8c;
    font-size: 11px;
    line-height: 1.5;
}

/* ==========================================
   11. CATEGORIES SECTION
========================================== */

#jobnivora-home .jn-categories {
    padding: 43px 0 58px;
    background: var(--jn-surface);
}

#jobnivora-home .jn-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 23px;
}

#jobnivora-home .jn-section-label {
    display: block;
    margin-bottom: 8px;
    color: var(--jn-teal);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

#jobnivora-home .jn-section-heading h2 {
    margin: 0 0 8px;
    padding: 0;
    color: var(--jn-heading);
    font-size: clamp(24px,2.5vw,30px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.5px;
}

#jobnivora-home .jn-section-heading p {
    margin: 0;
    color: var(--jn-muted);
    font-size: 13px;
    line-height: 1.65;
}

#jobnivora-home .jn-view-all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 7px 0;
    color: var(--jn-teal);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

#jobnivora-home .jn-view-all:hover {
    color: var(--jn-teal-dark);
}

/* ==========================================
   12. CATEGORY CARDS
========================================== */

#jobnivora-home .jn-category-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 17px;
    width: 100%;
}

#jobnivora-home .jn-category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 165px;
    margin: 0;
    padding: 21px;
    border: 1px solid var(--jn-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15,23,42,.035);
    color: inherit;
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

#jobnivora-home .jn-category-card:hover {
    transform: translateY(-3px);
    border-color: #b4ded7;
    box-shadow: 0 10px 25px rgba(15,23,42,.07);
    text-decoration: none;
}

#jobnivora-home .jn-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

#jobnivora-home .jn-category-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    border-radius: 12px;
}

#jobnivora-home .jn-category-icon svg {
    display: block;
    width: 25px;
    height: 25px;
}

#jobnivora-home .jn-card-arrow {
    color: #94a3b8;
    font-size: 20px;
    line-height: 1.2;
    transition: transform .2s ease;
}

#jobnivora-home .jn-category-card:hover .jn-card-arrow {
    transform: translateX(3px);
    color: var(--jn-teal);
}

#jobnivora-home .jn-category-card h3 {
    margin: 0 0 7px;
    padding: 0;
    color: var(--jn-heading);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
}

#jobnivora-home .jn-category-card p {
    margin: 0;
    padding: 0;
    color: var(--jn-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* ==========================================
   13. CATEGORY ICON COLORS
========================================== */

#jobnivora-home .jn-color-blue .jn-category-icon {
    background: #dbeafe;
    color: #2563eb;
}

#jobnivora-home .jn-color-orange .jn-category-icon {
    background: #ffedd5;
    color: #ea580c;
}

#jobnivora-home .jn-color-purple .jn-category-icon {
    background: #f3e8ff;
    color: #9333ea;
}

#jobnivora-home .jn-color-green .jn-category-icon {
    background: #dcfce7;
    color: #15803d;
}

#jobnivora-home .jn-color-red .jn-category-icon {
    background: #fee2e2;
    color: #dc2626;
}

/* ==========================================
   14. FOOTER
========================================== */

.jn-site-footer {
    padding: 25px 16px;
    background: var(--jn-nav);
    color: #b3c1d3;
    text-align: center;
}

.jn-site-footer .jn-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.jn-site-footer p {
    margin: 5px 0;
    color: #b3c1d3;
    font-size: 12px;
    line-height: 1.7;
}

/* ==========================================
   15. LAPTOP / DESKTOP NAVIGATION
   Never show hamburger at 768px+
========================================== */

@media (min-width: 768px) {

    body .jn-site-header .jn-desktop-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body .jn-site-header .jn-desktop-nav a {
        display: inline-flex !important;
    }

    body .jn-site-header .jn-header-cta {
        display: inline-flex !important;
    }

    body .jn-site-header .jn-menu-toggle,
    body .jn-site-header .jn-mobile-nav {
        display: none !important;
    }
}

/* Narrow laptops */
@media (min-width: 768px) and (max-width: 1250px) {

    body .jn-header-container {
        gap: 7px;
        width: 99%;
    }

    body .jn-site-header .jn-brand {
        gap: 5px;
    }

    body .jn-site-header .jn-brand-logo {
        width: 34px;
        height: 34px;
    }

    body .jn-site-header .jn-brand-text strong {
        font-size: 16px;
    }

    body .jn-site-header .jn-brand-text small {
        font-size: 7px;
    }

    body .jn-site-header .jn-desktop-nav {
        gap: 6px;
    }

    body .jn-site-header .jn-desktop-nav a {
        font-size: clamp(9px, .9vw, 12px) !important;
        padding: 7px 1px;
    }

    body .jn-site-header .jn-header-cta {
        padding: 0 8px;
        font-size: 11px !important;
    }
}

/* ==========================================
   16. MOBILE ONLY HAMBURGER
========================================== */

@media (max-width: 767px) {

    body .jn-header-container {
        width: calc(100% - 28px);
        min-height: 62px;
    }

    body .jn-site-header .jn-desktop-nav,
    body .jn-site-header .jn-header-cta {
        display: none !important;
    }

    body .jn-site-header .jn-menu-toggle {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    body .jn-site-header .jn-mobile-nav:not([hidden]) {
        display: block !important;
    }

    body .jn-site-header .jn-mobile-nav[hidden] {
        display: none !important;
    }

    body .jn-site-header .jn-brand-logo {
        width: 40px;
        height: 40px;
    }

    body .jn-site-header .jn-brand-text strong {
        font-size: 19px;
    }

    body .jn-site-header .jn-brand-text small {
        font-size: 8px;
    }
}

/* ==========================================
   17. TABLET HOMEPAGE
========================================== */

@media (min-width: 481px) and (max-width: 1024px) {

    #jobnivora-home .jn-hero {
        padding: 29px 16px 34px;
    }

    #jobnivora-home .jn-hero h1 {
        font-size: 32px;
    }

    #jobnivora-home .jn-category-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
    }

    #jobnivora-home .jn-category-card {
        min-height: 155px;
        padding: 18px;
    }
}

/* ==========================================
   18. MOBILE HOMEPAGE
========================================== */

@media (max-width: 480px) {

    #jobnivora-home .jn-container {
        width: calc(100% - 28px);
    }

    #jobnivora-home .jn-hero {
        padding: 25px 12px 30px;
    }

    #jobnivora-home .jn-hero::before {
        top: -100px;
        right: -100px;
        width: 220px;
        height: 220px;
    }

    #jobnivora-home .jn-hero-badge {
        gap: 6px;
        margin-bottom: 10px;
        padding: 6px 10px;
        font-size: 9px;
        letter-spacing: .3px;
    }

    #jobnivora-home .jn-hero h1 {
        margin-bottom: 9px;
        font-size: clamp(26px,7vw,30px);
        line-height: 1.2;
        letter-spacing: -.5px;
    }

    #jobnivora-home .jn-subtitle {
        margin-bottom: 16px;
        font-size: 12px;
        line-height: 1.6;
    }

    #jobnivora-home form.jn-search {
        gap: 4px;
        padding: 4px;
        border-radius: 9px;
    }

    #jobnivora-home .jn-search-icon {
        width: 18px;
        height: 38px;
        margin-left: 4px;
    }

    #jobnivora-home .jn-search-icon svg {
        width: 16px;
        height: 16px;
    }

    #jobnivora-home form.jn-search input[type="search"] {
        height: 39px;
        padding: 0 4px;
        font-size: 12px;
    }

    #jobnivora-home form.jn-search button {
        min-width: 0;
        height: 39px;
        min-height: 39px;
        padding: 0 11px;
        border-radius: 7px;
        font-size: 11px;
    }

    #jobnivora-home .jn-hero-note {
        margin-top: 10px;
        font-size: 10px;
    }

    #jobnivora-home .jn-categories {
        padding: 33px 0 44px;
    }

    #jobnivora-home .jn-section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
        margin-bottom: 19px;
    }

    #jobnivora-home .jn-section-heading h2 {
        font-size: 24px;
    }

    #jobnivora-home .jn-section-heading p {
        font-size: 12px;
    }

    #jobnivora-home .jn-category-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    #jobnivora-home .jn-category-card {
        min-height: 0;
        padding: 17px;
        border-radius: 12px;
    }

    #jobnivora-home .jn-card-top {
        margin-bottom: 12px;
    }

    #jobnivora-home .jn-category-icon {
        width: 45px;
        height: 45px;
        border-radius: 10px;
    }

    #jobnivora-home .jn-category-icon svg {
        width: 23px;
        height: 23px;
    }

    #jobnivora-home .jn-category-card h3 {
        font-size: 16px;
    }

    #jobnivora-home .jn-category-card p {
        font-size: 12px;
    }
}

/* ==========================================
   19. SMALL PHONES
========================================== */

@media (max-width: 360px) {

    body .jn-site-header .jn-brand-text strong {
        font-size: 17px;
    }

    body .jn-site-header .jn-brand-text small {
        font-size: 7px;
    }

    #jobnivora-home .jn-hero h1 {
        font-size: 25px;
    }

    #jobnivora-home form.jn-search button {
        padding: 0 8px;
        font-size: 10px;
    }
}

/* ==========================================
   20. ACCESSIBILITY
========================================== */

.jn-site-header a:focus-visible,
.jn-site-header button:focus-visible,
#jobnivora-home a:focus-visible {
    outline: 3px solid #19b5a5;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    #jobnivora-home .jn-category-card,
    #jobnivora-home .jn-card-arrow {
        transition: none;
    }

    #jobnivora-home .jn-category-card:hover {
        transform: none;
    }
}
