/*
Theme Name: BongoJobs
Theme URI: https://bongojobs.co.tz/
Author: BongoJobs
Description: A fast, accessible WordPress theme for Tanzanian job listings.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: bongojobs
*/

:root {
	--ink: #172b27;
	--muted: #63736e;
	--brand: #126b52;
	--brand-dark: #0b4f3c;
	--accent: #f0a344;
	--surface: #ffffff;
	--canvas: #f5f8f6;
	--line: #e1e9e4;
	--soft-green: #e8f3ed;
	--radius: 16px;
	--shadow: 0 10px 30px rgba(19, 57, 43, .07);
	--content: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
button, input, select { font: inherit; }
.container { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 14px; color: #fff; background: var(--brand-dark); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand .custom-logo-link { display: inline-flex; align-items: center; }
.brand .custom-logo { width: auto; max-width: 48px; max-height: 42px; object-fit: contain; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 12px; font-size: 18px; font-weight: 800; letter-spacing: -.07em; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand-tagline { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav .menu, .footer-links .menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: #40534c; font-size: 14px; font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--brand); }
.header-action, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--brand); border-radius: 10px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 750; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.header-action:hover, .button:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.button-secondary { color: var(--brand); background: #fff; }
.button-secondary:hover { color: #fff; }
.menu-toggle { display: none; }

.hero { overflow: hidden; position: relative; padding: 68px 0 58px; background: #103f34; color: #fff; }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.hero::before { width: 460px; height: 460px; right: -95px; top: -210px; }
.hero::after { width: 560px; height: 560px; right: -145px; top: -260px; }
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 15px; color: #b8ddcc; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(38px, 6vw, 62px); line-height: 1.06; letter-spacing: -.055em; }
.hero h1 span { color: #f2b45f; }
.hero-intro { max-width: 590px; margin: 18px 0 27px; color: #d1e1da; font-size: 17px; }
.search-panel { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(155px, 1fr) minmax(155px, 1fr) auto; gap: 9px; max-width: 970px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.search-field { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 0 10px; border-right: 1px solid var(--line); color: #8a9892; }
.search-field:last-of-type { border-right: 0; }
.search-field input, .search-field select { width: 100%; height: 44px; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-field input::placeholder { color: #87948e; }
.search-field select { cursor: pointer; }
.search-submit { min-height: 46px; padding-inline: 22px; border: 0; cursor: pointer; }
.hero-note { margin: 13px 0 0; color: #c1d5cc; font-size: 12px; }

.section { padding: 58px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-kicker { margin: 0 0 6px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; letter-spacing: -.04em; }
.section-heading p { max-width: 520px; margin: 7px 0 0; color: var(--muted); }
.text-link { color: var(--brand); font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.category-card { display: flex; align-items: center; gap: 15px; min-height: 112px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.category-card:hover { border-color: #b8d6c6; box-shadow: var(--shadow); transform: translateY(-2px); }
.category-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 14px; background: var(--soft-green); color: var(--brand); }
.category-icon svg { width: 23px; height: 23px; }
.category-card:nth-child(2) .category-icon { color: #8b5c17; background: #fff2dc; }
.category-card:nth-child(3) .category-icon { color: #5559a3; background: #eeefff; }
.category-title { display: block; font-weight: 800; font-size: 16px; }
.category-count { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.category-arrow { margin-left: auto; color: #96a39d; font-size: 20px; }

.jobs-section { padding: 58px 0 70px; background: #edf3ef; }
.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.job-card { min-width: 0; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 3px 12px rgba(19,57,43,.025); transition: box-shadow .15s ease, transform .15s ease; }
.job-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.company-avatar { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 13px; background: var(--soft-green); color: var(--brand); font-size: 17px; font-weight: 850; text-transform: uppercase; }
.job-badge { padding: 5px 9px; border-radius: 999px; background: #f0f5f2; color: #53665d; font-size: 10px; font-weight: 800; line-height: 1.3; text-transform: uppercase; letter-spacing: .04em; }
.job-title { margin: 15px 0 4px; font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.job-title a { color: var(--ink); text-decoration: none; }
.job-title a:hover { color: var(--brand); }
.company-name { margin: 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.job-excerpt { margin: 12px 0 0; color: #62716a; font-size: 13px; line-height: 1.5; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: 15px; color: #5e6d66; font-size: 12px; }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-meta svg { width: 14px; height: 14px; color: #83938b; }
.job-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 17px; }
.job-salary { color: var(--brand-dark); font-size: 13px; font-weight: 800; }
.job-apply { color: var(--brand); font-size: 12px; font-weight: 800; text-decoration: none; }
.job-apply:hover { text-decoration: underline; }
.empty-state { padding: 45px 20px; border: 1px dashed #bdcec4; border-radius: var(--radius); background: rgba(255,255,255,.7); text-align: center; }
.empty-state h3 { margin: 0 0 5px; }
.empty-state p { margin: 0; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 28px; }
.pagination .page-numbers { display: grid; min-width: 40px; height: 40px; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--brand); font-weight: 700; text-decoration: none; }
.pagination .current { border-color: var(--brand); background: var(--brand); color: #fff; }

.trust-band { padding: 32px 0; background: #fff; border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-check { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border-radius: 50%; color: var(--brand); background: var(--soft-green); font-weight: 900; }
.trust-item strong { display: block; font-size: 13px; }
.trust-item span:last-child { display: block; color: var(--muted); font-size: 12px; }

.page-hero { padding: 42px 0 34px; background: #103f34; color: #fff; }
.page-hero h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.045em; }
.page-hero p { max-width: 650px; margin: 9px 0 0; color: #d1e1da; }
.archive-content { padding: 36px 0 70px; }
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.archive-toolbar strong { color: var(--ink); }
.single-job-wrap { padding: 38px 0 70px; }
.single-job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.single-job-main, .single-job-aside { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.single-job-main { padding: clamp(22px, 4vw, 40px); }
.single-job-aside { padding: 23px; }
.single-job-head { display: flex; gap: 17px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.single-job-head .company-avatar { width: 60px; height: 60px; flex-basis: 60px; font-size: 22px; }
.single-job-head h1 { margin: 0; font-size: clamp(25px, 4vw, 36px); line-height: 1.15; letter-spacing: -.04em; }
.single-job-head p { margin: 5px 0 0; color: var(--muted); }
.single-job-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.single-job-meta span { padding: 7px 11px; border-radius: 8px; background: #f1f6f3; color: #4e6259; font-size: 12px; font-weight: 700; }
.entry-content { margin-top: 27px; }
.entry-content h2, .entry-content h3 { margin-top: 1.5em; line-height: 1.25; }
.entry-content p, .entry-content li { color: #43534c; }
.aside-title { margin: 0 0 16px; font-size: 18px; }
.job-fact { padding: 12px 0; border-top: 1px solid var(--line); }
.job-fact span { display: block; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.job-fact strong { display: block; margin-top: 2px; font-size: 14px; }
.single-job-aside .button { width: 100%; margin-top: 12px; }
.breadcrumb { margin: 0 0 20px; color: #a8c9b9; font-size: 12px; }
.breadcrumb a { color: #d1e1da; }

.site-footer { padding: 38px 0 22px; background: #12372f; color: #d7e5de; }
.footer-main { display: flex; justify-content: space-between; gap: 28px; padding-bottom: 28px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-tagline { color: #a9c3b7; }
.footer-copy { max-width: 400px; margin: 12px 0 0; color: #b9cec3; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; align-content: start; }
.footer-links a { color: #d7e5de; font-size: 13px; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); color: #a9c3b7; font-size: 11px; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
	.primary-nav, .primary-nav .menu { gap: 15px; }
	.primary-nav a { font-size: 13px; }
	.search-panel { grid-template-columns: 1fr 1fr; }
	.search-field:nth-child(2) { border-right: 0; }
	.search-field:nth-child(3) { border-top: 1px solid var(--line); }
	.search-submit { grid-column: 2; grid-row: 2; }
	.job-grid { grid-template-columns: repeat(2, 1fr); }
	.single-job-layout { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 680px) {
	.container { width: min(var(--content), calc(100% - 30px)); }
	.header-inner { min-height: 68px; gap: 10px; }
	.brand-mark { width: 36px; height: 36px; }
	.brand-name { font-size: 18px; }
	.brand-tagline { font-size: 9px; }
	.primary-nav { display: none; }
	.header-action { min-height: 40px; padding-inline: 12px; font-size: 12px; }
	.hero { padding: 51px 0 43px; }
	.hero-intro { font-size: 15px; }
	.search-panel { grid-template-columns: 1fr; gap: 0; padding: 8px; }
	.search-field, .search-field:nth-child(2), .search-field:nth-child(3) { min-height: 49px; border-right: 0; border-bottom: 1px solid var(--line); }
	.search-field:nth-child(3) { border-top: 0; }
	.search-submit { grid-column: auto; grid-row: auto; margin-top: 8px; }
	.section, .jobs-section { padding: 43px 0; }
	.section-heading { align-items: start; }
	.category-grid { grid-template-columns: 1fr; gap: 10px; }
	.category-card { min-height: 90px; padding: 15px; }
	.job-grid { grid-template-columns: 1fr; gap: 11px; }
	.trust-grid { grid-template-columns: 1fr; gap: 15px; }
	.single-job-layout { grid-template-columns: 1fr; }
	.single-job-aside { order: -1; }
	.footer-main, .footer-bottom { flex-direction: column; }
	.footer-links .menu { flex-wrap: wrap; gap: 14px 20px; }
	.archive-toolbar { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}
