/*
Theme Name: JobsPortal Pro
Theme URI: https://yourdomain.com
Author: Khan Sahib
Author URI: https://yourdomain.com
Description: Professional Job Board WordPress Theme with Indeed-style job cards, bulk importer, Google Maps, and SEO optimization.
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobsportal-pro
Tags: jobs, careers, job-board, indeed, responsive, seo, schema
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
*/

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --green: #059669;
  --blue: #2563eb;
  --text: #0f172a;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --bg: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 16px; }
a { text-decoration: none; color: inherit; transition: all 0.2s; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* Skip Link */
.skip-link { position: absolute; top: -40px; left: 16px; background: var(--primary); color: white; padding: 8px 16px; border-radius: 0 0 8px 8px; font-size: 13px; z-index: 9999; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-fade { animation: fadeUp 0.6s ease both; }

/* WordPress Alignments */
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-light); text-align: center; margin-top: 8px; }

/* Top Bar */
.topbar { background: var(--primary); color: rgba(255,255,255,0.85); text-align: center; padding: 8px 16px; font-size: 13px; font-weight: 500; }
.topbar a { color: #fbbf24; font-weight: 600; margin-left: 4px; }

/* Navbar */
.navbar { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }
.nav-wrap { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 70px; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 36px; height: 36px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 4px; }
.nav-links a, .nav-links li a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-mid); display: block; }
.nav-links a:hover, .nav-links .current-menu-item a, .nav-links .current_page_item a { background: #eff6ff; color: var(--primary); font-weight: 600; }
.btn { padding: 10px 22px; border-radius: 30px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; font-family: var(--font-body); display: inline-flex; align-items: center; gap: 6px; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.hamburger { display: none; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: 0.3s; }

/* Hero */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%); padding: 80px 24px 100px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(245,158,11,0.08) 0%, transparent 40%); }
.hero-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 30px 30px; }
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #fbbf24; font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 30px; margin-bottom: 24px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(32px, 5vw, 56px); font-weight: 800; color: white; line-height: 1.1; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #fbbf24; }
.hero p { font-size: 17px; color: rgba(255,255,255,0.75); margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* Search Box */
/* ===== HORIZONTAL SEARCH BOX ===== */
.search-box {
  background: white;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  max-width: 780px;
  margin: 0 auto 28px;
  gap: 0;
}
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.search-field:first-child {
  flex: 1.2;
}
.search-field:last-of-type {
  border-right: none;
  flex: 1;
}
.search-field input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: #0f172a;
  width: 100%;
  background: transparent;
  font-weight: 500;
  min-width: 0;
}
.search-field input::placeholder {
  color: #64748b;
  font-weight: 400;
  opacity: 1;
}
.search-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 4px;
}
.search-btn:hover {
  background: var(--primary-light);
}
@media (max-width: 640px) {
  .search-box { flex-wrap: wrap; }
  .search-field { border-right: none; border-bottom: 1px solid var(--border); padding: 8px 12px; width: 100%; }
  .search-field:first-child { flex: 1 1 100%; }
  .search-field:last-of-type { border-bottom: none; flex: 1 1 100%; }
  .search-btn { width: 100%; margin: 4px 0 0; justify-content: center; }
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.hero-tags span { color: rgba(255,255,255,0.5); font-size: 13px; }
.hero-tag { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); padding: 6px 14px; border-radius: 30px; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.hero-tag:hover { background: rgba(255,255,255,0.15); }

/* Stats */
.stats { background: var(--white); border-bottom: 1px solid var(--border); }
.stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); padding: 0 24px; }
.stat-item { padding: 22px 16px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 2px; }

/* Main Layout */
.main { max-width: 1200px; margin: 0 auto; padding: 32px 24px 60px; display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--primary); }
.section-link { color: var(--accent); font-size: 14px; font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* Filters */
.filters { background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-chip { padding: 6px 14px; border-radius: 30px; border: 1.5px solid var(--border); font-size: 13px; cursor: pointer; background: white; color: var(--text-mid); transition: all 0.2s; font-family: var(--font-body); font-weight: 500; }
.filter-chip:hover, .filter-chip.active { border-color: var(--primary); background: #eff6ff; color: var(--primary); }

/* ===== PROFESSIONAL JOB CARDS (AdSense Friendly) ===== */
.job-list { display: flex; flex-direction: column; gap: 16px; }
.job-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.job-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.job-card.featured {
  border-left: 4px solid var(--accent);
  background: linear-gradient(to right, rgba(245,158,11,0.03), white);
}

.job-card-inner { display: flex; gap: 20px; align-items: flex-start; }

/* Job Image / Ad Space */
.job-card-img-wrap {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.job-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.job-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}
.job-card-img-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(15,23,42,0.7);
  color: white;
  font-size: 9px;
  text-align: center;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 600;
}

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

.job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.job-info h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.job-info h3 a:hover { color: var(--blue); }
.comp-name { font-size: 14px; color: var(--text-mid); font-weight: 500; }
.job-right { text-align: right; flex-shrink: 0; }
.job-salary {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}
.job-posted { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.badge-type { background: #eff6ff; color: var(--blue); }
.badge-remote { background: #ecfdf5; color: var(--green); }
.badge-loc { background: #f8fafc; color: #64748b; }
.badge-featured { background: #fef3c7; color: #b45309; }

.job-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}

.job-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.skills { display: flex; gap: 6px; flex-wrap: wrap; }
.skill {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-mid);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.apply-btn {
  background: var(--primary);
  color: white;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.apply-btn:hover { background: var(--blue); transform: scale(1.02); }
.save-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.save-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.side-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.cat-list { display: flex; flex-direction: column; gap: 6px; }
.cat-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.cat-item:hover { background: #eff6ff; }
.cat-left { display: flex; align-items: center; gap: 10px; }
.cat-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #eff6ff; color: var(--primary); }
.cat-name { font-size: 14px; font-weight: 500; color: var(--text); }
.cat-count { background: var(--bg); border: 1px solid var(--border); color: var(--text-light); padding: 2px 8px; border-radius: 30px; font-size: 12px; font-weight: 600; }

/* Categories Section */
.cat-section { background: white; padding: 60px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cat-section-inner { max-width: 1200px; margin: 0 auto; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 28px; }
.cat-box {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  display: block;
}
.cat-box:hover {
  border-color: var(--blue);
  background: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cat-box .icon-xl { margin: 0 auto 10px; color: var(--blue); }
.cat-box-name { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--primary); }
.cat-box-count { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* How it Works */
.how { padding: 60px 24px; }
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 36px; }
.how-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; position: relative; transition: all 0.25s; }
.how-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.how-num { font-family: var(--font-head); font-size: 44px; font-weight: 800; color: var(--border); position: absolute; top: 16px; right: 20px; line-height: 1; }
.how-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #eff6ff; color: var(--blue); margin-bottom: 16px; }
.how-card h3 { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.how-card p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* Articles */
.articles { padding: 60px 24px; background: white; }
.articles-inner { max-width: 1200px; margin: 0 auto; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; }
.art-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.25s; background: var(--bg); }
.art-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.art-img { height: 180px; display: flex; align-items: center; justify-content: center; background: #eff6ff; color: var(--blue); }
.art-body { padding: 20px; }
.art-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); margin-bottom: 6px; }
.art-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--primary); line-height: 1.35; margin-bottom: 8px; }
.art-title a:hover { color: var(--blue); }
.art-desc { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.art-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.art-date { font-size: 12px; color: var(--text-light); font-weight: 500; }
.art-read { font-size: 14px; color: var(--accent); font-weight: 600; }

/* Newsletter */
.news { background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%); padding: 50px 24px; text-align: center; }
.news-inner { max-width: 560px; margin: 0 auto; }
.news h2 { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: white; margin-bottom: 10px; }
.news p { color: rgba(255,255,255,0.9); margin-bottom: 24px; font-size: 15px; }
.news-form { display: flex; gap: 10px; background: rgba(255,255,255,0.2); border-radius: 12px; padding: 6px 6px 6px 16px; }
.news-input { flex: 1; border: none; background: transparent; color: white; font-size: 15px; outline: none; font-family: var(--font-body); }
.news-input::placeholder { color: rgba(255,255,255,0.7); }
.news-submit { background: white; color: var(--accent); border: none; padding: 12px 24px; border-radius: 8px; font-family: var(--font-head); font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.news-submit:hover { background: var(--primary); color: white; }

/* Footer */
.footer { background: var(--primary); color: rgba(255,255,255,0.75); padding: 50px 24px 28px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-about .logo { color: white; margin-bottom: 14px; }
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; color: rgba(255,255,255,0.7); }
.socials { display: flex; gap: 10px; }
.social { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: white; transition: all 0.2s; }
.social:hover { background: var(--accent); }
.footer-col h4 { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: white; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-legal a:hover { color: white; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.page-btn { width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--border); background: white; color: var(--text-mid); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); display: inline-flex; align-items: center; justify-content: center; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.current { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== SINGLE ARTICLE PAGE ===== */
.article-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); padding: 50px 24px 40px; color: white; }
.article-header-inner { max-width: 780px; margin: 0 auto; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { text-decoration: underline; }
.article-header h1 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.article-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,0.85); }
.author-pic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: 14px; }

.article-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 24px 60px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.article-content { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.article-sidebar { display: flex; flex-direction: column; gap: 24px; }

/* TOC */
.toc { background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 32px; }
.toc h4 { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.toc ul { display: flex; flex-direction: column; gap: 8px; }
.toc a { font-size: 14px; color: var(--text-mid); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.toc a:hover { color: var(--accent); }
.toc a::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* Article Body */
.article-body h2 { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--primary); margin: 36px 0 16px; scroll-margin-top: 90px; }
.article-body h3 { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--primary); margin: 28px 0 12px; }
.article-body p { font-size: 16px; color: var(--text-mid); margin-bottom: 16px; line-height: 1.8; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; color: var(--text-mid); }
.article-body ul li { list-style: disc; margin-bottom: 8px; font-size: 15.5px; line-height: 1.7; }
.article-body ol li { list-style: decimal; margin-bottom: 8px; font-size: 15.5px; line-height: 1.7; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body blockquote { border-left: 4px solid var(--accent); background: #fef3c7; padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; font-style: italic; color: var(--text-mid); }
.article-body img { border-radius: var(--radius); margin: 20px 0; border: 1px solid var(--border); }

/* Author Box */
.author-box { display: flex; gap: 18px; background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 40px; }
.author-box-img { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: white; font-family: var(--font-head); font-weight: 800; font-size: 22px; flex-shrink: 0; }
.author-box-info h4 { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.author-box-info .role { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.author-box-info p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* FAQ Accordion */
.faq-section { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border); }
.faq-section h2 { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: white; }
.faq-q { width: 100%; padding: 16px 20px; background: white; border: none; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--primary); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.faq-q:hover { background: #f8fafc; }
.faq-q svg { transition: transform 0.3s; }
.faq-q.active svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 20px 16px; font-size: 15px; color: var(--text-mid); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 400px; }

/* Related */
.related { margin-top: 48px; }
.related h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all 0.2s; cursor: pointer; }
.rel-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--blue); }
.rel-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); margin-bottom: 6px; }
.rel-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--primary); line-height: 1.4; margin-bottom: 8px; }
.rel-date { font-size: 12px; color: var(--text-light); }

/* Sidebar sticky */
.sidebar-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.sidebar-card h4 { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.sticky-ad { position: sticky; top: 90px; }

/* Social Share */
.share { display: flex; gap: 10px; margin: 24px 0; }
.share-btn { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: white; display: flex; align-items: center; justify-content: center; color: var(--text-mid); cursor: pointer; transition: all 0.2s; }
.share-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== GOOGLE MAPS ===== */
.job-map-wrap { margin: 32px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.job-map-wrap iframe { width: 100%; height: 350px; border: none; display: block; }
.job-map-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 10px; }

/* ===== JOB APPLY CTA ===== */
.job-apply-cta { background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: var(--radius); padding: 32px; text-align: center; color: white; margin-top: 40px; }
.job-apply-cta h3 { font-family: var(--font-head); font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.job-apply-cta p { opacity: 0.85; margin-bottom: 20px; }
.btn-apply-external {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 14px 36px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-apply-external:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,0.4); }

/* Job Overview Sidebar */
.job-overview { display: flex; flex-direction: column; gap: 14px; }
.job-overview-row { display: flex; justify-content: space-between; font-size: 14px; align-items: center; }
.job-overview-label { color: var(--text-light); }
.job-overview-value { font-weight: 600; color: var(--text); }
.job-overview-value.salary { color: var(--green); }

/* Mobile Menu */
.mobile-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: white; z-index: 999; border-bottom: 1px solid var(--border); padding: 16px 24px; flex-direction: column; gap: 4px; box-shadow: var(--shadow-md); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 14px; border-radius: 8px; color: var(--text); font-size: 15px; font-weight: 500; display: block; }
.mobile-menu a:hover { background: #eff6ff; }


/* ===== JOB DATES BAR ===== */
.job-dates-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.job-date-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.job-date-item svg {
  color: var(--accent);
  flex-shrink: 0;
}
.job-date-label {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.job-date-value {
  display: block;
  font-weight: 700;
  color: var(--primary);
}
.job-deadline {
  font-size: 12px;
  color: #dc2626;
  font-weight: 600;
  margin-top: 4px;
}


/* ===== ENHANCED PROFESSIONAL CARDS ===== */
.job-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  opacity: 0;
  transition: opacity 0.3s;
}
.job-card:hover::before {
  opacity: 1;
}
.job-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.job-card.featured {
  border-left: 4px solid var(--accent);
  background: linear-gradient(to right, rgba(245,158,11,0.03), white);
}
.job-card.featured::before {
  opacity: 1;
}

/* Job Image / Ad Space */
.job-card-img-wrap {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.job-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Salary display */
.job-salary {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

/* Deadline badge */
.job-deadline {
  font-size: 12px;
  color: #dc2626;
  font-weight: 600;
  margin-top: 4px;
}

/* Apply button */
.apply-btn {
  background: var(--primary);
  color: white;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.apply-btn:hover {
  background: var(--blue);
  transform: scale(1.02);
}

/* Related cards */
.rel-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
  display: block;
}
.rel-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue);
}

/* Job dates bar */
.job-dates-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.job-date-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.job-date-item svg {
  color: var(--accent);
  flex-shrink: 0;
}
.job-date-label {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.job-date-value {
  display: block;
  font-weight: 700;
  color: var(--primary);
}

/* FAQ */
.faq-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}
.faq-section h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: white;
}
.faq-q {
  width: 100%;
  padding: 16px 20px;
  background: white;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-q:hover {
  background: #f8fafc;
}
.faq-q svg {
  transition: transform 0.3s;
}
.faq-q.active svg {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 20px 16px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 400px;
}

/* Search box fixes */
.search-box {
  background: white;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  max-width: 700px;
  margin: 0 auto 28px;
  gap: 4px;
}
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  border-right: 1px solid var(--border);
}
.search-field:last-of-type {
  border-right: none;
}
.search-field input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: #0f172a;
  width: 100%;
  background: transparent;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.search-field input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 1;
  font-size: 14px;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main, .article-wrap { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .search-box { flex-direction: column; padding: 12px; border-radius: 12px; }
  .search-field { border-right: none; border-bottom: 1px solid var(--border); padding: 10px 0; }
  .search-field input { color: #0f172a !important; font-weight: 600; }
  .search-field { border-right: none; border-bottom: 1px solid var(--border); padding: 10px 0; }
  .search-field:last-of-type { border-bottom: none; }
  .search-btn { margin: 8px 0 0; width: 100%; justify-content: center; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .news-form { flex-direction: column; padding: 12px; }
  .news-submit { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .how-grid { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .article-content { padding: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; text-align: center; align-items: center; }
  .job-card-inner { flex-direction: column; }
  .job-card-img-wrap { width: 100%; height: 160px; }
  .job-map-wrap iframe { height: 250px; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .job-card-top { flex-direction: column; }
  .job-right { text-align: left; }
}

/* ===== WORDPRESS DEFAULTS ===== */
.screen-reader-text { position: absolute; left: -9999px; }
.gallery-caption { font-size: 13px; color: var(--text-light); }
.bypostauthor { display: block; }
.sticky { display: block; }
input, textarea, select { font-family: var(--font-body); }
