/*
Theme Name: Job24s Lite
Theme URI: https://job24s.com/
Author: Job24s
Author URI: https://job24s.com/
Description: A lightweight, responsive editorial job-information theme with search, category navigation, recent post cards and controlled advertisement areas.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: job24s-lite
*/

:root {
  --j24-navy: #0f172a;
  --j24-navy-soft: #172554;
  --j24-blue: #1d4ed8;
  --j24-blue-light: #dbeafe;
  --j24-cyan: #0891b2;
  --j24-amber: #fbbf24;
  --j24-green: #047857;
  --j24-text: #1e293b;
  --j24-muted: #64748b;
  --j24-border: #e2e8f0;
  --j24-bg: #f8fafc;
  --j24-white: #ffffff;
  --j24-radius: 16px;
  --j24-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --j24-container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--j24-text);
  background: var(--j24-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--j24-blue);
  text-decoration: none;
}

a:hover {
  color: var(--j24-navy-soft);
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--j24-amber);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: var(--j24-navy);
  background: var(--j24-white);
  box-shadow: var(--j24-shadow);
}

.j24-container {
  width: min(calc(100% - 32px), var(--j24-container));
  margin-inline: auto;
}

.j24-notice-bar {
  padding: 8px 16px;
  color: #e2e8f0;
  background: var(--j24-navy);
  font-size: 13px;
  text-align: center;
}

.j24-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--j24-border);
  backdrop-filter: blur(12px);
}

.j24-header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.j24-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--j24-navy);
}

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

.j24-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--j24-navy);
  background: var(--j24-amber);
  border-radius: 12px;
  font-weight: 800;
}

.j24-brand-text strong,
.j24-brand-text small {
  display: block;
}

.j24-brand-text strong {
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.j24-brand-text small {
  margin-top: 2px;
  color: var(--j24-muted);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.custom-logo {
  width: auto;
  max-height: 48px;
}

.j24-navigation ul {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.j24-navigation a {
  color: var(--j24-text);
  font-size: 14px;
  font-weight: 650;
}

.j24-navigation a:hover,
.j24-navigation .current-menu-item > a {
  color: var(--j24-blue);
}

.j24-menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  color: var(--j24-navy);
  background: var(--j24-white);
  border: 1px solid var(--j24-border);
  border-radius: 10px;
  cursor: pointer;
}

.j24-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 82px;
  color: var(--j24-white);
  background: linear-gradient(135deg, #0f172a 0%, #172554 48%, #1d4ed8 100%);
}

.j24-hero::after {
  position: absolute;
  right: -120px;
  bottom: -220px;
  width: 480px;
  height: 480px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.j24-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.j24-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.13);
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.j24-hero h1 {
  max-width: 760px;
  margin: 0 auto 16px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.j24-hero p {
  max-width: 650px;
  margin: 0 auto 30px;
  color: #cbd5e1;
  font-size: 18px;
}

.j24-search-form {
  display: flex;
  max-width: 720px;
  padding: 7px;
  margin: 0 auto;
  background: var(--j24-white);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.25);
}

.j24-search-form input[type="search"] {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  color: var(--j24-text);
  background: transparent;
  border: 0;
  outline: 0;
}

.j24-search-form button {
  padding: 13px 24px;
  color: var(--j24-white);
  background: var(--j24-blue);
  border: 0;
  border-radius: 10px;
  font-weight: 750;
  cursor: pointer;
}

.j24-search-form button:hover {
  background: var(--j24-navy-soft);
}

.j24-section {
  padding: 66px 0;
}

.j24-section--white {
  background: var(--j24-white);
}

.j24-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.j24-section-heading h2 {
  margin: 0;
  color: var(--j24-navy);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.j24-section-heading p {
  margin: 7px 0 0;
  color: var(--j24-muted);
}

.j24-section-link {
  flex: 0 0 auto;
  font-weight: 750;
}

.j24-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.j24-category-card {
  display: block;
  min-height: 124px;
  padding: 20px;
  color: var(--j24-text);
  background: var(--j24-white);
  border: 1px solid var(--j24-border);
  border-radius: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.j24-category-card:hover {
  color: var(--j24-text);
  border-color: #bfdbfe;
  box-shadow: var(--j24-shadow);
  transform: translateY(-3px);
}

.j24-category-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  place-items: center;
  color: var(--j24-blue);
  background: var(--j24-blue-light);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.j24-category-card strong,
.j24-category-card small {
  display: block;
}

.j24-category-card strong {
  color: var(--j24-navy);
  font-size: 14px;
  line-height: 1.35;
}

.j24-category-card small {
  margin-top: 5px;
  color: var(--j24-muted);
  font-size: 12px;
}

.j24-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.j24-post-card {
  display: flex;
  overflow: hidden;
  min-width: 0;
  flex-direction: column;
  background: var(--j24-white);
  border: 1px solid var(--j24-border);
  border-radius: var(--j24-radius);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.j24-post-card:hover {
  box-shadow: var(--j24-shadow);
  transform: translateY(-4px);
}

.j24-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1200 / 628;
  background: #e2e8f0;
}

.j24-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.j24-post-card:hover .j24-card-image img {
  transform: scale(1.025);
}

.j24-card-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: #94a3b8;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  font-size: 13px;
  font-weight: 700;
}

.j24-card-body {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 21px;
}

.j24-card-meta,
.j24-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--j24-muted);
  font-size: 12px;
}

.j24-card-category {
  color: var(--j24-blue);
  font-weight: 750;
}

.j24-card-title {
  margin: 12px 0 10px;
  color: var(--j24-navy);
  font-size: 20px;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.j24-card-title a {
  color: inherit;
}

.j24-card-title a:hover {
  color: var(--j24-blue);
}

.j24-card-excerpt {
  margin: 0 0 18px;
  color: var(--j24-muted);
  font-size: 14px;
  line-height: 1.65;
}

.j24-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 750;
}

.j24-ad-wrap {
  width: 100%;
  min-height: 90px;
  padding: 16px 0;
  margin: 0;
  text-align: center;
}

.j24-ad-label {
  display: block;
  margin-bottom: 7px;
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.j24-trust-box {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 38px;
  color: var(--j24-white);
  background: var(--j24-navy);
  border-radius: 20px;
}

.j24-trust-box h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.25;
}

.j24-trust-box p {
  margin: 0;
  color: #cbd5e1;
}

.j24-trust-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.j24-trust-list li {
  position: relative;
  padding-left: 28px;
}

.j24-trust-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border-radius: 50%;
  content: "✓";
  font-size: 12px;
  font-weight: 800;
}

.j24-main {
  min-height: 55vh;
}

.j24-content-wrap {
  padding: 56px 0 72px;
}

.j24-archive-header {
  margin-bottom: 30px;
}

.j24-archive-header h1 {
  margin: 0 0 8px;
  color: var(--j24-navy);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.j24-archive-header p {
  max-width: 720px;
  margin: 0;
  color: var(--j24-muted);
}

.j24-single {
  max-width: 860px;
  padding: 56px 54px;
  margin: 0 auto;
  background: var(--j24-white);
  border: 1px solid var(--j24-border);
  border-radius: 20px;
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.05);
}

.j24-entry-header h1 {
  margin: 14px 0 14px;
  color: var(--j24-navy);
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.j24-featured-image {
  overflow: hidden;
  margin: 30px 0;
  border-radius: 16px;
}

.j24-entry-content {
  color: #334155;
  font-size: 17px;
}

.j24-entry-content > *:first-child {
  margin-top: 0;
}

.j24-entry-content h2,
.j24-entry-content h3 {
  color: var(--j24-navy);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.j24-entry-content h2 {
  margin-top: 42px;
  font-size: 29px;
}

.j24-entry-content h3 {
  margin-top: 30px;
  font-size: 23px;
}

.j24-entry-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.j24-entry-content table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  border: 1px solid var(--j24-border);
}

.j24-entry-content th,
.j24-entry-content td {
  padding: 12px 14px;
  border: 1px solid var(--j24-border);
  text-align: left;
}

.j24-entry-content th {
  color: var(--j24-navy);
  background: #f1f5f9;
}

.j24-entry-content blockquote {
  padding: 18px 22px;
  margin: 28px 0;
  color: #334155;
  background: #eff6ff;
  border-left: 4px solid var(--j24-blue);
  border-radius: 0 12px 12px 0;
}

.j24-entry-content .wp-block-button__link,
.j24-entry-content a.j24-button {
  display: inline-flex;
  padding: 13px 20px;
  color: var(--j24-white);
  background: var(--j24-blue);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 750;
}

.j24-entry-footer {
  padding-top: 28px;
  margin-top: 36px;
  border-top: 1px solid var(--j24-border);
}

.j24-page-links,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.page-numbers,
.post-page-numbers {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  place-items: center;
  color: var(--j24-text);
  background: var(--j24-white);
  border: 1px solid var(--j24-border);
  border-radius: 9px;
}

.page-numbers.current,
.page-numbers:hover,
.post-page-numbers.current,
.post-page-numbers:hover {
  color: var(--j24-white);
  background: var(--j24-blue);
  border-color: var(--j24-blue);
}

.j24-empty-state {
  padding: 54px 30px;
  text-align: center;
  background: var(--j24-white);
  border: 1px solid var(--j24-border);
  border-radius: var(--j24-radius);
}

.j24-empty-state h1,
.j24-empty-state h2 {
  margin-top: 0;
  color: var(--j24-navy);
}

.j24-site-footer {
  color: #cbd5e1;
  background: #020617;
}

.j24-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  padding: 52px 0 34px;
}

.j24-footer-brand {
  margin: 0 0 10px;
  color: var(--j24-white);
  font-size: 23px;
  font-weight: 800;
}

.j24-footer-copy {
  max-width: 580px;
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

.j24-footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.j24-footer-menu a {
  color: #cbd5e1;
  font-size: 13px;
}

.j24-footer-menu a:hover {
  color: var(--j24-white);
}

.j24-copyright {
  padding: 18px 0;
  color: #64748b;
  border-top: 1px solid #1e293b;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  .j24-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .j24-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .j24-navigation {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 16px;
    background: var(--j24-white);
    border: 1px solid var(--j24-border);
    border-radius: 14px;
    box-shadow: var(--j24-shadow);
  }

  .j24-navigation.is-open {
    display: block;
  }

  .j24-navigation ul {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .j24-navigation a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .j24-navigation a:hover {
    background: #f1f5f9;
  }

  .j24-trust-box,
  .j24-footer-grid {
    grid-template-columns: 1fr;
  }

  .j24-footer-menu {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .j24-container {
    width: min(calc(100% - 22px), var(--j24-container));
  }

  .j24-notice-bar {
    font-size: 11px;
  }

  .j24-header-inner {
    min-height: 64px;
  }

  .j24-brand-text small {
    display: none;
  }

  .j24-brand-mark {
    width: 38px;
    height: 38px;
  }

  .j24-navigation {
    top: 64px;
  }

  .j24-hero {
    padding: 56px 0 62px;
  }

  .j24-hero p {
    font-size: 16px;
  }

  .j24-search-form {
    display: grid;
    gap: 7px;
    padding: 8px;
  }

  .j24-search-form button {
    width: 100%;
  }

  .j24-section {
    padding: 48px 0;
  }

  .j24-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

  .j24-category-card {
    min-height: 118px;
    padding: 16px;
  }

  .j24-post-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .j24-card-title {
    font-size: 19px;
  }

  .j24-trust-box {
    gap: 28px;
    padding: 28px 22px;
  }

  .j24-single {
    padding: 30px 20px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .j24-content-wrap {
    padding: 30px 0 52px;
  }

  .j24-entry-content {
    font-size: 16px;
  }

  .j24-entry-content h2 {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

