/* ==========================================================================
   JobsDeep — Main Stylesheet
   Mobile-first. Desktop and mobile share identical markup/components;
   only spacing, columns and font-size scale up via media queries.
   ========================================================================== */

:root{
  --jd-blue: #1259c3;
  --jd-blue-dark: #0d3f8f;
  --jd-blue-light: #eaf1fd;
  --jd-green: #10a361;
  --jd-green-dark: #0c7d4a;
  --jd-green-light: #e6f8f0;
  --jd-text: #1c2531;
  --jd-text-muted: #5b6675;
  --jd-border: #e6e9ee;
  --jd-bg: #ffffff;
  --jd-bg-alt: #f6f8fb;
  --jd-radius: 12px;
  --jd-radius-sm: 8px;
  --jd-shadow: 0 2px 10px rgba(18, 89, 195, 0.07);
  --jd-shadow-hover: 0 8px 24px rgba(18, 89, 195, 0.14);
  --jd-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --jd-container: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--jd-font);
  color: var(--jd-text);
  background: var(--jd-bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; color: var(--jd-text-muted); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.screen-reader-text{
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}
.jd-skip-link{
  position: absolute; left: -999px; top: 0; background: var(--jd-blue); color: #fff;
  padding: 10px 16px; z-index: 9999; border-radius: 0 0 8px 0;
}
.jd-skip-link:focus{ left: 0; }

.jd-container{
  max-width: var(--jd-container);
  margin: 0 auto;
  padding: 0 16px;
}

.jd-section{ padding: 40px 0; }
.jd-section-title{ font-size: 22px; margin-bottom: 4px; }
.jd-section-sub{ color: var(--jd-text-muted); margin-bottom: 24px; }
.jd-section-head{
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.jd-link-arrow{ color: var(--jd-blue); font-weight: 600; white-space: nowrap; }

.jd-empty-state{
  background: var(--jd-bg-alt); border: 1px dashed var(--jd-border); border-radius: var(--jd-radius);
  padding: 24px; text-align: center; color: var(--jd-text-muted);
}

/* ---------- Buttons ---------- */
.jd-btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--jd-green);
  color: #fff;
  font-weight: 600;
  padding: 12px 22px;
  border: none;
  border-radius: var(--jd-radius-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.jd-btn:hover{ background: var(--jd-green-dark); box-shadow: var(--jd-shadow-hover); transform: translateY(-1px); color:#fff; }
.jd-btn-block{ width: 100%; }
.jd-btn-lg{ padding: 14px 22px; font-size: 16px; }
.jd-btn-white{ background: #fff; color: var(--jd-blue-dark); }
.jd-btn-white:hover{ background: #f1f5fb; color: var(--jd-blue-dark); }
.jd-btn-hero{ background: var(--jd-blue); }
.jd-btn-hero:hover{ background: var(--jd-blue-dark); }

/* ==========================================================================
   Header
   ========================================================================== */
.jd-header-ad{ background: var(--jd-bg-alt); padding: 8px 0; text-align: center; }

.jd-site-header{
  background: #fff;
  border-bottom: 1px solid var(--jd-border);
  position: sticky; top: 0; z-index: 100;
}
.jd-header-inner{
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
}
.jd-logo{ display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.jd-logo-mark{
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--jd-blue), var(--jd-green));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.jd-logo-text{ font-weight: 800; font-size: 19px; color: var(--jd-blue-dark); white-space: nowrap; }
.jd-logo-text span{ color: var(--jd-green); }
.jd-logo-text small{ color: var(--jd-text-muted); font-weight: 500; font-size: 12px; margin-left: 2px; }

.jd-header-search{ display: none; flex: 1; max-width: 480px; position: relative; }
.jd-header-search-input{
  width: 100%; padding: 10px 44px 10px 14px; border: 1px solid var(--jd-border);
  border-radius: 999px; background: var(--jd-bg-alt);
}
.jd-header-search-input:focus{ outline: 2px solid var(--jd-blue-light); border-color: var(--jd-blue); }
.jd-header-search-btn{
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 36px;
  background: var(--jd-blue); border: none; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center;
}
.jd-header-search-btn svg{ width: 16px; height: 16px; }

.jd-mobile-toggle{
  margin-left: auto; background: none; border: none; width: 32px; height: 24px;
  display: flex; flex-direction: column; justify-content: space-between; padding: 0;
}
.jd-mobile-toggle span{ display: block; height: 2px; background: var(--jd-text); border-radius: 2px; }

.jd-primary-nav{
  position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100%;
  background: #fff; box-shadow: -8px 0 24px rgba(0,0,0,.12); transition: right .25s ease; z-index: 200;
  overflow-y: auto; padding: 70px 0 24px;
}
.jd-primary-nav.is-open{ right: 0; }
.jd-menu li a{
  display: block; padding: 14px 22px; font-weight: 600; color: var(--jd-text); border-bottom: 1px solid var(--jd-border);
}
.jd-menu li a:hover{ color: var(--jd-blue); background: var(--jd-bg-alt); }

.jd-mobile-search{ display: block; padding: 0 16px 12px; }
.jd-mobile-search form{ display: flex; border: 1px solid var(--jd-border); border-radius: 999px; overflow: hidden; background: var(--jd-bg-alt); }
.jd-mobile-search input{ flex: 1; border: none; background: transparent; padding: 10px 14px; }
.jd-mobile-search button{ background: var(--jd-blue); border: none; color: #fff; width: 44px; display: flex; align-items: center; justify-content: center; }
.jd-mobile-search button svg{ width: 16px; height: 16px; }

.jd-nav-overlay{
  display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 150;
}
.jd-nav-overlay.is-open{ display: block; }

/* Breadcrumbs */
.jd-breadcrumbs{ background: var(--jd-bg-alt); font-size: 13px; padding: 10px 0; color: var(--jd-text-muted); }
.jd-breadcrumbs a{ color: var(--jd-text-muted); }
.jd-breadcrumbs a:hover{ color: var(--jd-blue); }
.jd-crumb-sep{ margin: 0 6px; opacity: .5; }

/* ==========================================================================
   Hero
   ========================================================================== */
.jd-hero{
  background: linear-gradient(180deg, var(--jd-blue-light) 0%, #ffffff 100%);
  padding: 44px 0 36px;
  text-align: center;
}
.jd-hero h1{ font-size: 28px; color: var(--jd-blue-dark); max-width: 640px; margin: 0 auto .5em; }
.jd-hero-sub{ max-width: 520px; margin: 0 auto 24px; }

.jd-hero-search{
  background: #fff; border-radius: var(--jd-radius); box-shadow: var(--jd-shadow);
  padding: 16px; display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 auto;
  text-align: left; border: 1px solid var(--jd-border);
}
.jd-hero-field{ flex: 1; display: flex; flex-direction: column; gap: 4px; }
.jd-hero-field label{ font-size: 12px; font-weight: 700; color: var(--jd-text-muted); text-transform: uppercase; letter-spacing: .03em; }
.jd-hero-field input, .jd-hero-field select{
  border: 1px solid var(--jd-border); border-radius: var(--jd-radius-sm); padding: 11px 12px; background: var(--jd-bg-alt);
}
.jd-btn-hero{ align-self: stretch; padding: 14px; font-size: 15px; }

.jd-hero-stats{ display: flex; justify-content: center; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.jd-hero-stats div{ text-align: center; }
.jd-hero-stats strong{ display: block; font-size: 20px; color: var(--jd-blue-dark); }
.jd-hero-stats span{ font-size: 12px; color: var(--jd-text-muted); }

/* ==========================================================================
   Category Cards
   ========================================================================== */
.jd-category-grid{
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.jd-category-card{
  background: #fff; border: 1px solid var(--jd-border); border-radius: var(--jd-radius);
  padding: 18px 14px; text-align: center; transition: all .15s ease;
}
.jd-category-card:hover{ border-color: var(--jd-blue); box-shadow: var(--jd-shadow-hover); transform: translateY(-2px); }
.jd-category-icon{
  width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--jd-green-light); color: var(--jd-green-dark);
  display: flex; align-items: center; justify-content: center;
}
.jd-category-icon svg{ width: 24px; height: 24px; }
.jd-category-card:nth-child(3n+1) .jd-category-icon,
.jd-category-card:nth-child(3n+2) .jd-category-icon{ background: var(--jd-blue-light); color: var(--jd-blue-dark); }
.jd-category-name{ display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 2px; }
.jd-category-count{ display: block; font-size: 11.5px; color: var(--jd-text-muted); }

/* ==========================================================================
   Slider
   ========================================================================== */
.jd-slider-section{ padding-top: 0; }
.jd-slider{ position: relative; border-radius: var(--jd-radius); overflow: hidden; }
.jd-slider-track{ display: flex; transition: transform .5s ease; }
.jd-slide{ min-width: 100%; padding: 40px 24px; color: #fff; display: flex; align-items: center; min-height: 220px; }
.jd-slide-content{ max-width: 480px; }
.jd-slide h3{ font-size: 22px; }
.jd-slide-blue{ background: linear-gradient(120deg, var(--jd-blue-dark), var(--jd-blue)); }
.jd-slide-green{ background: linear-gradient(120deg, var(--jd-green-dark), var(--jd-green)); }
.jd-slide-dark{ background: linear-gradient(120deg, #1c2531, #384454); }
.jd-slider-dots{ position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.jd-slider-dots button{
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; padding: 0;
}
.jd-slider-dots button.is-active{ background: #fff; width: 20px; border-radius: 4px; }

/* ==========================================================================
   Ad Zones
   ========================================================================== */
.jd-ad-section{ padding: 8px 0; }
.jd-ad-slot{ text-align: center; overflow: hidden; }
.jd-ad-placeholder{
  background: var(--jd-bg-alt); border: 1px dashed var(--jd-border); border-radius: var(--jd-radius-sm);
  padding: 18px; color: var(--jd-text-muted); font-size: 12.5px;
}
.jd-ad-label{ display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--jd-text-muted); margin-bottom: 4px; }
.jd-in-feed-ad{ grid-column: 1 / -1; }
.jd-mobile-sticky-ad{ position: sticky; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--jd-border); }
.jd-mobile-sticky-ad:empty{ display: none; }

/* ==========================================================================
   Job Cards & Grid
   ========================================================================== */
.jd-job-grid{
  display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px;
}
.jd-job-card{
  background: #fff; border: 1px solid var(--jd-border); border-radius: var(--jd-radius);
  padding: 16px; position: relative; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.jd-job-card:hover{ box-shadow: var(--jd-shadow-hover); transform: translateY(-2px); }
.jd-job-card.is-featured{ border-color: var(--jd-green); }
.jd-badge-featured{
  position: absolute; top: -1px; right: 14px; background: var(--jd-green); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 0 0 6px 6px; letter-spacing: .02em;
}
.jd-badge-expired{
  position: absolute; top: -1px; right: 14px; background: #c0392b; color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 0 0 6px 6px;
}
.jd-job-card-top{ display: flex; align-items: center; gap: 12px; }
.jd-job-logo{
  width: 48px; height: 48px; border-radius: var(--jd-radius-sm); overflow: hidden; flex-shrink: 0;
  background: var(--jd-bg-alt); display: flex; align-items: center; justify-content: center; border: 1px solid var(--jd-border);
}
.jd-job-logo img{ width: 100%; height: 100%; object-fit: contain; }
.jd-job-logo-fallback{ font-weight: 800; color: var(--jd-blue); font-size: 18px; }
.jd-job-logo-lg{ width: 72px; height: 72px; }
.jd-job-title-wrap{ display: flex; flex-direction: column; min-width: 0; }
.jd-job-title{ font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jd-job-company{ font-size: 13px; color: var(--jd-text-muted); }

.jd-job-meta{ display: flex; flex-direction: column; gap: 6px; }
.jd-job-meta li{ display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--jd-text-muted); }
.jd-job-meta li svg{ width: 15px; height: 15px; color: var(--jd-blue); flex-shrink: 0; }

.jd-job-footer{ display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--jd-text-muted); }
.jd-job-type-tag{ background: var(--jd-blue-light); color: var(--jd-blue-dark); font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.jd-job-posted{ display: flex; align-items: center; gap: 4px; }
.jd-job-posted svg{ width: 13px; height: 13px; }

/* ==========================================================================
   International Jobs / Country Cards
   ========================================================================== */
.jd-country-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.jd-country-card{
  background: #fff; border: 1px solid var(--jd-border); border-radius: var(--jd-radius);
  padding: 18px; text-align: center; transition: all .15s ease;
}
.jd-country-card:hover{ border-color: var(--jd-green); box-shadow: var(--jd-shadow-hover); transform: translateY(-2px); }
.jd-country-flag{ font-size: 28px; display: block; margin-bottom: 8px; }
.jd-country-name{ display: block; font-weight: 700; font-size: 14px; }
.jd-country-count{ display: block; font-size: 12px; color: var(--jd-text-muted); margin-top: 2px; }

/* ==========================================================================
   Articles
   ========================================================================== */
.jd-article-grid{ display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
.jd-article-card{ background: #fff; border: 1px solid var(--jd-border); border-radius: var(--jd-radius); overflow: hidden; transition: box-shadow .15s ease; }
.jd-article-card:hover{ box-shadow: var(--jd-shadow-hover); }
.jd-article-thumb{ display: block; aspect-ratio: 16/9; background: var(--jd-bg-alt); overflow: hidden; }
.jd-article-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.jd-article-thumb-fallback{ width: 100%; height: 100%; display: block; background: linear-gradient(135deg, var(--jd-blue-light), var(--jd-green-light)); }
.jd-article-body{ padding: 16px; }
.jd-article-cat{ display: inline-block; background: var(--jd-green-light); color: var(--jd-green-dark); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.jd-article-body h3{ font-size: 16px; margin-bottom: 10px; }
.jd-article-body h3 a:hover{ color: var(--jd-blue); }

/* ==========================================================================
   Social Icons
   ========================================================================== */
.jd-social-icons{ display: flex; gap: 10px; }
.jd-social-icons a{
  width: 36px; height: 36px; border-radius: 50%; background: var(--jd-bg-alt); color: var(--jd-blue-dark);
  display: flex; align-items: center; justify-content: center; transition: all .15s ease;
}
.jd-social-icons a:hover{ background: var(--jd-blue); color: #fff; transform: translateY(-2px); }
.jd-social-icons a svg{ width: 16px; height: 16px; }
.jd-social-icons-large{ justify-content: center; }
.jd-social-icons-large a{ width: 46px; height: 46px; }
.jd-social-strip{ text-align: center; background: var(--jd-bg-alt); }

/* ==========================================================================
   Single Job Page
   ========================================================================== */
.jd-single-job{ padding: 28px 0 48px; }
.jd-single-job-layout{ display: flex; flex-direction: column; gap: 24px; }
.jd-job-header{ background: #fff; border: 1px solid var(--jd-border); border-radius: var(--jd-radius); padding: 20px; position: relative; margin-bottom: 16px; }
.jd-job-header-top{ display: flex; align-items: center; gap: 16px; }
.jd-job-header h1{ font-size: 21px; margin-bottom: 4px; }
.jd-job-header-company{ color: var(--jd-text-muted); margin: 0; }
.jd-job-detail-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.jd-job-detail-grid li{ display: flex; gap: 10px; align-items: flex-start; background: var(--jd-bg-alt); border-radius: var(--jd-radius-sm); padding: 12px; }
.jd-job-detail-grid li svg{ width: 20px; height: 20px; color: var(--jd-blue); flex-shrink: 0; margin-top: 2px; }
.jd-job-detail-grid li span{ display: flex; flex-direction: column; font-size: 13.5px; }
.jd-job-detail-grid li strong{ font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--jd-text-muted); font-weight: 700; }
.jd-job-content{ margin-bottom: 24px; }
.jd-job-content h2{ font-size: 18px; }
.jd-job-website{ margin-bottom: 24px; word-break: break-all; }
.jd-job-website a{ color: var(--jd-blue); }

.jd-apply-box{ background: #fff; border: 1px solid var(--jd-border); border-radius: var(--jd-radius); padding: 20px; text-align: center; margin-bottom: 20px; }
.jd-apply-deadline{ margin: 12px 0 0; font-size: 13px; }
.jd-apply-closed{ color: #c0392b; font-weight: 700; margin: 0; }

.jd-related-jobs{ margin-top: 36px; }
.jd-related-jobs h2{ font-size: 18px; margin-bottom: 4px; }

/* ==========================================================================
   Archive / Filters
   ========================================================================== */
.jd-archive{ padding-top: 28px; }
.jd-archive-head{ margin-bottom: 20px; }
.jd-archive-head h1{ font-size: 24px; }
.jd-archive-filters{
  display: flex; flex-direction: column; gap: 10px; background: var(--jd-bg-alt);
  padding: 14px; border-radius: var(--jd-radius); border: 1px solid var(--jd-border); margin-bottom: 12px;
}
.jd-archive-filters input, .jd-archive-filters select{
  border: 1px solid var(--jd-border); border-radius: var(--jd-radius-sm); padding: 10px 12px; background: #fff; width: 100%;
}
.jd-pagination{ display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.jd-pagination .page-numbers{
  min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--jd-border); border-radius: var(--jd-radius-sm); font-weight: 600; padding: 0 10px;
}
.jd-pagination .page-numbers.current{ background: var(--jd-blue); color: #fff; border-color: var(--jd-blue); }
.jd-pagination .page-numbers:hover{ border-color: var(--jd-blue); color: var(--jd-blue); }

/* ==========================================================================
   Companies
   ========================================================================== */
.jd-company-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.jd-company-card{ background: #fff; border: 1px solid var(--jd-border); border-radius: var(--jd-radius); padding: 20px; text-align: center; transition: all .15s ease; }
.jd-company-card:hover{ box-shadow: var(--jd-shadow-hover); transform: translateY(-2px); }
.jd-company-card .jd-job-logo{ margin: 0 auto 10px; }
.jd-company-name{ font-weight: 700; font-size: 13.5px; }
.jd-company-header{ display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }

/* ==========================================================================
   Blog / Pages / Widgets / Forms
   ========================================================================== */
.jd-blog-layout{ display: flex; flex-direction: column; gap: 28px; }
.jd-blog-main{ min-width: 0; }
.jd-page-narrow{ max-width: 760px; }
.jd-single-post-thumb{ border-radius: var(--jd-radius); overflow: hidden; margin-bottom: 20px; aspect-ratio: 16/9; }
.jd-single-post-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.jd-post-meta{ font-size: 13px; }

.jd-widget{ background: #fff; border: 1px solid var(--jd-border); border-radius: var(--jd-radius); padding: 16px; margin-bottom: 16px; }
.jd-widget-title{ font-size: 15px; margin-bottom: 10px; }

.jd-contact-form, .jd-comment-list + #respond{ display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin-top: 20px; }
.jd-contact-form label{ font-weight: 700; font-size: 13px; }
.jd-contact-form input, .jd-contact-form textarea{
  border: 1px solid var(--jd-border); border-radius: var(--jd-radius-sm); padding: 11px 12px; background: var(--jd-bg-alt); width: 100%;
}
.jd-contact-form button{ align-self: flex-start; }
.jd-form-notice{ padding: 12px 16px; border-radius: var(--jd-radius-sm); margin: 16px 0; font-weight: 600; }
.jd-form-success{ background: var(--jd-green-light); color: var(--jd-green-dark); }
.jd-form-error{ background: #fdeaea; color: #c0392b; }

/* ==========================================================================
   Footer
   ========================================================================== */
.jd-site-footer{ background: #101826; color: #c6ceda; padding-top: 40px; }
.jd-footer-grid{ display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
.jd-footer-col h4{ color: #fff; font-size: 15px; margin-bottom: 14px; }
.jd-footer-col p{ color: #96a1b3; font-size: 13.5px; }
.jd-footer-logo{ margin-bottom: 14px; }
.jd-footer-logo .jd-logo-text{ color: #fff; }
.jd-footer-menu li a{ color: #96a1b3; display: block; padding: 6px 0; font-size: 13.5px; }
.jd-footer-menu li a:hover{ color: var(--jd-green); }
.jd-social-icons-alt a{ background: rgba(255,255,255,.08); color: #fff; }
.jd-footer-bottom{ border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; text-align: center; font-size: 12.5px; color: #7c8699; }

/* ==========================================================================
   Responsive — Tablet (≥ 600px)
   ========================================================================== */
@media (min-width: 600px){
  .jd-job-grid{ grid-template-columns: repeat(2, 1fr); }
  .jd-category-grid{ grid-template-columns: repeat(3, 1fr); }
  .jd-country-grid{ grid-template-columns: repeat(3, 1fr); }
  .jd-article-grid{ grid-template-columns: repeat(2, 1fr); }
  .jd-company-grid{ grid-template-columns: repeat(3, 1fr); }
  .jd-hero-search{ flex-direction: row; align-items: flex-end; }
  .jd-btn-hero{ width: auto; padding: 12px 26px; }
  .jd-job-detail-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Responsive — Desktop (≥ 900px)
   Mobile menu becomes an inline horizontal nav; mobile-only search/toggle hide.
   ========================================================================== */
@media (min-width: 900px){
  .jd-header-inner{ padding: 16px 0; }
  .jd-header-search{ display: block; }
  .jd-mobile-search{ display: none; }
  .jd-mobile-toggle{ display: none; }
  .jd-mobile-sticky-ad{ display: none; }

  .jd-primary-nav{
position: static; width: auto; max-width: none; height: auto; box-shadow: none; background: transparent;
    padding: 0; overflow: visible;
  }
  .jd-menu{ display: flex; gap: 4px; }
  .jd-menu li a{ border-bottom: none; padding: 8px 12px; border-radius: var(--jd-radius-sm); font-size: 14px; }
  .jd-menu li a:hover{ background: var(--jd-blue-light); color: var(--jd-blue-dark); }

  .jd-hero{ padding: 64px 0 56px; }
  .jd-hero h1{ font-size: 40px; }
  .jd-hero-sub{ font-size: 16px; }

  .jd-job-grid{ grid-template-columns: repeat(4, 1fr); }
  .jd-category-grid{ grid-template-columns: repeat(5, 1fr); }
  .jd-country-grid{ grid-template-columns: repeat(6, 1fr); }
  .jd-article-grid{ grid-template-columns: repeat(3, 1fr); }
  .jd-company-grid{ grid-template-columns: repeat(5, 1fr); }

  .jd-slide{ padding: 64px 48px; min-height: 280px; }
  .jd-slide h3{ font-size: 30px; }

  .jd-single-job-layout{ flex-direction: row; align-items: flex-start; }
  .jd-single-job-main{ flex: 1; min-width: 0; }
  .jd-single-job-sidebar{ width: 320px; flex-shrink: 0; position: sticky; top: 90px; }

  .jd-blog-layout{ flex-direction: row; }
  .jd-blog-main{ flex: 1; }
  .jd-blog-layout .jd-single-job-sidebar{ width: 320px; }

  .jd-archive-filters{ flex-direction: row; align-items: center; }
  .jd-archive-filters input{ flex: 2; }
  .jd-archive-filters select{ flex: 1; }
  .jd-archive-filters button{ flex-shrink: 0; width: auto; }

  .jd-footer-grid{ grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }

  .jd-section{ padding: 56px 0; }
  .jd-section-title{ font-size: 26px; }
}

/* ==========================================================================
   Responsive — Large Desktop (≥ 1280px)
   ========================================================================== */
@media (min-width: 1280px){
  .jd-hero h1{ font-size: 46px; }
}

/* ==========================================================================
   Print / Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .jd-slider-track{ transition: none; }
}

/* Header nav — guaranteed single line via CSS Grid */
@media (min-width: 900px){
  .jd-header-inner{
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo   search"
      "nav    nav";
    align-items: center;
    column-gap: 20px;
    row-gap: 10px;
    padding: 14px 0 10px;
  }
  .jd-logo{ grid-area: logo; }
  .jd-header-search{
    grid-area: search;
    justify-self: end;
    width: 100%;
    max-width: 420px;
  }
  .jd-primary-nav{
    grid-area: nav;
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    box-shadow: none;
    background: transparent;
    overflow: visible;
    border-top: 1px solid var(--jd-border);
    padding-top: 10px;
  }
  .jd-menu{
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .jd-menu::-webkit-scrollbar{ display: none; }
  .jd-menu li a{
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
  }
}