/* ========================================================================== 
   JOELIJOS JOBS - GLOBAL STYLES
   Clean, responsive and component-based stylesheet.
   ========================================================================== */

:root {
    --brand: #2864d7;
    --brand-dark: #1e4fb4;
    --accent: #f6a623;
    --accent-dark: #e8910d;
    --ink: #111827;
    --text: #334155;
    --muted: #7b8798;
    --line: #e7ebf2;
    --surface: #ffffff;
    --soft: #f5f7fb;
    --hero: #eef3ff;
    --success: #16a34a;
    --shadow-sm: 0 8px 25px rgba(31, 57, 101, 0.07);
    --shadow-md: 0 18px 50px rgba(31, 57, 101, 0.12);
    --radius: 16px;
}

/* --------------------------------------------------------------------------
   Base / Reset
   -------------------------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #ffffff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.top .container {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.8px;
    white-space: nowrap;
}

.brand::before {
    content: "⌂";
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--brand);
    border-radius: 10px 10px 10px 4px;
    box-shadow: 0 7px 18px rgba(40, 100, 215, 0.25);
    font-size: 18px;
}

.brand span {
    color: var(--brand);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    font-size: 13px;
    font-weight: 700;
}

.nav a {
    color: #4b5563;
    transition: color 0.18s ease;
}

.nav a:hover {
    color: var(--brand);
}

.nav .nav-cta {
    padding: 11px 20px;
    color: #ffffff;
    background: var(--brand);
    border-radius: 6px;
    box-shadow: 0 7px 18px rgba(40, 100, 215, 0.2);
}

.nav .nav-cta:hover {
    color: #ffffff;
    background: var(--brand-dark);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--hero);
    color: var(--ink);
    padding: 58px 0 54px;
}

.hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -210px;
    border-radius: 50%;
    background: rgba(40, 100, 215, 0.08);
}

.hero-inner {
    position: relative;
    min-height: 370px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 47%;
}

.hero-inner::after {
    content: "";
    position: absolute;
    right: 1%;
    top: 8px;
    width: 43%;
    height: 355px;
    border-radius: 48% 52% 42% 58%;
    background:
        radial-gradient(circle at 52% 29%, #f6c9aa 0 7%, transparent 7.5%),
        radial-gradient(circle at 65% 31%, #f4c39f 0 7%, transparent 7.5%),
        linear-gradient(115deg, transparent 0 35%, #244f9f 35% 57%, transparent 57%),
        linear-gradient(70deg, transparent 0 48%, #ffffff 48% 68%, transparent 68%),
        linear-gradient(155deg, #dce7ff 0 48%, #c8d7f8 48% 100%);
    box-shadow: inset 0 -35px 70px rgba(40, 100, 215, 0.08);
    opacity: 0.95;
}

.hero-inner::before {
    content: "50K+ Candidates";
    position: absolute;
    z-index: 2;
    right: 7%;
    bottom: 42px;
    padding: 11px 15px;
    color: #24324a;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-size: 12px;
    font-weight: 800;
}

.hero-copy {
    position: relative;
    z-index: 3;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    color: var(--brand);
    background: #ffffff;
    border: 1px solid #dbe6ff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.hero h1 {
    max-width: 650px;
    margin: 17px 0 13px;
    font-size: clamp(38px, 5vw, 61px);
    line-height: 1.05;
    letter-spacing: -2.7px;
}

.hero h1 span {
    color: var(--brand);
}

.hero p {
    max-width: 620px;
    margin: 0;
    color: #68758a;
    font-size: 16px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 22px;
    color: #68758a;
    font-size: 12px;
    font-weight: 600;
}

.hero-stats b {
    margin-right: 4px;
    color: var(--brand);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.search {
    display: flex;
    gap: 10px;
}

.search-hero {
    position: relative;
    z-index: 5;
    max-width: 650px;
    margin-top: 26px;
    padding: 9px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--brand);
    border-radius: 9px;
    box-shadow: 0 16px 32px rgba(40, 100, 215, 0.22);
}

.search-field {
    min-width: 0;
    min-height: 47px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.search-field span {
    flex: 0 0 auto;
    color: var(--brand);
    font-size: 17px;
}

.search-field input {
    width: 100%;
    min-width: 0;
    padding: 12px 2px;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
}

.search-hero select {
    min-height: 47px;
    padding: 0 12px;
    color: #64748b;
    background: #ffffff;
    border: 0;
    border-radius: 7px;
    outline: 0;
}

.search-hero .btn {
    min-height: 47px;
    background: var(--accent);
}

.search-hero .btn:hover {
    background: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   Buttons / Labels
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: #ffffff;
    background: var(--brand);
    border: 0;
    border-radius: 7px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(40, 100, 215, 0.2);
}

.btn-light {
    color: var(--brand);
    background: #edf3ff;
}

.btn-light:hover {
    color: var(--brand-dark);
    background: #dfeaff;
}

.btn-wide {
    width: 100%;
    margin-top: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 5px 9px;
    color: var(--brand);
    background: #edf3ff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.eyebrow {
    display: inline-flex;
    color: var(--brand);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.back,
.text-link {
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.back {
    display: inline-block;
    margin-bottom: 17px;
}

/* --------------------------------------------------------------------------
   Sections / Categories
   -------------------------------------------------------------------------- */

.section {
    padding: 58px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.section-head h2,
.page-title h1 {
    margin: 4px 0 0;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -1.1px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px 26px;
}

.category-grid-large {
    margin-top: 32px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 108px;
    padding: 15px 0;
    background: #ffffff;
    border-bottom: 1px solid transparent;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #dbe6ff;
}

.category-card h3 {
    margin: 0;
    font-size: 16px;
}

.category-card p {
    margin: 3px 0 0;
    color: #9aa4b3;
    font-size: 12px;
}

.category-card > span {
    margin-left: auto;
    color: var(--brand);
    font-size: 21px;
}

.category-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: #eef3ff;
    border-radius: 7px;
    font-size: 30px;
}

/* --------------------------------------------------------------------------
   Job Cards / Listings
   -------------------------------------------------------------------------- */

.latest-head {
    margin-top: 58px;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.job-card {
    padding: 21px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.job-card:hover {
    border-color: #d7e3fb;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.job-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.posted {
    color: var(--success);
    font-size: 11px;
    font-weight: 750;
}

.job-card h3 {
    margin: 13px 0 3px;
    font-size: 18px;
    line-height: 1.3;
}

.company {
    margin: 0 0 12px;
    color: #596579;
    font-size: 13px;
    font-weight: 700;
}

.job-line {
    margin: 5px 0;
    color: #7b8798;
    font-size: 12px;
}

.job-link {
    display: flex;
    justify-content: space-between;
    margin-top: 17px;
    padding-top: 13px;
    color: var(--brand);
    border-top: 1px solid #eef1f6;
    font-size: 12px;
    font-weight: 850;
}

.page-title {
    margin-bottom: 25px;
}

.page-title p,
.muted {
    color: var(--muted);
}

.page-title p {
    margin: 7px 0 0;
    font-size: 14px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.4fr 1.1fr 1fr 1fr auto;
    gap: 9px;
    margin-bottom: 23px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.filter-bar select,
.filter-bar .search-field {
    min-height: 47px;
}

.filter-bar select {
    padding: 0 11px;
    color: #475569;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
}

.jobs-list {
    display: grid;
    gap: 12px;
}

.horizontal {
    display: flex;
    align-items: center;
    gap: 17px;
}

.company-logo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: #eef3ff;
    border-radius: 13px;
    font-weight: 900;
}

.job-main {
    flex: 1;
    min-width: 0;
}

.horizontal h3 {
    margin: 8px 0 2px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 9px;
    color: #748094;
    font-size: 12px;
}

.empty {
    padding: 60px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.empty > div {
    font-size: 35px;
}

/* --------------------------------------------------------------------------
   Detail / Application
   -------------------------------------------------------------------------- */

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
}

.detail,
.apply-card,
.form-card,
.success-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.detail {
    padding: 31px;
}

.detail h1 {
    margin: 8px 0;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.detail h2 {
    margin-top: 30px;
    font-size: 19px;
}

.job-company {
    color: #4b5563;
    font-weight: 750;
}

.detail hr {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.detail li {
    margin: 7px 0;
}

.apply-card {
    position: sticky;
    top: 94px;
    height: max-content;
    padding: 23px;
}

.apply-card h3 {
    margin: 15px 0 5px;
    font-size: 22px;
}

.application-note {
    margin-top: 28px;
    padding: 13px 15px;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    font-size: 13px;
}

.narrow {
    max-width: 780px;
}

.form-card {
    padding: 32px;
}

.form-card h1 {
    margin: 7px 0;
    font-size: 36px;
    letter-spacing: -1px;
}

.form {
    display: grid;
    gap: 15px;
    margin-top: 25px;
}

.form label {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.form input,
.form textarea,
.form select {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 13px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    outline: 0;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    border-color: #76a6f5;
    box-shadow: 0 0 0 3px #dce9ff;
}

.form textarea {
    min-height: 145px;
    resize: vertical;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.check input {
    width: auto;
    margin: 3px 0;
}

.btn-submit {
    width: 100%;
    margin-top: 4px;
}

.success-card {
    padding: 55px 30px;
    text-align: center;
}

.success-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    color: var(--success);
    background: #dcfce7;
    border-radius: 50%;
    font-size: 35px;
    font-weight: 900;
}

.success-card h1 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: -1px;
}

.success-card p {
    color: var(--muted);
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    margin-top: 30px;
    padding: 42px 0 20px;
    color: #cbd5e1;
    background: #0c1830;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
}

.footer strong {
    color: #ffffff;
}

.footer-brand {
    font-size: 19px;
}

.footer-grid a {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 13px;
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 17px;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
    .hero-inner {
        padding-right: 0;
    }

    .hero-inner::after,
    .hero-inner::before {
        display: none;
    }

    .hero-copy,
    .search-hero,
    .hero-stats {
        max-width: 760px;
    }

    .category-grid,
    .job-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar .btn {
        grid-column: 1 / -1;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .apply-card {
        position: static;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 26px, 1160px);
    }

    .top .container {
        min-height: auto;
        padding: 12px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .hero {
        padding: 45px 0 40px;
    }

    .hero h1 {
        letter-spacing: -1.8px;
    }

    .search-hero {
        grid-template-columns: 1fr;
    }

    .search-hero .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 14px;
    }

    .section {
        padding: 42px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .category-grid,
    .job-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .filter-bar .btn {
        grid-column: auto;
    }

    .horizontal {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .horizontal .btn {
        width: 100%;
    }

    .detail {
        padding: 23px;
    }

    .detail h1 {
        font-size: 32px;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-card {
        padding: 42px 20px;
    }
}


/* ================================================================
   GOOGLE ADS PLACEMENT
   This reusable block appears on every page through partials.php.
   Paste your approved Google AdSense code inside .ad-code-area.
   ================================================================ */
.ad-slot {
    padding: 16px 0 4px;
    background: #ffffff;
}

.ad-heading {
    margin-bottom: 8px;
    text-align: center;
    color: #8a94a6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ad-code-area {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Accessibility: make keyboard skip navigation visible when focused. */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; padding: 12px 16px; background: #fff; color: #111; border: 2px solid currentColor; }
.skip-link:focus { left: 12px; top: 12px; }
