/*
Theme Name: JobsGhr
Theme URI: https://jobsghr.com/
Author: JobsGhr Team
Author URI: https://jobsghr.com/
Description: Custom WordPress theme for JobsGhr.com featuring Latest Jobs cards with Show Ad button, full taxonomy badge grids with Media Library & Customizer support, Jobs by Date calendar, customizable sidebar cards, and clean footer spacing.
Version: 2.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobsghr
Tags: jobs, job-board, responsive-layout, right-sidebar, custom-menu
*/

:root {
  --navy: #0b1f3a;
  --blue: #183b60;
  --orange: #ff7f00;
  --bg: #f3f6fa;
  --line: #e5eaf1;
  --muted: #718096;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: #243449;
  font: 14px Arial, sans-serif;
}
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1240px; margin: auto; padding: 0 18px; }

header.site-header { background: var(--navy); color: #ffffff; }
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  border: 0;
  outline: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  overflow: hidden;
  flex: none;
  padding: 0;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand h2, .brand h1.site-title-brand { margin: 0; font-size: 23px; font-weight: 800; color: #ffffff; }
.brand small { font-size: 11px; color: #cbd8e7; display: block; }
nav.main-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
nav.main-nav a:hover { color: #ffb15c; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #061324 0%, var(--navy) 46%, #1d466b 100%);
  color: #ffffff;
  text-align: center;
  padding: 50px 0 46px;
  border-bottom: 4px solid var(--orange);
}
.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, #ffffff08 1px, transparent 1px),
                    linear-gradient(to bottom, #ffffff08 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-accent-left {
  position: absolute;
  z-index: -1;
  width: 170px;
  height: 170px;
  left: -48px;
  top: 24px;
  transform: rotate(45deg);
  border: 2px solid #ffb15c38;
  background: linear-gradient(135deg, #ff7f001f 0%, transparent 75%);
  pointer-events: none;
}
.hero-accent-right {
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  right: -56px;
  bottom: 18px;
  transform: rotate(35deg);
  border: 2px solid #7ab8f538;
  background: linear-gradient(135deg, #4f91c724 0%, transparent 75%);
  pointer-events: none;
}
.hero h1 {
  font-size: 34px;
  letter-spacing: .2px;
  margin: 7px 0 10px;
  text-shadow: 0 3px 14px #00000035;
}
.hero p { color: #d5e0ed; margin: 0 0 20px; }
.search {
  max-width: 850px;
  margin: 22px auto 0;
  background: #ffffff;
  padding: 7px;
  border: 1px solid #ffffff80;
  border-radius: 12px;
  display: flex;
  gap: 7px;
  box-shadow: 0 12px 35px #00000025;
}
.search input, .search select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px;
  color: #26384d;
  background: transparent;
  font-size: 14px;
}
.search button {
  background: var(--orange);
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  min-height: 44px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

main.site-main { padding: 27px 0 56px; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 290px);
  gap: 18px;
  align-items: start;
}
.main-column, .sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}
.sidebar .panel { padding: 13px; }
.sidebar .panel-head { margin-bottom: 10px; }
.sidebar .panel h2 { font-size: 15px; }

.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 15px #1a35510a;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.panel h2 { font-size: 17px; color: var(--navy); margin: 0; }
.count {
  background: #fff0e2;
  color: #b95b00;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: bold;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.job {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 122px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafd 100%);
  box-shadow: 0 3px 12px #1732520a;
  transition: .2s;
}
.job:hover {
  border-color: var(--orange);
  background: #fffaf5;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px #17325212;
}
.job-body { flex: 1; min-width: 0; }
.job h3 {
  font-size: 13.5px;
  line-height: 1.35;
  color: #173252;
  margin: 0 0 7px;
  word-wrap: break-word;
}
.job-meta-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  line-height: 1.4;
  color: #334155;
}
.job-meta-row1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.job-publish { color: #243449; font-weight: 600; }
.job-sep { color: #94a3b8; font-weight: bold; }
.job-paper { color: var(--blue); font-weight: 700; }
.online-apply-badge {
  display: inline-flex;
  align-items: center;
  background: #e6f6ec;
  color: #137a3f;
  border: 1px solid #9ad9b4;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  margin-top: 6px;
}
.job-footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: auto;
  width: 100%;
}
.show-ad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 6px;
  min-width: 82px;
  box-shadow: 0 2px 5px #ff7f0028;
  transition: .2s;
}
.show-ad:hover { background: #e66f00; transform: translateY(-1px); }

.panel-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #ffffff;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
  transition: .2s;
}
.view-all-btn:hover { background: var(--orange); }
.note { font-size: 10px; color: #8793a2; margin-top: 10px; }

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.calendar-head button {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 5px;
  padding: 5px 9px;
  cursor: pointer;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  text-align: center;
}
.calendar span, .calendar button {
  padding: 6px 1px;
  font-size: 10px;
  border-radius: 5px;
}
.calendar .dow { color: #8491a2; font-weight: bold; }
.calendar button {
  background: #f1f4f8;
  color: #253b55;
  border: 0;
  cursor: pointer;
}
.calendar button.selected { background: var(--navy); color: #ffffff; }
.calendar button.hasjobs { background: #fff0e2; color: #b95b00; font-weight: bold; }

.sidebar-categories { display: flex; flex-direction: column; gap: 6px; }
.side-category {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1.3;
  color: #243449;
  background: #ffffff;
  transition: .2s;
}
.side-category:hover {
  border-color: var(--orange);
  background: #fffaf5;
  transform: translateX(2px);
}
.side-icon {
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 6px;
  background: #edf2f8;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 14px;
}

/* Badge Grids: Larger Images/Icons + Single-Line Larger Labels */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: center;
}
.badge-grid-org {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px 6px;
  justify-items: center;
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 2px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 6px;
  transition: .2s;
  width: 100%;
  max-width: 96px;
}
.badge-item:hover {
  transform: translateY(-2px);
}
.badge-shape {
  width: 58px;
  height: 58px;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: .2s;
  overflow: hidden;
}
.badge-emoji {
  font-size: 28px;
  line-height: 1;
}
.badge-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.badge-abbr {
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .2px;
  color: #0b1f3a;
  white-space: pre-line;
}
.badge-sub {
  font-size: 8px;
  font-weight: 700;
  color: #475569;
  margin-top: 1px;
  white-space: nowrap;
}
.badge-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .15px;
  text-transform: uppercase;
  color: #1d6fa5;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.badge-item:hover .badge-label {
  color: var(--orange);
}

.badge-comm .badge-label { color: #15803d; }
.badge-gov .badge-label { color: #15803d; }
.badge-news .badge-label { color: #0f766e; }
.badge-org .badge-label { color: #1d6fa5; }
.badge-test .badge-label { color: #0284c7; }

.social-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
  padding: 15px;
}
.social-title { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.social-symbol {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 19px;
  font-weight: bold;
  flex: none;
}
.social-title h3 { font-size: 14px; color: var(--navy); margin: 0 0 3px; }
.social-title p { font-size: 10px; color: var(--muted); margin: 0; }

.facebook-icon { background: #2164b4; }
.whatsapp-icon { background: #138b5a; }
.email-icon { background: #0f5c8a; }
.playstore-icon { background: #1b6ca8; }
.share-icon-badge { background: var(--orange); }

.social-button {
  display: block;
  text-align: center;
  border-radius: 7px;
  padding: 9px 12px;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  transition: .2s;
}
.facebook-btn { background: #2164b4; }
.facebook-btn:hover { background: #184e8f; }
.whatsapp-btn { background: #138b5a; }
.whatsapp-btn:hover { background: #0e6f47; }

.email-sub-form { display: flex; flex-direction: column; gap: 8px; }
.email-sub-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 11px;
  color: #243449;
  background: #f8fafd;
  outline: 0;
}
.email-sub-form input[type="email"]:focus {
  border-color: var(--orange);
  background: #ffffff;
}
.subscribe-btn { width: 100%; border: 0; background: var(--orange); cursor: pointer; }
.subscribe-btn:hover { background: #e66f00; }

.playstore-btn { background: #0b1f3a; }
.playstore-btn:hover { background: var(--orange); }

.share-circles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  flex-wrap: wrap;
}
.circle-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 3px 8px #0000001a;
  transition: .2s;
}
.circle-social-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.circle-fb { background: #1877f2; }
.circle-wa { background: #138b5a; }
.circle-x  { background: #0f172a; }
.circle-in { background: #0a66c2; }
.circle-pi { background: #e60023; }

footer.site-footer {
  background: #07172c;
  color: #bdcad9;
  padding: 26px 0 18px;
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 18px;
}
footer.site-footer h3 {
  color: #ffffff;
  font-size: 13.5px;
  margin: 0 0 10px;
}
footer.site-footer p {
  line-height: 1.55;
  margin: 0 0 6px;
}
footer.site-footer a {
  display: block;
  color: #c6d3e1;
  margin: 0 0 6px;
  line-height: 1.35;
}
footer.site-footer a:hover { color: #ffb15c; }
.footer-bottom {
  border-top: 1px solid #ffffff20;
  margin-top: 16px;
  padding-top: 12px;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .badge-grid, .badge-grid-org { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(220px, 260px); gap: 14px; }
  .badge-grid, .badge-grid-org { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .head { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .job { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 12px; }
  .hero { padding: 34px 0 30px; }
  .hero h1 { font-size: 24px; }
  .search {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  .search input, .search select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafd;
  }
  .search button {
    width: 100%;
    padding: 12px 16px;
    min-height: 46px;
    font-size: 15px;
  }
  .job-grid { grid-template-columns: 1fr; }
  .badge-grid, .badge-grid-org { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 4px; }
  .badge-item { max-width: 100%; }
  .badge-shape { width: 54px; height: 54px; }
  .badge-img { width: 40px; height: 40px; }
  .badge-emoji { font-size: 26px; }
  .badge-label { font-size: 11px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
