/* ================================================
   PEZAJOB - Professional Stylesheet v2.0
   Connecting Zambia's Talent With Opportunity

   Official brand colors:
     Primary (navy):  #2c3e50  =  --primary
     Accent (gold):   #D1CF0A  →  --secondary
   ================================================ */

/* Font loading: every page that links this stylesheet already has its own
   <link> to the same Google Fonts family in <head> — a render-blocking
   @import here would just re-fetch it sequentially instead of in parallel. */

/* ---- CSS Variables ---- */
:root {
  --primary: #2C3E50;
  --primary-light: #34495e;
  --primary-dark: #1a252f;
  --secondary: #D1CF0A;
  --secondary-dark: #b8b608;
  --secondary-light: #fbfd25;
  --accent: #00c9a7;
  --accent-red: #ff5a5f;
  --bg: #f0f4f8;
  --bg-alt: #e8edf2;
  --text: #1a2332;
  --text-light: #4a5568;
  --text-muted: #8896a6;
  --white: #ffffff;
  --card-bg: #ffffff;
  --border: #dde3ea;
  --border-light: #eef1f4;
  --shadow-sm: 0 1px 4px rgba(44,62,80,0.06);
  --shadow: 0 4px 20px rgba(44,62,80,0.10);
  --shadow-lg: 0 12px 48px rgba(44,62,80,0.16);
  --shadow-xl: 0 24px 80px rgba(44,62,80,0.20);
  --glow: 0 0 40px rgba(209,207,10,0.20);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  --font-main: 'Quicksand', sans-serif;
  --font-display: 'Quicksand', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, button, textarea, select { font-family: inherit; outline: none; border: none; }
button { cursor: pointer; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { font-size: 1rem; }

/* ---- Utility ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { color: var(--primary); margin-bottom: 14px; }
.section-header p { color: var(--text-light); font-size: 1.08rem; max-width: 560px; margin: 0 auto; line-height: 1.75; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(209,207,10,0.12);
  color: #8b6d00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 40px;
  margin-bottom: 16px;
  border: 1px solid rgba(209,207,10,0.3);
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 11px; border-radius: 20px; font-size: 0.71rem; font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-premium { background: linear-gradient(135deg, #fbfd25, #d1cf0a); color: #5a3f00; box-shadow: 0 2px 8px rgba(209,207,10,0.3); }
.badge-new { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-hot { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-closed { background: #fce4ec; color: #c62828; border: 1px solid #f8bbd0; }
.badge-ongoing { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.badge-open { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 11px; font-size: 0.93rem; font-weight: 700;
  transition: var(--transition); cursor: pointer; border: 2px solid transparent;
  letter-spacing: 0.1px;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 16px rgba(44,62,80,0.2);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(44,62,80,0.3); }
.btn-secondary {
  background: var(--secondary); color: var(--primary);
  box-shadow: 0 4px 16px rgba(209,207,10,0.3);
}
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(209,207,10,0.4); }
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--border);
}
.btn-outline:hover { background: var(--primary); color: var(--white); border-color: var(--primary); transform: translateY(-1px); }
.btn-outline-white {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; border-radius: 9px; }
.btn-lg { padding: 16px 44px; font-size: 1.05rem; border-radius: 13px; }

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8,15,24,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(8,15,24,0.98);
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 0 28px; height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}

/* Back to site — shared component */
.back-to-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.back-to-site-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.back-to-site--nav {
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  white-space: nowrap;
}
.back-to-site--nav .back-to-site-icon {
  background: rgba(209,207,10,0.18);
  color: var(--secondary);
}
.back-to-site--nav:hover {
  color: var(--primary);
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 4px 16px rgba(209,207,10,0.32);
  transform: translateY(-1px);
}
.back-to-site--nav:hover .back-to-site-icon {
  background: rgba(44,62,80,0.14);
  color: var(--primary);
  transform: translateX(-1px);
}
.back-to-site--dash {
  margin-bottom: 16px;
  padding: 9px 16px 9px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.back-to-site--dash .back-to-site-icon {
  width: 24px;
  height: 24px;
  font-size: 0.68rem;
  background: rgba(209,207,10,0.2);
  color: var(--secondary-dark);
}
.back-to-site--dash:hover {
  color: var(--primary);
  background: rgba(209,207,10,0.1);
  border-color: rgba(209,207,10,0.45);
  box-shadow: 0 4px 16px rgba(209,207,10,0.18);
  transform: translateX(-2px);
}
.back-to-site--dash:hover .back-to-site-icon {
  background: var(--secondary);
  color: var(--primary);
  transform: translateX(-1px);
}
.dash-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  position: sticky;
  top: 72px;
  z-index: 900;
  padding: 10px 0 12px;
  background: linear-gradient(to bottom, var(--bg) 75%, rgba(240,244,248,0));
}
.dash-page-head .back-to-site--dash {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .dash-page-head {
    top: 64px;
    padding-top: 8px;
  }
}
.nav-back-site-mobile {
  margin-top: 6px;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  background: rgba(209,207,10,0.1) !important;
  border: 1px solid rgba(209,207,10,0.22) !important;
  color: var(--secondary) !important;
  font-weight: 700 !important;
}
.nav-back-site-mobile i {
  margin-right: 4px;
}
@media (max-width: 768px) {
  .back-to-site--nav { display: none; }
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--secondary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--primary);
  letter-spacing: -1px; box-shadow: 0 4px 12px rgba(209,207,10,0.3);
}
.logo-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.logo-text span { color: var(--secondary); }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 14px; border-radius: 8px; font-size: 0.88rem; font-weight: 500;
  color: rgba(255,255,255,0.72); transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--secondary); background: rgba(209,207,10,0.08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(145deg, #050d14 0%, #0a1929 45%, #2c3e50 100%);
  overflow: hidden; padding-top: 68px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.55;
  filter: saturate(0.7) brightness(0.85);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(5,13,20,0.82) 0%, rgba(10,25,41,0.72) 50%, rgba(44,62,80,0.55) 100%);
}
.hero-glow {
  position: absolute; top: -10%; right: 5%; width: 700px; height: 700px;
  border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(209,207,10,0.07) 0%, transparent 70%);
}
.hero-glow2 {
  position: absolute; bottom: -5%; left: -5%; width: 500px; height: 500px;
  border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(0,201,167,0.05) 0%, transparent 70%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.025;
  background-image: radial-gradient(circle, var(--secondary) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(209,207,10,0.1); border: 1px solid rgba(209,207,10,0.25);
  color: var(--secondary); font-size: 0.77rem; font-weight: 700;
  padding: 6px 16px; border-radius: 40px; margin-bottom: 28px;
  letter-spacing: 0.5px;
}
.hero-title { color: var(--white); margin-bottom: 22px; line-height: 1.08; }
.hero-title .accent { color: var(--secondary); display: block; }
.hero-subtitle { color: rgba(255,255,255,0.65); font-size: 1.12rem; margin-bottom: 44px; line-height: 1.75; max-width: 520px; }
.hero-search {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.search-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: center;
}
.search-field {
  position: relative;
}
.search-field i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--secondary); font-size: 0.88rem; z-index: 1;
}
.search-field input, .search-field select {
  width: 100%; padding: 13px 14px 13px 40px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; color: var(--white); font-size: 0.88rem;
  transition: var(--transition);
}
.search-field input::placeholder { color: rgba(255,255,255,0.38); }
.search-field input:focus, .search-field select:focus {
  border-color: rgba(209,207,10,0.5); background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(209,207,10,0.08);
}
.search-field select { cursor: pointer; }
.search-field select option { background: var(--primary-dark); color: var(--white); }
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
}
.hero-stat { border-left: 2px solid rgba(209,207,10,0.3); padding-left: 16px; }
.hero-stat .num {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--secondary);
  display: block; line-height: 1;
}
.hero-stat .label { color: rgba(255,255,255,0.55); font-size: 0.78rem; margin-top: 4px; }

/* Hero Visual Side */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-cards-stack { position: relative; width: 360px; height: 480px; }
.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 20px; color: var(--white);
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.floating-card:nth-child(1) { top: 0; right: 0; width: 250px; animation-delay: 0s; }
.floating-card:nth-child(2) { top: 150px; left: 0; width: 230px; animation-delay: 2s; }
.floating-card:nth-child(3) { bottom: 0; right: 20px; width: 260px; animation-delay: 4s; }
.fc-title { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 6px; letter-spacing: 0.5px; }
.fc-value { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.fc-tag { font-size: 0.7rem; background: rgba(209,207,10,0.18); color: var(--secondary); padding: 3px 10px; border-radius: 20px; display: inline-block; border: 1px solid rgba(209,207,10,0.2); }
.fc-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; }
.fc-name { font-weight: 700; font-size: 0.9rem; }
.fc-role { font-size: 0.76rem; color: rgba(255,255,255,0.55); }
.fc-salary { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--secondary); }
.fc-company-logo { width: 34px; height: 34px; border-radius: 8px; background: var(--secondary); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; font-size: 0.72rem; margin-bottom: 8px; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(0.5deg); }
}

/* ================================================
   STATS SECTION
   ================================================ */
.stats-section {
  background: var(--primary);
  padding: 64px 0;
  position: relative; overflow: hidden;
}
.stats-section::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(209,207,10,0.05);
}
.stats-section::after {
  content: ''; position: absolute; bottom: -30%; left: -5%;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(0,201,167,0.04);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center;
  position: relative; z-index: 1;
}
.stat-item { color: var(--white); }
.stat-number {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 700;
  color: var(--secondary); display: block; line-height: 1;
}
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-top: 10px; }
.stat-icon { font-size: 1.6rem; color: rgba(209,207,10,0.25); margin-bottom: 14px; }

/* ================================================
   JOB CARDS
   ================================================ */
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }

/* Homepage — Latest Opportunities */
.section-latest-jobs {
  padding-top: 20px;
  padding-bottom: 64px;
}
.section:has(+ .section-latest-jobs) {
  padding-bottom: 60px;
}
.section-latest-jobs .section-header {
  margin-bottom: 36px;
}
.section-latest-jobs .jobs-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.section-latest-jobs .job-card {
  height: 100%;
  min-height: 272px;
  padding: 20px 18px;
}
.section-latest-jobs .job-card-header {
  min-height: 50px;
  margin-bottom: 12px;
  align-items: center;
}
.section-latest-jobs .job-title {
  font-size: 0.98rem;
  min-height: 2.6em;
  margin-bottom: 10px;
}
.section-latest-jobs .job-company-name,
.section-latest-jobs .job-company-location {
  max-width: 110px;
}
.section-latest-jobs .job-meta {
  min-height: 28px;
  max-height: 28px;
  margin-bottom: 10px;
  overflow: hidden;
}
.section-latest-jobs .job-salary {
  font-size: 1.05rem;
  margin-bottom: 0;
  min-height: 1.4em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-latest-jobs .job-card-footer {
  margin-top: auto;
  padding-top: 14px;
}
.section-latest-jobs .job-card-header .badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  padding: 3px 7px;
}
.section-latest-jobs .mt-40 {
  margin-top: 28px;
}

@media (max-width: 700px) {
  .section-latest-jobs {
    padding-top: 14px;
    padding-bottom: 48px;
  }
  .section:has(+ .section-latest-jobs) {
    padding-bottom: 40px;
  }
  .section-latest-jobs .section-header {
    margin-bottom: 28px;
  }
  .section-latest-jobs .job-actions .btn-sm {
    min-height: unset;
    min-width: unset;
    padding: 5px 10px;
    font-size: 0.72rem;
    border-radius: 7px;
    gap: 4px;
  }
  .section-latest-jobs .job-actions .btn-outline.btn-sm {
    padding: 5px 8px;
  }
}

@media (max-width: 1200px) {
  .section-latest-jobs .jobs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .section-latest-jobs .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .section-latest-jobs .jobs-grid {
    grid-template-columns: 1fr;
  }
  .section-latest-jobs .job-card {
    min-height: 0;
    padding: 16px 14px;
  }
  .section-latest-jobs .job-card-footer {
    gap: 8px;
  }
}
.jobs-grid.stagger-reveal .job-card,
.companies-grid.stagger-reveal .company-card,
.candidates-grid.stagger-reveal .candidate-card {
  animation: cardStaggerIn 0.55s ease both;
  animation-delay: calc(var(--stagger-i, 0) * 80ms);
}
@keyframes cardStaggerIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.job-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
  transition: var(--transition); position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.job-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.job-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.job-card:hover::before { transform: scaleX(1); }
.job-card-header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px;
}
.job-company-info { display: flex; align-items: center; gap: 12px; }
.company-logo-sm {
  width: 50px; height: 50px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary); font-weight: 700; font-size: 1rem;
  font-family: var(--font-display); flex-shrink: 0;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.company-logo-sm img { width: 100%; height: 100%; object-fit: cover; }
.job-company-name {
  font-size: 0.82rem; font-weight: 600; color: var(--text-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 160px;
}
.job-company-location { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.job-title {
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; color: var(--primary);
  margin-bottom: 12px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; max-height: 3.6rem; overflow: hidden; }
.job-meta-tag {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.76rem; font-weight: 500; color: var(--text-light);
  background: var(--bg); padding: 4px 10px; border-radius: 7px;
  border: 1px solid var(--border-light);
}
.job-meta-tag i { color: var(--secondary); font-size: 0.7rem; }
.job-salary {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  color: var(--primary); margin-bottom: 16px;
}
.job-salary span { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; font-family: var(--font-main); }
.job-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.job-date { font-size: 0.76rem; color: var(--text-muted); }
.job-actions { display: flex; gap: 8px; }

/* ================================================
   COMPANY CARDS
   ================================================ */
.companies-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.company-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px 22px;
  text-align: center; transition: var(--transition); position: relative;
  overflow: hidden;
}
.company-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  transform: scaleX(0); transition: var(--transition);
}
.company-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(209,207,10,0.3); }
.company-card:hover::after { transform: scaleX(1); }
.company-card-logo {
  width: 72px; height: 72px; border-radius: 16px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary); font-weight: 700; font-size: 1.4rem;
  font-family: var(--font-display);
  box-shadow: 0 6px 20px rgba(44,62,80,0.22);
}
.company-card-name { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; color: var(--primary); margin-bottom: 4px; }
.company-card-industry { font-size: 0.8rem; color: var(--text-light); margin-bottom: 16px; font-weight: 500; }
.company-card-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.company-stat { text-align: center; }
.company-stat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--primary); display: block; }
.company-stat-label { font-size: 0.7rem; color: var(--text-muted); }

/* ================================================
   CANDIDATE CARDS
   ================================================ */
.candidates-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.candidate-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
  text-align: center; transition: var(--transition);
}
.candidate-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.candidate-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1.5rem;
  font-family: var(--font-display); overflow: hidden;
  border: 3px solid var(--secondary);
  box-shadow: 0 4px 16px rgba(209,207,10,0.25);
}
.candidate-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--primary); margin-bottom: 4px; }
.candidate-role { font-size: 0.82rem; color: var(--text-light); margin-bottom: 12px; font-weight: 500; }
.skills-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 16px; }
.skill-tag { background: var(--bg); border: 1px solid var(--border); color: var(--text-light); font-size: 0.7rem; padding: 3px 10px; border-radius: 20px; font-weight: 500; }
.availability { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 600; }
.presence-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; margin-bottom: 8px;
}
.presence-pill.online { color: #15803d; }
.presence-pill.offline { color: #64748b; }
.availability.available { color: #15803d; }
.availability.available::before { content:''; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: inline-block; animation: pulse 2s infinite; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
@keyframes pulse { 0%,100% { opacity:1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }

/* ================================================
   CAROUSEL
   ================================================ */
.carousel-container { position: relative; overflow: hidden; }
.carousel-container::before,
.carousel-container::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.carousel-container::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.carousel-container::after { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }
.carousel-track {
  display: flex; gap: 22px;
  animation: slide 30s linear infinite;
  width: max-content; padding: 8px 0;
}
.carousel-track:hover { animation-play-state: paused; }
@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================
   HOW IT WORKS
   ================================================ */
.how-it-works { background: var(--white); }
.hiw-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  max-width: 520px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow-sm);
}
.hiw-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  color: var(--text-muted);
  white-space: nowrap;
}
.hiw-tab i { font-size: 0.95rem; opacity: 0.85; }
.hiw-tab.active {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 4px 16px rgba(44,62,80,0.2);
}
.hiw-tab:hover:not(.active) { color: var(--primary); background: var(--bg); }
.hiw-panel { display: none; }
.hiw-panel.active { display: block; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 36px; left: 12%; right: 12%;
  height: 2px; background: linear-gradient(90deg, var(--secondary), transparent);
  opacity: 0.3; z-index: 0;
}
.step { text-align: center; padding: 36px 20px; border-radius: var(--radius); transition: var(--transition); position: relative; z-index: 1; }
.step:hover { background: var(--bg); transform: translateY(-5px); box-shadow: var(--shadow); }
.step-icon { width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.6rem; color: var(--secondary); box-shadow: 0 8px 24px rgba(44,62,80,0.2); }
.step h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.02rem; }
.step p { font-size: 0.87rem; color: var(--text-light); line-height: 1.75; }
.step-num { display: inline-flex; width: 28px; height: 28px; background: var(--secondary); color: var(--primary); border-radius: 50%; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(209,207,10,0.3); }

/* ================================================
   CATEGORIES
   ================================================ */
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: stretch; }
.category-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px; text-align: center;
  cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; min-height: 148px;
}
.category-card:hover { border-color: var(--secondary); transform: translateY(-4px); box-shadow: var(--shadow); background: linear-gradient(145deg, #fff, rgba(209,207,10,0.04)); }
.category-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #1a2f45);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--secondary);
  font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(44,62,80,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover .category-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 8px 24px rgba(44,62,80,0.2);
}
.category-name {
  font-size: 0.82rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; font-family: var(--font-display);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.35; width: 100%;
}
.category-count { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 32px;
  transition: var(--transition); position: relative;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card::before { content: '\201C'; position: absolute; top: 16px; right: 24px; font-size: 5rem; color: rgba(209,207,10,0.15); font-family: Georgia; line-height: 1; }
.testimonial-stars { color: #f59e0b; margin-bottom: 16px; font-size: 0.88rem; letter-spacing: 2px; }
.testimonial-text { font-size: 0.9rem; color: var(--text-light); line-height: 1.85; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--primary); font-family: var(--font-display); }
.testimonial-role { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 110px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before { content:''; position:absolute; top:-50%;left:-20%;width:700px;height:700px;border-radius:50%;background:rgba(209,207,10,0.05); }
.cta-section::after { content:''; position:absolute; bottom:-40%;right:-10%;width:400px;height:400px;border-radius:50%;background:rgba(0,201,167,0.04); }
.cta-section h2 { color: var(--white); margin-bottom: 18px; }
.cta-section p { color: rgba(255,255,255,0.65); margin-bottom: 44px; font-size: 1.08rem; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 64px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.85; margin: 18px 0 28px; color: rgba(255,255,255,0.55); }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 0.88rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--secondary); color: var(--primary); border-color: var(--secondary); transform: translateY(-2px); }
.footer-col h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--white); margin-bottom: 22px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.86rem; color: rgba(255,255,255,0.55); transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--secondary); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07); padding: 24px 0;
}
.footer-bottom p { font-size: 0.83rem; color: rgba(255,255,255,0.35); }

/* ================================================
   MODALS
   ================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 44px; max-width: 520px; width: 90%;
  transform: translateY(30px) scale(0.97); transition: var(--transition);
  position: relative; box-shadow: var(--shadow-xl);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer; transition: var(--transition);
  font-size: 0.88rem;
}
.modal-close:hover { background: var(--primary); color: var(--white); }

/* ================================================
   FORMS
   ================================================ */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: 11px;
  font-size: 0.92rem; color: var(--text);
  background: var(--bg); transition: var(--transition);
  font-family: var(--font-main);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); background: var(--white);
  box-shadow: 0 0 0 3px rgba(44,62,80,0.07);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ================================================
   FILTER BAR
   ================================================ */
.filter-bar {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px 24px;
  margin-bottom: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.filter-label { font-weight: 700; font-size: 0.84rem; color: var(--primary); white-space: nowrap; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag {
  padding: 7px 16px; border-radius: 9px; font-size: 0.8rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text-light); cursor: pointer; transition: var(--transition);
}
.filter-tag:hover, .filter-tag.active { border-color: var(--primary); color: var(--primary); background: rgba(44,62,80,0.05); }

/* ================================================
   PAGE HEADER
   ================================================ */
.page-header {
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 120px 0 68px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0; opacity: 0.03;
  background-image: radial-gradient(circle, var(--secondary) 1px, transparent 1px);
  background-size: 36px 36px;
}
.page-header::after {
  content: ''; position: absolute; top: -30%; right: -5%; width: 400px; height: 400px;
  border-radius: 50%; background: rgba(209,207,10,0.05);
}
.page-header-content { position: relative; z-index: 1; text-align: center; }
.page-header h1 { color: var(--white); margin-bottom: 14px; }
.page-header p { color: rgba(255,255,255,0.65); font-size: 1.05rem; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; font-size: 0.84rem; color: rgba(255,255,255,0.45);
}
.breadcrumb a { color: var(--secondary); transition: var(--transition); }
.breadcrumb a:hover { color: var(--secondary-light); }
.breadcrumb span { opacity: 0.5; }

/* ================================================
   ALERTS
   ================================================ */
.alert {
  padding: 14px 20px; border-radius: 11px; font-size: 0.88rem;
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-weight: 500;
}
.alert-success { background: #dcfce7; color: #166534; border-left: 4px solid #22c55e; }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-info { background: #dbeafe; color: #1d4ed8; border-left: 4px solid #3b82f6; }

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.reveal {
  opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1100px) {
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
  .companies-grid { grid-template-columns: repeat(3, 1fr); }
  .candidates-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-row > *:last-child { grid-column: 1/-1; }
  .companies-grid { grid-template-columns: repeat(2, 1fr); }
  .candidates-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  /* Mobile menu — slide down from top, full-screen overlay */
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,13,20,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: flex-start;
    padding: 90px 24px 40px;
    gap: 4px;
    overflow-y: auto;
    z-index: 9000;
    /* hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 15px 24px;
    border-radius: 12px;
    border-bottom: none;
    color: rgba(255,255,255,0.85);
  }
  .nav-link:hover, .nav-link.active {
    background: rgba(209,207,10,0.1);
    color: var(--secondary);
  }
  /* Show auth buttons inside mobile menu */
  .nav-menu-mobile-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
    max-width: 280px;
  }
  .nav-menu-mobile-actions .btn {
    flex: 1;
    justify-content: center;
    min-height: 44px;
  }
  .nav-toggle { display: flex; z-index: 9100; position: relative; }
  .jobs-grid { grid-template-columns: 1fr; }
  .companies-grid { grid-template-columns: 1fr 1fr; }
  .candidates-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-number { font-size: 2.4rem; }
  .search-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .companies-grid { grid-template-columns: 1fr; }
  .candidates-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Toast Notifications ---- */
.toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--white); border-radius: 12px; padding: 16px 22px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 12px;
  min-width: 300px; border-left: 4px solid var(--primary);
  animation: toastIn 0.4s cubic-bezier(0.4,0,0.2,1);
}
.toast.success { border-color: #22c55e; }
.toast.error { border-color: #ef4444; }
.toast-icon { font-size: 1.2rem; }
.toast.success .toast-icon { color: #22c55e; }
.toast.error .toast-icon { color: #ef4444; }
.toast-text { font-size: 0.88rem; font-weight: 600; }
@keyframes toastIn { from { opacity:0; transform: translateX(40px); } to { opacity:1; transform: translateX(0); } }

/* ---- Misc Utilities ---- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.font-display { font-family: var(--font-display); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 700; }

/* ════════════════════════════════════════════════════════════
   PEZAJOB — FULL RESPONSIVE SYSTEM
   Breakpoints:
     1280px  xl   wide desktop
     1100px  lg   standard desktop
      900px  md   tablet landscape / small desktop
      700px  sm   tablet portrait / large phone
      480px  xs   phone
      360px  xxs  small phone
   ════════════════════════════════════════════════════════════ */

/* ── Global base tokens ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }
table { width: 100%; }

/* ── Container ───────────────────────────────────────────── */
@media (max-width: 1280px) { .container { padding: 0 24px; } }
@media (max-width: 900px)  { .container { padding: 0 20px; } }
@media (max-width: 480px)  { .container { padding: 0 16px; } }

/* ── Sections ────────────────────────────────────────────── */
@media (max-width: 700px)  { .section { padding: 64px 0; } }
@media (max-width: 480px)  { .section { padding: 48px 0; } }

/* ── Typography scale ────────────────────────────────────── */
@media (max-width: 700px) {
  h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  h3 { font-size: 1.1rem; }
  p  { font-size: 0.95rem; }
  .section-header { margin-bottom: 36px; }
  .section-header p { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
  h2 { font-size: clamp(1.25rem, 5.5vw, 1.6rem); }
}

/* ── Navbar ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-container { height: 62px; }
  .nav-link { font-size: 0.85rem; padding: 7px 10px; }
}
@media (max-width: 700px) {
  .navbar { height: 60px; }
  .nav-container { height: 60px; padding: 0 16px; }
  /* nav-menu open/close handled above */
  .btn-sm { padding: 7px 14px; font-size: 0.8rem; }
  /* Hide header auth buttons on mobile (shown inside menu instead) */
  .nav-actions .btn:not(.nav-toggle) { display: none; }
}
@media (max-width: 360px) {
  .nav-actions .btn { display: none !important; }
  .logo-text { font-size: 1.2rem; }
  .logo-icon { width: 32px; height: 32px; }
}

/* ── Hero ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding-top: 62px; min-height: auto; padding-bottom: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; }
  .hero-visual { display: none; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 32px; }
}
@media (max-width: 700px) {
  .hero { padding-top: 60px; padding-bottom: 48px; }
  .hero-grid { padding: 32px 16px; gap: 24px; }
  .hero-search { padding: 16px; border-radius: 14px; }
  .search-row { grid-template-columns: 1fr; gap: 10px; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 1.25rem; }
  .hero-stat .label { font-size: 0.72rem; }
  .hero-tag { font-size: 0.7rem; padding: 5px 12px; }
}
@media (max-width: 480px) {
  .hero-grid { padding: 24px 16px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat { min-width: 80px; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
}

/* ── Stats strip ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .stats-section { padding: 48px 0; }
  .stats-grid { gap: 20px; }
  .stat-number { font-size: 2.2rem; }
  .stat-label { font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .stat-number { font-size: 1.9rem; }
  .stat-icon { font-size: 1.3rem; margin-bottom: 8px; }
}

/* ── Page header (inner pages) ───────────────────────────── */
@media (max-width: 700px) {
  .page-header { padding: 88px 0 44px; }
  .page-header h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
}

/* ── Job cards grid ──────────────────────────────────────── */
@media (max-width: 1100px) { .jobs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .jobs-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .job-card { padding: 18px 16px; }
  .job-title { font-size: 0.95rem; }
  .job-salary { font-size: 1rem; }
  .company-logo-sm { width: 42px; height: 42px; }
}

/* ── Company cards grid ──────────────────────────────────── */
@media (max-width: 1100px) { .companies-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .companies-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .companies-grid { grid-template-columns: 1fr; } }

/* ── Candidate cards ─────────────────────────────────────── */
@media (max-width: 1100px) { .candidates-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .candidates-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .candidates-grid { grid-template-columns: 1fr; } }

/* ── 3D Carousels ────────────────────────────────────────── */
@media (max-width: 700px) {
  .c3d-scene { height: 320px; perspective: 900px; }
  .c3d-stage { width: 200px; height: 260px; }
  .c3d-card  { width: 200px; height: 260px; padding: 20px 14px; border-radius: 16px; }
  .c3d-logo  { width: 68px; height: 68px; border-radius: 14px; margin-bottom: 12px; }
  .c3d-name  { font-size: 0.88rem; }
  .c3d-jobs  { font-size: 1.2rem; }

  .p3d-scene { height: 340px; perspective: 900px; }
  .p3d-stage { width: 210px; height: 280px; }
  .p3d-card  { width: 210px; height: 280px; padding: 22px 16px 18px; border-radius: 18px; }
  .p3d-avatar { width: 76px; height: 76px; margin-bottom: 12px; }
  .p3d-name  { font-size: 0.92rem; }
  .p3d-skill { font-size: 0.66rem; padding: 2px 7px; }
}
@media (max-width: 480px) {
  .c3d-scene { height: 290px; perspective: 700px; }
  .c3d-stage { width: 170px; height: 230px; }
  .c3d-card  { width: 170px; height: 230px; padding: 16px 12px; border-radius: 14px; }
  .c3d-logo  { width: 56px; height: 56px; border-radius: 12px; margin-bottom: 10px; }
  .c3d-name  { font-size: 0.8rem; }
  .c3d-industry { font-size: 0.7rem; margin-bottom: 8px; }
  .c3d-jobs  { font-size: 1.1rem; }
  .c3d-jobs-label { font-size: 0.65rem; }

  .p3d-scene { height: 300px; perspective: 700px; }
  .p3d-stage { width: 180px; height: 248px; }
  .p3d-card  { width: 180px; height: 248px; padding: 18px 12px 14px; }
  .p3d-avatar { width: 64px; height: 64px; margin-bottom: 10px; }
  .p3d-actions .btn { padding: 6px 12px; font-size: 0.72rem; }
}

/* ── How it works steps ──────────────────────────────────── */
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .hiw-tabs { max-width: 100%; margin-left: 0; margin-right: 0; flex-direction: column; gap: 6px; }
  .hiw-tab { white-space: normal; padding: 11px 14px; font-size: 0.84rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 24px 16px; }
  .step-icon { width: 58px; height: 58px; font-size: 1.3rem; }
  .steps-grid::before { display: none; }
}

/* ── Categories grid ─────────────────────────────────────── */
@media (max-width: 900px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 360px) { .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ── Testimonials ────────────────────────────────────────── */
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .testimonials-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .testimonial-card { padding: 22px 18px; }
  .testimonial-text { font-size: 0.85rem; }
}

/* ── CTA section ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .cta-section { padding: 72px 0; }
  .cta-btns { flex-direction: column; align-items: center; gap: 12px; }
  .cta-btns .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* ── Footer ──────────────────────────────────────────────── */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) {
  .footer { padding: 56px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding: 20px 0; }
  .footer-social { flex-wrap: wrap; }
}

/* ── Filter bar ──────────────────────────────────────────── */
@media (max-width: 700px) {
  .filter-bar { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .filter-tags { gap: 6px; }
  .filter-tag { font-size: 0.76rem; padding: 5px 12px; }
}

/* ── Buttons ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .btn-lg { padding: 13px 24px; font-size: 0.92rem; }
  .btn    { padding: 11px 22px; font-size: 0.88rem; }
}

/* ── Modals ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .modal { padding: 28px 20px; border-radius: 16px; width: 95%; }
}

/* ── Forms ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; /* prevent iOS zoom */ }
}

/* ── Scroll-to-top button ────────────────────────────────── */
@media (max-width: 480px) {
  #scroll-top { bottom: 16px !important; right: 16px !important; width: 38px !important; height: 38px !important; }
}

/* ════════════════════════════════════════════════════════════
   PEZAJOB — COMPREHENSIVE RESPONSIVE SYSTEM v2
   Full coverage: 320px → 1920px
   ════════════════════════════════════════════════════════════ */

/* ── Prevent horizontal scroll globally ─────────────────── */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe, svg { max-width: 100%; height: auto; }
table { width: 100%; }
input, select, textarea { max-width: 100%; }

/* ── Safe area (notch phones) ────────────────────────────── */
.navbar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
footer  { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }

/* ── 3D Carousel — responsive radius recalculation ──────── */
/* Handled via JS; CSS sizes cards per breakpoint */
@media (max-width: 900px) {
  .c3d-scene, .p3d-scene { perspective: 1000px; }
}
@media (max-width: 700px) {
  .c3d-scene { height: 300px; }
  .c3d-stage { width: 195px; height: 255px; }
  .c3d-card  { width: 195px; height: 255px; padding: 18px 14px; border-radius: 16px; }
  .c3d-logo  { width: 64px; height: 64px; border-radius: 13px; margin-bottom: 11px; }
  .c3d-name  { font-size: 0.85rem; }
  .c3d-industry { font-size: 0.71rem; }
  .c3d-jobs  { font-size: 1.2rem; }
  .c3d-jobs-label { font-size: 0.66rem; margin-bottom: 10px; }

  .p3d-scene  { height: 330px; }
  .p3d-stage  { width: 205px; height: 275px; }
  .p3d-card   { width: 205px; height: 275px; padding: 20px 14px 16px; border-radius: 18px; }
  .p3d-avatar { width: 72px; height: 72px; margin-bottom: 11px; }
  .p3d-name   { font-size: 0.9rem; }
  .p3d-role   { font-size: 0.76rem; margin-bottom: 9px; }
  .p3d-avail-label { font-size: 0.69rem; margin-bottom: 10px; }
  .p3d-skills { gap: 4px; margin-bottom: 11px; }
  .p3d-skill  { font-size: 0.65rem; padding: 2px 7px; }
  .p3d-actions .btn { padding: 7px 12px; font-size: 0.74rem; }
}
@media (max-width: 480px) {
  .c3d-scene { height: 265px; }
  .c3d-stage { width: 168px; height: 228px; }
  .c3d-card  { width: 168px; height: 228px; padding: 14px 10px; border-radius: 14px; }
  .c3d-logo  { width: 54px; height: 54px; border-radius: 11px; margin-bottom: 9px; }
  .c3d-name  { font-size: 0.78rem; }
  .c3d-industry { font-size: 0.67rem; margin-bottom: 7px; }
  .c3d-jobs  { font-size: 1.05rem; }
  .c3d-jobs-label { margin-bottom: 8px; font-size: 0.62rem; }
  .badge.c3d-badge { font-size: 0.63rem; padding: 2px 8px; }

  .p3d-scene  { height: 285px; }
  .p3d-stage  { width: 172px; height: 240px; }
  .p3d-card   { width: 172px; height: 240px; padding: 16px 10px 12px; border-radius: 15px; }
  .p3d-avatar { width: 60px; height: 60px; margin-bottom: 9px; border-width: 2px; }
  .p3d-avail  { width: 12px; height: 12px; }
  .p3d-name   { font-size: 0.82rem; margin-bottom: 2px; }
  .p3d-role   { font-size: 0.7rem; margin-bottom: 7px; }
  .p3d-avail-label { font-size: 0.65rem; margin-bottom: 8px; }
  .p3d-skills { margin-bottom: 9px; }
  .p3d-actions { gap: 5px; }
  .p3d-actions .btn { padding: 5px 9px; font-size: 0.68rem; border-radius: 7px; }
}
@media (max-width: 360px) {
  .c3d-scene { height: 240px; }
  .c3d-stage { width: 150px; height: 205px; }
  .c3d-card  { width: 150px; height: 205px; padding: 12px 8px; }
  .c3d-logo  { width: 46px; height: 46px; }
  .p3d-scene  { height: 260px; }
  .p3d-stage  { width: 155px; height: 215px; }
  .p3d-card   { width: 155px; height: 215px; padding: 13px 8px; }
  .p3d-avatar { width: 52px; height: 52px; }
}

/* ── Jobs page sidebar filter ────────────────────────────── */
@media (max-width: 900px) {
  .jobs-layout { grid-template-columns: 1fr !important; }
  .filter-sidebar { position: static !important; display: none; }
  .filter-sidebar.open { display: block; }
  .filter-sidebar-toggle { display: flex !important; }
}
@media (min-width: 901px) { .filter-sidebar-toggle { display: none !important; } }
@media (max-width: 600px) {
  .search-bar-top { flex-direction: column; }
  .search-bar-top > div { width: 100%; }
  .jobs-header { flex-direction: column; align-items: flex-start; }
  .sort-select { width: 100%; }
  .pagination { flex-wrap: wrap; gap: 5px; }
  .page-btn { width: 32px; height: 32px; font-size: 0.78rem; }
}

/* ── Blog page ───────────────────────────────────────────── */
@media (max-width: 1000px) {
  .featured-article { grid-template-columns: 1fr !important; }
  .featured-img { min-height: 240px !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .articles-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr !important; }
  .featured-body { padding: 24px 20px !important; }
  .featured-body h2 { font-size: 1.35rem !important; }
  .blog-cats { gap: 6px !important; }
  .blog-cat { padding: 5px 14px !important; font-size: 0.78rem !important; }
  .blog-search-wrap input { padding: 13px 48px 13px 18px !important; font-size: 0.9rem !important; }
}

/* ── Blog post page ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 1fr !important; padding: 40px 0 60px !important; }
  .post-sidebar { position: static !important; }
}
@media (max-width: 700px) {
  .post-hero-img { height: 220px !important; }
  .post-hero h1 { font-size: clamp(1.5rem, 5vw, 2.2rem) !important; }
  .post-meta-bar { gap: 12px !important; padding: 18px 0 !important; }
  .post-meta-sep { display: none; }
  .salary-table { font-size: 0.78rem; }
  .salary-table th, .salary-table td { padding: 9px 12px; }
  .related-grid { grid-template-columns: 1fr !important; }
  .author-card { flex-direction: column; gap: 14px; }
  .key-takeaway { padding: 22px 20px !important; }
}
@media (max-width: 480px) {
  .post-breadcrumb { font-size: 0.72rem; }
  .post-tags-share { flex-direction: column; align-items: flex-start; gap: 12px; }
  .share-btns { flex-wrap: wrap; }
}

/* ── Podcast listing page ────────────────────────────────── */
@media (max-width: 900px) {
  .episodes-layout { grid-template-columns: 1fr !important; }
  .podcast-sidebar { display: none; }
}
@media (max-width: 700px) {
  .podcast-hero { padding: 100px 0 48px !important; }
  .episode-card { flex-direction: column !important; gap: 14px !important; }
  .ep-num-badge { align-self: flex-start; }
  .ep-card-body { padding: 0 !important; }
  .ep-player-row { flex-wrap: wrap; gap: 10px !important; }
}

/* ── Podcast episode page ────────────────────────────────── */
@media (max-width: 1100px) {
  .ep-layout { grid-template-columns: 1fr !important; }
  .ep-sidebar { position: static !important; }
  .ep-hero-inner { grid-template-columns: 1fr !important; gap: 40px !important; }
  .ep-cover { max-width: 320px !important; margin: 0 auto; }
}
@media (max-width: 700px) {
  .ep-hero { padding: 100px 0 40px !important; }
  .ep-cta-row { flex-direction: column; }
  .ep-cta-row .btn { width: 100%; justify-content: center; max-width: 320px; }
  .guest-card { flex-direction: column !important; gap: 14px !important; }
  .player-inner { flex-wrap: wrap; gap: 12px; }
  .player-volume { display: none !important; }
  .player-info { min-width: 0; flex: 1; }
  .player-progress-wrap { width: 100%; order: 3; }
  .chapters-list { gap: 0; }
  .ep-meta { gap: 12px; }
  .ep-meta-sep { display: none; }
  .related-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .ep-num-tag { font-size: 0.65rem; }
  .ep-hero-inner h1 { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
  .ep-share { flex-direction: column; align-items: flex-start; gap: 10px; }
  .share-btn { font-size: 0.78rem; padding: 8px 14px; }
}

/* ── Login / Register ────────────────────────────────────── */
@media (max-width: 960px) {
  .auth-left  { display: none !important; }
  .auth-right { width: 100% !important; min-height: 100vh; padding: 44px 32px !important; }
}
@media (max-width: 480px) {
  .auth-right { padding: 36px 20px !important; }
  .auth-form-wrap h1 { font-size: 1.6rem !important; }
  .role-tabs { flex-wrap: wrap; }
  .role-tab { min-width: 80px; font-size: 0.78rem; }
  .social-btns { flex-direction: column; }
  .btn-social { width: 100%; justify-content: center; }
}

/* ── Subscriptions / Pricing ─────────────────────────────── */
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr !important; max-width: 460px !important; margin: 0 auto !important; }
}
@media (max-width: 600px) {
  .plans-grid { max-width: 100% !important; }
  .faq-grid   { grid-template-columns: 1fr !important; }
  .pricing-toggle { flex-direction: column; gap: 8px; }
}

/* ── Companies listing page ──────────────────────────────── */
@media (max-width: 900px) {
  .companies-filter-layout { grid-template-columns: 1fr !important; }
  .companies-sidebar { display: none; }
}
@media (max-width: 600px) {
  .companies-hero-search { flex-direction: column; }
  .companies-hero-search input,
  .companies-hero-search select { width: 100%; }
}

/* ── Job seekers page ────────────────────────────────────── */
@media (max-width: 900px) {
  .talent-layout { grid-template-columns: 1fr !important; }
  .talent-sidebar { display: none; }
}

/* ── Company profile page ────────────────────────────────── */
@media (max-width: 900px) {
  .company-profile-header { flex-direction: column; gap: 16px !important; align-items: flex-start !important; }
  .company-profile-layout { grid-template-columns: 1fr !important; }
  .company-sidebar { display: none; }
}
@media (max-width: 600px) {
  .company-cover { height: 160px !important; }
  .company-logo-lg { width: 70px !important; height: 70px !important; }
  .company-stats-row { flex-wrap: wrap; gap: 16px !important; }
}

/* ── Candidate profile page ──────────────────────────────── */
@media (max-width: 900px) {
  .candidate-layout { grid-template-columns: 1fr !important; }
  .candidate-sidebar { display: none; }
}
@media (max-width: 600px) {
  .candidate-cover { height: 140px !important; }
  .candidate-profile-header { flex-direction: column; text-align: center; }
  .candidate-avatar-lg { margin: 0 auto; }
}

/* ── Job details page ────────────────────────────────────── */
@media (max-width: 900px) {
  .job-detail-layout { grid-template-columns: 1fr !important; }
  .job-detail-sidebar { display: none; }
}
@media (max-width: 600px) {
  .job-detail-header { flex-direction: column; gap: 12px !important; align-items: flex-start !important; }
  .job-action-row { flex-direction: column; gap: 10px; }
  .job-action-row .btn { width: 100%; justify-content: center; }
}

/* ── About page ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr !important; }
  .team-grid  { grid-template-columns: repeat(2, 1fr) !important; }
  .mission-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr 1fr !important; }
  .values-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 400px) {
  .team-grid { grid-template-columns: 1fr !important; }
}

/* ── Contact page ────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr !important; }
  .contact-info-col { order: 2; }
  .contact-form-col { order: 1; }
}
@media (max-width: 600px) {
  .contact-form .form-row { grid-template-columns: 1fr !important; }
  .contact-item { flex-direction: column; gap: 8px; }
}

/* ── Seeker / Company dashboards ─────────────────────────── */
@media (max-width: 900px) {
  .dash-layout { display: block !important; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 500; width: 260px !important;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 32px rgba(0,0,0,0.3); }
  .dash-main { margin-left: 0 !important; }
  .dash-content { padding: 20px 16px !important; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 499; }
  .sidebar-overlay.show { display: block; }
  .dash-topbar { padding: 0 16px !important; }
  .topbar-toggle { display: flex !important; }
  .stats-cards { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  .stats-cards { grid-template-columns: 1fr !important; }
  .dash-topbar { height: 58px !important; }
  .topbar-title { font-size: 1rem !important; }
}

/* ── Admin sidebar & layout ──────────────────────────────── */
@media (max-width: 1000px) {
  .admin-wrapper { display: block !important; }
  .admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 500; width: 260px !important;
  }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 4px 0 32px rgba(0,0,0,0.35); }
  .admin-main { margin-left: 0 !important; }
  .admin-content { padding: 20px 16px !important; }
  .admin-topbar { padding: 0 16px !important; }
  .mobile-toggle { display: flex !important; }
  .stats-row { grid-template-columns: 1fr 1fr !important; }

  /* Admin overlay */
  .admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 499; }
  .admin-overlay.show { display: block; }
}
@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr !important; }
  .admin-topbar { height: 56px !important; }
  .admin-topbar-title { font-size: 0.95rem !important; }
  .field-row { grid-template-columns: 1fr !important; }
  .editor-layout { grid-template-columns: 1fr !important; }
  .ep-layout    { grid-template-columns: 1fr !important; }
  .post-hero-img { border-radius: 12px 12px 0 0 !important; }
}

/* ── Write blog editor ───────────────────────────────────── */
@media (max-width: 900px) {
  .editor-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .editor-toolbar { gap: 1px; padding: 8px 10px; }
  .tb-btn { width: 30px; height: 30px; font-size: 0.78rem; }
  .title-input { font-size: 1.2rem !important; padding: 14px 16px !important; }
  .writing-area { padding: 18px 16px !important; min-height: 280px; font-size: 0.95rem; }
  .sticky-bar { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .sticky-bar-right { gap: 6px; }
  .sticky-bar-right .btn { padding: 7px 12px; font-size: 0.76rem; }
}

/* ── Post podcast form ───────────────────────────────────── */
@media (max-width: 900px) {
  .ep-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .audio-upload { padding: 24px 16px !important; }
  .cover-upload { max-width: 200px; margin: 0 auto; aspect-ratio: 1; }
  .platform-btn { font-size: 0.78rem; padding: 9px 12px; }
  .chapters-list .chapter-item { flex-wrap: wrap; }
  .chapter-time-input { width: 60px !important; }
}

/* ── Blog posts admin table ──────────────────────────────── */
@media (max-width: 900px) {
  .posts-card .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 700px; }
}
@media (max-width: 600px) {
  .toolbar { flex-direction: column; align-items: stretch !important; }
  .toolbar-left { flex-direction: column; }
  .search-wrap { max-width: 100% !important; }
  .filter-select { width: 100%; }
}

/* ── Podcast episodes admin table ────────────────────────── */
@media (max-width: 900px) {
  .eps-card .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .eps-card table { min-width: 760px; }
  .mini-player { display: none; }
}

/* ── Toast on mobile ─────────────────────────────────────── */
@media (max-width: 480px) {
  .toast-container { bottom: 12px; right: 12px; left: 12px; }
  .toast { min-width: 0; width: 100%; }
}

/* ── Scroll to top ───────────────────────────────────────── */
@media (max-width: 480px) {
  #scroll-top { bottom: 14px !important; right: 14px !important; width: 38px !important; height: 38px !important; font-size: 0.85rem !important; }
}

/* ── Touch target minimum size (WCAG) ────────────────────── */
@media (max-width: 700px) {
  .btn, button:not(.slide-dot):not(.cflow-dot):not(.srv-img-dot), a.btn, .nav-link, .filter-tag, .page-btn {
    min-height: 44px;
    min-width: 44px;
  }
  .btn-sm { min-height: 38px; }
  .social-btn { min-height: 44px; min-width: 44px; }
}

/* ── Fix iOS font zoom on inputs ─────────────────────────── */
@media (max-width: 700px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  input[type="tel"],
  input[type="search"],
  input[type="datetime-local"],
  select, textarea {
    font-size: 16px !important;
  }
}


/* ════════════════════════════════════════════════════════════
   PEZAJOB v8 — HERO BACKGROUND & RESPONSIVENESS PATCH
   ════════════════════════════════════════════════════════════ */

/* ── Hero background enhancement ────────────────────────── */
.hero-bg-img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.55;
  filter: saturate(0.75) brightness(0.85);
  transform: scale(1.03);
  transition: transform 8s ease-out;
}
.hero:hover .hero-bg-img { transform: scale(1.0); }

/* Gradient left-to-right to keep text readable */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(5,13,20,0.92) 0%, rgba(10,25,41,0.78) 55%, rgba(44,62,80,0.45) 100%),
    linear-gradient(to bottom, rgba(5,13,20,0.3) 0%, transparent 50%, rgba(5,13,20,0.6) 100%);
}

/* ── Search row — prevent overflow at all widths ─────────── */
.hero-search { overflow: hidden; }
.search-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.search-field, .search-field input, .search-field select {
  min-width: 0;
  width: 100%;
}

/* ── Hero stats — always show cleanly ───────────────────── */
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.hero-stat {
  border-left: 2px solid rgba(209,207,10,0.4);
  padding-left: 14px;
  flex: 0 0 auto;
}

/* ── Responsive: Tablet (≤900px) ────────────────────────── */
@media (max-width: 900px) {
  .hero { min-height: 100svh; padding-top: 62px; padding-bottom: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 36px 20px 0; }
  .hero-visual { display: none; }
  .hero-left { text-align: left; }
  .hero-subtitle { max-width: 100%; }
  .search-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .search-row > *:last-child { grid-column: 1 / -1; }
  .hero-stats { gap: 24px; }
}

/* ── Responsive: Large phone (≤700px) ───────────────────── */
@media (max-width: 700px) {
  .hero { padding-top: 60px; padding-bottom: 44px; }
  .hero-grid { padding: 28px 16px 0; gap: 24px; }
  .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.6rem) !important; }
  .hero-subtitle { font-size: 0.97rem; margin-bottom: 28px; }
  .hero-tag { font-size: 0.7rem; padding: 5px 13px; }
  .hero-search { padding: 14px; border-radius: 14px; margin-bottom: 28px; }
  .search-row { grid-template-columns: 1fr; gap: 10px; }
  .search-row > *:last-child { grid-column: auto; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .hero-stat .num { font-size: 1.25rem; }
  .hero-stat .label { font-size: 0.72rem; }
}

/* ── Responsive: Phone (≤480px) ─────────────────────────── */
@media (max-width: 480px) {
  .hero { padding-bottom: 36px; }
  .hero-grid { padding: 24px 14px 0; }
  .hero-title { font-size: clamp(1.65rem, 7.5vw, 2rem) !important; }
  .hero-search { padding: 12px; border-radius: 12px; margin-bottom: 24px; }
  .search-field input, .search-field select { padding: 12px 12px 12px 38px; font-size: 0.87rem; }
  .hero-stats { gap: 14px; }
  .hero-stat { min-width: 70px; }
  .hero-stat .num { font-size: 1.15rem; }
  .btn-lg { padding: 13px 24px; font-size: 0.9rem; }
}

/* ── Responsive: Small phone (≤360px) ───────────────────── */
@media (max-width: 360px) {
  .hero-grid { padding: 20px 12px 0; }
  .hero-title { font-size: clamp(1.5rem, 7vw, 1.85rem) !important; }
  .hero-stats { gap: 10px; }
  .hero-stat { min-width: 60px; padding-left: 10px; }
  .hero-stat .num { font-size: 1.05rem; }
  .hero-stat .label { font-size: 0.67rem; }
}

/* ── Prevent any horizontal scroll globally ──────────────── */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }
* { box-sizing: border-box; }
img, video, svg, iframe { max-width: 100%; }

/* ── Logo image (replaces PJ text icon) ─────────────────── */
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  /* Remove the black corners by clipping to circle */
  overflow: hidden;
}

@media (max-width: 700px) {
  .logo-img { width: 34px; height: 34px; }
}
@media (max-width: 360px) {
  .logo-img { width: 30px; height: 30px; }
}

/* ════════════════════════════════════════════════════════════
   HERO BANNER SLIDESHOW
   ════════════════════════════════════════════════════════════ */

/* Remove old hero-bg-img rules that no longer apply */
.hero-bg { display: none; }

/* Slideshow container */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Individual slides */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1),
              transform 7s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.0);
}

/* Overlay on top of all slides */
.hero-slideshow .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background:
    linear-gradient(to right, rgba(5,13,20,0.88) 0%, rgba(10,25,41,0.72) 55%, rgba(44,62,80,0.40) 100%),
    linear-gradient(to bottom, rgba(5,13,20,0.25) 0%, transparent 50%, rgba(5,13,20,0.55) 100%);
}

/* Hero content sits above overlay */
.hero-glow, .hero-glow2, .hero-pattern, .hero-content {
  position: relative;
  z-index: 2;
}

/* ── Slide indicator dots ──────────────────────────────── */
.slide-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.slide-dot.active {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.3);
}

.slide-dot:hover:not(.active) {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.2);
}

/* ── Mobile adjustments ────────────────────────────────── */
@media (max-width: 700px) {
  .hero-slide {
    background-position: center center;
  }
  .slide-dots { bottom: 18px; gap: 8px; }
  .slide-dot { width: 8px; height: 8px; }
}

@media (max-width: 480px) {
  .hero-slide { background-position: center center; }
  .slide-dots { bottom: 14px; }
}

/* ════════════════════════════════════════════════════════════
   HOMEPAGE — BLOG & PODCAST PREVIEW
   ════════════════════════════════════════════════════════════ */

/* ── Blog grid ───────────────────────────────────────────── */
.bp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.bp-featured {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(44,62,80,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.bp-featured:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(44,62,80,0.12); }

.bp-featured-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  height: 260px;
  flex-shrink: 0;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.bp-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.bp-featured:hover .bp-featured-img { transform: scale(1.04); }

.bp-cat-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}
.bp-cat-tag--sm {
  position: static;
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.66rem;
  padding: 3px 9px;
}

.bp-featured-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bp-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.bp-meta--compact { margin-bottom: 0; margin-top: 6px; }
.bp-meta span { display: flex; align-items: center; gap: 5px; }
.bp-meta i { color: var(--secondary); font-size: 0.68rem; }

.bp-featured-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.bp-featured-title a { color: inherit; text-decoration: none; }
.bp-featured-title a:hover { color: var(--secondary); }

.bp-featured-excerpt {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.bp-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 2px;
  margin-top: auto;
  align-self: flex-start;
  flex-shrink: 0;
  transition: gap 0.2s, color 0.2s;
}
.bp-read-more:hover { gap: 11px; color: var(--secondary); }

.bp-side-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.bp-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0;
  min-height: 0;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bp-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(44,62,80,0.1);
  border-color: rgba(209,207,10,0.4);
}

.bp-mini-thumb {
  flex-shrink: 0;
  width: 84px;
  align-self: stretch;
  min-height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.bp-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.bp-mini-card:hover .bp-mini-thumb img { transform: scale(1.05); }

.bp-mini-body {
  flex: 1;
  min-width: 0;
}

.bp-mini-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.bp-mini-card:hover .bp-mini-title { color: var(--secondary); }

/* ── Podcast preview grid ────────────────────────────────── */
.pod-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pod-ep-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  box-shadow: 0 4px 24px rgba(44,62,80,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pod-ep-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(44,62,80,0.13); }

.pod-ep-cover {
  position: relative;
  height: 260px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.pod-ep-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.pod-ep-card:hover .pod-ep-img { transform: scale(1.04); }
.pod-ep-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,13,20,0.15) 0%, rgba(5,13,20,0.65) 100%);
}
.pod-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--secondary); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; padding-left: 3px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  z-index: 2;
}
.pod-ep-card:hover .pod-play-btn { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 8px 28px rgba(0,0,0,0.4); }

.pod-ep-num {
  position: absolute; top: 14px; left: 14px;
  background: rgba(5,13,20,0.75); backdrop-filter: blur(4px);
  color: var(--secondary); font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  letter-spacing: 0.5px; border: 1px solid rgba(209,207,10,0.3);
}

.pod-ep-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pod-ep-meta {
  font-size: 0.75rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.pod-ep-meta i { color: var(--secondary); font-size: 0.68rem; }
.pod-ep-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  color: var(--primary); line-height: 1.38;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.pod-ep-desc {
  font-size: 0.84rem; color: var(--text-light);
  line-height: 1.65; margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.pod-ep-guest {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.79rem; color: var(--text-light); font-weight: 600;
  margin-top: auto;
  flex-shrink: 0;
}
.pod-guest-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--secondary);
}

.pod-side-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.pod-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0;
  min-height: 0;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pod-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(44,62,80,0.1);
  border-color: rgba(209,207,10,0.4);
}

.pod-mini-thumb {
  flex-shrink: 0;
  width: 84px;
  align-self: stretch;
  min-height: 56px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.pod-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.pod-mini-card:hover .pod-mini-thumb img { transform: scale(1.06); }

.pod-mini-play {
  position: absolute; inset: 0;
  background: rgba(5,13,20,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.75rem;
  opacity: 0; transition: opacity 0.2s;
  cursor: pointer;
  z-index: 2;
}
.pod-mini-card:hover .pod-mini-play { opacity: 1; }

.pod-mini-body {
  flex: 1;
  min-width: 0;
}

.pod-ep-num-sm {
  font-size: 0.66rem; font-weight: 700;
  color: var(--secondary); letter-spacing: 0.5px;
  display: block; margin-bottom: 4px;
}
.pod-mini-title {
  font-family: var(--font-display);
  font-size: 0.86rem; font-weight: 700;
  color: var(--primary); line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.pod-mini-card:hover .pod-mini-title { color: var(--secondary); }
.pod-mini-meta {
  font-size: 0.73rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.pod-mini-meta i { color: var(--secondary); font-size: 0.65rem; }

/* Legacy podcast list wrapper */
.pod-ep-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .bp-grid { grid-template-columns: 1fr; }
  .bp-featured { height: auto; }
  .bp-side-stack { height: auto; }
  .bp-featured-img-wrap { height: 240px; }
  .bp-mini-card { flex: none; min-height: 108px; padding: 14px; gap: 14px; }
  .bp-mini-thumb { width: 96px; height: 80px; align-self: auto; min-height: 0; }
  .pod-grid { grid-template-columns: 1fr; }
  .pod-ep-card { height: auto; }
  .pod-side-stack { height: auto; }
  .pod-ep-cover { height: 240px; }
  .pod-mini-card { flex: none; min-height: 108px; padding: 14px; gap: 14px; }
  .pod-mini-thumb { width: 96px; height: 80px; align-self: auto; min-height: 0; }
}
@media (max-width: 600px) {
  .bp-mini-card { padding: 12px; min-height: 0; gap: 12px; }
  .bp-mini-thumb { width: 80px; height: 68px; }
  .bp-featured-body { padding: 18px; }
  .pod-ep-body { padding: 18px; }
  .pod-mini-card { padding: 12px; gap: 12px; min-height: 0; }
  .pod-mini-thumb { width: 80px; height: 68px; align-self: auto; }
}

/* ════════════════════════════════════════════════════════════
   HOMEPAGE — CLEAN HERO + BELOW-BANNER SEARCH
   ════════════════════════════════════════════════════════════ */

/* Clean hero — just the slideshow, no overlay, no content */
.hero.hero-clean {
  min-height: 0;
  padding: 0;
  margin-top: 68px;
  display: block;
  position: relative;
  width: 100%;
  height: clamp(300px, 44vw, 640px);
  overflow: hidden;
  background: #050d14;
}

/* Remove overlay from clean hero */
.hero-clean .hero-overlay { display: none !important; }

/* Slides fill the full banner */
.hero-clean .hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-clean .hero-slide {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dots sit at bottom of banner */
.hero-clean .slide-dots {
  bottom: 20px;
  z-index: 10;
}

/* ── Below-banner search bar ──────────────────────────────── */
.homepage-search-bar {
  background: var(--white);
  box-shadow: 0 8px 40px rgba(44,62,80,0.12);
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  overflow: visible;
}

.hsb-heading {
  margin: 0;
  padding: 16px 8px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.hsb-inner {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--border-light);
  overflow: visible;
  width: 100%;
}

.homepage-search-bar .hsb-field {
  margin: 0;
  padding: 10px 14px;
  gap: 10px;
  min-width: 0;
  align-items: center;
  box-sizing: border-box;
}

.homepage-search-bar .hsb-icon {
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1;
}

.homepage-search-bar .hsb-input,
.homepage-search-bar .hsb-dropdown-trigger {
  font-size: 0.92rem;
  line-height: 1.4;
  padding: 4px 0;
  min-height: 22px;
  width: 100%;
}

.homepage-search-bar .hsb-dropdown-label {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

@media (min-width: 992px) {
  .hsb-inner {
    display: grid;
    grid-template-columns: 330px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .hsb-inner:has(.hsb-field-type.is-selected) {
    grid-template-columns: minmax(108px, 0.85fr) minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .hsb-field-type,
  .hsb-field-query,
  .hsb-field-company,
  .hsb-field-industry,
  .hsb-field-location {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: unset;
    margin: 0;
  }
}

.hsb-field-type {
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  min-width: 0;
  transition: none;
}

.hsb-field-type.is-selected {
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
}

.hsb-field-query,
.hsb-field-company,
.hsb-field-industry,
.hsb-field-location {
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.homepage-search-bar .hsb-field-query {
  justify-content: flex-start;
}

.homepage-search-bar .hsb-query-group {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding-left: 70px;
}

.homepage-search-bar .hsb-field-query .hsb-input {
  text-align: left;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.hsb-field-type .hsb-dropdown-label.is-hint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: var(--primary);
  font-weight: 600;
}

.hsb-field-type .hsb-dropdown,
.hsb-field-location .hsb-dropdown {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
}

.hsb-field-type.is-selected .hsb-dropdown-label {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.hsb-field-type .hsb-icon {
  flex-shrink: 0;
}

.hsb-field:has(.hsb-dropdown.open) {
  position: relative;
  z-index: 140;
  overflow: visible;
}

.hsb-dropdown {
  position: relative;
  flex: 1;
  min-width: 0;
}

.hsb-dropdown-trigger {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.82rem;
  font-family: var(--font-main);
  color: var(--primary);
  cursor: pointer;
  text-align: left;
}

.hsb-dropdown-label {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hsb-dropdown-label.is-hint {
  color: var(--primary);
  font-weight: 600;
}

.hsb-dropdown-chevron {
  font-size: 0.72rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.hsb-dropdown.open .hsb-dropdown-chevron {
  transform: rotate(180deg);
}

.hsb-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(44, 62, 80, 0.14);
  z-index: 200;
  list-style: none;
  margin: 0;
  display: none;
}

.hsb-dropdown.open .hsb-dropdown-menu {
  display: block;
}

.hsb-dropdown-menu-scroll {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(44, 62, 80, 0.25) transparent;
}

.hsb-dropdown-menu-scroll::-webkit-scrollbar {
  width: 6px;
}

.hsb-dropdown-menu-scroll::-webkit-scrollbar-thumb {
  background: rgba(44, 62, 80, 0.2);
  border-radius: 999px;
}

.hsb-dropdown-option {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-main);
  color: var(--primary);
}

.hsb-dropdown-option > i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(209, 207, 10, 0.12);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.hsb-dropdown-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hsb-dropdown-option strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

.hsb-dropdown-option small {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

.hsb-dropdown-option:hover,
.hsb-dropdown-option.is-active {
  background: rgba(44, 62, 80, 0.05);
}

.hsb-dropdown-option.is-active > i {
  background: rgba(209, 207, 10, 0.22);
}

.hsb-dropdown-option-simple {
  gap: 0;
  padding: 9px 12px;
}

.hsb-field.is-hidden {
  display: none;
}

/* Each field gets a visible bordered box */
.hsb-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  margin: 0;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.hsb-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44,62,80,0.07);
  background: var(--white);
}

.hsb-icon {
  color: var(--secondary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hsb-input {
  border: none;
  outline: none;
  font-size: 0.92rem;
  font-family: var(--font-main);
  color: var(--primary);
  background: transparent;
  width: 100%;
  padding: 4px 0;
}
.hsb-input::placeholder { color: var(--text-muted); }
.hsb-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text);
}
.hsb-select option { color: var(--primary); background: var(--white); }

.hsb-divider {
  display: none;
}

.hsb-btn {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 12px 22px;
  font-size: 0.9rem;
  border-radius: 12px;
  white-space: nowrap;
  text-decoration: none;
  justify-content: center;
}

@media (min-width: 992px) {
  .hsb-btn {
    width: auto;
    min-width: 108px;
  }
}

/* Quick stats row under search */
.hsb-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  text-align: center;
}
.hsb-stats strong { color: var(--primary); font-weight: 700; }
.hsb-stats i { color: var(--secondary); margin-right: 4px; font-size: 0.75rem; }
.hsb-stat-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero.hero-clean {
    margin-top: 62px;
    height: clamp(270px, 52vw, 480px);
  }

  .homepage-search-bar {
    overflow-x: clip;
  }

  .hsb-heading {
    padding: 14px 8px 0;
    font-size: 1.5rem;
  }

  .hsb-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px 8px;
  }

  .homepage-search-bar .hsb-field,
  .hsb-field {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 10px 16px;
    margin: 0;
  }

  .hsb-field-type .hsb-dropdown-label.is-hint {
    white-space: normal;
  }

  .hsb-dropdown-menu {
    left: 0;
    right: 0;
    max-width: none;
    width: auto;
  }

  .hsb-btn {
    width: 100%;
    margin: 0;
  }

  .hsb-divider { display: none; }
}

@media (max-width: 600px) {
  .hero.hero-clean {
    margin-top: 60px;
    height: clamp(250px, 60vw, 390px);
  }

  .homepage-search-bar .hsb-field,
  .hsb-field {
    margin: 0;
    padding: 10px 14px;
  }

  .hsb-field-type .hsb-dropdown-label.is-hint {
    font-size: 0.88rem;
  }

  .hsb-stats {
    gap: 8px;
    font-size: 0.76rem;
    padding: 10px 0;
    justify-content: center;
  }

  .hsb-stat-dot { display: none; }
  .hsb-stats span { flex: 0 0 auto; }

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 320px;
  }

  section.section[style*="padding:80px"] {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .cflow-nav {
    margin-top: 20px;
    gap: 12px;
  }

  .cflow-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 400px) {
  .hero.hero-clean {
    height: clamp(240px, 64vw, 350px);
  }

  .hsb-field-type:not(.is-selected) .hsb-dropdown-label.is-hint {
    font-size: 0.78rem;
  }
}

/* ════════════════════════════════════════════════════════════
   MOBILE NAV & CAROUSEL FIXES
   ════════════════════════════════════════════════════════════ */

/* ── Mobile nav menu items ───────────────────────────────── */
@media (max-width: 700px) {
  /* li items take full width */
  .nav-menu > li {
    width: 100%;
    max-width: 320px;
    list-style: none;
  }
  .nav-menu > li > .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    transition: background 0.2s, color 0.2s;
  }
  .nav-menu > li > .nav-link:hover,
  .nav-menu > li > .nav-link.active {
    background: rgba(209,207,10,0.12);
    color: var(--secondary);
  }
  /* Mobile action buttons li */
  .nav-menu-mobile-actions {
    display: flex !important;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    max-width: 280px;
    padding: 0 !important;
  }
  .nav-menu-mobile-actions .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    border-radius: 12px;
  }
  /* Prevent li from inheriting default .nav-menu li hiding */
  .nav-menu li { display: block; }

  /* Burger → X animation */
  .nav-toggle span {
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Navbar stays on top when menu open */
  .navbar { z-index: 9100; }
}

/* ── Carousel mobile fix ─────────────────────────────────── */
/* Ensure the carousel wrapper clips properly on all viewports */
.fcarousel {
  overflow: hidden !important;
  position: relative;
  width: 100%;
}
.fcarousel-track-wrap {
  overflow: hidden;
  width: 100%;
}
.fcarousel-track {
  display: flex;
  will-change: transform;
  /* Don't allow track to wrap */
  flex-wrap: nowrap;
}

/* Cards: use exact flex-basis with gap accounted for */
@media (max-width: 600px) {
  .fc-slide, .pc-slide {
    /* Show ~1 card + peek of next on mobile */
    flex: 0 0 88%;
    min-width: 0;
    padding: 24px 20px 22px;
  }
  .fcarousel-track {
    gap: 14px;
    /* Small left padding so first card isn't edge-flush */
    padding-left: 6px;
    padding-right: 6px;
  }
  /* Logo / avatar scale down */
  .fc-logo { width: 72px; height: 72px; }
  .pc-avatar { width: 80px; height: 80px; margin-bottom: 14px; }
  .fc-jobs-num { font-size: 1.3rem; }
  /* Dots closer on mobile */
  .fcarousel-nav { margin-top: 20px; gap: 12px; }
  .fcarousel-btn { width: 40px; height: 40px; }
}

@media (max-width: 400px) {
  .fc-slide, .pc-slide {
    flex: 0 0 92%;
    padding: 20px 16px 18px;
  }
  .fc-logo { width: 64px; height: 64px; border-radius: 16px; }
  .pc-avatar { width: 72px; height: 72px; }
}

/* Ensure section containing carousel doesn't clip */
section.section[style*="overflow:hidden"],
section.section { overflow: visible; }

/* ════════════════════════════════════════════════════════════
   DARK MODE — full variable overrides on [data-theme="dark"]
   ════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  /* Core palette */
  --primary:       #d1cf0a;   /* gold becomes primary accent text */
  --primary-light: #f0d860;
  --primary-dark:  #b8b608;
  --secondary:     #d1cf0a;
  --secondary-dark:#b8b608;

  /* Surfaces */
  --bg:            #0e1117;
  --bg-alt:        #161b24;
  --white:         #1a2030;   /* cards / panels */
  --card-bg:       #1a2030;

  /* Text */
  --text:          #e2e8f0;
  --text-light:    #94a3b8;
  --text-muted:    #64748b;

  /* Borders */
  --border:        #2a3340;
  --border-light:  #222d3a;

  /* Shadows (lighter so they read on dark bg) */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.35);
  --shadow:    0 4px 20px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.55);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.65);
}

/* ── Body / page background ──────────────────────────────── */
[data-theme="dark"] body { background: #0e1117; color: #e2e8f0; }

/* ── Navbar ──────────────────────────────────────────────── */
[data-theme="dark"] .navbar { background: rgba(10,14,22,0.97); border-bottom-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .navbar.scrolled { background: rgba(10,14,22,0.99); }
[data-theme="dark"] .nav-link { color: rgba(255,255,255,0.8); }
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active { color: var(--secondary); background: rgba(209,207,10,0.08); }
[data-theme="dark"] .logo-text { color: #fff; }

/* ── Cards / panels ──────────────────────────────────────── */
[data-theme="dark"] .job-card,
[data-theme="dark"] .company-card,
[data-theme="dark"] .candidate-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .step,
[data-theme="dark"] .bp-featured,
[data-theme="dark"] .bp-mini-card,
[data-theme="dark"] .pod-ep-card,
[data-theme="dark"] .pod-mini-card,
[data-theme="dark"] .pod-ep-list,
[data-theme="dark"] .pod-side-stack,
[data-theme="dark"] .filter-sidebar,
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .fc-slide,
[data-theme="dark"] .pc-slide,
[data-theme="dark"] .cflow-card {
  background: #1a2030;
  border-color: #2a3340;
  color: #e2e8f0;
}

[data-theme="dark"] .job-card-footer { background: #151c28; border-color: #2a3340; }
[data-theme="dark"] .job-card:hover { border-color: rgba(209,207,10,0.3); }

/* ── Text on cards ───────────────────────────────────────── */
[data-theme="dark"] .job-title,
[data-theme="dark"] .fc-cname,
[data-theme="dark"] .pc-name,
[data-theme="dark"] .bp-featured-title,
[data-theme="dark"] .bp-mini-title,
[data-theme="dark"] .pod-ep-title,
[data-theme="dark"] .pod-mini-title,
[data-theme="dark"] .talent-name,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4 { color: #e2e8f0; }

[data-theme="dark"] .job-company-name,
[data-theme="dark"] .fc-industry,
[data-theme="dark"] .pc-role,
[data-theme="dark"] .job-meta-tag,
[data-theme="dark"] .bp-meta,
[data-theme="dark"] .pod-ep-meta,
[data-theme="dark"] .pod-mini-meta { color: #94a3b8; }

[data-theme="dark"] .job-salary,
[data-theme="dark"] .fc-jobs-num { color: var(--secondary); }

/* ── Meta tags / skill pills ─────────────────────────────── */
[data-theme="dark"] .job-meta-tag,
[data-theme="dark"] .pc-skill,
[data-theme="dark"] .skill-tag { background: #222d3a; border-color: #2a3340; color: #94a3b8; }

/* ── Section backgrounds ─────────────────────────────────── */
[data-theme="dark"] .section { background: #0e1117; }
[data-theme="dark"] .section[style*="background:var(--bg)"],
[data-theme="dark"] .podcast-preview-section { background: #0e1117 !important; }
[data-theme="dark"] .testimonials { background: #0e1117; }
[data-theme="dark"] .how-it-works { background: #161b24; }

/* ── Search bar (below banner) ───────────────────────────── */
[data-theme="dark"] .homepage-search-bar { background: #151c28; border-color: #2a3340; box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
[data-theme="dark"] .hsb-heading { color: #e2e8f0; }
[data-theme="dark"] .hsb-input { color: #e2e8f0; }
[data-theme="dark"] .hsb-input::placeholder { color: #64748b; }
[data-theme="dark"] .hsb-divider { background: #2a3340; }
[data-theme="dark"] .hsb-stats { color: #94a3b8; }
[data-theme="dark"] .hsb-stats strong { color: #e2e8f0; }
[data-theme="dark"] .hsb-stat-dot { background: #2a3340; }

/* ── Buttons ─────────────────────────────────────────────── */
[data-theme="dark"] .btn-outline { color: #e2e8f0; border-color: #2a3340; }
[data-theme="dark"] .btn-outline:hover { background: var(--secondary); color: #2c3e50; border-color: var(--secondary); }
[data-theme="dark"] .cflow-btn,
[data-theme="dark"] .fcarousel-btn { background: #1a2030; border-color: #2a3340; color: #e2e8f0; }
[data-theme="dark"] .cflow-btn:hover { background: var(--secondary); color: #2c3e50; border-color: var(--secondary); }

/* ── Blog / podcast sections ─────────────────────────────── */
[data-theme="dark"] .bp-mini-card:hover,
[data-theme="dark"] .pod-mini-card:hover { background: #222d3a; }
[data-theme="dark"] .bp-mini-card { border-color: #2a3340; }
[data-theme="dark"] .pod-mini-card { border-color: #2a3340; }
[data-theme="dark"] .bp-read-more { color: var(--secondary); border-color: var(--secondary); }
[data-theme="dark"] .bp-featured-excerpt,
[data-theme="dark"] .pod-ep-desc { color: #94a3b8; }

/* ── Footer ──────────────────────────────────────────────── */
[data-theme="dark"] .footer { background: #1a252f; }
[data-theme="dark"] .footer-bottom { background: #060c14; border-color: rgba(255,255,255,0.04); }

/* ── Category cards ──────────────────────────────────────── */
[data-theme="dark"] .category-card { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .category-card:hover { background: #222d3a; border-color: rgba(209,207,10,0.3); }
[data-theme="dark"] .category-name { color: #e2e8f0; }
[data-theme="dark"] .category-count { color: #94a3b8; }

/* ── Page headers ────────────────────────────────────────── */
[data-theme="dark"] .page-header { background: linear-gradient(135deg, #1a252f 0%, #0f1a28 100%); }

/* ── Sort / select inputs ────────────────────────────────── */
[data-theme="dark"] .sort-select,
[data-theme="dark"] select { background: #1a2030; border-color: #2a3340; color: #e2e8f0; }

/* ── Talent cards (jobseekers page) ──────────────────────── */
[data-theme="dark"] .talent-card { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .talent-card:hover { border-color: rgba(209,207,10,0.3); box-shadow: 0 20px 48px rgba(0,0,0,0.5); }
[data-theme="dark"] .talent-name { color: #e2e8f0; }
[data-theme="dark"] .talent-profession { color: var(--secondary); }
[data-theme="dark"] .talent-meta span { color: #94a3b8; }
[data-theme="dark"] .talent-card-body { background: #1a2030; }
[data-theme="dark"] .skill-tag { background: #222d3a; border-color: #2a3340; color: #94a3b8; }
[data-theme="dark"] .availability.open { background: rgba(34,197,94,0.12); }
[data-theme="dark"] .btn-view-profile { background: var(--secondary); color: #2c3e50; }
[data-theme="dark"] .btn-contact { color: var(--secondary); border-color: var(--secondary); }
[data-theme="dark"] .btn-contact:hover { background: var(--secondary); color: #2c3e50; }

/* ── Jobs page sidebar ───────────────────────────────────── */
[data-theme="dark"] .filter-sidebar { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .filter-section { border-color: #222d3a; }
[data-theme="dark"] .filter-check label,
[data-theme="dark"] .filter-check { color: #94a3b8; }
[data-theme="dark"] .filter-check-count { background: #222d3a; color: #64748b; }
[data-theme="dark"] .search-bar-top { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .search-bar-top input { background: #222d3a; border-color: #2a3340; color: #e2e8f0; }

/* ── Persistent podcast player (already dark, tweak border) ─ */
[data-theme="dark"] #pj-persistent-player { border-color: rgba(209,207,10,0.15); }

/* ── Scrollbar (webkit) ──────────────────────────────────── */
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0e1117; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2a3340; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #3a4a5a; }

/* ════════════════════════════════════════════════════════════
   DARK MODE TOGGLE BUTTON
   ════════════════════════════════════════════════════════════ */
.dm-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.dm-toggle:hover { background: rgba(255,255,255,0.14); border-color: var(--secondary); transform: scale(1.08); }
[data-theme="dark"] .dm-toggle { border-color: rgba(209,207,10,0.4); background: rgba(209,207,10,0.1); color: var(--secondary); }
[data-theme="dark"] .dm-toggle:hover { background: rgba(209,207,10,0.18); }

/* Icon swap */
.dm-toggle .dm-icon-moon { display: block; }
.dm-toggle .dm-icon-sun  { display: none; }
[data-theme="dark"] .dm-toggle .dm-icon-moon { display: none; }
[data-theme="dark"] .dm-toggle .dm-icon-sun  { display: block; }

/* Mobile — smaller */
@media (max-width: 700px) {
  .dm-toggle { width: 36px; height: 36px; font-size: 0.9rem; }
}

/* ── Dark toggle ripple ──────────────────────────────────── */
@keyframes dm-ripple-anim {
  0%   { box-shadow: 0 0 0 0 rgba(209,207,10,0.5); }
  100% { box-shadow: 0 0 0 16px rgba(209,207,10,0); }
}
.dm-ripple { animation: dm-ripple-anim 0.4s ease-out forwards; }

/* ── Dark mode for dashboard/admin pages ─────────────────── */
[data-theme="dark"] .dash-layout,
[data-theme="dark"] .admin-wrapper { background: #0e1117; }

[data-theme="dark"] .sidebar,
[data-theme="dark"] .admin-sidebar { background: #111827; border-color: #1f2937; }

[data-theme="dark"] .sidebar .nav-link,
[data-theme="dark"] .admin-sidebar .nav-link { color: #94a3b8; }

[data-theme="dark"] .sidebar .nav-link.active,
[data-theme="dark"] .sidebar .nav-link:hover,
[data-theme="dark"] .admin-sidebar .nav-link.active,
[data-theme="dark"] .admin-sidebar .nav-link:hover {
  background: rgba(209,207,10,0.1); color: var(--secondary);
}

[data-theme="dark"] .dash-topbar,
[data-theme="dark"] .admin-topbar { background: #111827; border-color: #1f2937; }

[data-theme="dark"] .dash-content,
[data-theme="dark"] .admin-content { background: #0e1117; }

[data-theme="dark"] .stat-card,
[data-theme="dark"] .stats-cards .stat-card,
[data-theme="dark"] .stats-row .stat-card { background: #1a2030; border-color: #2a3340; }

[data-theme="dark"] .data-table,
[data-theme="dark"] table { background: #1a2030; }
[data-theme="dark"] th { background: #111827; color: #94a3b8; border-color: #2a3340; }
[data-theme="dark"] td { border-color: #2a3340; color: #e2e8f0; }
[data-theme="dark"] tr:hover td { background: #222d3a; }
[data-theme="dark"] .table-wrap { background: #1a2030; border-color: #2a3340; }

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: #1a2030; border-color: #2a3340; color: #e2e8f0;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: #64748b; }
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(209,207,10,0.12); }

/* ════════════════════════════════════════════════════════════
   HOMEPAGE — SERVICES SHOWCASE SECTION
   ════════════════════════════════════════════════════════════ */

.srv-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ── Image column ────────────────────────────────────────── */
.srv-img-col { position: relative; }

.srv-img-stack {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(44,62,80,0.18);
  aspect-ratio: 4 / 5;
  background: var(--primary);
}

.srv-img-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1);
}
.srv-img-slide.active { opacity: 1; z-index: 1; }
.srv-img-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Dots */
.srv-img-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.srv-img-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.srv-img-dot.active {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.3);
}

/* ── Text column ─────────────────────────────────────────── */
.srv-showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 8px;
}
.srv-showcase-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Service list ────────────────────────────────────────── */
.srv-list {
  list-style: none;
  padding: 0; margin: 0 0 36px;
  display: flex; flex-direction: column; gap: 20px;
}

.srv-list-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.srv-list-item:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 28px rgba(44,62,80,0.09);
  border-color: rgba(209,207,10,0.35);
}

.srv-list-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #1a2f45);
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.srv-list-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.srv-list-item p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}

.srv-learn-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

/* ── Dark mode ───────────────────────────────────────────── */
[data-theme="dark"] .srv-list-item {
  background: #1a2030;
  border-color: #2a3340;
}
[data-theme="dark"] .srv-list-item:hover { border-color: rgba(209,207,10,0.3); }
[data-theme="dark"] .srv-showcase-title { color: #e2e8f0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .srv-showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .srv-img-stack {
    aspect-ratio: 16 / 10;
    max-height: none;
    min-height: 300px;
  }
  .srv-img-slide img { object-position: center center; }
}
@media (max-width: 600px) {
  .srv-img-stack {
    aspect-ratio: 16 / 11;
    min-height: 260px;
  }
  .srv-list-item { padding: 14px 16px; }
  .srv-list-icon { width: 36px; height: 36px; font-size: 0.82rem; }
}

/* ════════════════════════════════════════════════════════════
   NAVBAR REDESIGN — Clean layout + More dropdown
   ════════════════════════════════════════════════════════════ */

/* ── Core nav spacing ────────────────────────────────────── */
.nav-menu { display: flex; align-items: center; gap: 0; }
.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover,
.nav-link.active { color: var(--secondary); background: rgba(209,207,10,0.09); }

/* ── More dropdown button ────────────────────────────────── */
.nav-more-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-more-chevron {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
}
.nav-dropdown { position: relative; }
.nav-dropdown.open .nav-more-chevron { transform: rotate(180deg); }

/* ── Dropdown panel ──────────────────────────────────────── */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2000;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-drop-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.nav-drop-link i { width: 16px; text-align: center; color: rgba(209,207,10,0.7); font-size: 0.8rem; }
.nav-drop-link:hover { background: rgba(209,207,10,0.1); color: var(--secondary); }
.nav-drop-link.active { color: var(--secondary); background: rgba(209,207,10,0.08); }

.nav-drop-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 6px 8px; }

.nav-drop-cta {
  background: rgba(209,207,10,0.1);
  color: var(--secondary) !important;
  margin-top: 2px;
  border: 1px solid rgba(209,207,10,0.2);
}
.nav-drop-cta:hover { background: rgba(209,207,10,0.18) !important; }

/* ── Account dropdown (logged-in header) ─────────────────── */
.nav-account-dropdown { display: inline-flex; align-items: center; }
.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: var(--font-main);
  white-space: nowrap;
}
.nav-account-btn .fa-user-circle { font-size: 1rem; opacity: 0.9; }
.nav-account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(209, 207, 10, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.nav-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-account-initials {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.navbar.scrolled .nav-account-avatar {
  border-color: rgba(44, 62, 80, 0.15);
}
.navbar.scrolled .nav-account-initials {
  color: var(--primary);
}
.nav-account-menu { min-width: 200px; }
.nav-drop-signout:hover { color: #fca5a5 !important; background: rgba(239,68,68,0.12) !important; }
.nav-drop-signout:hover i { color: #fca5a5 !important; }

/* ── Auth buttons (desktop only) ─────────────────────────── */
.nav-auth-btn { display: inline-flex; }

/* ── Mobile extra links (hidden on desktop) ──────────────── */
.nav-mobile-extra { display: none; }

/* ── Responsive — tablet (≤1100px): tighten spacing ────────── */
@media (max-width: 1100px) {
  .nav-link { padding: 7px 9px; font-size: 0.82rem; }
  .nav-auth-btn { display: none; }
}

/* ── Responsive — mobile (≤700px) ───────────────────────── */
@media (max-width: 700px) {
  /* Dropdown hides; extra links show inline in mobile menu */
  .nav-dropdown { display: none; }
  .nav-mobile-extra {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 2px;
    margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
  }
  .nav-mobile-extra .nav-link {
    text-align: center;
    width: 100%;
  }
}

/* ── Dark mode adjustments ───────────────────────────────── */
[data-theme="dark"] .nav-dropdown-menu { background: #0f1825; border-color: #2a3340; }
[data-theme="dark"] .nav-drop-link { color: rgba(255,255,255,0.7); }

/* ════════════════════════════════════════════════════════════
   NAVBAR AUTH BUTTONS — show only once, correct breakpoints
   ════════════════════════════════════════════════════════════ */

/* Desktop: show in nav-actions */
.nav-auth-btn { display: inline-flex; }

/* Tablet (≤1100px): hide from top bar (too cramped) */
@media (max-width: 1100px) {
  .nav-auth-btn { display: none !important; }
}

/* Mobile (≤700px): show Sign In + Get Started inside the menu overlay */
@media (max-width: 700px) {
  /* Ensure they never show in the top bar on mobile */
  .nav-actions .nav-auth-btn { display: none !important; }

  /* Mobile menu auth row */
  .nav-mobile-auth {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    max-width: 320px;
  }
  .nav-mobile-auth .nav-link {
    text-align: center;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-mobile-auth .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    border-radius: 12px;
  }
}

/* Desktop: hide the mobile-only auth row */
.nav-mobile-auth { display: none; }

/* ════════════════════════════════════════════════════════════
   DARK MODE — COMPREHENSIVE VISIBILITY FIXES
   ════════════════════════════════════════════════════════════ */

/* ── Sections & page backgrounds ────────────────────────── */
[data-theme="dark"] section,
[data-theme="dark"] .section { background: #0e1117; }

[data-theme="dark"] .section[style*="background:var(--bg)"],
[data-theme="dark"] section[style*="background:var(--bg)"],
[data-theme="dark"] .srv-showcase { background: #111827 !important; }

[data-theme="dark"] .how-it-works,
[data-theme="dark"] .how-it-works.section { background: #111827 !important; }

[data-theme="dark"] .podcast-preview-section,
[data-theme="dark"] section[style*="background:var(--bg)"] { background: #0e1117 !important; }

/* ── Text visibility ──────────────────────────────────────── */
[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] span:not(.badge):not(.section-tag):not(.label):not(.pc-skill):not(.job-meta-tag) { color: inherit; }

[data-theme="dark"] .section-header p,
[data-theme="dark"] .srv-showcase-sub,
[data-theme="dark"] .step p,
[data-theme="dark"] .how-it-works p { color: #94a3b8 !important; }

[data-theme="dark"] .hiw-tabs { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .hiw-tab { color: #94a3b8; }
[data-theme="dark"] .hiw-tab:hover:not(.active) { color: #e2e8f0; background: rgba(255,255,255,0.04); }
[data-theme="dark"] .hiw-tab.active { background: var(--primary); color: var(--secondary); }

[data-theme="dark"] .section-header h2,
[data-theme="dark"] .section-tag { color: var(--secondary) !important; }

[data-theme="dark"] .step-title,
[data-theme="dark"] .step h3 { color: #e2e8f0 !important; }

/* ── Steps / How it works ────────────────────────────────── */
[data-theme="dark"] .step { background: #1a2030 !important; border-color: #2a3340 !important; }
[data-theme="dark"] .step-num { color: rgba(209,207,10,0.15) !important; }
[data-theme="dark"] .step-icon { background: rgba(209,207,10,0.1) !important; color: var(--secondary) !important; }

/* ── Homepage search bar ─────────────────────────────────── */
[data-theme="dark"] .homepage-search-bar { background: #111827 !important; border-color: #2a3340 !important; }
[data-theme="dark"] .hsb-field { background: #1a2030 !important; border-color: #2a3340 !important; }
[data-theme="dark"] .hsb-field:focus-within { border-color: var(--secondary) !important; box-shadow: 0 0 0 3px rgba(209,207,10,0.08) !important; background: #222d3a !important; }
[data-theme="dark"] .hsb-dropdown-label.is-hint { color: #e2e8f0 !important; font-weight: 600 !important; }
[data-theme="dark"] .hsb-dropdown-menu { background: #151c28 !important; border-color: #2a3340 !important; box-shadow: 0 12px 32px rgba(0,0,0,0.45) !important; }
[data-theme="dark"] .hsb-dropdown-option:hover,
[data-theme="dark"] .hsb-dropdown-option.is-active { background: rgba(209,207,10,0.08) !important; }
[data-theme="dark"] .hsb-dropdown-option strong { color: #e2e8f0 !important; }
[data-theme="dark"] .hsb-dropdown-option small { color: #94a3b8 !important; }
[data-theme="dark"] .hsb-dropdown-label { color: #e2e8f0 !important; }
[data-theme="dark"] .hsb-input { color: #e2e8f0 !important; background: transparent !important; }
[data-theme="dark"] .hsb-input::placeholder { color: #4b5563 !important; }
[data-theme="dark"] .hsb-divider { background: #2a3340 !important; }
[data-theme="dark"] .hsb-stats,
[data-theme="dark"] .hsb-stats span { color: #94a3b8 !important; }
[data-theme="dark"] .hsb-stats strong { color: #e2e8f0 !important; }

/* ── Category cards ──────────────────────────────────────── */
[data-theme="dark"] .category-card { background: #1a2030 !important; border-color: #2a3340 !important; }
[data-theme="dark"] .category-card:hover { background: #222d3a !important; border-color: rgba(209,207,10,0.3) !important; }
[data-theme="dark"] .category-name { color: #e2e8f0 !important; }
[data-theme="dark"] .category-count { color: #94a3b8 !important; }
[data-theme="dark"] .category-icon,
[data-theme="dark"] .srv-card-emoji {
  background: linear-gradient(135deg, rgba(209,207,10,0.15), rgba(209,207,10,0.05));
  border: 1px solid rgba(209,207,10,0.2);
  color: var(--secondary);
}

/* ── Carousel cards ──────────────────────────────────────── */
[data-theme="dark"] .cflow-card { background: #1a2030 !important; border-color: #2a3340 !important; }
[data-theme="dark"] .card-body { background: #1a2030 !important; }
[data-theme="dark"] .fc-cname,
[data-theme="dark"] .pc-name { color: #e2e8f0 !important; }
[data-theme="dark"] .fc-industry,
[data-theme="dark"] .pc-role { color: #94a3b8 !important; }
[data-theme="dark"] .fc-jobs-lbl { color: #64748b !important; }
[data-theme="dark"] .fc-jobs-num { color: var(--secondary) !important; }
[data-theme="dark"] .pc-skill { background: #222d3a !important; border-color: #2a3340 !important; color: #94a3b8 !important; }
[data-theme="dark"] .fc-logo { border-color: #1a2030 !important; }
[data-theme="dark"] .pc-avatar { border-color: #1a2030 !important; }

/* ── Latest jobs section ─────────────────────────────────── */
[data-theme="dark"] .job-card { background: #1a2030 !important; border-color: #2a3340 !important; }
[data-theme="dark"] .job-card-footer { background: #151c28 !important; border-color: #2a3340 !important; }
[data-theme="dark"] .job-title { color: #e2e8f0 !important; }
[data-theme="dark"] .job-company-name { color: #cbd5e1 !important; }
[data-theme="dark"] .job-company-location { color: #64748b !important; }
[data-theme="dark"] .job-meta-tag { background: #222d3a !important; border-color: #2a3340 !important; color: #94a3b8 !important; }
[data-theme="dark"] .job-salary { color: var(--secondary) !important; }
[data-theme="dark"] .job-date { color: #64748b !important; }
[data-theme="dark"] .company-logo-sm { box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important; }

/* ── Explore services section ────────────────────────────── */
[data-theme="dark"] .srv-list-item { background: #1a2030 !important; border-color: #2a3340 !important; }
[data-theme="dark"] .srv-list-item strong { color: #e2e8f0 !important; }
[data-theme="dark"] .srv-list-item p { color: #94a3b8 !important; }
[data-theme="dark"] .srv-showcase-title { color: #e2e8f0 !important; }
[data-theme="dark"] .srv-img-stack { box-shadow: 0 24px 64px rgba(0,0,0,0.5) !important; }

/* ── Blog preview ────────────────────────────────────────── */
[data-theme="dark"] .bp-featured { background: #1a2030 !important; border-color: #2a3340 !important; }
[data-theme="dark"] .bp-mini-card { background: #1a2030 !important; border-color: #2a3340 !important; }
[data-theme="dark"] .bp-mini-card:hover { background: #222d3a !important; }
[data-theme="dark"] .bp-featured-title a,
[data-theme="dark"] .bp-mini-title { color: #e2e8f0 !important; }
[data-theme="dark"] .bp-featured-excerpt { color: #94a3b8 !important; }
[data-theme="dark"] .bp-meta span,
[data-theme="dark"] .pod-ep-meta { color: #64748b !important; }
[data-theme="dark"] .bp-read-more { color: var(--secondary) !important; border-color: var(--secondary) !important; }

/* ── Podcast preview ─────────────────────────────────────── */
[data-theme="dark"] .pod-ep-card { background: #1a2030 !important; border-color: #2a3340 !important; }
[data-theme="dark"] .pod-mini-card { background: #1a2030 !important; border-color: #2a3340 !important; }
[data-theme="dark"] .pod-mini-card:hover { background: #222d3a !important; }
[data-theme="dark"] .pod-ep-title,
[data-theme="dark"] .pod-mini-title { color: #e2e8f0 !important; }
[data-theme="dark"] .pod-ep-desc { color: #94a3b8 !important; }
[data-theme="dark"] .pod-ep-guest span { color: #94a3b8 !important; }
[data-theme="dark"] .pod-ep-num-sm { color: var(--secondary) !important; }
[data-theme="dark"] .pod-mini-meta { color: #64748b !important; }

/* ── Testimonials ────────────────────────────────────────── */
[data-theme="dark"] .testimonials-section,
[data-theme="dark"] .testimonials { background: #111827 !important; }
[data-theme="dark"] .testimonial-card { background: #1a2030 !important; border-color: #2a3340 !important; }
[data-theme="dark"] .testimonial-text { color: #cbd5e1 !important; }
[data-theme="dark"] .testimonial-name { color: #e2e8f0 !important; }
[data-theme="dark"] .testimonial-role { color: #94a3b8 !important; }

/* ── CTA section ─────────────────────────────────────────── */
[data-theme="dark"] .cta-section { background: linear-gradient(135deg, #111827 0%, #1a2030 100%) !important; }
[data-theme="dark"] .cta-section h2 { color: #e2e8f0 !important; }
[data-theme="dark"] .cta-section p { color: #94a3b8 !important; }

/* ── Navbar ──────────────────────────────────────────────── */
[data-theme="dark"] .navbar { background: rgba(8,12,20,0.97) !important; border-color: rgba(255,255,255,0.04) !important; }
[data-theme="dark"] .logo-text { color: #fff !important; }
[data-theme="dark"] .nav-link { color: rgba(255,255,255,0.75) !important; }
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active { color: var(--secondary) !important; }
[data-theme="dark"] .nav-more-btn { color: rgba(255,255,255,0.75) !important; }

/* ── Footer ──────────────────────────────────────────────── */
[data-theme="dark"] .footer { background: #060c14 !important; }
[data-theme="dark"] .footer-bottom { background: #040810 !important; border-color: rgba(255,255,255,0.04) !important; }
[data-theme="dark"] .footer-col h4 { color: #e2e8f0 !important; }
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-col a { color: rgba(255,255,255,0.5) !important; }
[data-theme="dark"] .footer-links a:hover { color: var(--secondary) !important; }
[data-theme="dark"] .footer-brand p { color: rgba(255,255,255,0.5) !important; }

/* ── Buttons in dark mode ────────────────────────────────── */
[data-theme="dark"] .btn-outline { border-color: #2a3340 !important; color: #e2e8f0 !important; }
[data-theme="dark"] .btn-outline:hover { background: var(--secondary) !important; color: #2c3e50 !important; border-color: var(--secondary) !important; }
[data-theme="dark"] .btn-outline-white { border-color: rgba(255,255,255,0.25) !important; color: rgba(255,255,255,0.85) !important; }

/* ── Badges ──────────────────────────────────────────────── */
[data-theme="dark"] .badge { opacity: 0.92; }

/* ── Scroll reveal text ──────────────────────────────────── */
[data-theme="dark"] .reveal { color: inherit; }

/* ── Industries band (services section) ──────────────────── */
[data-theme="dark"] .industries-band { background: #111827 !important; }
[data-theme="dark"] .industry-pill { border-color: rgba(255,255,255,0.1) !important; color: rgba(255,255,255,0.7) !important; }

/* ── Homepage banner search border ──────────────────────── */
[data-theme="dark"] .hero-clean { background: #050d14 !important; }

/* ── Miscellaneous text that may appear white-on-white ───── */
[data-theme="dark"] strong { color: inherit; }
[data-theme="dark"] .text-muted { color: #64748b !important; }

/* ── Shared list pagination (jobs, companies, talent, admin) ─ */
.list-pagination-wrap {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.list-pagination-info {
  font-size: 0.88rem;
  color: var(--text-light);
  text-align: center;
}
.pj-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.pj-page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.pj-page-btn,
.pj-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--primary);
}
.pj-page-nav { gap: 8px; padding: 0 16px; }
.pj-page-nav i { font-size: 0.72rem; color: var(--secondary); }
.pj-page-num.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
  box-shadow: 0 4px 14px rgba(44,62,80,0.18);
}
.pj-page-btn:not(.is-disabled):hover,
.pj-page-num:not(.is-active):hover {
  border-color: var(--primary);
  background: rgba(44,62,80,0.04);
  transform: translateY(-1px);
}
.pj-page-btn.is-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.pj-page-ellipsis {
  min-width: 28px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.12em;
}
@media (max-width: 640px) {
  .pj-page-nav span { display: none; }
  .pj-page-nav { min-width: 42px; padding: 0; }
}
