/*
Theme Name: Jobpage.lk
Theme URI: http://localhost/jobpage
Author: Jobpage.lk
Author URI: http://localhost/jobpage
Description: A vibrant news/job-board magazine theme for Jobpage.lk — multi-bar header, rainbow category navigation, two-column post grid and a promotional sidebar. Pixel-matched to the Jobpage.lk design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobpage-lk
Tags: news, magazine, job-board, two-columns, right-sidebar, custom-menu
*/

/* ===================== Base ===================== */
:root{
  --purple:#6d28d9;
  --green:#16a34a;
  --green-dark:#15803d;
  --blue:#2196f3;
  --orange:#ff5a1f;
  --ink:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;
  --bg:#f4f5f7;
  --maxw:1280px;
}
*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  font-family:'Roboto','Segoe UI',system-ui,-apple-system,Arial,sans-serif;
  color:var(--ink);
  background:#fff;
  font-size:15px;
  line-height:1.55;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;height:auto;display:block;}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px;}
ul{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4{font-family:'Poppins','Segoe UI',system-ui,Arial,sans-serif;margin:0;}

/* ===================== Top trending bar ===================== */
.topbar{
  background:linear-gradient(90deg,#0b1020 0%,#0b1020 18%,#10213f 45%,#13294d 100%);
  color:#e5e7eb;
  font-size:13px;
}
.topbar .container{display:flex;align-items:center;gap:0;height:46px;}
.topbar .tb-date{
  display:flex;align-items:center;gap:8px;
  font-weight:600;letter-spacing:.5px;color:#dfe6f3;white-space:nowrap;
  padding-right:26px;
}
.topbar .tb-date svg{opacity:.85;}
.topbar .tb-trending-label{
  background:rgba(255,255,255,.06);
  color:#9fb0c9;font-weight:700;letter-spacing:2px;font-size:11px;
  padding:0 18px;height:46px;display:flex;align-items:center;
  border-left:1px solid rgba(255,255,255,.08);
  border-right:1px solid rgba(255,255,255,.08);
}
.topbar .tb-headline{
  flex:1;padding:0 22px;font-weight:600;color:#fff;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.topbar .tb-nav{display:flex;gap:6px;}
.topbar .tb-nav button{
  width:34px;height:26px;border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.06);color:#cfd8e6;border-radius:4px;cursor:pointer;
  font-size:13px;line-height:1;
}
.topbar .tb-nav button:hover{background:rgba(255,255,255,.18);}

/* ===================== Utility gray bar ===================== */
.graybar{background:#b7b7b7;color:#222;font-size:13px;}
.graybar .container{display:flex;align-items:center;justify-content:space-between;height:44px;}
.graybar a{font-weight:600;letter-spacing:.4px;}
.graybar .gb-left{display:flex;gap:26px;text-transform:uppercase;}
.graybar .gb-right{display:flex;gap:26px;text-transform:uppercase;}
.graybar a:hover{color:#000;}

/* ===================== White links bar ===================== */
.linksbar{background:#fff;border-bottom:1px solid var(--line);font-size:13px;}
.linksbar .container{display:flex;align-items:center;justify-content:space-between;height:46px;}
.linksbar .lb-left{display:flex;align-items:center;color:#4b5563;}
.linksbar .lb-left a{padding:0 12px;border-right:1px solid #d8dbe0;}
.linksbar .lb-left a:first-child{padding-left:0;}
.linksbar .lb-left a:last-child{border-right:0;}
.linksbar .lb-left a:hover{color:var(--purple);}
.linksbar .lb-right{display:flex;align-items:center;gap:18px;color:#374151;font-weight:600;}
.linksbar .lb-right a:hover{color:var(--purple);}
/* Social icons shown at the left of this bar on mobile (hidden on desktop). */
.lb-socials{display:none;align-items:center;gap:12px;}
.lb-socials a{display:flex;align-items:center;color:#9aa1ab;}
.lb-socials svg{width:16px;height:16px;}
.lb-socials a:hover{color:var(--purple);}
.btn-postjobs{
  background:var(--purple);color:#fff !important;font-weight:700;
  padding:8px 18px;border-radius:6px;letter-spacing:.3px;
  box-shadow:0 2px 6px rgba(109,40,217,.35);
}
.btn-postjobs:hover{background:#5b21b6;color:#fff;}

/* ===================== Logo + search ===================== */
.brandbar{background:#fff;}
.brandbar .container{display:flex;align-items:center;gap:30px;padding-top:18px;padding-bottom:18px;}
.brand{display:flex;align-items:center;gap:12px;min-width:230px;}
.brand .brand-logo{height:46px;width:auto;display:block;}
.brand .custom-logo{height:46px;width:auto;display:block;}
.brand .logo-mark{width:46px;height:46px;flex:none;position:relative;}
.brand .logo-mark span{position:absolute;width:20px;height:20px;border-radius:6px;}
.brand .logo-mark .s1{background:#7c3aed;top:0;left:6px;}
.brand .logo-mark .s2{background:#22c55e;top:6px;left:0;}
.brand .logo-mark .s3{background:#f59e0b;top:6px;left:20px;}
.brand .logo-mark .s4{background:#ef4444;top:22px;left:6px;border-radius:50%;}
.brand .logo-mark .s5{background:#3b82f6;top:22px;left:22px;border-radius:50%;width:14px;height:14px;}
.brand .brand-text .name{font-size:27px;font-weight:800;line-height:1;color:#111827;}
.brand .brand-text .name b{color:#111;}
.brand .brand-text .tag{font-size:11px;color:#9aa1ab;letter-spacing:.5px;margin-top:3px;}

.searchwrap{flex:1;}
.searchform{display:flex;height:52px;border:1px solid #e3e6ea;border-radius:6px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.04);}
.searchform .si{display:flex;align-items:center;padding:0 14px;color:#9aa1ab;}
.searchform input[type=search]{flex:1;border:0;outline:0;font-size:15px;padding:0 6px;color:#374151;}
.searchform input[type=search]::placeholder{color:#9aa1ab;}
.searchform button{
  border:0;background:var(--green);color:#fff;font-weight:700;font-size:15px;
  padding:0 30px;cursor:pointer;letter-spacing:.3px;
}
.searchform button:hover{background:var(--green-dark);}

/* Mobile-only search toggle (hidden on desktop, where the full bar shows). */
.search-toggle{display:none;width:44px;height:44px;flex:0 0 auto;align-items:center;justify-content:center;
  border:1px solid #eceef1;border-radius:50%;background:#fff;color:#6b7280;cursor:pointer;}
.search-toggle svg{width:18px;height:18px;}
.search-toggle:hover{color:#fff;background:var(--purple);border-color:var(--purple);}

.socials{display:flex;align-items:center;gap:14px;}
.socials a{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#9aa1ab;border:1px solid #eceef1;}
.socials a:hover{color:#fff;background:var(--purple);border-color:var(--purple);}
.socials svg{width:17px;height:17px;}

/* ===================== Rainbow nav ===================== */
.mainnav{
  background:linear-gradient(90deg,#5b0ea6 0%,#3b1fae 12%,#1e40af 26%,#0e4f8a 38%,#0e7490 48%,#15803d 60%,#65a30d 70%,#eab308 80%,#f97316 90%,#dc2626 100%);
  box-shadow:0 2px 5px rgba(0,0,0,.12);
  position:sticky;top:0;z-index:100;
}
.mainnav .container{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;}
.mainnav ul{display:flex;flex-wrap:wrap;justify-content:center;}
.mainnav li{position:relative;}
.mainnav a{
  display:block;color:#fff;font-family:'Poppins',sans-serif;font-weight:700;
  font-size:18px;padding:16px 22px;letter-spacing:.3px;
  text-shadow:0 1px 2px rgba(0,0,0,.18);
}
.mainnav a:hover{background:rgba(255,255,255,.16);}
/* Long category names get a shorter mobile-only label (swapped in below 760px);
   desktop always shows the full name. */
.mainnav .nav-short{display:none;}
.mainnav .current-menu-item>a,.mainnav li.active>a{background:rgba(0,0,0,.18);}
/* "|" divider between top-level category names (not after the last one). */
.mainnav>.container>ul>li:not(:last-child)::after{
  content:"|";position:absolute;right:0;top:50%;transform:translateY(-50%);
  color:rgba(255,255,255,.5);font-weight:400;pointer-events:none;
}
/* sub menu */
.mainnav li ul{position:absolute;top:100%;left:0;display:none;background:#0b1020;min-width:200px;z-index:40;flex-direction:column;box-shadow:0 8px 20px rgba(0,0,0,.25);}
.mainnav li:hover>ul{display:flex;}
.mainnav li ul a{font-size:14px;padding:11px 16px;}
.mainnav li ul a:hover{background:rgba(255,255,255,.1);}

/* ===================== Layout ===================== */
.site-main{background:#fff;padding:28px 0 50px;}
.layout{display:grid;grid-template-columns:1fr 340px;gap:34px;align-items:start;}
.layout-full{grid-template-columns:1fr;}
.posts-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 30px;}
/* Courses & Scholarship listings: vertical blog-style cards, 3 per row. */
.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px 28px;}
/* Titles use the job cards' font (Poppins sans-serif), not the blog serif;
   clamp to 2 lines so long titles don't push the card out of alignment. */
.course-grid .course-card h3{
  font-family:'Poppins','Segoe UI',system-ui,Arial,sans-serif;font-size:17px;line-height:1.2;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;
}
@media(max-width:900px){.course-grid{grid-template-columns:repeat(2,1fr);gap:22px 20px;}}
@media(max-width:560px){.course-grid{grid-template-columns:1fr;}}

/* ===================== Post card ===================== */
.card{display:flex;gap:16px;padding-bottom:12px;border-bottom:1px solid #eef0f2;}
.card .thumb{position:relative;width:130px;height:130px;flex:none;border-radius:4px;overflow:hidden;background:#e5e7eb;}
.card .thumb img{width:100%;height:100%;object-fit:cover;object-position:top;}
/* Card images fill the whole tile (cover) so a low-resolution or off-size upload
   still fills the thumbnail instead of sitting boxed with padding. White stays as
   a fallback behind any transparent logo. */
.card .thumb--logo{background:#fff;}
.card .thumb--logo img{object-fit:cover;object-position:center;padding:0;}
.card .cat-badge{
  position:absolute;left:10px;bottom:10px;color:#fff;font-size:10px;font-weight:700;
  letter-spacing:.6px;text-transform:uppercase;padding:4px 9px;border-radius:2px;
}
.cat-lifestyle{background:#e11d8f;}
.cat-business{background:#0d9488;}
.cat-default{background:#6d28d9;}
.card .urgent-badge{
  position:absolute;top:10px;left:10px;background:#dc2626;color:#fff;font-size:10px;font-weight:700;
  letter-spacing:.6px;text-transform:uppercase;padding:4px 9px;border-radius:2px;
  box-shadow:0 2px 6px rgba(220,38,38,.4);
}
/* On desktop the wrapper is transparent so each badge keeps its own spot over
   the image; on mobile it becomes a stacked column (see the 760px query). */
.card .card-badges{display:contents;}
.card .body{flex:1;min-width:0;display:flex;flex-direction:column;}
.card .meta-date{display:flex;align-items:center;gap:6px;color:#9aa1ab;font-size:12px;margin-bottom:3px;}
.card h3{font-size:17px;line-height:1.2;font-weight:700;color:#1f2937;margin-bottom:2px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.card h3 a:hover{color:var(--purple);}
.card .byline{font-size:14px;color:#9aa1ab;font-style:italic;margin-bottom:5px;}
.card .byline b{color:#6b7280;font-style:normal;font-weight:600;}
.card .byline-co{display:inline-flex;align-items:flex-start;gap:5px;font-style:normal;color:#16a34a;min-width:0;}
.card .byline-co svg{width:14px;height:14px;flex:none;margin-top:2px;}
/* Cap a long company name at one line with an ellipsis. */
.card .byline-co b{color:#4b5563;min-width:0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
.card .excerpt{font-size:13.5px;line-height:1.4;color:#6b7280;margin-bottom:8px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.btn-readmore{
  display:inline-block;background:var(--blue);color:#fff;font-size:11px;font-weight:700;
  letter-spacing:.5px;text-transform:uppercase;padding:8px 16px;border-radius:3px;white-space:nowrap;
}
.btn-readmore:hover{background:#1976d2;}
/* Read More + meta on one row */
.card-actions{display:flex;align-items:center;gap:16px;margin-top:auto;padding-top:10px;}
.card .meta-row{display:flex;align-items:center;justify-content:flex-end;gap:14px;color:#9aa1ab;font-size:12px;flex:1;min-width:0;}
.card .meta-row .mi{display:flex;align-items:center;gap:5px;}
.card .meta-row svg{width:14px;height:14px;opacity:.8;}
.card .meta-row .share{display:flex;align-items:center;gap:5px;cursor:pointer;border:0;background:none;padding:0;margin:0;color:inherit;font:inherit;font-size:12px;line-height:1;}
.card .meta-row .share:hover{color:var(--purple);}

/* Skip layout/paint work for off-screen list items — smoother scrolling and a
   faster first paint, especially on low-powered phones and slow connections.
   The `auto` keyword lets each item remember its real size after first render,
   so the scrollbar stays stable. */
.card{content-visibility:auto;contain-intrinsic-size:auto 172px;}
.related-card{content-visibility:auto;contain-intrinsic-size:auto 210px;}
.trend-card{content-visibility:auto;contain-intrinsic-size:auto 170px;}

.no-jobs{padding:50px 20px;text-align:center;color:#6b7280;font-size:16px;background:#f8f9fb;border:1px dashed #d8dbe0;border-radius:10px;}

/* ===================== Pagination ===================== */
.jp-pagination,.pagination .nav-links{
  display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:34px;
}
.jp-pagination .pg,
.pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:40px;height:40px;padding:0 12px;border:1px solid #e3e6ea;border-radius:5px;
  color:#374151;font-weight:600;font-size:14px;background:#fff;
}
.jp-pagination .pg:hover,
.pagination a.page-numbers:hover{background:#f3f4f6;border-color:#cbd2da;color:var(--purple);}
.jp-pagination .pg.current,
.pagination .page-numbers.current{
  background:var(--purple);border-color:var(--purple);color:#fff;
}

/* ===================== Sidebar ===================== */
.sidebar{display:flex;flex-direction:column;gap:14px;position:sticky;top:80px;align-self:start;}
/* When the smart-sticky script is active it drives the position via transform. */
.sidebar.jp-smart{position:relative;top:0;will-change:transform;}
.widget{}
.widget-listing{
  background:#cfe7d8;border-radius:6px;padding:26px 24px;text-align:center;
}
.widget-listing .house{width:54px;height:54px;margin:0 auto 14px;color:#caa14a;}
.widget-listing h3{font-size:19px;font-weight:700;color:#1f2937;margin-bottom:10px;line-height:1.3;}
.widget-listing p{font-size:13.5px;color:#4b5563;margin:0 0 18px;}
.btn-listing{
  display:inline-block;background:var(--green);color:#fff;font-weight:700;font-size:13px;
  letter-spacing:.5px;padding:13px 26px;border-radius:4px;text-transform:uppercase;
}
.btn-listing:hover{background:var(--green-dark);}

.widget-whatsapp{
  border:3px solid #22c55e;border-radius:4px;padding:22px;text-align:center;background:#fff;
  display:flex;align-items:center;justify-content:center;gap:14px;
}
.widget-whatsapp .wa-text{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:26px;line-height:1.1;color:#111;}
.widget-whatsapp .wa-icon{width:54px;height:54px;color:#25d366;flex:none;}

.widget-subscribe{background:#fff;}
.widget-subscribe p{font-size:13.5px;color:#4b5563;margin:0 0 12px;}
.widget-subscribe .jpsub-msg{font-size:13px;font-weight:600;margin:0 0 10px;padding:8px 12px;border-radius:5px;}
.widget-subscribe .jpsub-ok{background:#e7f7ed;color:#15803d;}
.widget-subscribe .jpsub-exists{background:#eef2ff;color:#3730a3;}
.widget-subscribe .jpsub-invalid,.widget-subscribe .jpsub-error{background:#fdecec;color:#b91c1c;}
.widget-subscribe .sub-row{display:flex;gap:0;}
.widget-subscribe input[type=email]{
  flex:1;border:1px solid #d8dbe0;border-right:0;padding:11px 12px;font-size:13px;outline:0;border-radius:3px 0 0 3px;
}
.widget-subscribe button{
  border:0;background:var(--orange);color:#fff;font-weight:700;padding:0 18px;cursor:pointer;border-radius:0 3px 3px 0;
}
.widget-subscribe button:hover{background:#e2491a;}

.widget-buynow{
  display:block;text-align:center;background:linear-gradient(90deg,#2563eb,#3b82f6);
  color:#fff;font-weight:800;letter-spacing:1px;padding:14px;border-radius:4px;text-transform:uppercase;
}
.widget-buynow:hover{filter:brightness(1.05);}

/* --- Sidebar: Trending today --- */
.widget-heading{
  text-align:center;font-size:21px;font-weight:700;color:#1f2937;
  padding-bottom:16px;margin:0 0 22px;border-bottom:1px solid #e5e7eb;
}
.trend-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 18px;}
.trend-card .trend-thumb{position:relative;aspect-ratio:1/1;border-radius:3px;overflow:hidden;background:#e5e7eb;margin-bottom:10px;}
.trend-card .trend-thumb img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;}
/* Company-logo tiles: show the whole logo on white, not cropped like a photo. */
.trend-card .trend-thumb--logo{background:#fff;}
.trend-card .trend-thumb--logo img{object-fit:contain;}
.trend-card .trend-badge{
  position:absolute;top:0;right:0;background:#f5853f;color:#fff;font-weight:700;font-size:13px;
  padding:6px 9px;border-radius:0 0 0 4px;
}
.trend-card .trend-meta{display:flex;align-items:center;gap:6px;color:#9aa1ab;font-size:12px;margin-bottom:6px;}
.trend-card .trend-meta svg{width:13px;height:13px;}
.trend-card h5{font-size:15px;font-weight:700;line-height:1.32;color:#1f2937;margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.trend-card h5 a:hover{color:var(--purple);}
.trend-card .trend-badge-urgent{background:#dc2626;text-transform:uppercase;letter-spacing:.4px;font-size:11px;}
.btn-view-urgent{
  display:block;text-align:center;margin-top:22px;padding:12px 18px;border-radius:6px;
  background:#dc2626;color:#fff;font-weight:700;font-size:14px;letter-spacing:.3px;
  transition:background .15s;
}
.btn-view-urgent:hover{background:#b91c1c;color:#fff;}
.trend-empty{color:#9aa1ab;font-size:14px;text-align:center;margin:0;}

/* --- Sidebar: Categories --- */
.cat-list{display:flex;flex-direction:column;gap:8px;}
.cat-row{
  position:relative;display:flex;align-items:center;justify-content:space-between;
  height:62px;padding:0 16px;border-radius:3px;overflow:hidden;
  background:#374151;color:#fff;
}
.cat-row .cat-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;}
/* Photo tiles: an even, reference-style darkening so white text always reads. */
.cat-row::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.46) 55%,rgba(0,0,0,.38) 100%);}
/* Gradient-fallback tiles: lighter overlay so the colour + icon stay visible. */
.cat-row:not(.has-photo)::after{
  background:linear-gradient(90deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,.24) 55%,rgba(0,0,0,.1) 100%);}
.cat-row .cat-name{text-shadow:0 1px 3px rgba(0,0,0,.5);}
.cat-row .cat-name{position:relative;z-index:2;font-weight:700;font-size:16px;letter-spacing:.3px;}
.cat-row .cat-count{
  position:relative;z-index:2;min-width:30px;text-align:center;color:#fff;font-weight:700;font-size:13px;
  padding:4px 8px;border-radius:2px;
}

/* ===================== From Our Blog ===================== */
.blog-section{padding:54px 0 6px;border-top:1px solid #eef0f2;margin-top:40px;}
.blog-head{text-align:center;font-size:30px;font-weight:800;color:#1f2937;margin:0 0 40px;}
.blog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;}
.blog-card .blog-thumb{aspect-ratio:1/1;border-radius:4px;overflow:hidden;margin-bottom:18px;background:#e5e7eb;display:block;}
.blog-card .blog-thumb img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;}
.blog-card h3{font-family:'Poppins','Segoe UI',system-ui,Arial,sans-serif;font-size:17px;line-height:1.2;font-weight:700;color:#1f2937;margin:0 0 14px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.blog-card h3 a:hover{color:var(--purple);}

/* ===================== Single blog detail ===================== */
.blog-detail{max-width:1200px;margin:0 auto;}
.bd-title{font-size:30px;line-height:1.25;font-weight:800;color:#1f2937;margin:0 0 24px;}
.bd-layout{display:grid;grid-template-columns:1fr 320px;gap:38px;align-items:start;}
.bd-featured{border-radius:6px;overflow:hidden;margin:0 0 18px;background:#e5e7eb;}
.bd-featured img{width:100%;height:auto;display:block;}
.bd-meta{display:flex;flex-wrap:wrap;gap:18px;color:#9aa1ab;font-size:13px;margin:0 0 20px;}
.bd-meta .bd-mi{display:flex;align-items:center;gap:6px;}
.bd-meta svg{width:14px;height:14px;}
.bd-content{font-size:16px;line-height:1.75;color:#374151;}
.bd-content p{margin:0 0 18px;}
.bd-content h2,.bd-content h3{color:#1f2937;margin:26px 0 12px;}
.bd-content img{border-radius:6px;margin:12px 0;}
.bd-content ul,.bd-content ol{margin:0 0 18px;padding-left:22px;list-style:revert;}
.bd-content li{margin:6px 0;}
.bd-content a{color:var(--purple);text-decoration:underline;}
.bd-tags{margin-top:26px;font-size:14px;color:#4b5563;}
.bd-tags .lbl{font-weight:700;color:#1f2937;margin-right:6px;}
.bd-tags a{color:var(--purple);}
.bd-share{margin-top:16px;display:flex;align-items:center;gap:10px;}
.bd-share .lbl{font-weight:700;color:#1f2937;}
.bd-share .sh{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;}
.bd-share .sh svg{width:16px;height:16px;}
.bd-share .wa{background:#25d366;}
.bd-share .fb{background:#1877f2;}
.bd-share .tw{background:#111;}
.bd-share .sh:hover{filter:brightness(1.08);}

.bd-related{position:sticky;top:80px;}
.bd-related-title{font-size:18px;font-weight:700;color:#1f2937;padding-bottom:12px;margin:0 0 16px;border-bottom:1px solid #e5e7eb;}
.bd-related-list{display:flex;flex-direction:column;gap:16px;}
.bd-related-item{display:flex;gap:12px;}
.bd-rel-thumb{width:82px;height:62px;flex:none;border-radius:4px;overflow:hidden;background:#e5e7eb;}
.bd-rel-thumb img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;}
.bd-rel-body h4{font-size:14px;font-weight:600;line-height:1.35;color:#1f2937;margin:0 0 5px;}
.bd-rel-body h4 a:hover{color:var(--purple);}
.bd-rel-date{font-size:12px;color:#9aa1ab;}
.bd-related-empty{color:#9aa1ab;font-size:14px;margin:0;}
@media(max-width:900px){.bd-layout{grid-template-columns:1fr;}.bd-related{position:static;}}
.blog-card .blog-meta{color:#9aa1ab;font-size:14px;}
.blog-card .blog-meta b{color:#6b7280;font-weight:600;}
.blog-viewall{text-align:center;margin:42px 0 6px;}
.blog-viewall a{
  display:inline-block;font-weight:700;font-size:13px;letter-spacing:1.2px;text-transform:uppercase;
  color:#1f2937;border-bottom:2px solid #1f2937;padding-bottom:4px;
}
.blog-viewall a:hover{color:var(--purple);border-color:var(--purple);}
@media(max-width:1100px){.blog-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:600px){.blog-grid{grid-template-columns:repeat(2,1fr);gap:16px;}.blog-card h3{font-size:15px;line-height:1.28;margin:0 0 8px;}}

/* ===================== Single job — listing-detail layout ===================== */
.job-detail{max-width:1180px;margin:0 auto;}

/* Breadcrumb */
.jd-breadcrumb{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  font-size:13px;color:#9aa1ab;margin-bottom:22px;}
.jd-crumbs a:hover{color:#0d5b73;}
.jd-crumbs .sep{margin:0 7px;color:#cbd2da;}
.jd-crumbs .current{color:#6b7280;}
.jd-back{color:#0d5b73;font-weight:600;}
.jd-back:hover{color:#0a4557;}

/* Header */
.jd-head{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
  padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid #eef0f2;}
.jd-head-main{flex:1;min-width:260px;}
.jd-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;}
.jd-badge{display:inline-block;background:#eef0f2;color:#4b5563;font-size:11px;font-weight:700;
  letter-spacing:.6px;text-transform:uppercase;padding:6px 12px;border-radius:0;}
.jd-badge.is-primary{background:#e6f2f6;color:#0d5b73;}
.jd-badge.is-accent{background:#e8f0ff;color:#2563eb;}
.jd-title{font-family:'Poppins','Segoe UI',sans-serif;font-size:34px;line-height:1.18;font-weight:800;
  color:#111827;margin:0 0 12px;}
.jd-location{display:inline-flex;align-items:center;gap:7px;color:#16a34a;font-weight:600;font-size:15px;}
.jd-cta{display:flex;flex-direction:column;gap:10px;align-items:stretch;margin-top:20px;padding-top:20px;border-top:1px solid #f0f1f4;}
.jd-apply{display:inline-block;text-align:center;background:#0d5b73;color:#fff;font-weight:700;font-size:16px;letter-spacing:.3px;
  padding:16px 34px;border-radius:0;box-shadow:0 6px 18px rgba(13,91,115,.28);white-space:nowrap;}
.jd-apply:hover{background:#0a4557;color:#fff;}
.jd-download{display:inline-flex;align-items:center;justify-content:center;gap:9px;
  background:#16a34a;color:#fff;font-weight:700;font-size:15px;letter-spacing:.3px;
  padding:14px 26px;border-radius:0;box-shadow:0 6px 18px rgba(22,163,74,.28);}
.jd-download svg{flex:0 0 auto;}
.jd-download:hover{background:#15803d;color:#fff;}
.jd-email{display:inline-flex;align-items:center;justify-content:center;gap:9px;
  background:#b45309;color:#fff;font-weight:700;font-size:15px;letter-spacing:.3px;
  padding:14px 26px;border-radius:0;box-shadow:0 6px 18px rgba(180,83,9,.28);}
.jd-email svg{flex:0 0 auto;}
.jd-email:hover{background:#92400e;color:#fff;}

/* Body */
.jd-body{display:grid;grid-template-columns:1fr 380px;gap:34px;align-items:start;margin-bottom:10px;}
.jd-gallery img{width:100%;height:auto;display:block;border-radius:0;}
.jd-main-col{min-width:0;}
.jd-main-col .jd-overview{margin-top:26px;}
.jd-noimg{background:#f1f3f5;border:1px dashed #d8dbe0;border-radius:0;padding:80px 20px;text-align:center;color:#9aa1ab;}

/* Key details card */
.jd-key{background:#fff;border:1px solid #edeef1;border-top:4px solid #caa14a;border-radius:0;
  padding:8px 26px 24px;box-shadow:0 10px 30px rgba(17,24,39,.06);
  position:sticky;top:80px;}
.jd-key-title{font-family:'Poppins',sans-serif;font-size:20px;font-weight:800;color:#111827;margin:18px 0 6px;}
.jd-row{display:flex;flex-direction:column;gap:4px;padding:14px 0;border-bottom:1px solid #f0f1f4;}
.jd-label{font-size:11px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;color:#9aa1ab;}
.jd-value{font-size:15px;font-weight:700;color:#1f2937;}
.jd-value-teal{color:#0d5b73;}
.jd-share{padding:16px 0 4px;border-bottom:1px solid #f0f1f4;}
.jd-share-btns{display:flex;gap:10px;margin-top:8px;}
.jd-share-btns .sh{width:42px;height:42px;border-radius:0;display:flex;align-items:center;justify-content:center;color:#fff;}
.jd-share-btns .sh svg{width:18px;height:18px;}
.jd-share-btns .wa{background:#25d366;}
.jd-share-btns .fb{background:#1877f2;}
.jd-share-btns .sh:hover{filter:brightness(1.08);}
.jd-follow{padding:16px 0 4px;border-bottom:1px solid #f0f1f4;}
.jd-follow-btn{display:flex;align-items:center;gap:10px;margin-top:10px;padding:11px 14px;
  color:#fff;font-weight:700;font-size:14px;line-height:1.2;}
.jd-follow-btn svg{width:20px;height:20px;flex:0 0 auto;}
.jd-follow-btn.wa{background:#25d366;}
.jd-follow-btn.fb{background:#1877f2;}
.jd-follow-btn:hover{filter:brightness(1.08);color:#fff;}
.jd-browse{display:inline-block;margin-top:18px;color:#0d5b73;font-weight:700;}
.jd-browse:hover{color:#0a4557;}

/* Overview + content */
.jd-section-title{font-family:'Poppins',sans-serif;text-transform:uppercase;letter-spacing:2px;
  font-size:16px;font-weight:800;color:#6b7280;margin:0 0 20px;padding-top:34px;}
.jd-content{font-size:16px;line-height:1.8;color:#374151;}
.jd-content p{margin:0 0 16px;}
.jd-content h2{font-size:24px;margin:28px 0 12px;color:#111827;}
.jd-content h3{font-size:19px;margin:22px 0 10px;color:#1f2937;}
.jd-content ul,.jd-content ol{margin:0 0 18px;padding-left:24px;}
.jd-content li{margin-bottom:7px;}
.jd-content img{max-width:100%;height:auto;border-radius:0;}
.jd-content a{color:#0d5b73;text-decoration:underline;}
.jd-content blockquote{margin:0 0 18px;padding:14px 20px;border-left:4px solid #0d5b73;background:#f2f8fa;color:#4b5563;border-radius:0 6px 6px 0;}

.related{margin-top:24px;padding-top:26px;border-top:1px solid #eef0f2;}
.related-head{font-size:22px;color:#111827;margin:0 0 20px;}
.related-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
.related-card .rc-thumb{display:block;aspect-ratio:1/1;border-radius:5px;overflow:hidden;background:#e5e7eb;margin-bottom:10px;}
.related-card .rc-thumb img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;}
.related-card .rc-date{display:flex;align-items:center;gap:6px;color:#9aa1ab;font-size:12px;margin-bottom:5px;}
.related-card .rc-date svg{width:13px;height:13px;}
.related-card h3{font-size:15px;font-weight:700;line-height:1.3;color:#1f2937;margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.related-card h3 a:hover{color:var(--purple);}
.single-comments{margin-top:36px;}
@media(max-width:960px){
  .jd-body{grid-template-columns:1fr;}
  .jd-key{position:static;}
  .related-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:760px){
  .jd-title{font-size:26px;}
  .jd-cta{width:100%;}
  .jd-apply{width:100%;text-align:center;}
  .related-grid{grid-template-columns:repeat(2,1fr);gap:16px;}
}

/* ===================== Single / Page ===================== */
.entry{max-width:820px;}
.entry h1.entry-title{font-size:32px;line-height:1.2;margin-bottom:12px;color:#111827;}
.entry .entry-meta{color:#9aa1ab;font-size:13px;margin-bottom:20px;}
.entry .entry-content{font-size:16px;line-height:1.7;color:#374151;}
.entry .entry-content p{margin:0 0 18px;}
.entry .featured{border-radius:8px;overflow:hidden;margin-bottom:22px;}
.page-title{font-size:26px;margin-bottom:24px;padding-bottom:12px;border-bottom:2px solid var(--line);}
/* Filtered views (category / search / urgent): title + reset button share one row. */
.page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin-bottom:24px;padding-bottom:12px;border-bottom:2px solid var(--line);}
.page-head .page-title{margin:0;padding:0;border:0;}
.filter-reset{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;
  background:#fff;border:1px solid #e3e6ea;color:#4b5563;font-size:13px;font-weight:600;
  padding:8px 14px;border-radius:6px;white-space:nowrap;}
.filter-reset svg{width:14px;height:14px;}
.filter-reset:hover{border-color:var(--purple);color:var(--purple);background:#faf9ff;}
.entry .entry-content h2{font-size:23px;margin:28px 0 12px;color:#111827;}
.entry .entry-content h3{font-size:18px;margin:22px 0 8px;color:#1f2937;}
.entry .entry-content ul{margin:0 0 18px;padding-left:22px;list-style:disc;}
.entry .entry-content li{margin-bottom:8px;}
.entry .entry-content a{color:var(--purple);text-decoration:underline;}
.jp-contact-form input,.jp-contact-form textarea{
  width:100%;max-width:520px;border:1px solid #d8dbe0;border-radius:5px;padding:12px 14px;font-size:15px;font-family:inherit;color:#374151;outline:0;
}
.jp-contact-form input:focus,.jp-contact-form textarea:focus{border-color:var(--purple);}
.jp-contact-form .btn-listing{border:0;cursor:pointer;}

/* ===================== Footer ===================== */
.site-footer{background:#fff;color:#1f2937;padding:48px 0 0;}
.footer-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:48px;}
.footer-cols .fheading{
  font-size:22px;font-weight:700;color:#1f2937;
  padding-bottom:16px;margin-bottom:24px;border-bottom:1px solid #e5e7eb;
}
.footer-cols .flinks li{margin-bottom:0;}
.footer-cols .flinks a{
  display:block;color:#1f2937;font-weight:600;font-size:15px;padding:8px 0;
}
.footer-cols .flinks a:hover{color:var(--purple);}

/* footer badges */
.fbadge{
  display:inline-block;color:#fff;font-size:11px;font-weight:700;
  letter-spacing:.5px;text-transform:uppercase;padding:4px 9px;border-radius:2px;margin-right:6px;
}
.fbadge-celebrity{background:#e8276c;}
.fbadge-blue{background:#2962ff;}

/* Don't miss */
.fmiss-item{margin-bottom:26px;}
.fmiss-item h5{font-size:17px;font-weight:700;line-height:1.35;color:#1f2937;margin:10px 0 8px;}
.fmiss-item h5 a:hover{color:var(--purple);}
.fmeta-date{display:flex;align-items:center;gap:6px;color:#9aa1ab;font-size:13px;}
.fsponsored{display:flex;align-items:center;gap:7px;color:#9aa1ab;font-size:14px;}
.fsponsored svg{width:15px;height:15px;}

/* Trending */
.ftrend-img{position:relative;border-radius:3px;overflow:hidden;margin-bottom:14px;background:#e5e7eb;}
.ftrend-img img{width:100%;height:200px;object-fit:cover;object-position:top;display:block;}
.ftrend-img .fbadge{position:absolute;left:12px;bottom:12px;margin:0;}
.ftrend-title{
  font-family:'Poppins','Segoe UI',system-ui,Arial,sans-serif;font-size:22px;font-weight:700;
  line-height:1.3;color:#1f2937;margin:10px 0 8px;
}
.ftrend-title a:hover{color:var(--purple);}
.ftrend .byline{font-size:13.5px;color:#9aa1ab;font-style:normal;}

/* Footer bottom bar */
.footer-bottom{
  border-top:1px solid #eceef1;margin-top:46px;padding:26px 0;background:#fff;
}
.fbottom-row{display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap;}
.powered{color:#9aa1ab;font-size:14px;}
.powered b{font-family:Georgia,'Times New Roman',serif;color:#374151;font-weight:700;}
.fsubscribe{display:flex;flex:0 1 420px;}
.fsubscribe input[type=email]{
  flex:1;border:1px solid #d8dbe0;border-right:0;padding:14px 16px;font-size:14px;outline:0;border-radius:4px 0 0 4px;color:#374151;
}
.fsubscribe input[type=email]::placeholder{color:#9aa1ab;}
.fsubscribe button{
  border:0;background:#2979ff;color:#fff;font-weight:700;font-size:13px;letter-spacing:1px;
  text-transform:uppercase;padding:0 28px;cursor:pointer;border-radius:0 4px 4px 0;
}
.fsubscribe button:hover{background:#1565d8;}
.fsocials{display:flex;align-items:center;gap:12px;}
.fsocials a{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;}
.fsocials svg{width:18px;height:18px;}
.fs-fb{background:#3b5998;}
.fs-ig{background:#2b2f4a;}
.fs-tt{background:#010101;}
.fs-in{background:#0a66c2;}
.fs-wa{background:#25d366;}
.fsocials a:hover{filter:brightness(1.1);}

@media(max-width:1024px){
  .footer-cols{grid-template-columns:repeat(2,1fr);gap:34px;}
}
@media(max-width:640px){
  .footer-cols{grid-template-columns:1fr;}
  .fbottom-row{justify-content:center;text-align:center;}
  .fsubscribe{flex:1 1 100%;}
}

/* ===================== Post a Job form ===================== */
.post-job{max-width:640px;margin:0 auto;text-align:center;}
.post-job .entry-title{text-align:center;}
.post-job .post-job-intro{color:#6b7280;font-size:15px;margin:0 0 24px;}
.post-job-form{max-width:640px;margin:0 auto;text-align:left;}
.pj-field{margin-bottom:18px;}
.pj-field label{display:block;font-size:14px;font-weight:600;color:#374151;margin-bottom:6px;}
.pj-field label .req{color:#dc2626;}
.pj-field input,.pj-field textarea{
  width:100%;border:1px solid #d8dbe0;border-radius:7px;padding:12px 14px;
  font-size:15px;font-family:inherit;background:#fff;color:#1f2937;
  transition:border-color .15s,box-shadow .15s;
}
.pj-field input:focus,.pj-field textarea:focus{
  border-color:#6d28d9;box-shadow:0 0 0 3px rgba(109,40,217,.15);outline:0;
}
.pj-field textarea{resize:vertical;}
.pj-submit{
  background:#16a34a;color:#fff;border:0;border-radius:7px;
  padding:12px 26px;font-size:15px;font-weight:700;letter-spacing:.4px;cursor:pointer;
  box-shadow:0 3px 10px rgba(22,163,74,.35);transition:background .15s,transform .05s;
}
.pj-submit:hover{background:#15803d;}
.pj-submit:active{transform:translateY(1px);}
.pj-notice{border-radius:8px;padding:14px 16px;margin:0 0 22px;font-size:15px;border-left:4px solid;}
.pj-notice ul{margin:0;padding-left:18px;}
.pj-success{background:#ecfdf5;border-left-color:#16a34a;color:#166534;}
.pj-error{background:#fef2f2;border-left-color:#dc2626;color:#991b1b;}

/* ===================== Responsive ===================== */
@media(max-width:1024px){
  .layout{grid-template-columns:1fr;}
  .sidebar{flex-direction:row;flex-wrap:wrap;position:static;}
  .sidebar .widget{flex:1 1 260px;}
}
@media(max-width:760px){
  .container{padding:0 16px;}
  .topbar .tb-headline,.topbar .tb-trending-label{display:none;}
  .graybar .gb-left,.linksbar .lb-left{display:none;}
  .linksbar .container{justify-content:space-between;}
  .linksbar .lb-right{gap:12px;}
  .lb-socials{display:flex;gap:10px;}
  .brandbar .container{flex-wrap:wrap;gap:16px;padding-top:14px;padding-bottom:14px;}
  .brand{flex:1 1 auto;min-width:0;}
  .brand .brand-logo,.brand .custom-logo{height:36px;}
  .search-toggle{display:flex;order:1;}
  .socials{display:none;}
  .searchwrap{order:3;flex:1 1 100%;display:none;}
  .brandbar.search-open .searchwrap{display:block;}
  /* Tighter vertical spacing between job cards on mobile. */
  .posts-grid{grid-template-columns:1fr;gap:10px;}
  .card{padding-bottom:10px;}
  /* The rainbow category bar previously wrapped to an uneven 3 lines. The
     .nav-short label (below) shortens the one long name that mattered most; this
     smaller font/padding does the rest, so the 7 categories reliably settle into
     a clean 2 rows instead of 3. */
  .mainnav a{font-size:14px;padding:7px 9px;letter-spacing:.1px;}
  .mainnav .nav-full{display:none;}
  .mainnav .nav-short{display:inline;}

  /* Give the card text column more breathing room on phones. */
  .card .thumb{width:128px;height:128px;}
  .card h3{font-size:16px;}
  /* Keep the company name at its original size on mobile (bigger only on desktop). */
  .card .byline{font-size:12px;margin-bottom:0;}
  /* On mobile the Read More / views / Share row sits flush under the company name
     (no gap); desktop keeps its bottom pin. */
  .card-actions{margin-top:0;padding-top:0;gap:12px;}
  /* Make the action row — especially the Read More button — a bit smaller on mobile. */
  .btn-readmore{font-size:10px;padding:6px 12px;letter-spacing:.3px;}
  .card .meta-row{font-size:11px;gap:12px;}
  .card .meta-row svg{width:13px;height:13px;}
  /* Hide the description on job cards in mobile view. */
  .card .excerpt{display:none;}

  /* Keep the URGENT badge on the image (same as desktop). Only the category badge
     moves to the top-right of the card, level with the date line. */
  .card{position:relative;}
  .card .thumb{position:static;}
  .card .card-badges{display:contents;}
  .card .urgent-badge{top:8px;left:8px;}
  .card .cat-badge{
    position:absolute;top:0;right:8px;left:auto;bottom:auto;z-index:2;opacity:.7;
  }
  /* Keep the date/title/company clear of the top-right category badge. */
  .card .meta-date,.card h3,.card .byline{padding-right:74px;}
}

@media(max-width:480px){
  .container{padding:0 14px;}
  .brandbar .container{gap:14px;}
  .searchform{height:48px;}
  .searchform button{padding:0 20px;}
  .lb-socials{gap:8px;}
  .linksbar .lb-right{gap:10px;}
  /* Slightly tighter pills on the narrowest phones, so the 2-row wrap from the
     760px query above still holds instead of spilling to a 3rd row. */
  .mainnav a{font-size:13px;padding:6px 7px;letter-spacing:0;}

  /* Compact card so the title, Read More and Share never overflow. */
  .card{gap:12px;}
  .card .thumb{width:100px;height:100px;}
  .card h3{font-size:15px;line-height:1.25;}
  .card-actions{flex-wrap:wrap;gap:8px 12px;margin-top:0;}
  .btn-readmore{padding:6px 12px;}
  .card .meta-row{justify-content:flex-start;gap:12px;}
}
