/* =========================================================
   JobHive Custom Theme - Main Stylesheet
   Improved footer readability and responsive layout
   ========================================================= */

:root {
    --jhc-navy: #082d49;
    --jhc-ink: #283747;
    --jhc-muted: #87929d;
    --jhc-pale: #f3f8fc;
    --jhc-accent: #ff824e;
    --jhc-yellow: #eadb78;
    --jhc-content: 1100px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--jhc-pale);
    color: var(--jhc-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--jhc-accent);
}

/* =========================
   Header and Navigation
   ========================= */

.jhc-site-header {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
}

.jhc-header-inner {
    max-width: 1400px;
    min-height: 62px;
    margin: auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.jhc-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
}

.jhc-site-title {
    color: #fff;
    font-size: 17px;
    letter-spacing: -0.3px;
}

.jhc-brand-mark {
    display: inline-flex;
    margin-right: 9px;
    font-size: 25px;
    line-height: 1;
}

.custom-logo {
    max-height: 42px;
    width: auto;
}

.jhc-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 13px;
    font-weight: 600;
}

.jhc-nav ul {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jhc-nav a {
    color: #fff;
}

.jhc-nav a:hover {
    color: #ffb08c;
}

.jhc-sign-in,
.jhc-post-job {
    white-space: nowrap;
}

.jhc-post-job {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.jhc-menu-toggle {
    display: none;
    padding: 8px 10px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* =========================
   Hero Section
   ========================= */

.jhc-hero {
    position: relative;
    min-height: 430px;
    padding: 120px 24px 70px;
    background: linear-gradient(
        115deg,
        #031c31 0%,
        #06416b 48%,
        #031a2c 100%
    );
    background-position: center;
    background-size: cover;
    color: #fff;
}

.jhc-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 20, 36, 0.72),
        rgba(0, 25, 43, 0.3) 62%,
        rgba(0, 12, 25, 0.6)
    );
}

.jhc-hero-overlay {
    display: none;
}

.jhc-hero-inner {
    position: relative;
    max-width: var(--jhc-content);
    margin: 0 auto;
}

.jhc-hero-copy {
    max-width: 530px;
}

.jhc-eyebrow {
    margin: 0 0 10px;
    color: #ffb28f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.jhc-hero h1 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 750;
    letter-spacing: -1.3px;
    line-height: 1.12;
}

.jhc-hero-description {
    max-width: 460px;
    margin: 0;
    color: #edf4f8;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================
   Job Search
   ========================= */

.jhc-search {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 5px;
    max-width: 1050px;
    margin: 75px auto -100px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(19, 43, 62, 0.13);
}

.jhc-search input,
.jhc-archive-search input {
    min-width: 0;
    padding: 15px 14px;
    border: 1px solid #e1e5e9;
    border-radius: 0;
    background: #fff;
    color: #344454;
    font: inherit;
}

.jhc-search button,
.jhc-archive-search button,
.jhc-apply-button {
    padding: 0 23px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(100deg, #f36b85, #ffae13);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.jhc-search button span {
    margin-left: 12px;
}

/* =========================
   Homepage Job Sections
   ========================= */

.jhc-sections-wrap {
    padding: 112px 24px 0;
    background-color: var(--jhc-pale);
    background-image:
        linear-gradient(
            155deg,
            transparent 0 67%,
            rgba(216, 227, 235, 0.28) 67% 75%,
            transparent 75%
        ),
        linear-gradient(
            25deg,
            transparent 0 72%,
            rgba(222, 232, 239, 0.3) 72% 79%,
            transparent 79%
        );
}

.jhc-job-section {
    max-width: var(--jhc-content);
    margin: 0 auto;
    padding: 22px 0 34px;
}

.jhc-section-heading {
    margin-bottom: 22px;
}

.jhc-accent {
    display: block;
    width: 27px;
    height: 3px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #ff8c52, #e9d96f);
}

.jhc-section-heading h2,
.jhc-archive-heading h1 {
    margin: 0 0 3px;
    color: #253649;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.jhc-section-heading p,
.jhc-archive-heading p {
    margin: 0;
    color: #929ba4;
    font-size: 12px;
}

.jhc-job-list {
    display: grid;
    gap: 13px;
}

/* =========================
   Job Cards
   ========================= */

.jhc-job-card {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 88px;
    padding: 16px 22px;
    border: 1px solid #edf0f2;
    background: #fff;
    box-shadow: 0 6px 17px rgba(24, 48, 70, 0.055);
}

.jhc-job-card:first-child {
    border-color: var(--jhc-yellow);
}

.jhc-company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    background: #d73c3c;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
}

.jhc-job-card:nth-child(3n+2) .jhc-company-logo {
    background: #3c7e48;
}

.jhc-job-card:nth-child(3n) .jhc-company-logo {
    background: #f8c524;
    color: #111;
}

.jhc-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jhc-job-main h3 {
    margin: 0 0 3px;
    color: #2c3948;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.jhc-company-line {
    margin: 0 0 6px;
    color: #65717c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.jhc-company-line span {
    padding: 0 5px;
    color: #b1b8bf;
}

.jhc-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    color: #89949e;
    font-size: 10px;
}

.jhc-job-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    min-width: 105px;
    height: 100%;
}

.jhc-favorite {
    padding: 0 2px;
    border: 0;
    background: none;
    color: #c5ccd4;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.jhc-favorite.is-saved {
    color: #e65b70;
}

.jhc-salary {
    color: #68727b;
    font-size: 12px;
    white-space: nowrap;
}

.jhc-empty-jobs {
    padding: 24px;
    border: 1px solid #e8edf0;
    background: #fff;
    color: #78838e;
}

/* =========================
   Footer - Improved Readability
   ========================= */

.jhc-footer {
    padding: 42px 24px 18px;
    background: #fff;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}

.jhc-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 45px;
    max-width: var(--jhc-content);
    margin: 0 auto 25px;
}

.jhc-footer-brand {
    color: #102d46;
    font-size: 20px;
    font-weight: 800;
}

.jhc-footer-about p {
    max-width: 260px;
    margin: 10px 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
}

.jhc-footer h3 {
    margin: 0 0 14px;
    color: #102d46;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.jhc-footer-grid > div:not(:first-child) h3:before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    margin-bottom: 7px;
    background: #f2a16d;
}

.jhc-footer-grid > div > a:not(.jhc-footer-brand) {
    display: block;
    margin: 5px 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.9;
    transition: color 0.2s ease;
}

.jhc-footer a:hover {
    color: #e56b3f;
}

.jhc-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: var(--jhc-content);
    margin: auto;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    line-height: 1.8;
}

.jhc-footer-bottom span:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.jhc-footer-bottom a {
    color: #475569;
}

.jhc-footer-bottom a:hover {
    color: #e56b3f;
}

/* =========================
   Standard Pages
   ========================= */

.jhc-content-wrap {
    max-width: var(--jhc-content);
    margin: 0 auto;
    padding: 120px 24px 70px;
}

.jhc-standard-card,
.jhc-single-card {
    margin-bottom: 20px;
    padding: 28px;
    background: #fff;
}

.jhc-standard-card h2 {
    margin-top: 0;
}

.jhc-archive-heading {
    margin-bottom: 24px;
}

.jhc-archive-search {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    margin-bottom: 24px;
    padding: 15px;
    background: #fff;
}

.jhc-archive-search button {
    min-height: 48px;
}

.jhc-single-job .jhc-job-card {
    margin: 20px 0;
}

.jhc-job-description {
    padding: 20px 0;
}

.jhc-apply-button {
    display: inline-block;
    padding: 13px 22px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================
   Large Screens
   ========================= */

@media (min-width: 1200px) {
    .jhc-hero {
        min-height: 440px;
    }

    .jhc-search {
        margin-top: 75px;
    }
}

/* =========================
   Tablet and Mobile
   ========================= */

@media (max-width: 760px) {
    .jhc-header-inner {
        min-height: 58px;
        padding: 10px 18px;
    }

    .jhc-menu-toggle {
        display: block;
    }

    .jhc-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 18px;
        background: #062b46;
    }

    .jhc-nav.is-open {
        display: flex;
    }

    .jhc-nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .jhc-post-job {
        padding: 10px;
    }

    .jhc-hero {
        min-height: 420px;
        padding: 115px 20px 60px;
    }

    .jhc-hero h1 {
        font-size: 36px;
    }

    .jhc-search {
        grid-template-columns: 1fr;
        margin: 48px auto -92px;
        padding: 12px;
    }

    .jhc-search input,
    .jhc-search button {
        min-height: 48px;
    }

    .jhc-sections-wrap {
        padding: 100px 18px 0;
    }

    .jhc-job-section {
        padding: 22px 0;
    }

    .jhc-job-card {
        grid-template-columns: 55px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .jhc-company-logo {
        width: 52px;
        height: 52px;
        font-size: 11px;
    }

    .jhc-job-side {
        grid-column: 2;
        grid-row: 2;
        flex-direction: row;
        align-items: center;
        min-width: 0;
    }

    .jhc-job-main h3 {
        font-size: 15px;
    }

    .jhc-job-meta {
        gap: 8px;
    }

    .jhc-footer {
        padding: 32px 18px 16px;
    }

    .jhc-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .jhc-footer-brand {
        font-size: 18px;
    }

    .jhc-footer h3 {
        font-size: 15px;
    }

    .jhc-footer-about p,
    .jhc-footer-grid > div > a:not(.jhc-footer-brand) {
        font-size: 14px;
    }

    .jhc-footer-bottom {
        flex-direction: column;
        font-size: 12px;
    }

    .jhc-content-wrap {
        padding: 100px 18px 45px;
    }

    .jhc-archive-search {
        grid-template-columns: 1fr;
    }

    .jhc-archive-search button {
        min-height: 46px;
    }
}

/* =========================
   Small Mobile Screens
   ========================= */

@media (max-width: 420px) {
    .jhc-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .jhc-job-meta {
        font-size: 9px;
    }

    .jhc-job-card {
        gap: 10px;
    }

    .jhc-salary {
        font-size: 11px;
    }
}
/* Fix header visibility on single job pages */

body.single-jhc_job .jhc-site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: block;
    width: 100%;
    min-height: 62px;
    background: #082d49;
    color: #ffffff;
}

body.single-jhc_job .jhc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
}

body.single-jhc_job .jhc-site-title,
body.single-jhc_job .jhc-nav a {
    color: #ffffff;
}

body.single-jhc_job .jhc-nav a:hover {
    color: #ffb08c;
}

body.single-jhc_job .jhc-content-wrap {
    padding-top: 110px;
}

@media (max-width: 760px) {
    body.single-jhc_job .jhc-site-header {
        position: absolute;
    }

    body.single-jhc_job .jhc-nav {
        background: #062b46;
    }

    body.single-jhc_job .jhc-content-wrap {
        padding-top: 95px;
    }
}

/* JobHive Custom: Improve job details readability */

/* Location, employment type, and experience level */
.jhc-single-job .jhc-job-meta,
.jhc-single-job .jhc-job-meta span {
    font-size: 15px !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

/* Improve spacing between job details */
.jhc-single-job .jhc-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 10px;
}

/* Keep the job information easy to read on smaller screens */
@media (max-width: 600px) {
    .jhc-single-job .jhc-job-meta,
    .jhc-single-job .jhc-job-meta span {
        font-size: 14px !important;
    }

    .jhc-single-job .jhc-job-meta {
        gap: 8px 14px;
    }
}

/* JobHive Custom: Larger job details on homepage and job listings */

.jhc-job-card .jhc-job-meta,
.jhc-job-card .jhc-job-meta span {
    font-size: 15px !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

.jhc-job-card .jhc-job-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 10px;
}

/* Mobile readability */
@media (max-width: 600px) {
    .jhc-job-card .jhc-job-meta,
    .jhc-job-card .jhc-job-meta span {
        font-size: 14px !important;
    }

    .jhc-job-card .jhc-job-meta {
        gap: 6px 12px;
    }
}

/* Homepage section descriptions: improve contrast */

.jhc-section-heading p,
.jhc-section-description,
.jhc-section-subtitle,
.jhc-home-section > p,
.jhc-home-section .section-description {
    color: #4B5563 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
}

/* Keep descriptions readable on mobile */
@media (max-width: 600px) {
    .jhc-section-heading p,
    .jhc-section-description,
    .jhc-section-subtitle,
    .jhc-home-section > p,
    .jhc-home-section .section-description {
        font-size: 14px !important;
    }
}

/* Fix header on About and other WordPress pages */
body.page .jhc-site-header {
    background: #082d49;
    color: #ffffff;
}

body.page .jhc-site-header .jhc-site-title,
body.page .jhc-site-header .jhc-nav a,
body.page .jhc-site-header .jhc-menu-toggle {
    color: #ffffff;
}

body.page .jhc-site-header .jhc-nav a:hover {
    color: #ffb08c;
}

/* Fix header menu on the Jobs page */
body.post-type-archive-jhc_job .jhc-site-header,
body.page-jobs .jhc-site-header {
    background: #082d49;
    color: #ffffff;
}

body.post-type-archive-jhc_job .jhc-site-header .jhc-site-title,
body.post-type-archive-jhc_job .jhc-site-header .jhc-nav a,
body.post-type-archive-jhc_job .jhc-site-header .jhc-menu-toggle,
body.page-jobs .jhc-site-header .jhc-site-title,
body.page-jobs .jhc-site-header .jhc-nav a,
body.page-jobs .jhc-site-header .jhc-menu-toggle {
    color: #ffffff;
}

body.post-type-archive-jhc_job .jhc-site-header .jhc-nav a:hover,
body.page-jobs .jhc-site-header .jhc-nav a:hover {
    color: #ffb08c;
}
