/*
Theme Name: GovtJobCircular BD
Theme URI: https://bdgovtjob.net/
Author: GovtJobCircular BD
Author URI: https://bdgovtjob.net/
Description: A fast, lightweight, eco-friendly WordPress theme for Bangladesh government & private job circular portals (bdgovtjob.net style). Bilingual (Bangla + English), mobile-first and fully responsive, built for Hostinger shared hosting. Features a live stats strip, search with category chips, a job-circular feed with deadline countdown, and a "Job Circular" custom post type.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: govtjobcircular-bd
Tags: blog, news, custom-logo, custom-menu, featured-images, right-sidebar, translation-ready, threaded-comments
*/

/* =========================================================
   GovtJobCircular BD — job portal design tokens
   Blue primary (matches bdgovtjob.net), with status accents.
   Lean CSS, one web font, no framework.
   ========================================================= */
:root {
  --gjc-green: #006a4e;          /* PRIMARY — Bangladesh green */
  --gjc-green-dark: #00533d;
  --gjc-green-light: #e3f2ec;
  --gjc-red: #f42a41;            /* accent / deadline — Bangladesh red */
  --gjc-hot: #f97316;           /* "hot job" badge */
  --gjc-new: #f59e0b;           /* "new" badge */
  --gjc-ok: #16a34a;            /* success / days-left */
  --gjc-ink: #0f1b2d;
  --gjc-muted: #64748b;
  --gjc-line: #e6eaf0;
  --gjc-bg: #f1f5fb;
  --gjc-card: #ffffff;
  --gjc-radius: 14px;
  --gjc-radius-sm: 10px;
  --gjc-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --gjc-maxw: 1180px;
  --gjc-font: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--gjc-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gjc-ink);
  background: var(--gjc-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gjc-green); text-decoration: none; }
a:hover { color: var(--gjc-green-dark); }
h1,h2,h3,h4 { line-height: 1.3; color: var(--gjc-ink); margin: 0 0 .5em; }

/* Layout --------------------------------------------------- */
.gjc-container { width: 100%; max-width: var(--gjc-maxw); margin: 0 auto; padding: 0 16px; }
.gjc-layout { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 22px 0 46px; }
@media (min-width: 992px) { .gjc-layout { grid-template-columns: minmax(0,1fr) 340px; } }

.gjc-skip { position: absolute; left: -9999px; top: 0; background: var(--gjc-green); color:#fff; padding: 10px 16px; z-index: 1000; }
.gjc-skip:focus { left: 8px; top: 8px; }

/* Top accent + header -------------------------------------- */
.gjc-topaccent { height: 4px; background: linear-gradient(90deg, var(--gjc-green), var(--gjc-red)); }
.gjc-topbar { background: var(--gjc-green-dark); color: #dbe7ff; font-size: 13px; }
.gjc-topbar .gjc-container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; flex-wrap: wrap; gap: 8px; }
.gjc-topbar a { color: #fff; }

.gjc-header { background: #fff; border-bottom: 1px solid var(--gjc-line); position: sticky; top: 0; z-index: 90; }
.gjc-header .gjc-container { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; }
.gjc-brand { display: flex; align-items: center; gap: 10px; }
.gjc-brand img { max-height: 46px; width: auto; }
.gjc-brand .gjc-logo-text { display: flex; flex-direction: column; line-height: 1.12; }
.gjc-brand .gjc-site-title { font-size: 22px; font-weight: 800; color: var(--gjc-green); }
.gjc-brand .gjc-site-title b { color: var(--gjc-red); -webkit-text-fill-color: var(--gjc-red); }
.gjc-brand .gjc-tagline { font-size: 11.5px; color: var(--gjc-muted); font-weight: 500; }
.gjc-header-actions { display: flex; align-items: center; gap: 6px; }
.gjc-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gjc-green-light); color: var(--gjc-green); border: 0; cursor: pointer; font-size: 18px; }
.gjc-iconbtn:hover { background: #dbe7ff; }
.gjc-nav-toggle { display: inline-flex; align-items: center; gap: 7px; background: var(--gjc-green); color:#fff; border: 0; padding: 9px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }

/* Nav ------------------------------------------------------ */
.gjc-mainnav { background: var(--gjc-green); }
.gjc-mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.gjc-mainnav li { position: relative; }
.gjc-mainnav a { display: block; padding: 12px 16px; color: #eaf1fe; font-weight: 600; font-size: 14.5px; }
.gjc-mainnav a:hover, .gjc-mainnav .current-menu-item > a { background: rgba(255,255,255,.14); color: #fff; }
.gjc-mainnav ul ul { position: absolute; left: 0; top: 100%; background: var(--gjc-green-dark); min-width: 210px; display: none; box-shadow: var(--gjc-shadow); z-index: 50; flex-direction: column; }
.gjc-mainnav li:hover > ul { display: flex; }
@media (max-width: 767px) {
  .gjc-mainnav ul { display: none; flex-direction: column; }
  .gjc-mainnav.is-open ul { display: flex; }
  .gjc-mainnav ul ul { position: static; display: flex; }
}
@media (min-width: 768px) { .gjc-nav-toggle { display: none; } }

/* Live stats strip ----------------------------------------- */
.gjc-stats { background: #fff; border: 1px solid var(--gjc-line); border-radius: var(--gjc-radius); box-shadow: var(--gjc-shadow); padding: 14px; margin-top: 22px; }
.gjc-stats-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gjc-muted); margin-bottom: 12px; }
.gjc-live { display: inline-flex; align-items: center; gap: 6px; background: #fee2e2; color: var(--gjc-red); padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.gjc-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gjc-red); animation: gjc-pulse 1.4s infinite; }
@keyframes gjc-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.gjc-stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
@media (min-width: 560px) { .gjc-stats-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 900px) { .gjc-stats-grid { grid-template-columns: repeat(6,1fr); } }
.gjc-stat { text-align: center; background: var(--gjc-green-light); border-radius: var(--gjc-radius-sm); padding: 12px 8px; }
.gjc-stat b { display: block; font-size: 22px; font-weight: 800; color: var(--gjc-green-dark); }
.gjc-stat span { font-size: 12px; color: var(--gjc-muted); }

/* Search panel --------------------------------------------- */
.gjc-searchpanel { background: #fff; border: 1px solid var(--gjc-line); border-radius: var(--gjc-radius); box-shadow: var(--gjc-shadow); padding: 18px; margin-top: 18px; }
.gjc-search { display: flex; gap: 0; }
.gjc-search input[type="search"] { flex: 1; border: 2px solid var(--gjc-line); border-right: 0; border-radius: 12px 0 0 12px; padding: 13px 14px; font: inherit; }
.gjc-search input[type="search"]:focus { outline: none; border-color: var(--gjc-green); }
.gjc-search button { border: 0; background: var(--gjc-green); color: #fff; padding: 0 22px; border-radius: 0 12px 12px 0; cursor: pointer; font: inherit; font-weight: 700; }
.gjc-search button:hover { background: var(--gjc-green-dark); }
.gjc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.gjc-chips .lbl { font-size: 13px; color: var(--gjc-muted); font-weight: 600; }
.gjc-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--gjc-line); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--gjc-ink); }
.gjc-chip:hover { border-color: var(--gjc-green); color: var(--gjc-green); background: var(--gjc-green-light); }
.gjc-chip--count { padding: 6px 12px; }
.gjc-chip--count b { color: var(--gjc-green); }

/* Section heading ------------------------------------------ */
.gjc-section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; }
.gjc-section-head h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.gjc-section-head .gjc-more { font-size: 13.5px; font-weight: 700; color: var(--gjc-green); }

/* Job feed (the main circular list) ------------------------ */
.gjc-feed { display: flex; flex-direction: column; gap: 14px; }
.gjc-job { background: var(--gjc-card); border: 1px solid var(--gjc-line); border-radius: var(--gjc-radius); box-shadow: var(--gjc-shadow); padding: 16px; display: flex; gap: 14px; transition: transform .14s ease, box-shadow .14s ease; }
.gjc-job:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,24,40,.12); border-color: #cdd9ec; }
.gjc-job__logo { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--gjc-green-light); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.gjc-job__logo img { width: 100%; height: 100%; object-fit: cover; }
.gjc-job__main { flex: 1; min-width: 0; }
.gjc-job__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.gjc-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.gjc-badge--cat { background: var(--gjc-green-light); color: var(--gjc-green-dark); }
.gjc-badge--hot { background: #fff1e6; color: var(--gjc-hot); }
.gjc-badge--new { background: #fef3c7; color: #b45309; }
.gjc-badge--exp { background: #f1f5f9; color: var(--gjc-muted); }
.gjc-job__title { font-size: 16.5px; font-weight: 700; margin: 0 0 10px; }
.gjc-job__title a { color: var(--gjc-ink); }
.gjc-job__title a:hover { color: var(--gjc-green); }
.gjc-job__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 6px 0; border-top: 1px dashed var(--gjc-line); }
.gjc-job__row .k { color: var(--gjc-muted); display: inline-flex; align-items: center; gap: 6px; }
.gjc-job__row .v { font-weight: 700; text-align: right; }
.gjc-days { color: var(--gjc-ok); font-weight: 700; }
.gjc-days--soon { color: var(--gjc-red); }
.gjc-job__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.gjc-job__pub { font-size: 12.5px; color: var(--gjc-muted); }
.gjc-job__pub b { color: var(--gjc-ink); font-weight: 700; }
.gjc-bookmark { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gjc-line); background: #fff; color: var(--gjc-muted); cursor: pointer; font-size: 16px; }
.gjc-bookmark:hover { color: var(--gjc-red); border-color: var(--gjc-red); }

/* Category grid -------------------------------------------- */
.gjc-catgrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (min-width: 560px) { .gjc-catgrid { grid-template-columns: repeat(3,1fr); } }
.gjc-catcard { background: #fff; border: 1px solid var(--gjc-line); border-radius: var(--gjc-radius); box-shadow: var(--gjc-shadow); padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.gjc-catcard:hover { border-color: var(--gjc-green); transform: translateY(-2px); }
.gjc-catcard .ic { font-size: 28px; }
.gjc-catcard .nm { font-weight: 700; color: var(--gjc-ink); font-size: 14.5px; }
.gjc-catcard .ct { font-size: 12.5px; color: var(--gjc-green); font-weight: 600; }

/* Sidebar + list widgets ----------------------------------- */
.gjc-widget { background: var(--gjc-card); border: 1px solid var(--gjc-line); border-radius: var(--gjc-radius); box-shadow: var(--gjc-shadow); padding: 16px; margin-bottom: 20px; }
.gjc-widget .widget-title, .gjc-widget > h3 { font-size: 15.5px; color: var(--gjc-ink); display: flex; align-items: center; gap: 7px; border-bottom: 2px solid var(--gjc-green-light); padding-bottom: 9px; margin: 0 0 12px; }
.gjc-widget ul { list-style: none; margin: 0; padding: 0; }
.gjc-widget li { padding: 8px 0; border-bottom: 1px dashed var(--gjc-line); font-size: 14px; }
.gjc-widget li:last-child { border-bottom: 0; }
.gjc-listitem { display: flex; gap: 10px; align-items: flex-start; }
.gjc-listitem .rank { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; background: var(--gjc-green-light); color: var(--gjc-green-dark); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.gjc-listitem .meta { font-size: 12px; color: var(--gjc-muted); display: block; margin-top: 2px; }
.gjc-tag-today { background: var(--gjc-red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }

/* Single / post page --------------------------------------- */
.gjc-article { background: var(--gjc-card); border: 1px solid var(--gjc-line); border-radius: var(--gjc-radius); box-shadow: var(--gjc-shadow); padding: 24px; }
.gjc-article h1.gjc-entry-title { font-size: 25px; color: var(--gjc-green-dark); }
.gjc-entry-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--gjc-muted); font-size: 14px; margin-bottom: 16px; }
.gjc-entry-content { font-size: 17px; }
.gjc-entry-content img { border-radius: 8px; margin: 16px 0; }
.gjc-entry-content a { text-decoration: underline; }
.gjc-jobfacts { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.gjc-jobfacts th, .gjc-jobfacts td { text-align: left; padding: 10px 12px; border: 1px solid var(--gjc-line); }
.gjc-jobfacts th { background: var(--gjc-green-light); color: var(--gjc-green-dark); width: 40%; font-weight: 700; }
.gjc-apply-wrap { margin: 22px 0; padding: 18px; background: var(--gjc-green-light); border-radius: var(--gjc-radius); text-align: center; }
.gjc-btn { display: inline-block; background: var(--gjc-green); color: #fff !important; padding: 13px 28px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none !important; border: 0; cursor: pointer; }
.gjc-btn:hover { background: var(--gjc-green-dark); }
.gjc-btn--red { background: var(--gjc-red); }
.gjc-btn--red:hover { background: #be123c; }

/* Pagination ----------------------------------------------- */
.gjc-pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 26px 0; }
.gjc-pagination a, .gjc-pagination span { padding: 9px 14px; border: 1px solid var(--gjc-line); border-radius: 9px; background: #fff; font-weight: 700; font-size: 14px; }
.gjc-pagination .current { background: var(--gjc-green); color: #fff; border-color: var(--gjc-green); }

/* Footer --------------------------------------------------- */
.gjc-footer { background: var(--gjc-ink); color: #c4d0e0; margin-top: 36px; }
.gjc-footer .gjc-container { padding-top: 34px; padding-bottom: 20px; }
.gjc-footer-cols { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 768px) { .gjc-footer-cols { grid-template-columns: 2fr 1fr 1fr; } }
.gjc-footer h3 { color: #fff; font-size: 16px; margin-bottom: 13px; }
.gjc-footer a { color: #c4d0e0; }
.gjc-footer a:hover { color: #fff; }
.gjc-footer ul { list-style: none; margin: 0; padding: 0; }
.gjc-footer li { padding: 5px 0; }
.gjc-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding: 16px 0; text-align: center; font-size: 13px; color: #8da1bb; }
.gjc-eco { display: inline-flex; align-items: center; gap: 6px; color: #4ade80; font-size: 12px; }

/* Brand logo image */
.gjc-brand-img { max-height: 46px; width: auto; display: block; }

/* Breadcrumbs */
.gjc-breadcrumbs { background: #fff; border-bottom: 1px solid var(--gjc-line); font-size: 13px; }
.gjc-breadcrumbs .gjc-container { padding-top: 9px; padding-bottom: 9px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gjc-breadcrumbs a { color: var(--gjc-muted); }
.gjc-breadcrumbs a:hover { color: var(--gjc-green); }
.gjc-breadcrumbs .sep { color: var(--gjc-muted); }
.gjc-breadcrumbs .current { color: var(--gjc-ink); font-weight: 600; }

/* Ad zones */
.gjc-ad { margin: 16px 0; text-align: center; overflow: hidden; }
.gjc-ad__label { display: block; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--gjc-muted); margin-bottom: 4px; }
.gjc-ad--header, .gjc-ad--footer { margin: 16px auto; }
.gjc-ad ins, .gjc-ad img { margin: 0 auto; }

/* Utilities */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.gjc-mt0 { margin-top: 0; }
.gjc-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
