/*
Theme Name: Pharma Speed Post
Theme URI: https://pharmaspeedpost.com
Author: Pharma Speed Post Engineering
Author URI: https://pharmaspeedpost.com
Description: Fast, lightweight, modern SaaS WordPress theme for Pharmaceutical & Clinical Research careers. Features subtle metallic accents, instant AI search engine, 0% emojis, and pre-engineered manual Google AdSense slots.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pharma-speed-post
Tags: custom-background, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

:root {
  /* Brand Palette */
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #f0f9ff;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --text-main: #334155;
  --text-muted: #64748b;
  --danger: #ef4444;
  --success: #16a34a;

  /* Subtle Metallic Accents & Sheen */
  --metal-platinum: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
  --metal-chrome-border: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 50%, #cbd5e1 100%);
  --metal-titanium-head: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  --metal-steel-pill: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  --metal-cyan-gloss: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #0369a1 100%);

  /* Surfaces & Borders */
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --border-metal: #cbd5e1;
  --border-focus: #38bdf8;

  /* Geometry & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-metal: 0 2px 8px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: #f8fafc;
  background-image: radial-gradient(#e2e8f0 0.75px, transparent 0.75px);
  background-size: 24px 24px;
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   TOP NOTIFICATION TICKER
   ========================================================================== */
.top-ticker {
  background: var(--metal-titanium-head);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
  border-bottom: 1px solid #334155;
}

.top-ticker .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #38bdf8;
  color: #0f172a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ticker-text {
  color: #cbd5e1;
  font-size: 12px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8 0%, #cbd5e1 50%, #0284c7 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.header-logo svg, .header-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-links li a {
  color: var(--navy-light);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.nav-links li a:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.community-pill.wa {
  background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
}

.community-pill.tg {
  background: linear-gradient(135deg, #0088CC 0%, #006da3 100%);
}

.community-pill.li {
  background: linear-gradient(135deg, #0A66C2 0%, #084e96 100%);
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--metal-steel-pill);
  border: 1px solid var(--border-metal);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: inset 0 1px 0 #ffffff;
  transition: all 0.15s;
}

.header-search-btn:hover {
  border-color: var(--primary);
  color: var(--navy);
}

.kbd-badge {
  background: #ffffff;
  border: 1px solid var(--border-metal);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--navy);
}

/* ==========================================================================
   HERO & REAL-TIME AI SEARCH ENGINE
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-metal);
  padding: 48px 0 40px 0;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--metal-steel-pill);
  border: 1px solid var(--border-metal);
  box-shadow: inset 0 1px 0 #ffffff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.live-indicator {
  width: 7px;
  height: 7px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-title span.highlight {
  color: var(--primary);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

/* AI Semantic Search Box */
.ai-search-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto 18px auto;
}

.search-box {
  background: #ffffff;
  border: 1.5px solid var(--border-metal);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), inset 0 1px 0 #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

.search-icon-wrap {
  display: flex;
  align-items: center;
  padding-left: 8px;
  color: var(--text-muted);
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-action-btn {
  background: var(--metal-cyan-gloss);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 6px rgba(2, 132, 199, 0.3);
  transition: all 0.2s;
}

.search-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 12px rgba(2, 132, 199, 0.4);
}

/* Smart Sector Filter Chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.filter-chip {
  background: var(--metal-steel-pill);
  border: 1px solid var(--border-metal);
  box-shadow: inset 0 1px 0 #ffffff;
  color: var(--text-main);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.filter-chip:hover, .filter-chip.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  box-shadow: none;
}

/* Live Counter Bar */
.live-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.live-status-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-count-tag {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

/* ==========================================================================
   CATEGORY GRID
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm), inset 0 1px 0 #ffffff;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), inset 0 1px 0 #ffffff;
}

.cat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--metal-steel-pill);
  border: 1px solid var(--border-metal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 #ffffff;
}

.cat-info h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.cat-info p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   JOB LISTINGS & CARDS
   ========================================================================== */
.job-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 35px;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 #ffffff;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), inset 0 1px 0 #ffffff;
}

.job-card-main {
  flex: 1;
}

.job-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.company-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-dark);
}

.verified-badge-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 12px;
}

.job-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

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

.job-card-title a:hover {
  color: var(--primary);
}

.job-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.job-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--metal-steel-pill);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 #ffffff;
  color: var(--text-main);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.job-pill svg {
  color: var(--text-muted);
}

.job-pill.remote-pill {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
  font-weight: 700;
}

.job-card-action {
  flex-shrink: 0;
  text-align: right;
}

.job-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--metal-cyan-gloss);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: all 0.2s;
}

.job-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   MANUAL ADSENSE SLOTS (PRE-ENGINEERED HIGH RPM, AUTO-COLLAPSING)
   ========================================================================== */
.ad-slot {
  margin: 22px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  clear: both;
}

/* Empty state collapses 100% so 0 empty boxes during AdSense review */
.ad-slot:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  border: none !important;
}

/* ==========================================================================
   SINGLE JOB POST STYLES (.post-box STANDARD)
   ========================================================================== */
.post-box {
  background: var(--surface);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm), inset 0 1px 0 #ffffff;
}

.post-breadcrumbs {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.post-breadcrumbs a {
  color: var(--text-muted);
}

.post-breadcrumbs a:hover {
  color: var(--primary);
}

.post-box h1.post-title, .post-box h2.title {
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 14px 0;
  letter-spacing: -0.4px;
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  color: #166534;
  border: 1px solid #86efac;
  box-shadow: inset 0 1px 0 #ffffff;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 20px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill {
  background: var(--metal-steel-pill);
  border: 1px solid var(--border-metal);
  box-shadow: inset 0 1px 0 #ffffff;
  color: var(--navy);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.notice-banner {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--border-metal);
  border-right: 1px solid var(--border-metal);
  border-bottom: 1px solid var(--border-metal);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 18px 0;
  color: var(--navy);
  font-size: 14px;
  box-shadow: inset 0 1px 0 #ffffff;
}

.community-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #f0f9ff 100%);
  border: 1px solid var(--border-metal);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 0 #ffffff;
}

.top-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.top-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
}

.telegram-btn {
  background: linear-gradient(135deg, #0088CC 0%, #006da3 100%);
}

.linkedin-btn {
  background: linear-gradient(135deg, #0A66C2 0%, #084e96 100%);
}

.post-box .card {
  background: #ffffff;
  border: 1px solid var(--border-metal);
  border-radius: 12px;
  padding: 22px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.post-box .card h3 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 14px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.post-box .card ul, .post-box .card ol {
  margin: 10px 0 10px 22px;
  padding: 0;
}

.post-box .card li {
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 14.5px;
}

.table-container {
  overflow-x: auto;
  margin: 14px 0;
  border-radius: 8px;
  border: 1px solid var(--border-metal);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

thead th {
  background: var(--metal-titanium-head);
  color: #ffffff;
  padding: 12px 18px;
  font-weight: 800;
  border-bottom: 2px solid var(--border-focus);
}

tbody td {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  color: var(--text-main);
}

tbody tr:nth-child(even) {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.blueprint-box {
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 50%, #ffffff 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 12px;
  padding: 22px;
  margin: 22px 0;
  box-shadow: inset 0 1px 0 #ffffff;
}

.blueprint-box h3 {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 14px 0;
}

.blueprint-step {
  background: #ffffff;
  border: 1px solid var(--border-metal);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 0 #ffffff;
}

.cpc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cpc-pill {
  background: var(--metal-steel-pill);
  border: 1px solid var(--border-metal);
  box-shadow: inset 0 1px 0 #ffffff;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
}

/* Master Apply Button strictly outside cards at bottom */
a.btn, .post-box a.btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 40%, #0ea5e9 70%, #0284c7 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
  text-align: center;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
  margin: 28px 0 16px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px -3px rgba(2, 132, 199, 0.45);
  transition: all 0.2s;
}

a.btn:hover, .post-box a.btn:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 28px -3px rgba(2, 132, 199, 0.55);
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 50px 0 24px 0;
  border-top: 2px solid #1e293b;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 13.5px;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

/* ==========================================================================
   INSTANT SEARCH MODAL (POPUP ON CMD+K)
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-modal-backdrop.active {
  display: flex;
}

.search-modal-dialog {
  background: #ffffff;
  width: 90%;
  max-width: 640px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-metal);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.search-modal-head {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-modal-head input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.search-modal-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
}

.search-result-item {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.search-result-item:hover {
  background: var(--surface-alt);
}

.search-result-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 3px;
}

.search-result-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .hero-title {
    font-size: 26px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .job-card-action {
    width: 100%;
  }
  .job-card-btn {
    width: 100%;
    justify-content: center;
  }
  .top-btn-group {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .header-actions .community-pill {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .post-box {
    padding: 18px;
  }
}
