/*
Theme Name: Apka8 Jobs
Theme URI: https://apka8.com/
Author: Apka8
Description: Responsive job notices and career editorial theme with search, job metadata, reading tools and configurable Google Ad Manager placements.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apka8-jobs
*/
:root {
  --ink: #142b32;
  --muted: #52656c;
  --teal: #086b57;
  --mint: #eaf5ec;
  --line: #dde5e1;
  --paper: #fff;
  --wash: #f7f9f6;
  --gold: #e7b647;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font:
    16px/1.7 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow-wrap: anywhere;
}
a {
  color: var(--teal);
  text-underline-offset: 3px;
}
a:hover {
  color: #034c3d;
}
img {
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid #b27612;
  outline-offset: 4px;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.narrow {
  max-width: 840px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(32px, 4.4vw, 58px);
}
h2 {
  font-size: clamp(23px, 2.5vw, 30px);
}
h3 {
  font-size: 21px;
}
p {
  margin: 0 0 18px;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 850;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  transform: rotate(-7deg);
  font-size: 23px;
}
.custom-logo {
  max-height: 60px;
  width: auto;
}
.tagline {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.site-header nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.site-header nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.site-header nav .sub-menu {
  display: block;
  padding: 6px 0 0 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9px;
  cursor: pointer;
  line-height: 1.4;
}
.button:hover {
  background: #054e40;
  color: #fff;
}
.button.secondary {
  background: #fff;
  color: var(--teal);
}
.button.secondary:hover {
  background: var(--mint);
}
.button.small {
  font-size: 14px;
  padding: 10px 14px;
}
.hero {
  padding: 55px 0 38px;
  background: linear-gradient(120deg, #eaf4ed, #f5f5e7);
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  max-width: 760px;
  font-weight: 850;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 14px;
}
.dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 8px;
}
.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}
.job-search {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.1fr auto;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 24px #183d2710;
  align-items: end;
  margin-top: 25px;
}
.job-search label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 6px;
}
.job-search input {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #b7c7be;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}
.popular {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 20px;
  font-size: 13px;
}
.popular > span {
  color: var(--muted);
}
.popular a {
  text-decoration: none;
  font-weight: 650;
}
.section-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 20px;
}
.section-heading h2,
.section-heading .eyebrow {
  margin-bottom: 5px;
}
.section-heading > a {
  font-size: 14px;
  font-weight: 700;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}
.category-tile {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s;
}
.category-tile:hover {
  border-color: var(--teal);
}
.category-icon {
  font-size: 23px;
  color: var(--teal);
}
.category-tile > span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  margin-bottom: 45px;
  align-items: start;
}
.layout > section,
.layout > div {
  min-width: 0;
}
.job-card,
.panel,
.article-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 18px;
}
.job-card h2 {
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.job-card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.job-card h2 a:hover {
  text-decoration: underline;
}
.job-card > p {
  font-size: 14px;
  color: var(--muted);
}
.card-top,
.card-bottom {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.card-top .eyebrow {
  margin-bottom: 12px;
}
.card-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.text-link {
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips span {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 5px;
  color: var(--muted);
}
.sidebar {
  padding-top: 34px;
}
.sidebar h2 {
  font-size: 20px;
}
.sidebar p,
.sidebar li {
  font-size: 14px;
}
.accent-panel {
  background: var(--mint);
}
.category-list {
  padding: 0;
  list-style: none;
}
.category-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.category-list a {
  text-decoration: none;
  font-weight: 650;
}
.category-list .children {
  padding-left: 15px;
}
.reading-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.reading-list li + li {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 13px;
}
.reading-list a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
}
.reading-list span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.page-heading {
  padding: 36px 0 26px;
}
.page-heading h1 {
  font-size: 38px;
}
.breadcrumb {
  font-size: 12px;
  margin: 26px 0;
}
.article-heading {
  max-width: 920px;
  margin-bottom: 28px;
}
.article-heading h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
}
.article-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.article-panel {
  padding: 30px;
}
.article-panel .entry-content {
  line-height: 1.85;
}
.entry-content > *:first-child {
  margin-top: 0;
}
.entry-content h2,
.entry-content h3 {
  margin: 32px 0 16px;
  scroll-margin-top: 30px;
}
.entry-content h2 {
  font-size: 28px;
}
.entry-content h3 {
  font-size: 23px;
}
.entry-content li {
  margin-bottom: 10px;
}
.entry-content table {
  display: block;
  overflow: auto;
  max-width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.entry-content td,
.entry-content th {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: start;
}
.entry-content blockquote {
  border-left: 4px solid var(--teal);
  margin: 24px 0;
  padding: 14px 22px;
  background: var(--mint);
}
.featured-image {
  border-radius: 8px;
  margin-bottom: 25px;
  width: 100%;
}
.job-summary {
  background: var(--mint);
  border: 1px solid #c7ddce;
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 25px;
}
.job-summary h2 {
  font-size: 24px;
}
.job-summary dl {
  margin: 0 0 20px;
}
.job-summary dl > div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #cee0d2;
  font-size: 14px;
}
.job-summary dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}
.job-summary dt {
  color: var(--muted);
}
.actions,
.article-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.article-tools {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 22px;
}
.article-tools button {
  font-size: 13px;
}
.article-tools [role="status"] {
  font-size: 12px;
  width: 100%;
}
.checklist {
  margin: 28px 0;
  background: #fafbf6;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 8px;
}
.checklist h2 {
  font-size: 23px;
}
.checklist p {
  font-size: 14px;
  color: var(--muted);
}
.checklist label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 14px;
}
.checklist input {
  margin-top: 7px;
  accent-color: var(--teal);
}
.toc {
  background: #f5f8f5;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 26px;
}
.toc h2 {
  font-size: 18px;
}
.toc ol {
  padding-left: 22px;
  margin-bottom: 0;
}
.toc li {
  font-size: 14px;
  padding: 3px 0;
}
.toc a {
  text-decoration: none;
}
.expired {
  font-size: 12px;
  color: #8a3f20;
  background: #fff2e9;
  padding: 5px 9px;
  border-radius: 5px;
}
.tag-links {
  font-size: 13px;
  margin-top: 20px;
}
.nav-links {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-block: 24px;
}
.nav-links > div {
  flex: 1;
  min-width: 180px;
}
.nav-next {
  text-align: right;
}
.pagination,
.navigation.pagination {
  margin: 25px 0;
}
.page-numbers {
  padding: 8px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-block;
  margin: 3px;
  text-decoration: none;
}
.page-numbers.current {
  background: var(--teal);
  color: #fff;
}
.page-main {
  padding-block: 40px;
}
.site-footer {
  background: #102e28;
  color: #cddbd5;
  padding-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.site-footer h2 {
  font-size: 24px;
  color: #fff;
}
.site-footer a {
  color: #ddede5;
}
.site-footer nav ul {
  list-style: none;
  padding: 0;
}
.site-footer li {
  margin-bottom: 10px;
}
.fine {
  font-size: 12px;
  max-width: 620px;
}
.copyright {
  border-top: 1px solid #39524c;
  margin-top: 25px;
  padding-block: 20px;
  font-size: 12px;
}
.ad-placement {
  margin: 30px 0;
  text-align: center;
  background: #fafbf9;
  border: 1px solid #e4e9e4;
  border-radius: 4px;
  padding: 9px 0 0;
  overflow: hidden;
}
.ad-placement > span {
  display: block;
  color: #6a756f;
  font-size: 9px;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.ad-placement > div {
  display: grid;
  place-items: center;
  min-height: 250px;
}
.ad-sidebar {
  display: none;
}
.ad-sidebar > div {
  min-height: 250px;
}
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--teal);
  width: 0;
  z-index: 9999;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: fixed;
  left: 15px;
  top: 15px;
  background: #fff;
  padding: 12px;
  z-index: 10000;
}
.comment-list {
  padding-left: 20px;
}
.comment-body {
  margin-bottom: 20px;
}
.comment-form input:not([type="checkbox"]),
.comment-form textarea {
  width: 100%;
  border: 1px solid #a8bab1;
  border-radius: 7px;
  padding: 10px;
}
.comment-form label {
  display: block;
}
.comment-form .submit {
  background: var(--teal);
  color: #fff;
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
.alignwide {
  max-width: 100%;
}
.wp-caption {
  max-width: 100%;
}
.wp-caption-text,
.gallery-caption {
  font-size: 13px;
}
.alignleft {
  float: left;
  margin: 0 20px 15px 0;
}
.alignright {
  float: right;
  margin: 0 0 15px 20px;
}
.aligncenter {
  display: block;
  margin-inline: auto;
}
.bypostauthor {
  border-left: 2px solid var(--teal);
}
.sticky {
  border-color: var(--teal);
}
@media (min-width: 1050px) {
  .ad-sidebar {
    display: block;
  }
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-top: 0;
  }
  .job-search {
    grid-template-columns: 1fr 1fr;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .site-header nav {
    order: 3;
    width: 100%;
  }
  .job-search > div:first-child {
    grid-column: 1/-1;
  }
  .job-search button {
    align-self: end;
  }
  .sidebar .ad-sidebar {
    display: none;
  }
}
@media (max-width: 540px) {
  .container {
    width: calc(100% - 28px);
  }
  .hero {
    padding-top: 32px;
  }
  .hero-copy {
    font-size: 16px;
  }
  .job-search {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .job-search > div:first-child {
    grid-column: auto;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .article-panel,
  .panel,
  .job-card {
    padding: 20px;
  }
  .category-tile {
    padding: 15px;
  }
  .header-inner {
    gap: 15px;
  }
  .site-header nav ul {
    gap: 15px;
  }
  .tagline {
    max-width: 220px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .job-summary {
    padding: 16px;
  }
  .job-summary dl > div {
    display: block;
  }
  .job-summary dd {
    text-align: left;
  }
  .article-heading h1 {
    font-size: 30px;
  }
  .entry-content h2 {
    font-size: 25px;
  }
  .ad-placement {
    border-inline: 0;
  }
  .nav-next {
    text-align: left;
  }
  .section-heading > a {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .ad-placement,
  .article-tools,
  .related,
  .toc,
  #reading-progress {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .container {
    width: 100%;
  }
  .article-panel {
    border: 0;
  }
  body {
    background: #fff;
  }
}
