/*
Theme Name: JobsGhr Pro Theme
Theme URI: https://jobsghr.com
Author: Malik Adnan
Description: Custom WordPress job portal theme for JobsGhr.com with Pagelayer support, Customizer icon/sidebar controls, working job search, and recommended jobs from other categories at the end of posts, categories, and pages.
Version: 1.3.0
License: GNU General Public License v2 or later
Text Domain: jobsghr
*/

: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;
}

.topbar {
  background: #07172c;
  color: #d5dfeb;
  padding: 9px 0;
  font-size: 12px;
}

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: 4px solid #ffb15c;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  overflow: hidden;
  flex: none;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand h2,
.brand p.site-title-text {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  color: #ffffff;
}

.brand small {
  font-size: 11px;
  color: #cbd8e7;
  display: block;
}

nav.main-nav {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  font-size: 13px;
}

nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
}

nav.main-nav a:hover {
  color: #ffb15c;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(circle at 14% 18%, #ff9b3d30 0, transparent 25%),
              radial-gradient(circle at 88% 82%, #4f91c733 0, transparent 28%),
              linear-gradient(120deg, #07172c 0%, var(--navy) 48%, #24527a 100%);
  color: #ffffff;
  text-align: center;
  padding: 49px 0 45px;
  border-bottom: 4px solid #ff9b3d;
}

.hero:before,
.hero:after {
  content: '';
  position: absolute;
  z-index: -1;
  border: 1px solid #ffffff18;
  border-radius: 50%;
  pointer-events: none;
}

.hero:before {
  width: 330px;
  height: 330px;
  left: -115px;
  top: -205px;
  box-shadow: 0 0 0 28px #ffffff08, 0 0 0 58px #ffffff06;
}

.hero:after {
  width: 260px;
  height: 260px;
  right: -80px;
  bottom: -190px;
  box-shadow: 0 0 0 25px #ffffff08, 0 0 0 52px #ffffff05;
}

.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;
}

form.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;
}

form.search input,
form.search select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px;
  color: #26384d;
  background: transparent;
  font-size: 13px;
}

form.search select option {
  color: #26384d;
  background: #ffffff;
}

form.search button {
  background: var(--orange);
  color: #ffffff;
  border: 0;
  border-radius: 7px;
  padding: 0 24px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

form.search button:hover {
  background: #e66f00;
}

main.site-main {
  padding: 27px 0 40px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: 18px;
  align-items: start;
}

.layout.no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.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;
  flex-wrap: wrap;
}

.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 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 112px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0;
  background: linear-gradient(145deg, #fff 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-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.job > div {
  min-width: 0;
}

.job h3 {
  line-height: 1.35;
  font-size: 13px;
  color: #173252;
  margin: 0 0 5px;
}

.job p {
  line-height: 1.45;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 7px;
}

.tag {
  display: inline-block;
  background: #f0f4f8;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  margin-right: 4px;
  color: #52647a;
}

.show-ads {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 6px;
  min-width: 86px;
  box-shadow: 0 2px 5px #ff7f0028;
  transition: .2s;
  align-self: center;
}

.show-ads: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;
}

/* Sidebar calendar */
.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;
}

/* Single-column category list in sidebar */
.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;
  overflow: hidden;
}

.side-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tight Spacing & Borderless Shapes for City, Commission, Government, Industry, Newspaper, Organization, Testing Service */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 2px;
  justify-items: center;
}

.badge-grid-org {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 2px;
  justify-items: center;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 1px 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 4px;
  transition: .2s;
  width: 100%;
  max-width: 74px;
}

.badge-item:hover {
  transform: translateY(-2px);
}

.badge-shape {
  width: 60px;
  height: 60px;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: .2s;
  overflow: hidden;
}

.badge-shape img.custom-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 0;
  box-shadow: none;
}

.badge-item:hover .badge-shape {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.badge-emoji {
  font-size: 22px;
  line-height: 1;
}

.badge-abbr {
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .2px;
  color: #0b1f3a;
  white-space: pre-line;
}

.badge-sub {
  font-size: 7px;
  font-weight: 700;
  color: #475569;
  margin-top: 1px;
}

.badge-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .2px;
  text-transform: uppercase;
  color: #1d6fa5;
  line-height: 1.1;
  word-break: break-word;
}

.badge-item:hover .badge-label {
  color: var(--orange);
}

.badge-city .badge-shape {
  background: transparent;
  color: #111827;
}

.badge-comm .badge-shape {
  background: transparent;
  color: #14532d;
}

.badge-comm .badge-label {
  color: #15803d;
}

.badge-gov .badge-shape {
  background: transparent;
  color: #166534;
}

.badge-gov .badge-label {
  color: #15803d;
}

.badge-ind .badge-shape {
  background: transparent;
  color: #0f172a;
}

.badge-ind .badge-abbr {
  font-size: 10px;
}

.badge-news .badge-shape {
  background: transparent;
  color: #0f172a;
}

.badge-news .badge-label {
  color: #0f766e;
}

.badge-org .badge-shape {
  background: transparent;
  color: #1e293b;
}

.badge-org .badge-label {
  color: #1d6fa5;
}

.badge-test .badge-shape {
  background: transparent;
  color: #0f172a;
}

.badge-test .badge-label {
  color: #0284c7;
}

/* Social cards */
.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: 20px;
  font-weight: bold;
  flex: none;
  overflow: hidden;
}

.social-symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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;
}

.social-button {
  display: block;
  text-align: center;
  border-radius: 7px;
  padding: 9px 12px;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
}

.facebook-btn {
  background: #2164b4;
}

.whatsapp-btn {
  background: #138b5a;
}

/* Single Job, Category, Search & Page End Sections */
.single-job-article .job-featured-box {
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  text-align: center;
}

.single-job-article .job-featured-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

.single-job-content {
  line-height: 1.75;
  color: #243449;
  font-size: 14px;
}

.related-block {
  margin-top: 18px;
}

.related-block h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--navy);
}

.pagination {
  margin-top: 18px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-size: 12px;
  color: var(--navy);
}

.pagination .page-numbers.current {
  background: var(--orange);
  color: #ffffff;
  border-color: var(--orange);
  font-weight: bold;
}

/* Footer */
footer.site-footer {
  background: #07172c;
  color: #bdcad9;
  padding: 30px 0 18px;
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 25px;
}

footer.site-footer h3 {
  color: #ffffff;
  font-size: 14px;
  margin: 0 0 13px;
}

footer.site-footer p {
  line-height: 1.7;
  margin: 0 0 8px;
}

footer.site-footer a {
  display: block;
  color: #c6d3e1;
  margin: 0 0 9px;
}

footer.site-footer a:hover {
  color: #ffb15c;
}

footer.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid #ffffff20;
  margin-top: 22px;
  padding-top: 15px;
  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;
  }
  form.search {
    flex-wrap: wrap;
  }
  form.search input,
  form.search select {
    flex-basis: 40%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .job-grid {
    grid-template-columns: 1fr;
  }
  .badge-grid,
  .badge-grid-org {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .wrap {
    padding: 0 12px;
  }
  .badge-grid,
  .badge-grid-org {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }
  .hero h1 {
    font-size: 25px;
  }
  .job {
    align-items: center;
  }
  .show-ads {
    font-size: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
