/* ══════════════════════════════════════════════════════════════
   Punjab Job Vacancy — Main Stylesheet
   Font: Baloo 2 (headings) + Hind (body) — desi feel
   Theme: Deep Navy + Saffron + White — Punjab branding
   ══════════════════════════════════════════════════════════════ */

:root {
  --primary:   #1a3c6e;   /* Deep navy */
  --primary-d: #0f2547;
  --accent:    #f07c1c;   /* Saffron */
  --accent-d:  #d4600f;
  --green:     #22a84a;
  --red:       #d93025;
  --yellow:    #f5a623;
  --bg:        #f4f6fa;
  --bg2:       #eef1f7;
  --white:     #ffffff;
  --text:      #1e2535;
  --text-light:#5a6580;
  --border:    #dde3ef;
  --card-sh:   0 2px 12px rgba(26,60,110,0.09);
  --card-sh-h: 0 6px 24px rgba(26,60,110,0.18);
  --radius:    10px;
  --radius-lg: 16px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Hind', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Container ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ══ TOPBAR ════════════════════════════════════════════════ */
.topbar { background: var(--primary-d); color: #afc3e6; font-size: 13px; padding: 6px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.topbar-left { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar-right { display: flex; gap: 12px; flex-shrink: 0; }
.topbar-right a { color: #afc3e6; font-size: 15px; }
.topbar-right a:hover { color: var(--accent); }

/* ══ HEADER ════════════════════════════════════════════════ */
.site-header { background: var(--primary); padding: 14px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 16px rgba(0,0,0,0.22); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--white); }
.logo:hover { color: var(--accent); }
.logo-icon { width: 44px; height: 44px; background: var(--accent); border-radius: 10px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.logo-main { display: block; font-family: 'Baloo 2', sans-serif; font-size: 20px; font-weight: 800; line-height: 1.1; }
.logo-sub  { display: block; font-size: 11px; color: #afc3e6; letter-spacing: 0.3px; }

.header-right { display: flex; align-items: center; gap: 12px; }
.header-search { display: flex; background: rgba(255,255,255,0.12); border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.2); }
.header-search input { background: transparent; border: none; outline: none; color: var(--white); padding: 8px 12px; font-size: 14px; width: 220px; }
.header-search input::placeholder { color: #afc3e6; }
.header-search button { background: var(--accent); border: none; color: #fff; padding: 0 14px; cursor: pointer; font-size: 15px; transition: background 0.2s; }
.header-search button:hover { background: var(--accent-d); }

.nav-toggle { display: none; background: transparent; border: none; color: var(--white); font-size: 22px; cursor: pointer; }

/* ══ NAV ═══════════════════════════════════════════════════ */
.main-nav { background: var(--primary-d); border-top: 1px solid rgba(255,255,255,0.08); position: sticky; top: 72px; z-index: 999; }
.nav-list { display: flex; align-items: center; overflow-x: auto; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: flex; align-items: center; gap: 5px; color: #cdd9ef; padding: 11px 14px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.nav-list > li > a:hover,
.nav-list > li > a.active { color: var(--accent); background: rgba(240,124,28,0.1); }
.nav-list > li > a i.fa-caret-down { font-size: 11px; margin-left: 2px; }

/* Dropdown */
.has-dropdown:hover .dropdown { display: block; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--white); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.14); z-index: 100; }
.dropdown li a { display: block; padding: 9px 16px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); transition: background 0.15s; }
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--bg); color: var(--accent); }

/* ══ LAYOUT ════════════════════════════════════════════════ */
.site-wrap { min-height: 70vh; }
.page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 24px 0; }
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ══ SECTION TITLE ═════════════════════════════════════════ */
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.section-title h2 { font-family: 'Baloo 2', sans-serif; font-size: 20px; font-weight: 700; color: var(--primary); }
.section-title .title-bar { flex: 1; height: 2px; background: linear-gradient(to right, var(--accent), transparent); }
.section-title a.see-all { font-size: 13px; color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ══ POST CARD ═════════════════════════════════════════════ */
.posts-grid { display: grid; gap: 16px; }
.posts-grid.cols-2 { grid-template-columns: 1fr 1fr; }

.post-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-sh); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.22s, transform 0.22s; border: 1px solid var(--border); }
.post-card:hover { box-shadow: var(--card-sh-h); transform: translateY(-2px); }

.post-card-img { width: 100%; height: 160px; object-fit: cover; background: var(--bg2); }
.post-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.post-card-cat { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }
.post-card-title { font-family: 'Baloo 2', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--text); }
.post-card-title a:hover { color: var(--accent); }
.post-card-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-light); flex-wrap: wrap; }
.post-card-meta i { margin-right: 3px; }
.post-card-footer { padding: 10px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.post-card-footer .read-more { color: var(--accent); font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 4px; }

/* ══ LIST POST (compact) ════════════════════════════════════ */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-list-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.post-list-item:last-child { border-bottom: none; }
.post-list-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; margin-top: 7px; }
.post-list-body { flex: 1; min-width: 0; }
.post-list-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-list-title a:hover { color: var(--accent); }
.post-list-meta { font-size: 12px; color: var(--text-light); margin-top: 3px; }
.post-list-badge { flex-shrink: 0; }

/* ══ BADGES ════════════════════════════════════════════════ */
.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-safe    { background: #e6f9ec; color: var(--green); }
.badge-warning { background: #fff6e0; color: #b07d00; }
.badge-urgent  { background: #fff0e0; color: var(--accent-d); animation: pulse 1.5s infinite; }
.badge-expired { background: #fde8e8; color: var(--red); }
.badge-new     { background: var(--accent); color: #fff; }
.badge-cat     { background: #e8eef9; color: var(--primary); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ══ POST PAGE ═════════════════════════════════════════════ */
.post-header { margin-bottom: 20px; }
.post-title { font-family: 'Baloo 2', sans-serif; font-size: 26px; font-weight: 800; line-height: 1.3; color: var(--primary); margin-bottom: 12px; }
.post-meta-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-light); }
.post-meta-bar i { margin-right: 4px; }
.post-meta-bar .last-date-bar { background: #fff8f0; border: 1px solid #f5c07a; border-radius: 8px; padding: 6px 14px; font-weight: 600; color: #8a4f00; font-size: 13px; }

.post-featured-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }

.post-content { font-size: 15px; line-height: 1.75; color: var(--text); }
.post-content table { width: 100%; border-collapse: collapse; margin: 14px 0; overflow: hidden; border-radius: 8px; }
.post-content table th { background: var(--primary); color: #fff; padding: 10px 12px; font-size: 14px; text-align: left; }
.post-content table td { padding: 9px 12px; border: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.post-content table tr:nth-child(even) td { background: var(--bg); }
.post-content table tr:hover td { background: #e8eef9; }
.post-content h2,h3 { font-family: 'Baloo 2', sans-serif; color: var(--primary); margin: 18px 0 10px; }
.post-content img { border-radius: 8px; margin: 12px auto; }
.post-content a { color: var(--accent); text-decoration: underline; }

.apply-btn-wrap { text-align: center; margin: 24px 0; }
.apply-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; padding: 13px 36px; border-radius: 8px; font-size: 16px; font-weight: 700; font-family: 'Baloo 2', sans-serif; transition: background 0.2s, transform 0.2s; }
.apply-btn:hover { background: #1a8a3a; color: #fff; transform: scale(1.04); }
.apply-btn i { font-size: 18px; }

/* ══ SIDEBAR ═══════════════════════════════════════════════ */
.widget { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-sh); border: 1px solid var(--border); margin-bottom: 20px; overflow: hidden; }
.widget-title { background: var(--primary); color: #fff; font-family: 'Baloo 2', sans-serif; font-size: 15px; font-weight: 700; padding: 11px 16px; }
.widget-body { padding: 14px 16px; }

.cat-list { display: flex; flex-direction: column; gap: 4px; }
.cat-item { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.cat-item:last-child { border-bottom: none; }
.cat-item a { color: var(--text); font-weight: 500; }
.cat-item a:hover { color: var(--accent); }
.cat-count { background: var(--bg2); color: var(--text-light); padding: 2px 8px; border-radius: 12px; font-size: 12px; }

/* ══ CATEGORY PAGE ══════════════════════════════════════════ */
.page-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%); color: #fff; padding: 28px 0; margin-bottom: 0; }
.page-banner h1 { font-family: 'Baloo 2', sans-serif; font-size: 28px; font-weight: 800; }
.page-banner p { color: #afc3e6; font-size: 14px; margin-top: 4px; }
.page-banner .banner-icon { font-size: 36px; opacity: 0.25; }

/* ══ SEARCH PAGE ════════════════════════════════════════════ */
.search-box-big { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--card-sh); padding: 24px; margin-bottom: 24px; }
.search-box-big form { display: flex; gap: 10px; }
.search-box-big input { flex: 1; border: 2px solid var(--border); border-radius: 8px; padding: 12px 16px; font-size: 16px; outline: none; font-family: 'Hind', sans-serif; transition: border 0.2s; }
.search-box-big input:focus { border-color: var(--primary); }
.search-box-big button { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 0 24px; font-size: 16px; cursor: pointer; font-weight: 600; }

/* ══ PAGINATION ═════════════════════════════════════════════ */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 28px 0; }
.page-btn { display: inline-block; padding: 7px 14px; border-radius: 8px; background: var(--white); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 500; transition: 0.2s; }
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ══ BREADCRUMB ═════════════════════════════════════════════ */
.breadcrumb { padding: 10px 0; font-size: 13px; }
.breadcrumb ol { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb li::after { content: '›'; margin-left: 6px; color: var(--text-light); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li a { color: var(--text-light); }
.breadcrumb li a:hover { color: var(--accent); }
.breadcrumb li.current { color: var(--text); font-weight: 500; }

/* ══ ADS ════════════════════════════════════════════════════ */
.ad-block { text-align: center; overflow: hidden; padding: 10px 0; }
.ad-header { margin: 12px 0; }
.ad-footer { margin: 12px 0; }
.ad-inline { margin: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; }

/* ══ HERO (Homepage) ════════════════════════════════════════ */
.hero-ticker { background: var(--primary-d); border-bottom: 3px solid var(--accent); padding: 0; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; }
.ticker-label { background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; padding: 9px 16px; white-space: nowrap; flex-shrink: 0; }
.ticker-track { overflow: hidden; flex: 1; padding: 0 12px; }
.ticker-items { display: flex; gap: 40px; animation: ticker 40s linear infinite; white-space: nowrap; }
.ticker-items a { color: #cdd9ef; font-size: 13px; }
.ticker-items a:hover { color: var(--accent); }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ══ STATS BAR ══════════════════════════════════════════════ */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 0; }
.stats-inner { display: flex; gap: 0; justify-content: center; }
.stat-item { flex: 1; text-align: center; padding: 8px 16px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Baloo 2', sans-serif; font-size: 22px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-light); }

/* ══ CATEGORY PILLS ═════════════════════════════════════════ */
.cat-pills { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 0; }
.cat-pill { display: flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid var(--border); border-radius: 30px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--text); transition: 0.2s; box-shadow: var(--card-sh); }
.cat-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-pill i { color: var(--accent); }
.cat-pill:hover i { color: #fff; }

/* ══ RELATED POSTS ══════════════════════════════════════════ */
.related-posts { margin-top: 32px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ══ 404 ════════════════════════════════════════════════════ */
.error-page { text-align: center; padding: 80px 20px; }
.error-page .error-num { font-family: 'Baloo 2', sans-serif; font-size: 100px; font-weight: 800; color: var(--accent); line-height: 1; }
.error-page h2 { font-size: 26px; color: var(--primary); margin: 10px 0; }
.error-page p { color: var(--text-light); margin-bottom: 24px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: background 0.2s; }
.btn-primary:hover { background: var(--accent); color: #fff; }

/* ══ ADMIN ══════════════════════════════════════════════════ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--primary-d); color: #fff; padding-top: 0; }
.admin-logo { background: var(--primary); padding: 18px 20px; font-family: 'Baloo 2', sans-serif; font-size: 17px; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: #afc3e6; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.06); transition: 0.2s; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(240,124,28,0.15); border-left: 3px solid var(--accent); }
.admin-main { background: var(--bg); padding: 28px; }
.admin-topbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; }
.admin-topbar h1 { font-family: 'Baloo 2', sans-serif; font-size: 20px; font-weight: 700; color: var(--primary); }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-sh); border: 1px solid var(--border); padding: 20px; margin-bottom: 20px; }
.card-title { font-family: 'Baloo 2', sans-serif; font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 16px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-sh); padding: 20px; display: flex; align-items: center; gap: 14px; border-left: 4px solid var(--accent); }
.stat-card-icon { width: 48px; height: 48px; border-radius: 10px; background: #fff3e8; color: var(--accent); display: grid; place-items: center; font-size: 22px; }
.stat-card-num { font-family: 'Baloo 2', sans-serif; font-size: 26px; font-weight: 800; color: var(--primary); }
.stat-card-label { font-size: 13px; color: var(--text-light); }

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--bg2); font-size: 13px; font-weight: 700; color: var(--text); padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--border); }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.data-table tr:hover td { background: var(--bg); }
.data-table .actions { display: flex; gap: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: var(--primary-d); color: #fff; }
.btn-orange { background: var(--accent); color: #fff; }
.btn-orange:hover { background: var(--accent-d); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b5261d; color: #fff; }
.btn-gray { background: #e5e9f0; color: var(--text); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control { width: 100%; border: 1px solid var(--border); border-radius: 7px; padding: 10px 12px; font-size: 14px; font-family: 'Hind', sans-serif; outline: none; transition: border 0.2s; }
.form-control:focus { border-color: var(--primary); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* Alert */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #e6f9ec; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fde8e8; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info    { background: #e0eeff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ══ RESPONSIVE ═════════════════════════════════════════════ */
@media (max-width: 992px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
@media (max-width: 768px) {
  .logo-sub { display: none; }
  .header-search { display: none; }
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list > li > a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .dropdown { position: static; box-shadow: none; background: rgba(0,0,0,0.1); border-radius: 0; }
  .posts-grid.cols-2 { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; }
  .post-title { font-size: 20px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .search-box-big form { flex-direction: column; }
}
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .stat-item { flex: 0 0 100%; }
}
