/*
Theme Name: LatestJobs
Theme URI: https://latestjobs.pk
Author: LatestJobs Team
Author URI: https://latestjobs.pk
Description: Pakistan ka #1 Jobs Portal Theme — Government, Private, Overseas jobs ke liye complete WordPress theme. Job post karne, browse karne aur search karne ki full functionality.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: latestjobs
Tags: jobs, pakistan, government-jobs, recruitment, job-portal, responsive, custom-colors
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green:       #1a6b3c;
    --green-dark:  #0f4a28;
    --green-hover: #124f2d;
    --green-light: #e8f5ee;
    --gold:        #c8960c;
    --gold-hover:  #a67c0a;
    --gold-light:  #fff8e1;
    --white:       #ffffff;
    --bg:          #f0f2f0;
    --gray-100:    #f5f5f5;
    --gray-200:    #e0e0e0;
    --gray-500:    #888;
    --gray-600:    #555;
    --gray-800:    #222;
    --red:         #c0392b;
    --blue:        #1565c0;
    --border:      #d4d8d4;
    --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
    --shadow:      0 2px 10px rgba(0,0,0,0.1);
    --radius:      5px;
}

html { font-size: 15px; scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--gray-800);
    line-height: 1.6;
}

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =============================================
   LAYOUT
   ============================================= */
.lj-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.lj-main-wrap { display: flex; gap: 20px; padding: 18px 0 30px; }
.lj-content   { flex: 1; min-width: 0; }
.lj-sidebar   { width: 275px; flex-shrink: 0; }

/* =============================================
   TOP BAR
   ============================================= */
#lj-topbar {
    background: var(--green-dark);
    padding: 5px 0;
    font-size: 12px;
    color: #afd6b8;
}
#lj-topbar .lj-container { display: flex; justify-content: space-between; align-items: center; }
#lj-topbar a { color: #afd6b8; margin: 0 6px; }
#lj-topbar a:hover { color: #fff; }

/* =============================================
   HEADER
   ============================================= */
#lj-header { background: var(--green); }
.lj-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 16px;
    flex-wrap: wrap;
}
.lj-logo {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.lj-logo span { color: var(--gold); }
.lj-logo:hover { color: #fff; }

.lj-header-search { display: flex; gap: 0; flex: 1; max-width: 420px; }
.lj-header-search input {
    flex: 1;
    padding: 9px 14px;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 13px;
    outline: none;
}
.lj-header-search button {
    background: var(--gold);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
}
.lj-header-search button:hover { background: var(--gold-hover); }

.lj-post-btn {
    background: var(--gold);
    color: #fff;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.lj-post-btn:hover { background: var(--gold-hover); color: #fff; }

/* =============================================
   NAV
   ============================================= */
#lj-nav { background: var(--green-dark); border-top: 2px solid var(--gold); }
#lj-nav ul { display: flex; flex-wrap: wrap; }
#lj-nav ul li a {
    display: block;
    padding: 10px 14px;
    color: #c8e6cc;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}
#lj-nav ul li a:hover,
#lj-nav ul li.current-menu-item a,
#lj-nav ul li.current-page-ancestor a { background: var(--green); color: #fff; }
#lj-nav ul li.nav-highlight a { background: var(--gold); color: #fff; font-weight: 700; }
#lj-nav ul li.nav-highlight a:hover { background: var(--gold-hover); }

/* =============================================
   TICKER
   ============================================= */
#lj-ticker {
    background: #fff8e1;
    border-bottom: 1px solid #ffe082;
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
}
.lj-ticker-label {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 2px 10px;
    font-weight: 700;
    margin-right: 12px;
    border-radius: 2px;
    vertical-align: middle;
}
.lj-ticker-scroll {
    display: inline-block;
    animation: lj-marquee 35s linear infinite;
    color: var(--green-dark);
}
@keyframes lj-marquee {
    0%   { transform: translateX(60vw); }
    100% { transform: translateX(-100%); }
}

/* =============================================
   CARDS / PANELS
   ============================================= */
.lj-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.lj-card-head {
    background: var(--green);
    color: #fff;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lj-card-head a { color: #c8e6cc; font-size: 12px; font-weight: 400; }
.lj-card-head a:hover { color: #fff; }
.lj-card-body { padding: 16px; }

/* =============================================
   HERO SEARCH
   ============================================= */
.lj-hero {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.lj-hero h1 {
    font-size: 24px;
    color: var(--green-dark);
    margin-bottom: 14px;
    font-weight: 800;
}
.lj-hero-search {
    display: flex;
    max-width: 580px;
    margin: 0 auto 14px;
}
.lj-hero-search input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--green);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
    outline: none;
}
.lj-hero-search button {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.lj-hero-search button:hover { background: var(--green-dark); }
.lj-city-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.lj-city-links a {
    background: var(--green-light);
    color: var(--green-dark);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #b8dcc4;
}
.lj-city-links a:hover { background: var(--green); color: #fff; }

/* =============================================
   JOB TABLE
   ============================================= */
.lj-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--green-dark);
    padding: 12px 16px;
    border-left: 4px solid var(--gold);
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.lj-table-wrap { overflow-x: auto; }
table.lj-job-table { width: 100%; border-collapse: collapse; }
table.lj-job-table thead tr { background: #f0f7f3; }
table.lj-job-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--green-dark);
    border-bottom: 2px solid var(--green);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
table.lj-job-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef0ee;
    vertical-align: middle;
    font-size: 13px;
}
table.lj-job-table tr:hover td { background: var(--green-light); }
table.lj-job-table a.lj-job-link {
    color: var(--green-dark);
    font-weight: 600;
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}
table.lj-job-table a.lj-job-link:hover { color: var(--gold); text-decoration: underline; }
.lj-dept  { color: var(--green);   font-size: 12px; }
.lj-city  { color: var(--gray-600); font-size: 12px; }
.lj-date  { color: var(--gray-500); font-size: 11px; white-space: nowrap; }

/* =============================================
   BADGES
   ============================================= */
.lj-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}
.lj-badge-new     { background: #d4edda; color: #155724; }
.lj-badge-govt    { background: #cce5ff; color: #004085; }
.lj-badge-private { background: #fff3cd; color: #856404; }
.lj-badge-urgent  { background: #f8d7da; color: #721c24; }
.lj-badge-overseas{ background: #e2d9f3; color: #4a235a; }

/* =============================================
   SINGLE JOB
   ============================================= */
.lj-single-job { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.lj-single-job h1 { font-size: 22px; color: var(--green-dark); margin-bottom: 10px; }
.lj-job-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.lj-job-meta span { display: flex; align-items: center; gap: 5px; color: var(--gray-600); }
.lj-job-meta strong { color: var(--gray-800); }
.lj-job-desc h2 { font-size: 16px; color: var(--green-dark); margin: 16px 0 8px; }
.lj-job-desc p, .lj-job-desc ul { margin-bottom: 10px; font-size: 14px; line-height: 1.7; }
.lj-job-desc ul { padding-left: 20px; list-style: disc; }
.lj-apply-btn {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    margin-top: 18px;
    transition: background 0.2s;
}
.lj-apply-btn:hover { background: var(--green-dark); color: #fff; }

/* =============================================
   SIDEBAR
   ============================================= */
.lj-s-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.lj-s-title {
    background: var(--green-dark);
    color: #fff;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
}
.lj-s-body { padding: 12px 14px; }
.lj-s-links { list-style: none; }
.lj-s-links li { border-bottom: 1px solid #f2f2f2; }
.lj-s-links li:last-child { border-bottom: none; }
.lj-s-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    color: var(--green);
    font-size: 13px;
}
.lj-s-links a:hover { color: var(--gold); }
.lj-s-links .lj-cnt {
    background: var(--green-light);
    color: var(--green-dark);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.lj-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lj-stat-box {
    background: var(--green-light);
    border-radius: var(--radius);
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #b8dcc4;
}
.lj-stat-box .lj-num { font-size: 22px; font-weight: 800; color: var(--green-dark); }
.lj-stat-box .lj-lbl { font-size: 11px; color: var(--gray-600); margin-top: 2px; }

.lj-s-promo {
    background: var(--green);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.lj-s-promo h4 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.lj-s-promo p  { color: #c8e6cc; font-size: 12px; margin-bottom: 12px; }

.lj-subscribe-form input[type="email"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 8px;
    outline: none;
}
.lj-subscribe-form input[type="email"]:focus { border-color: var(--green); }
.lj-subscribe-form button {
    width: 100%;
    background: var(--green);
    color: #fff;
    border: none;
    padding: 9px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}
.lj-subscribe-form button:hover { background: var(--green-dark); }

/* =============================================
   PAGINATION
   ============================================= */
.lj-pagination { display: flex; gap: 6px; justify-content: center; padding: 16px 0; flex-wrap: wrap; }
.lj-pagination a, .lj-pagination span {
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--green);
    background: var(--white);
    transition: all 0.2s;
}
.lj-pagination a:hover, .lj-pagination .current {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

/* =============================================
   FOOTER
   ============================================= */
#lj-footer { background: var(--green-dark); color: #9ec4a8; padding: 30px 0 0; margin-top: 10px; }
.lj-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
.lj-footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.lj-footer-grid a  { display: block; color: #9ec4a8; font-size: 12px; padding: 3px 0; }
.lj-footer-grid a:hover { color: var(--gold); }
.lj-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 14px 0; text-align: center; font-size: 12px; color: #6a9e72; }

/* =============================================
   WIDGETS
   ============================================= */
.widget { margin-bottom: 0; }
.widget-title { font-size: 13px; font-weight: 700; }

/* =============================================
   ALERTS
   ============================================= */
.lj-alert-success {
    background: #d4edda; border: 1px solid #c3e6cb;
    color: #155724; padding: 12px 16px;
    border-radius: var(--radius); margin-bottom: 14px;
}
.lj-alert-error {
    background: #f8d7da; border: 1px solid #f5c6cb;
    color: #721c24; padding: 12px 16px;
    border-radius: var(--radius); margin-bottom: 14px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .lj-main-wrap { flex-direction: column; }
    .lj-sidebar { width: 100%; }
    .lj-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .lj-logo { font-size: 22px; }
    .lj-header-inner { padding: 10px 0; }
    .lj-hero h1 { font-size: 18px; }
    .lj-footer-grid { grid-template-columns: 1fr; }
    .lj-header-search { display: none; }
}
