/*
Theme Name: FindOutJob Kit
Theme URI: https://findoutjob.com
Author: FindOutJob Dev
Description: Self-contained, lightweight, AMP-ready programmatic job portal theme for findoutjob.com (KitJob Blue #0084d6 & Amber #ffc107 UI, built-in Job CPT, Publish Offer form, CV Upload application, Google Jobs Schema, and Ad Slot Manager).
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: findoutjob
*/

:root {
  --brand-blue: #0084d6;
  --brand-blue-dark: #006bb3;
  --brand-amber: #ffc107;
  --brand-amber-hover: #e5ac00;
  --footer-dark: #2c353d;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --text: #22252a;
  --muted: #6c757d;
  --border: #e1e5ea;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: var(--brand-blue);
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.site-logo span { color: #0b2e46; }
.site-logo:hover { text-decoration: none; }

.header-cta {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  background: rgba(255,255,255,0.14);
  transition: background 0.2s;
}
.header-cta:hover { background: rgba(255,255,255,0.26); text-decoration: none; }

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #1b242c 0%, #2c3e50 100%);
  color: #ffffff;
  text-align: center;
  padding: 68px 16px 76px;
  border-top: 3px solid var(--brand-amber);
}

.hero-banner h1 {
  font-size: 2.35rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.hero-banner p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 26px;
}

.hero-search-form {
  max-width: 780px;
  margin: 0 auto;
}

.hero-search-input {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  text-align: center;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-amber {
  display: inline-block;
  background: var(--brand-amber);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 14px 36px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 18px;
  transition: background 0.2s;
}
.btn-amber:hover { background: var(--brand-amber-hover); text-decoration: none; }

/* Category & Navigation Strip */
.region-strip {
  background: var(--footer-dark);
  color: #ffffff;
  padding: 16px 0;
  border-bottom: 3px solid var(--brand-amber);
}

.region-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  text-align: center;
  font-size: 0.86rem;
}

.region-grid a {
  color: #e2e8f0;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.region-grid a:hover {
  color: var(--brand-amber);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

/* Amber Page Banner */
.amber-page-banner {
  background: var(--brand-amber);
  color: #ffffff;
  text-align: center;
  padding: 20px 16px;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Main Grid */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  margin: 28px auto 48px;
}

.single-column-wrap {
  max-width: 920px;
  margin: 28px auto 48px;
  padding: 0 16px;
}

@media (max-width: 860px) {
  .main-layout { grid-template-columns: 1fr; }
  .hero-banner h1 { font-size: 1.75rem; }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Single Job Typography */
.job-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.job-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.92rem;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.badge {
  background: #e6f4fd;
  color: var(--brand-blue);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.82rem;
}

.job-content h2, .job-content h3 { font-size: 1.15rem; margin: 20px 0 10px; }
.job-content p { margin-bottom: 14px; }
.job-content ul { margin: 0 0 16px 22px; }
.job-content li { margin-bottom: 6px; }

/* Recap Box */
.recap-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-blue);
  padding: 16px 18px;
  margin: 24px 0;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

/* Form Elements */
.kit-form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 6px;
}

.kit-input, .kit-textarea, .kit-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.92rem;
  background: #fff;
  color: var(--text);
}

.kit-input::placeholder, .kit-textarea::placeholder {
  color: #adb5bd;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.location-split {
  display: grid;
  grid-template-columns: 1fr 125px;
  gap: 6px;
}

@media (max-width: 768px) {
  .form-grid-3, .form-grid-2 { grid-template-columns: 1fr; }
}

.btn-upload-cv {
  display: block;
  width: 100%;
  background: var(--brand-blue);
  color: #ffffff;
  text-align: center;
  padding: 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 14px;
  transition: background 0.2s;
}
.btn-upload-cv:hover { background: var(--brand-blue-dark); }

.btn-full-amber {
  display: block;
  width: 100%;
  background: var(--brand-amber);
  color: #ffffff;
  text-align: center;
  padding: 15px;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  margin-top: 14px;
}
.btn-full-amber:hover { background: var(--brand-amber-hover); text-decoration: none; }

/* Job List Rows */
.job-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.job-row:last-child { border-bottom: none; }
.job-row-title { font-weight: 700; font-size: 1.02rem; color: var(--brand-blue); }
.job-row-meta { font-size: 0.86rem; color: var(--muted); margin-top: 3px; }

/* Alert Box */
.alert-box {
  background: var(--footer-dark);
  color: #ffffff;
  border-radius: 4px;
  padding: 22px;
  margin-top: 20px;
}
.alert-box h4 { font-size: 1rem; margin-bottom: 12px; font-weight: 500; }
.alert-form { display: flex; gap: 10px; flex-wrap: wrap; }
.alert-form input { flex: 1; min-width: 220px; }

/* Ad Slot */
.foj-ad-slot {
  margin: 18px 0;
  text-align: center;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-links a { color: var(--muted); }
