/*
Theme Name: Ajirachap
Theme URI: https://ajirachap.com/
Description: Standalone WordPress theme for Ajirachap: compact job cards, deadline badges, category tiles, closing-soon list, sidebar, apply box and saved posts. Reads existing posts; no database changes.
Author: Ajirachap
Version: 1.1.0
Text Domain: ajirachap
*/

:root {
  --ajc-ink: #17283d;
  --ajc-navy: #0e2a4d;
  --ajc-navy-deep: #081c36;
  --ajc-blue: #2468a2;
  --ajc-teal: #138b8b;
  --ajc-gold: #f28c28;
  --ajc-paper: #f5f7fa;
  --ajc-white: #fff;
  --ajc-muted: #637184;
  --ajc-line: #dce4eb;
  --ajc-soft-blue: #eaf2f8;
  --ajc-radius: 14px;
  --ajc-content-width: 1160px;
}

html {
  scroll-behavior: smooth;
}

body,
body .site-body {
  background: var(--ajc-paper);
  color: var(--ajc-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body *,
body *::before,
body *::after {
  box-sizing: border-box;
}

a {
  color: var(--ajc-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ajc-teal);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ajc-gold);
  outline-offset: 3px;
}

.ajc-skip-link {
  position: absolute;
  z-index: 10000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ajc-navy-deep);
  color: var(--ajc-white);
  padding: 10px 14px;
}

.ajc-skip-link:focus {
  transform: translateY(0);
}

.ajc-site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--ajc-line);
  background: var(--ajc-white);
}

.ajc-header-inner,
.ajc-content-shell,
.ajc-footer-inner {
  width: min(calc(100% - 40px), var(--ajc-content-width));
  margin-inline: auto;
}

.ajc-header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ajc-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ajc-navy);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-decoration: none;
}

.ajc-brand:hover {
  color: var(--ajc-navy);
}

.ajc-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  background: var(--ajc-navy);
  color: var(--ajc-white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.ajc-brand-name {
  display: grid;
  gap: 2px;
}

.ajc-brand-name small {
  color: var(--ajc-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ajc-brand img {
  display: block;
  max-width: 230px;
  max-height: 54px;
  width: auto;
  height: auto;
}

.ajc-menu-toggle {
  display: none;
  border: 1px solid var(--ajc-line);
  border-radius: 9px;
  background: var(--ajc-white);
  color: var(--ajc-navy);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
}

.ajc-primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ajc-primary-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: 9px;
  color: #35455a;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.ajc-primary-nav a:hover,
.ajc-primary-nav .current-menu-item > a {
  background: var(--ajc-soft-blue);
  color: var(--ajc-navy);
}

.ajc-saved-nav {
  display: inline-flex;
  flex: none;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--ajc-line);
  border-radius: 9px;
  color: var(--ajc-navy);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.ajc-saved-nav:hover {
  border-color: var(--ajc-teal);
  color: var(--ajc-teal);
}

.ajc-saved-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--ajc-soft-blue);
  color: var(--ajc-navy);
  font-size: 10px;
}

.ajc-saved-count[hidden] {
  display: none;
}

.ajc-header-search {
  display: flex;
  width: min(100% - 40px, var(--ajc-content-width));
  margin: 0 auto;
  padding: 0 0 16px;
}

.ajc-header-search form {
  display: flex;
  width: min(100%, 460px);
  gap: 8px;
}

.ajc-search-input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--ajc-line);
  border-radius: 9px;
  background: var(--ajc-white);
  color: var(--ajc-ink);
  font: inherit;
  padding: 10px 13px;
}

.ajc-button,
.ajc-header-search button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ajc-navy);
  border-radius: 9px;
  background: var(--ajc-navy);
  color: var(--ajc-white);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    transform 150ms ease;
}

.ajc-button:hover,
.ajc-header-search button:hover {
  transform: translateY(-1px);
  background: var(--ajc-teal);
  border-color: var(--ajc-teal);
  color: var(--ajc-white);
}

.ajc-main {
  min-height: 65vh;
  padding: 30px 0 68px;
}

.ajc-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9e5ef;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 93% 9%, rgb(19 139 139 / 12%), transparent 33%),
    linear-gradient(135deg, #fff 0%, #eff5f9 100%);
  padding: clamp(30px, 6vw, 66px);
}

.ajc-hero::after {
  position: absolute;
  right: -65px;
  bottom: -120px;
  width: 310px;
  height: 310px;
  border: 1px solid rgb(16 45 79 / 10%);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgb(16 45 79 / 3%),
    0 0 0 48px rgb(19 139 139 / 4%);
  content: "";
  pointer-events: none;
}

.ajc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ajc-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ajc-eyebrow::before {
  width: 22px;
  height: 2px;
  background: var(--ajc-gold);
  content: "";
}

.ajc-hero h1 {
  max-width: 760px;
  margin: 15px 0 13px;
  color: var(--ajc-navy-deep);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.ajc-hero p {
  max-width: 680px;
  margin: 0;
  color: #52647a;
  font-size: clamp(16px, 2vw, 19px);
}

.ajc-hero-search {
  display: flex;
  width: min(100%, 680px);
  gap: 9px;
  margin-top: 27px;
}

.ajc-hero-search .ajc-search-input {
  min-height: 52px;
  border-color: #c8d6e2;
  font-size: 15px;
  padding-inline: 16px;
}

.ajc-hero-search .ajc-button {
  min-height: 52px;
  padding-inline: 21px;
}

.ajc-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 19px;
}

.ajc-quick-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid #d6e1e9;
  border-radius: 999px;
  background: rgb(255 255 255 / 75%);
  color: #33475c;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background-color 150ms ease;
}

.ajc-quick-links a:hover {
  border-color: var(--ajc-teal);
  background: var(--ajc-white);
  color: var(--ajc-teal);
}

.ajc-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 28px;
  margin-top: 34px;
}

.ajc-section {
  margin-top: 34px;
}

.ajc-section:first-child {
  margin-top: 0;
}

.ajc-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}

.ajc-section-heading h2 {
  margin: 0;
  color: var(--ajc-navy);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.ajc-section-heading p {
  margin: 5px 0 0;
  color: var(--ajc-muted);
  font-size: 14px;
}

.ajc-text-link {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ajc-post-list {
  display: grid;
  gap: 14px;
}

.ajc-post-card {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--ajc-line);
  border-radius: var(--ajc-radius);
  background: var(--ajc-white);
  box-shadow: 0 4px 18px rgb(18 39 62 / 3%);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.ajc-post-card:hover {
  transform: translateY(-2px);
  border-color: #c2d3df;
  box-shadow: 0 12px 28px rgb(18 39 62 / 8%);
}

.ajc-post-media {
  min-height: 172px;
  background:
    linear-gradient(135deg, rgb(16 45 79 / 8%), rgb(19 139 139 / 10%)),
    var(--ajc-soft-blue);
}

.ajc-post-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 172px;
  object-fit: cover;
}

.ajc-post-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

.ajc-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  color: var(--ajc-muted);
  font-size: 12px;
}

.ajc-category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ajc-soft-blue);
  color: var(--ajc-navy);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
}

.ajc-post-card h3 {
  margin: 9px 0 7px;
  color: var(--ajc-navy);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.32;
}

.ajc-post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.ajc-post-card h3 a:hover {
  color: var(--ajc-teal);
}

.ajc-post-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #5b6978;
  font-size: 14px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ajc-post-facts {
  display: grid;
  gap: 6px 16px;
  margin: 14px 0 0;
  border-top: 1px solid var(--ajc-line);
  padding-top: 13px;
  color: #495a6d;
  font-size: 13px;
}

.ajc-post-facts--compact {
  margin-top: 11px;
  padding-top: 10px;
  font-size: 12px;
}

.ajc-post-facts > div {
  display: grid;
  grid-template-columns: minmax(100px, 145px) minmax(0, 1fr);
  gap: 8px;
}

.ajc-post-facts dt,
.ajc-post-facts dd {
  margin: 0;
}

.ajc-post-facts dt,
.ajc-post-facts strong {
  color: var(--ajc-navy);
  font-weight: 800;
}

.ajc-post-facts--compact > span {
  display: block;
}

.ajc-deadline--past,
.ajc-deadline--past strong {
  color: #9a3a35;
}

.ajc-deadline--today,
.ajc-deadline--today strong {
  color: #8b5d09;
}

.ajc-post-action {
  margin-top: auto;
  padding-top: 15px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ajc-post-actions {
  position: relative;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}

.ajc-post-actions .ajc-post-action {
  margin-top: 0;
  padding-top: 0;
}

.ajc-save-button,
.ajc-copy-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--ajc-line);
  border-radius: 8px;
  background: var(--ajc-white);
  color: var(--ajc-navy);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 11px;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.ajc-save-button:hover,
.ajc-copy-link:hover,
.ajc-save-button.is-saved {
  border-color: var(--ajc-teal);
  background: #f1f9f8;
  color: var(--ajc-teal);
}

.ajc-save-status,
.ajc-copy-status {
  color: var(--ajc-muted);
  font-size: 11px;
}

.ajc-saved-page {
  padding-top: 34px;
}

.ajc-saved-page-heading {
  margin-bottom: 24px;
}

.ajc-saved-page-heading h1 {
  margin: 6px 0 8px;
  color: var(--ajc-navy);
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.ajc-saved-page-heading p {
  margin: 0;
  color: var(--ajc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ajc-saved-list {
  display: grid;
  gap: 14px;
}

.ajc-saved-empty {
  margin: 0;
  border: 1px dashed var(--ajc-line);
  border-radius: var(--ajc-radius);
  background: var(--ajc-white);
  color: var(--ajc-muted);
  line-height: 1.65;
  padding: 26px;
}

.ajc-saved-note {
  margin: 0;
  color: var(--ajc-muted);
  font-size: 12px;
}

.ajc-sidebar {
  display: grid;
  gap: 16px;
}

.ajc-sidebar-panel {
  border: 1px solid var(--ajc-line);
  border-radius: var(--ajc-radius);
  background: var(--ajc-white);
  padding: 19px;
}

.ajc-sidebar-panel h2 {
  margin: 0 0 13px;
  color: var(--ajc-navy);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ajc-topic-list,
.ajc-recent-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ajc-topic-list a,
.ajc-recent-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  color: #3d4d60;
  font-size: 13px;
  padding: 8px 9px;
  text-decoration: none;
}

.ajc-topic-list a:hover,
.ajc-recent-list a:hover {
  background: var(--ajc-paper);
  color: var(--ajc-teal);
}

.ajc-recent-list a {
  align-items: flex-start;
  justify-content: flex-start;
}

.ajc-resource-note {
  border-left: 3px solid var(--ajc-gold);
  border-radius: 0 9px 9px 0;
  background: #fff4e8;
  color: #586678;
  font-size: 13px;
  padding: 13px 14px;
}

.ajc-resource-note p {
  margin: 0;
}

.ajc-empty-state {
  border: 1px dashed #c5d2de;
  border-radius: var(--ajc-radius);
  background: var(--ajc-white);
  color: var(--ajc-muted);
  padding: 24px;
}

.ajc-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ajc-pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ajc-line);
  border-radius: 9px;
  background: var(--ajc-white);
  color: var(--ajc-navy);
  font-weight: 700;
  padding: 6px 11px;
  text-decoration: none;
}

.ajc-pagination .page-numbers.current,
.ajc-pagination .page-numbers:hover {
  border-color: var(--ajc-navy);
  background: var(--ajc-navy);
  color: var(--ajc-white);
}

.ajc-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
  color: var(--ajc-muted);
  font-size: 13px;
}

.ajc-breadcrumbs a {
  text-decoration: none;
}

.ajc-article {
  max-width: 850px;
  margin-inline: auto;
  border: 1px solid var(--ajc-line);
  border-radius: 18px;
  background: var(--ajc-white);
  padding: clamp(22px, 5vw, 52px);
}

.ajc-article-header {
  margin-bottom: 25px;
}

.ajc-article h1 {
  margin: 11px 0 15px;
  color: var(--ajc-navy-deep);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.ajc-article-featured {
  overflow: hidden;
  margin: 24px 0;
  border-radius: 12px;
  background: var(--ajc-soft-blue);
}

.ajc-article-featured img {
  display: block;
  width: 100%;
  height: auto;
}

.ajc-article-content {
  color: #26384d;
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.ajc-article-content > *:first-child {
  margin-top: 0;
}

.ajc-article-content h2,
.ajc-article-content h3,
.ajc-article-content h4 {
  margin-top: 1.8em;
  color: var(--ajc-navy);
  font-weight: 800;
  line-height: 1.3;
}

.ajc-article-content img,
.ajc-article-content video,
.ajc-article-content iframe {
  max-width: 100%;
}

.ajc-article-content img {
  height: auto;
}

.ajc-article-content a {
  overflow-wrap: anywhere;
}

.ajc-article-content blockquote {
  margin-inline: 0;
  border-left: 3px solid var(--ajc-teal);
  color: #52647a;
  padding: 8px 20px;
}

.ajc-article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--ajc-line);
}

.ajc-share-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--ajc-line);
  border-radius: 8px;
  color: var(--ajc-navy);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  text-decoration: none;
}

.ajc-share-link:hover {
  border-color: var(--ajc-teal);
  color: var(--ajc-teal);
}

.ajc-article-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.ajc-article-navigation a {
  min-width: 0;
  border: 1px solid var(--ajc-line);
  border-radius: 12px;
  background: var(--ajc-white);
  color: var(--ajc-navy);
  padding: 14px;
  text-decoration: none;
}

.ajc-article-navigation small {
  display: block;
  margin-bottom: 4px;
  color: var(--ajc-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.ajc-related {
  margin-top: 30px;
}

.ajc-related .ajc-post-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ajc-related .ajc-post-card {
  grid-template-columns: 1fr;
}

.ajc-related .ajc-post-media,
.ajc-related .ajc-post-media img {
  min-height: 145px;
  max-height: 190px;
}

.ajc-site-footer {
  border-top: 1px solid var(--ajc-line);
  background: var(--ajc-navy-deep);
  color: #dbe6ef;
  padding: 34px 0;
}

.ajc-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ajc-footer-brand {
  color: var(--ajc-white);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.ajc-footer-inner p {
  margin: 0;
  color: #b9c9d8;
  font-size: 13px;
}

.ajc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.ajc-footer-links a {
  color: #dbe6ef;
  font-size: 13px;
  text-decoration: none;
}

.ajc-footer-links a:hover {
  color: var(--ajc-white);
  text-decoration: underline;
}

.ajc-404 {
  max-width: 720px;
  margin: 30px auto;
  border: 1px solid var(--ajc-line);
  border-radius: 18px;
  background: var(--ajc-white);
  padding: clamp(25px, 5vw, 50px);
  text-align: center;
}

.ajc-404 h1 {
  margin: 0 0 10px;
  color: var(--ajc-navy);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.04em;
}

@media (min-width: 1100px) {
  .ajc-header-search {
    display: none;
  }
}

@media (max-width: 1099px) {
  .ajc-header-inner {
    flex-wrap: wrap;
    min-height: 70px;
  }

  .ajc-saved-nav {
    order: 2;
    margin-left: auto;
  }

  .ajc-menu-toggle {
    order: 3;
    display: inline-flex;
    margin-left: 0;
  }

  .ajc-primary-nav {
    order: 4;
    display: none;
    width: 100%;
    padding: 0 0 13px;
  }

  .ajc-primary-nav.is-open {
    display: block;
  }

  .ajc-primary-nav ul {
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
  }

  .ajc-primary-nav li {
    flex: 1 1 150px;
  }

  .ajc-primary-nav a {
    width: 100%;
    justify-content: flex-start;
    background: var(--ajc-paper);
  }
}

@media (max-width: 820px) {
  .ajc-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ajc-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .ajc-header-inner,
  .ajc-content-shell,
  .ajc-footer-inner {
    width: min(calc(100% - 28px), var(--ajc-content-width));
  }

  .ajc-header-inner {
    gap: 12px;
  }

  .ajc-saved-nav {
    min-height: 38px;
    padding: 8px;
  }

  .ajc-saved-nav-label {
    display: none;
  }

  .ajc-brand {
    font-size: 18px;
  }

  .ajc-brand-mark {
    width: 34px;
    height: 34px;
  }

  .ajc-brand-name small {
    font-size: 9px;
  }

  .ajc-header-search {
    width: min(calc(100% - 28px), var(--ajc-content-width));
    padding-bottom: 12px;
  }

  .ajc-main {
    padding: 16px 0 42px;
  }

  .ajc-hero {
    border-radius: 15px;
    padding: 28px 21px;
  }

  .ajc-hero h1 {
    font-size: clamp(32px, 10vw, 45px);
  }

  .ajc-hero-search {
    flex-direction: column;
  }

  .ajc-hero-search .ajc-button {
    width: 100%;
  }

  .ajc-content-grid {
    gap: 22px;
    margin-top: 26px;
  }

  .ajc-post-card {
    grid-template-columns: 1fr;
  }

  .ajc-saved-card .ajc-post-media {
    min-height: 150px;
  }

  .ajc-post-media,
  .ajc-post-media img {
    min-height: 190px;
    max-height: 240px;
  }

  .ajc-post-copy {
    padding: 17px;
  }

  .ajc-sidebar {
    grid-template-columns: 1fr;
  }

  .ajc-related .ajc-post-list {
    grid-template-columns: 1fr;
  }

  .ajc-article-navigation {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =====================================================================
   v1.1 refresh: job-board look. Later rules intentionally override above.
   ===================================================================== */
a:hover { color: var(--ajc-navy); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.ajc-icon { flex: none; vertical-align: -3px; }
.ajc-eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* Header: slimmer, header search hidden where the hero already has one */
.ajc-header-inner { min-height: 68px; }
.ajc-site-header { box-shadow: 0 1px 0 var(--ajc-line); }
.home:not(.paged) .ajc-header-search { display: none; }
.ajc-primary-nav a { font-size: 13.5px; }
.ajc-primary-nav a:hover,
.ajc-primary-nav .current-menu-item > a { background: var(--ajc-soft-blue); box-shadow: inset 0 -2px 0 var(--ajc-gold); }

/* Buttons */
.ajc-button--gold,
.ajc-hero-search .ajc-button { background: var(--ajc-gold); border-color: var(--ajc-gold); color: var(--ajc-navy-deep); gap: 8px; }
.ajc-button--gold:hover,
.ajc-hero-search .ajc-button:hover { background: #f6a24f; border-color: #f6a24f; color: var(--ajc-navy-deep); transform: none; }

/* Hero: navy panel, white type, gold action */
.ajc-hero { border: 0; border-radius: 18px; background: linear-gradient(135deg, var(--ajc-navy-deep) 0%, #17406b 100%); padding: clamp(28px, 5vw, 56px); }
.ajc-hero::after { border-color: rgb(255 255 255 / 12%); box-shadow: 0 0 0 24px rgb(255 255 255 / 3%), 0 0 0 48px rgb(255 255 255 / 3%); }
.ajc-hero h1 { margin-top: 0; color: #fff; font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -0.04em; }
.ajc-hero p { color: #d3e0ee; }
.ajc-hero-search .ajc-search-input { border: 2px solid #fff; background: #fff; }
.ajc-quick-links a { border-color: rgb(255 255 255 / 40%); background: transparent; color: #fff; min-height: 38px; font-size: 13px; }
.ajc-quick-links a:hover { background: rgb(255 255 255 / 14%); color: #fff; border-color: #fff; }
@media (max-width: 560px) {
  .ajc-hero-search { flex-direction: column; }
  .ajc-hero-search .ajc-button { width: 100%; }
}

/* Section headings: ruled, like a job board */
.ajc-section-heading { padding-bottom: 10px; border-bottom: 2px solid var(--ajc-navy); align-items: flex-end; }
.ajc-section-heading h2 { font-size: clamp(20px, 2.6vw, 25px); }
.ajc-content-grid { gap: 32px; }
.ajc-main { padding-top: 26px; }

/* Job card: employer logo on the left, details on the right */
.ajc-post-list { gap: 12px; }
.ajc-post-card { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: 12px; box-shadow: none; }
.ajc-post-card:hover { transform: none; border-color: var(--ajc-navy); box-shadow: 0 2px 12px rgb(16 45 79 / 8%); }
.ajc-post-card.is-closed h3 a { color: var(--ajc-muted); }
.ajc-post-media { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; min-height: 0; border: 1px solid var(--ajc-line); border-radius: 10px; background: #fff; color: var(--ajc-muted); overflow: hidden; }
.ajc-post-media img { width: 100%; height: 100%; min-height: 0; padding: 5px; object-fit: contain; }
.ajc-post-media .ajc-icon { width: 28px; height: 28px; }
.ajc-post-copy { padding: 0; }
.ajc-post-card h3 { margin: 6px 0 6px; font-size: clamp(16px, 1.9vw, 19px); }
.ajc-job-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; padding: 0; list-style: none; color: #44566a; font-size: 13px; }
.ajc-job-meta li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.ajc-post-excerpt { -webkit-line-clamp: 2; line-clamp: 2; }
.ajc-post-actions { padding-top: 12px; }
.ajc-post-action { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; background: var(--ajc-navy); color: #fff; font-size: 13px; }
.ajc-post-actions .ajc-post-action { padding-top: 0; }
.ajc-post-action:hover { background: var(--ajc-blue); color: #fff; }
.ajc-save-button, .ajc-copy-link, .ajc-share-link { min-height: 40px; }
@media (max-width: 560px) {
  .ajc-post-card { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 13px; }
  .ajc-post-media { width: 52px; height: 52px; border-radius: 8px; }
  .ajc-post-media .ajc-icon { width: 22px; height: 22px; }
  .ajc-job-meta { flex-direction: column; gap: 3px; }
}

/* Deadline badges and states */
.ajc-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 800; line-height: 1.5; }
.ajc-badge--past { background: #fbe9e7; color: #9a3a35; }
.ajc-badge--today, .ajc-badge--soon { background: #ffe9d1; color: #7a3d00; }
.ajc-deadline--past, .ajc-deadline--past strong { color: #9a3a35; }
.ajc-deadline--soon, .ajc-deadline--today { color: #7a3d00; }
.ajc-closed-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #fbe9e7; color: #8a2f2a; font-weight: 700; }

/* Article page */
.ajc-single-grid { margin-top: 0; }
.ajc-single-main { min-width: 0; }
.ajc-article { max-width: none; margin: 0; border-radius: 14px; padding: clamp(18px, 3.5vw, 36px); }
.ajc-article h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.035em; }
.ajc-post-facts { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; margin: 18px 0 0; padding: 16px; border: 1px solid var(--ajc-line); border-radius: 12px; background: var(--ajc-paper); }
.ajc-post-facts > div { display: block; }
.ajc-post-facts dt { display: flex; align-items: center; gap: 6px; color: var(--ajc-muted); font-size: 12px; font-weight: 700; }
.ajc-post-facts dd { margin: 3px 0 0; color: var(--ajc-ink); font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.ajc-apply { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 16px; border: 1px solid var(--ajc-gold); border-left-width: 6px; border-radius: 12px; background: #fff4e8; }
.ajc-apply p { margin: 0; font-size: 14px; line-height: 1.5; }
.ajc-apply span { color: var(--ajc-muted); font-size: 13px; }
.ajc-article-featured img { width: auto; max-width: 100%; max-height: 420px; margin-inline: auto; object-fit: contain; }
.ajc-article-featured { background: #fff; border: 1px solid var(--ajc-line); }
.ajc-article-content { max-width: 76ch; font-size: 17px; }
.ajc-article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.ajc-article-content td, .ajc-article-content th { border: 1px solid var(--ajc-line); padding: 8px 10px; }
.ajc-article-content ul, .ajc-article-content ol { padding-left: 1.3em; }
.ajc-share-label { align-self: center; font-weight: 700; font-size: 13px; color: var(--ajc-navy); }
.ajc-article-navigation small { text-transform: none; font-size: 12px; }
.ajc-related .ajc-post-list { grid-template-columns: minmax(0, 1fr); }
.ajc-related .ajc-post-card { grid-template-columns: 76px minmax(0, 1fr); }
.ajc-related .ajc-post-media, .ajc-related .ajc-post-media img { min-height: 0; max-height: none; }
.ajc-archive-note { margin-top: 6px; color: var(--ajc-muted); font-size: 14px; }
@media (max-width: 560px) { .ajc-related .ajc-post-card { grid-template-columns: 52px minmax(0, 1fr); } .ajc-apply .ajc-button { width: 100%; } }

/* Sidebar */
.ajc-sidebar { gap: 14px; }
.ajc-sidebar-panel { border-radius: 12px; padding: 16px; }
.ajc-sidebar-panel h2 { margin-bottom: 10px; padding-bottom: 9px; border-bottom: 2px solid var(--ajc-gold); font-size: 16px; }
.ajc-sidebar-panel--accent { background: var(--ajc-navy); border-color: var(--ajc-navy); }
.ajc-sidebar-panel--accent h2 { color: #fff; border-bottom-color: var(--ajc-gold); }
.ajc-topic-list a, .ajc-recent-list a { min-height: 40px; font-size: 14px; line-height: 1.4; }
.ajc-topic-list .ajc-count { color: var(--ajc-muted); font-size: 12px; font-weight: 700; }
.ajc-recent-list a { flex-direction: column; align-items: flex-start; gap: 2px; }
.ajc-recent-list time { color: var(--ajc-muted); font-size: 12px; }
@media (max-width: 820px) { .ajc-sidebar { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 821px) { .ajc-content-grid { grid-template-columns: minmax(0, 1fr) 320px; } }

/* Footer */
.ajc-site-footer { padding: 40px 0 22px; }
.ajc-footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: start; gap: 28px; }
.ajc-footer-about p { margin: 8px 0 14px; max-width: 34ch; }
.ajc-footer-col { display: grid; gap: 4px; align-content: start; }
.ajc-footer-col h2 { margin: 0 0 6px; color: #fff; font-size: 15px; }
.ajc-footer-col a { display: block; padding: 6px 0; color: #dbe6ef; font-size: 14px; text-decoration: none; }
.ajc-footer-col a:hover { color: #fff; text-decoration: underline; }
.ajc-footer-legal { width: min(calc(100% - 40px), var(--ajc-content-width)); margin: 26px auto 0; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 14%); color: #b9c9d8; font-size: 12.5px; }
@media (max-width: 700px) { .ajc-footer-inner { grid-template-columns: minmax(0, 1fr); } }

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

/* =====================================================================
   v1.2: logo, sticky header, category tiles, closing soon, New badge, back to top
   ===================================================================== */
body, body .site-body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html { scroll-padding-top: 84px; }

.ajc-logo-mark { display: block; flex: none; width: 40px; height: 40px; }
.ajc-brand-name > span { font-size: 19px; }
.ajc-footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.ajc-footer-brand .ajc-logo-mark { width: 34px; height: 34px; }

/* Sticky header */
.ajc-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .ajc-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ajc-site-header { top: 46px; } }
.ajc-search-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--ajc-line); border-radius: 9px; background: #fff; color: var(--ajc-navy); cursor: pointer; }
.ajc-search-toggle .ajc-icon { width: 20px; height: 20px; }
@media (max-width: 1099px) {
  .ajc-header-inner { flex-wrap: wrap; row-gap: 0; min-height: 64px; }
  .ajc-search-toggle { display: inline-flex; order: 1; margin-left: auto; }
  .ajc-saved-nav { order: 2; margin-left: 0; }
  .ajc-header-search { display: none; padding-top: 2px; }
  .ajc-header-search.is-open { display: flex; }
  .ajc-primary-nav.is-open { max-height: calc(100vh - 120px); overflow-y: auto; }
  .home:not(.paged) .ajc-search-toggle { display: none; }
  .home:not(.paged) .ajc-saved-nav { margin-left: auto; }
}

/* Category tiles */
.ajc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 18px; }
.ajc-tile { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--ajc-line); border-radius: 12px; background: #fff; color: var(--ajc-navy); text-decoration: none; }
.ajc-tile:hover { border-color: var(--ajc-navy); color: var(--ajc-navy); box-shadow: 0 2px 12px rgb(16 45 79 / 8%); }
.ajc-tile-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--ajc-soft-blue); color: var(--ajc-navy); }
.ajc-tile-icon .ajc-icon { width: 20px; height: 20px; }
.ajc-tile-text { display: grid; line-height: 1.3; }
.ajc-tile-text strong { font-size: 15px; }
.ajc-tile-text small { color: var(--ajc-muted); font-size: 12px; }
@media (max-width: 520px) { .ajc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ajc-tile { padding: 10px; gap: 9px; } .ajc-tile-icon { width: 34px; height: 34px; } }

/* Closing soon */
.ajc-closing-list { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--ajc-line); border-left: 5px solid var(--ajc-gold); border-radius: 12px; background: #fff; overflow: hidden; }
.ajc-closing-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--ajc-line); margin: 0; }
.ajc-closing-list li:first-child { border-top: 0; }
.ajc-closing-list a { min-width: 0; color: var(--ajc-navy); font-size: 14.5px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.ajc-closing-list a:hover { text-decoration: underline; }
.ajc-closing-list .ajc-badge { flex: none; }
@media (max-width: 520px) { .ajc-closing-list li { align-items: flex-start; flex-direction: column; gap: 6px; } }

/* New badge */
.ajc-badge--new { background: #def3f1; color: #0b5f5f; }

/* Back to top */
.ajc-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ajc-navy); color: #fff; box-shadow: 0 4px 14px rgb(16 45 79 / 30%); cursor: pointer; }
.ajc-to-top[hidden] { display: none; }
.ajc-to-top:hover { background: var(--ajc-blue); }

/* Ad slots: keep ads inside the page width, no sideways scrolling */
.ajc-ad { max-width: 100%; margin: 16px auto; text-align: center; overflow: hidden; }
.ajc-ad__label { display: block; margin-bottom: 4px; color: var(--ajc-muted); font-size: 11px; letter-spacing: 0.02em; }
.ajc-ad__body { max-width: 100%; overflow: hidden; }
.ajc-ad iframe, .ajc-ad ins, .ajc-ad img { max-width: 100%; }
.ajc-ad--below_header, .ajc-ad--above_footer { width: min(calc(100% - 40px), var(--ajc-content-width)); }
.ajc-ad--in_list { margin: 4px 0; padding: 10px; border: 1px dashed var(--ajc-line); border-radius: 12px; background: #fff; }
.ajc-ad--sidebar_top, .ajc-ad--sidebar_bottom { margin: 0; padding: 12px; border: 1px solid var(--ajc-line); border-radius: 12px; background: #fff; }
