/* ============================================================
   SZUKAMPRACY.PL — FRESH REDESIGN 2024
   Inspired by modern job portals (pracuj.pl style)
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Primary Brand Colors */
  --color-primary:       #0033a0;
  --color-primary-dark:  #00237a;
  --color-primary-light: #1a4dbf;
  --color-accent:        #f5a623;
  --color-accent-hover:  #e09510;

  /* Neutral Palette */
  --color-bg:            #f4f6fa;
  --color-bg-white:      #ffffff;
  --color-bg-section:    #f0f4ff;
  --color-surface:       #ffffff;
  --color-border:        #e2e8f0;
  --color-border-light:  #edf2f7;

  /* Text Colors */
  --color-text-primary:  #1a202c;
  --color-text-secondary:#4a5568;
  --color-text-muted:    #718096;
  --color-text-inverse:  #ffffff;

  /* Status Colors */
  --color-success:       #38a169;
  --color-warning:       #dd6b20;
  --color-error:         #e53e3e;
  --color-info:          #3182ce;

  /* Tag/Badge Colors */
  --color-tag-new:       #ebf8ff;
  --color-tag-new-text:  #2b6cb0;
  --color-tag-hot:       #fff5f5;
  --color-tag-hot-text:  #c53030;
  --color-tag-remote:    #f0fff4;
  --color-tag-remote-text: #276749;

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 15px rgba(0,0,0,.07), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl:   0 20px 25px rgba(0,0,0,.10), 0 10px 10px rgba(0,0,0,.04);
  --shadow-card: 0 2px 8px rgba(0,51,160,.08);
  --shadow-card-hover: 0 8px 24px rgba(0,51,160,.15);

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Typography */
  --font-family: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs:   11px;
  --font-size-sm:   13px;
  --font-size-base: 15px;
  --font-size-md:   17px;
  --font-size-lg:   20px;
  --font-size-xl:   24px;
  --font-size-2xl:  30px;
  --font-size-3xl:  38px;
  --font-size-4xl:  48px;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;

  /* Navbar */
  --navbar-height: 66px;
}

/* ============================================================
   GLOBAL RESETS & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family) !important;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ============================================================
   NAVBAR — MODERN STICKY TOP BAR
   ============================================================ */
.nd-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  height: var(--navbar-height);
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

.nd-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Logo */
.nd-navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nd-navbar__logo img {
  height: 32px;
  width: auto;
}

/* Nav Links */
.nd-navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nd-navbar__menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nd-navbar__menu a:hover {
  color: var(--color-primary);
  background: var(--color-bg-section);
  text-decoration: none;
}

.nd-navbar__menu a.active {
  color: var(--color-primary);
  background: var(--color-bg-section);
}

/* Action Buttons */
.nd-navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.nd-btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.nd-btn--primary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-text-inverse);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,51,160,.30);
}

.nd-btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.nd-btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  text-decoration: none;
  transform: translateY(-1px);
}

.nd-btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}

.nd-btn--ghost:hover {
  background: var(--color-bg-section);
  color: var(--color-primary);
  text-decoration: none;
}

.nd-btn--accent {
  background: var(--color-accent);
  color: #1a202c;
  border-color: var(--color-accent);
  font-weight: 700;
}

.nd-btn--accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #1a202c;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,166,35,.35);
}

.nd-btn--sm {
  padding: 6px 14px;
  font-size: 13px;
}

.nd-btn--lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* Mobile toggle */
.nd-navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.nd-navbar__toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Language Flags */
.nd-lang-flags {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nd-lang-flags img {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nd-lang-flags img:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-sm);
}

/* User Dropdown */
.nd-user-dropdown {
  position: relative;
}

.nd-user-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  padding: var(--space-2);
  z-index: 200;
  display: none;
}

.nd-user-dropdown__menu.is-open {
  display: block;
  animation: ndDropdown 0.15s ease;
}

@keyframes ndDropdown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nd-user-dropdown__item {
  display: block;
  padding: 10px var(--space-4);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nd-user-dropdown__item:hover {
  background: var(--color-bg-section);
  color: var(--color-primary);
  text-decoration: none;
}

/* ============================================================
   BODY PADDING FOR FIXED NAVBAR
   ============================================================ */
body {
  padding-top: var(--navbar-height) !important;
}

/* ============================================================
   HERO SECTION — BIG SEARCH BANNER
   ============================================================ */
.nd-hero {
  background: linear-gradient(135deg, #0033a0 0%, #0047cc 50%, #1a5fe0 100%);
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.nd-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}

.nd-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.nd-hero__inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

.nd-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.95);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(4px);
  letter-spacing: .3px;
}

.nd-hero__title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  color: var(--color-text-inverse);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  letter-spacing: -0.5px;
}

.nd-hero__title span {
  color: var(--color-accent);
}

.nd-hero__subtitle {
  font-size: var(--font-size-md);
  color: rgba(255,255,255,.80);
  margin-bottom: var(--space-10);
  font-weight: 400;
  max-width: 560px;
}

/* ============================================================
   SEARCH BOX — HERO SEARCH
   ============================================================ */
.nd-search-box {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-3);
  align-items: end;
  max-width: 900px;
}

.nd-search-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nd-search-field__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  padding-left: var(--space-3);
}

.nd-search-field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nd-search-field__icon {
  position: absolute;
  left: var(--space-3);
  color: var(--color-text-muted);
  font-size: 16px;
  pointer-events: none;
}

.nd-search-field__input {
  width: 100%;
  height: 52px;
  padding: 0 var(--space-4) 0 42px;
  font-size: 15px;
  font-family: var(--font-family);
  font-weight: 500;
  color: var(--color-text-primary);
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.nd-search-field__input::placeholder {
  color: var(--color-text-muted);
  font-weight: 400;
}

.nd-search-field__input:focus {
  border-color: var(--color-primary);
  background: var(--color-bg-white);
  box-shadow: 0 0 0 3px rgba(0,51,160,.12);
}

.nd-search-box__btn {
  height: 52px;
  padding: 0 var(--space-8);
  font-size: 15px;
  font-weight: 700;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.nd-search-box__btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,51,160,.35);
  color: white;
  text-decoration: none;
}

.nd-search-box__btn .btn-icon {
  font-size: 17px;
}

/* Quick Search Tags */
.nd-quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.nd-quick-tags__label {
  font-size: 13px;
  color: rgba(255,255,255,.70);
  font-weight: 500;
}

.nd-quick-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.90);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.nd-quick-tag:hover {
  background: rgba(255,255,255,.25);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Hero Stats */
.nd-hero__stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}

.nd-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nd-hero__stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text-inverse);
  line-height: 1;
}

.nd-hero__stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  font-weight: 400;
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.nd-section {
  padding: var(--space-16) 0;
}

.nd-section--white {
  background: var(--color-bg-white);
}

.nd-section--grey {
  background: var(--color-bg);
}

.nd-section--blue {
  background: var(--color-bg-section);
}

.nd-section__inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nd-section__header {
  margin-bottom: var(--space-10);
}

.nd-section__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.nd-section__subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  font-weight: 400;
}

.nd-section__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

/* ============================================================
   JOB OFFER CARDS
   ============================================================ */
.nd-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-4);
}

.nd-offer-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-5);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
}

.nd-offer-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.nd-offer-card--featured {
  border-color: var(--color-primary);
  border-width: 2px;
}

.nd-offer-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Card Header */
.nd-offer-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.nd-offer-card__logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  object-fit: contain;
  padding: 4px;
  background: var(--color-bg-white);
  flex-shrink: 0;
}

.nd-offer-card__logo-placeholder {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
  flex-shrink: 0;
}

.nd-offer-card__badges {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Card Body */
.nd-offer-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-1);
  transition: color var(--transition-fast);
}

.nd-offer-card:hover .nd-offer-card__title {
  color: var(--color-primary);
}

.nd-offer-card__company {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Meta Info */
.nd-offer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.nd-offer-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 13px;
  color: var(--color-text-muted);
}

.nd-offer-card__meta-item i {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Card Footer */
.nd-offer-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-3);
  margin-top: auto;
}

.nd-offer-card__salary {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-success);
}

.nd-offer-card__date {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.nd-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: .3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nd-badge--new {
  background: var(--color-tag-new);
  color: var(--color-tag-new-text);
}

.nd-badge--hot {
  background: var(--color-tag-hot);
  color: var(--color-tag-hot-text);
}

.nd-badge--remote {
  background: var(--color-tag-remote);
  color: var(--color-tag-remote-text);
}

.nd-badge--featured {
  background: #fefce8;
  color: #92400e;
}

.nd-badge--promoted {
  background: linear-gradient(90deg, #0033a0, #1a5fe0);
  color: white;
}

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.nd-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-4);
}

.nd-category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.nd-category-card:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-section);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  text-decoration: none;
}

.nd-category-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all var(--transition-base);
}

.nd-category-card:hover .nd-category-card__icon {
  background: var(--color-primary);
  color: white;
}

.nd-category-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.nd-category-card__count {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.nd-cta {
  background: linear-gradient(135deg, #0033a0 0%, #1a5fe0 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
}

.nd-cta::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 240px;
  height: 240px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

.nd-cta::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 20%;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.nd-cta__content {
  position: relative;
  z-index: 1;
}

.nd-cta__title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--color-text-inverse);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.nd-cta__subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.75);
}

.nd-cta__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.nd-btn--white {
  background: white;
  color: var(--color-primary);
  border-color: white;
  font-weight: 700;
}

.nd-btn--white:hover {
  background: #f0f4ff;
  color: var(--color-primary);
  border-color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  text-decoration: none;
}

.nd-btn--white-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.5);
  font-weight: 600;
}

.nd-btn--white-outline:hover {
  background: rgba(255,255,255,.15);
  color: white;
  border-color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============================================================
   FOOTER — MODERN REDESIGN
   ============================================================ */
.nd-footer {
  background: #0f1b2d;
  color: rgba(255,255,255,.75);
  padding: var(--space-16) 0 0;
  margin-top: 0;
}

.nd-footer__inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nd-footer__top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Brand Column */
.nd-footer__brand {}

.nd-footer__logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.nd-footer__tagline {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-top: var(--space-3);
  line-height: 1.6;
}

.nd-footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.nd-footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.70);
  font-size: 16px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nd-footer__social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Link Columns */
.nd-footer__col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-inverse);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: var(--space-5);
}

.nd-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nd-footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,.60);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.nd-footer__links a:hover {
  color: var(--color-text-inverse);
  text-decoration: none;
}

/* Footer Bottom */
.nd-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.nd-footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,.40);
}

.nd-footer__payments {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nd-footer__payments img {
  height: 24px;
  width: auto;
  opacity: .6;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition-fast);
}

.nd-footer__payments img:hover {
  opacity: .9;
}

/* ============================================================
   STATS TICKER STRIP
   ============================================================ */
.nd-stats-strip {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}

.nd-stats-strip__inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.nd-stats-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nd-stats-strip__num {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
}

.nd-stats-strip__label {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.nd-stats-strip__divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

/* ============================================================
   HOW IT WORKS STEPS
   ============================================================ */
.nd-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  position: relative;
}

.nd-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.nd-step__num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,51,160,.25);
}

.nd-step__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.nd-step__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   OFFER LIST (Alternative to grid — similar to pracuj.pl)
   ============================================================ */
.nd-offer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nd-offer-row {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
}

.nd-offer-row:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
  text-decoration: none;
  color: inherit;
  transform: translateX(4px);
}

.nd-offer-row--featured {
  border-left: 4px solid var(--color-primary);
}

.nd-offer-row__logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  object-fit: contain;
  padding: 4px;
  flex-shrink: 0;
  background: white;
}

.nd-offer-row__logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
  flex-shrink: 0;
}

.nd-offer-row__body {
  flex: 1;
  min-width: 0;
}

.nd-offer-row__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-offer-row:hover .nd-offer-row__title {
  color: var(--color-primary);
}

.nd-offer-row__company {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
}

.nd-offer-row__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-1);
  flex-wrap: wrap;
}

.nd-offer-row__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.nd-offer-row__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nd-offer-row__salary {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-success);
  white-space: nowrap;
}

.nd-offer-row__date {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ============================================================
   SHOW MORE BUTTON
   ============================================================ */
.nd-show-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

/* ============================================================
   EMPLOYER CTA CARDS
   ============================================================ */
.nd-employer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.nd-employer-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.nd-employer-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
  text-decoration: none;
  color: inherit;
  transform: translateY(-3px);
}

.nd-employer-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-primary);
}

.nd-employer-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.nd-employer-card__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}

.nd-employer-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ============================================================
   FLASH ALERTS
   ============================================================ */
.nd-alert-wrapper {
  position: fixed;
  top: calc(var(--navbar-height) + 12px);
  right: var(--space-5);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 380px;
}

.nd-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: ndSlideIn 0.3s ease;
}

@keyframes ndSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.nd-alert--success {
  border-left: 4px solid var(--color-success);
}

.nd-alert--error {
  border-left: 4px solid var(--color-error);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .nd-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .nd-cta {
    flex-direction: column;
    text-align: center;
    padding: var(--space-10) var(--space-6);
  }

  .nd-cta__actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nd-search-box {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .nd-hero__stats {
    gap: var(--space-5);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --navbar-height: 58px;
  }

  .nd-navbar__menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4);
    flex-direction: column;
    box-shadow: var(--shadow-lg);
  }

  .nd-navbar__menu.is-open {
    display: flex;
  }

  .nd-navbar__toggle {
    display: flex;
  }

  .nd-hero {
    padding: var(--space-12) 0 var(--space-10);
  }

  .nd-hero__title {
    font-size: 28px;
  }

  .nd-hero__subtitle {
    font-size: var(--font-size-base);
  }

  .nd-hero__stats {
    gap: var(--space-4);
  }

  .nd-search-box {
    border-radius: var(--radius-lg);
    padding: var(--space-4);
  }

  .nd-offers-grid {
    grid-template-columns: 1fr;
  }

  .nd-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .nd-footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .nd-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .nd-stats-strip__inner {
    gap: var(--space-6);
  }

  .nd-stats-strip__divider {
    display: none;
  }

  .nd-offer-row {
    flex-wrap: wrap;
  }

  .nd-offer-row__right {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }
}

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

  .nd-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nd-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .nd-cta__actions .nd-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.nd-flex { display: flex; }
.nd-flex-center { display: flex; align-items: center; justify-content: center; }
.nd-gap-2 { gap: var(--space-2); }
.nd-gap-3 { gap: var(--space-3); }
.nd-gap-4 { gap: var(--space-4); }
.nd-mt-auto { margin-top: auto; }
.nd-text-center { text-align: center; }
.nd-w-full { width: 100%; }

/* Override old Bootstrap navbar */
.navbar-custom {
  display: none !important;
}

/* Legacy footer hide */
.new-footer:not(.nd-footer) {
  display: none !important;
}

/* ============================================================
   LISTING PAGE — SEARCH BAR STRIP
   ============================================================ */
/* ============================================================
   LISTING PAGE SEARCH BAR (Fixes centering and scroll overlap)
   ============================================================ */
.ndl-searchbar {
  background: var(--color-primary);
  padding: 16px 0;
  position: sticky;
  top: var(--navbar-height);
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.ndl-searchbar__inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}
/* Make NewSearchBox fit inside the strip */
.ndl-searchbar .default-search-block,
.ndl-searchbar .search-block {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ============================================================
   LISTING PAGE — LAYOUT (sidebar + main)
   ============================================================ */
.ndl-layout {
  background: var(--color-bg);
  min-height: calc(100vh - var(--navbar-height) - 60px);
}

.ndl-layout__inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.ndl-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--navbar-height) + 72px);
  max-height: calc(100vh - var(--navbar-height) - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.ndl-sidebar::-webkit-scrollbar { width: 4px; }
.ndl-sidebar::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

.ndl-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg-section);
}

.ndl-sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: .2px;
}

.ndl-sidebar__close {
  display: none;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.ndl-sidebar__close:hover { background: var(--color-border-light); }

.ndl-sidebar__actions {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-surface);
}

/* Breadcrumb */
.ndl-breadcrumb {
  list-style: none;
  margin: 0;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
}

.ndl-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--color-text-muted);
}

.ndl-breadcrumb li::before {
  content: '›';
  color: var(--color-border);
  font-size: 13px;
}

.ndl-breadcrumb li:first-child::before { display: none; }

.ndl-breadcrumb a {
  color: var(--color-primary);
  font-size: 11px;
  text-decoration: none;
}

.ndl-breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   FILTER GROUPS
   ============================================================ */
.ndl-filter-group {
  border-bottom: 1px solid var(--color-border-light);
}

.ndl-filter-group__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  text-align: left;
  transition: background var(--transition-fast);
}

.ndl-filter-group__toggle > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ndl-filter-group__toggle:hover {
  background: var(--color-bg-section);
}

.ndl-filter-group__arrow {
  transition: transform var(--transition-fast);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.ndl-filter-group.is-open .ndl-filter-group__arrow {
  transform: rotate(180deg);
}

.ndl-filter-group__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.ndl-filter-group.is-open .ndl-filter-group__body {
  max-height: 600px;
  padding: 8px 20px 16px;
}

/* ============================================================
   CUSTOM CHECKLIST
   ============================================================ */
.ndl-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ndl-checklist--nested {
  padding-left: 20px;
  margin-top: 6px;
  border-left: 2px solid var(--color-border-light);
  margin-left: 8px;
}

.ndl-checklist__item {
  display: block;
}

.ndl-checklist__label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  position: relative;
}

.ndl-checklist__label:hover {
  background: var(--color-bg-section);
}

.ndl-checklist__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ndl-checklist__check {
  width: 17px;
  height: 17px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  background: var(--color-bg-white);
}

.ndl-checklist__input:checked + .ndl-checklist__check {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.ndl-checklist__input:checked + .ndl-checklist__check::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Radio variant */
.ndl-checklist__check--radio {
  border-radius: 50%;
}

.ndl-checklist__input--radio:checked + .ndl-checklist__check--radio {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: inset 0 0 0 3px white;
}

.ndl-checklist__input--radio:checked + .ndl-checklist__check--radio::after {
  display: none;
}

.ndl-checklist__text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.ndl-checklist__label:hover .ndl-checklist__text {
  color: var(--color-text-primary);
}

/* ============================================================
   MAIN LISTING AREA
   ============================================================ */
.ndl-main {
  min-width: 0;
}

/* Results Header */
.ndl-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.ndl-results-header__left { flex: 1; }

.ndl-results-header__title {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin: 0 0 8px;
}

.ndl-results-header__title span {
  color: var(--color-primary);
}

/* Active filter tags */
.ndl-active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ndl-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--color-bg-section);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
}

.ndl-active-tag__remove {
  font-size: 11px;
  color: var(--color-primary);
  text-decoration: none;
  opacity: .7;
  transition: opacity var(--transition-fast);
}

.ndl-active-tag__remove:hover { opacity: 1; }

/* Mobile filter toggle button */
.ndl-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-family: var(--font-family);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.ndl-filter-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Description collapsible */
.ndl-results-description { margin-top: 8px; }

.ndl-results-description__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--color-primary);
  cursor: pointer;
  font-family: var(--font-family);
  padding: 0;
}

.ndl-results-description__body {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
  padding: 12px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border-left: 3px solid var(--color-primary);
}

/* ============================================================
   OFFER SECTIONS (listing groups)
   ============================================================ */
.ndl-offers-section {
  margin-bottom: 20px;
}

.ndl-offers-section__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--color-accent);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 12px;
}

.ndl-offers-section__label--regular {
  color: var(--color-text-muted);
}

.ndl-offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Style ad-on-list items from ListingBox::widget() ────── */
/* ListingBox outputs <li class="ad-on-list"> directly.
   Original layout: logo is position:absolute (via .centerY), padding-left
   reserves space for it. We reset that to a clean flex layout. */

.ndl-offer-list .ad-on-list {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 12px 16px !important;
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  margin: 0 !important;
  list-style: none !important;
  min-height: auto !important;
  position: relative !important;
  overflow: visible !important;
  transition: all var(--transition-base) !important;
}

.ndl-offer-list .ad-on-list:hover {
  border-color: var(--color-primary) !important;
  box-shadow: var(--shadow-card-hover) !important;
  transform: translateX(3px) !important;
  background: #f0f4ff !important;
}

/* Promoted: gold left border */
.ndl-offer-list--promoted .ad-on-list {
  border-left: 4px solid var(--color-accent) !important;
}

/* Logo span — reset absolute/float, make it a flex child */
.ndl-offer-list .ad-on-list .logo,
.ndl-offer-list .ad-on-list .logo.centerY,
.ndl-offer-list .ad-on-list .logo.logo-c {
  position: static !important;
  float: none !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  flex-shrink: 0 !important;
  width: 64px !important;
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--color-border-light) !important;
  background: #fff !important;
  margin: 0 !important;
}

.ndl-offer-list .ad-on-list .logo img,
.ndl-offer-list .ad-on-list .logo.centerY img,
.ndl-offer-list .ad-on-list .logo.logo-c img {
  max-width: 58px !important;
  max-height: 46px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  float: none !important;
}

/* Description block — take remaining flex space */
.ndl-offer-list .ad-on-list .description {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: block !important;
  padding: 0 !important;
}

/* Job title h3 */
.ndl-offer-list .ad-on-list h3 {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--color-primary) !important;
  margin: 0 0 3px !important;
  line-height: 1.35 !important;
  padding: 0 !important;
}

/* Company name */
.ndl-offer-list .ad-on-list .listing-company-name {
  font-size: 12px !important;
  color: var(--color-text-muted) !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
}

/* Meta list (date, location, category) */
.ndl-offer-list .ad-on-list ul.fs12 {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2px 12px !important;
}

.ndl-offer-list .ad-on-list ul.fs12 > li {
  font-size: 11px !important;
  color: var(--color-text-muted) !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
}

/* .nun-b inside meta list = bold value */
.ndl-offer-list .ad-on-list ul.fs12 .nun-b {
  font-weight: 600 !important;
  color: var(--color-text-primary) !important;
}

/* Category links */
.ndl-offer-list .ad-on-list ul.fs12 a {
  color: var(--color-primary) !important;
  text-decoration: none !important;
}

/* Hide super/star promoted badges (we use border-left instead) */
.ndl-offer-list .ad-on-list .super,
.ndl-offer-list .ad-on-list .super-star {
  display: none !important;
}

/* Multi-location expand link */
.ndl-offer-list .ad-on-list .show_other_places {
  font-size: 11px !important;
  color: var(--color-primary) !important;
}

/* CV badge */
.ndl-offer-list .ad-on-list .bg-success {
  font-size: 10px !important;
  padding: 2px 8px !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.ndl-pagination {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.ndl-pagination__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  align-items: center;
}

/* Override yii pagination defaults */
.ndl-pagination__list li a,
.ndl-pagination__list li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}

.ndl-pagination__list li a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-bg-section);
}

.ndl-pagination__list li.active a,
.ndl-pagination__list li.ndl-pagination__link--active a {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.ndl-pagination__list li.disabled a {
  opacity: .4;
  cursor: default;
}

.ndl-pagination__list li.disabled a:hover {
  border-color: var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface);
}

/* ============================================================
   LISTING PAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ndl-layout__inner {
    grid-template-columns: 240px 1fr;
    gap: 16px;
    padding: 16px 16px 40px;
  }
}

@media (max-width: 768px) {
  .ndl-layout__inner {
    grid-template-columns: 1fr;
    padding: 12px 12px 40px;
  }

  /* Sidebar becomes off-canvas on mobile */
  .ndl-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85vw;
    max-width: 340px;
    max-height: 100vh;
    z-index: 2000;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    box-shadow: var(--shadow-xl);
    border: none;
  }

  .ndl-sidebar.is-mobile-open {
    transform: translateX(0);
  }

  .ndl-sidebar__close {
    display: block;
  }

  .ndl-filter-toggle {
    display: inline-flex;
  }

  .ndl-searchbar {
    position: static;
  }

  .ndl-results-header {
    align-items: center;
  }
}

/* ============================================================
   HOMEPAGE — OFFER LIST REUSE
   Styles RecentAds widget output in new-design context
   ============================================================ */
#ndOfferList .frontpage-offer,
#ndOfferList .promo-wrapper {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-left: 3px solid var(--color-primary) !important;
  border-radius: var(--radius-lg) !important;
  margin-bottom: 8px !important;
  transition: all var(--transition-base) !important;
  box-shadow: var(--shadow-xs) !important;
}

#ndOfferList .frontpage-offer:hover,
#ndOfferList .promo-wrapper:hover {
  border-color: var(--color-primary) !important;
  box-shadow: var(--shadow-card-hover) !important;
  transform: translateX(4px);
}

/* Remove old promo border-right ribbon */
#ndOfferList .frontpage-items .promo-wrapper {
  border-right: 1px solid var(--color-border) !important;
}

#ndOfferList .frontpage-items .promo-wrapper:before,
#ndOfferList .frontpage-items .promo-wrapper:after {
  display: none !important;
}

/* ============================================================
   GLOBAL OVERRIDES — Bootstrap / Old CSS cleanup
   ============================================================ */

/* Hide old navbar since we use nd-navbar */
.navbar.navbar-custom { display: none !important; }

/* Remove top padding added by old navbar */
body { padding-top: var(--navbar-height) !important; }

/* Breadcrumb old style */
.breadcrumb {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

/* Quick links widget */
.quick-links {
  margin-bottom: 16px;
}

/* ============================================================
   WRAPPER FOR LISTING PAGE (grey bg)
   ============================================================ */
.wrapper.wrapper-margin.bgcolor-gray {
  background: var(--color-bg) !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wrapper .container {
  max-width: 100% !important;
  padding: 0 !important;
}

.wrapper .row {
  margin: 0 !important;
}

/* ============================================================
   NDS-* — JOB OFFER DETAIL PAGE (show.php)
   Naming convention: nds-  (new design show)
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────────── */
.nds-page {
  background: var(--color-bg);
  min-height: 100vh;
  padding: 24px 0 64px;
}

.nds-page__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* ── Back / Next navigation bar ──────────────────────────── */
.nds-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 16px;
  gap: 8px;
  box-shadow: var(--shadow-xs);
}

.nds-nav-bar__back,
.nds-nav-bar__next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 51, 160, 0.2);
  background: rgba(0, 51, 160, 0.04);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.nds-nav-bar__back:hover,
.nds-nav-bar__next:hover {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

/* ── Offer body ──────────────────────────────────────────── */
.nds-offer-body {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

/* ── Offer footer (tags + docs) ──────────────────────────── */
.nds-offer-footer {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.nds-offer-footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.nds-offer-footer__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(0, 51, 160, 0.07);
  color: var(--color-primary);
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 51, 160, 0.15);
}

.nds-offer-footer__tag:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-color: var(--color-primary);
}

.nds-offer-footer__docs {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.nds-offer-footer__docs-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.nds-offer-footer__doc-item {
  font-size: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  color: var(--color-text);
}

/* ── SEO links collapsible ───────────────────────────────── */
.nds-seo-links {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin-bottom: 16px;
}

.nds-seo-links__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: left;
  transition: color var(--transition-base);
}

.nds-seo-links__toggle:hover {
  color: var(--color-primary);
}

.nds-seo-links__arrow {
  margin-left: auto;
  transition: transform var(--transition-base);
}

.nds-seo-links__body {
  padding: 0 20px 18px;
  font-size: 12px;
  line-height: 2;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.nds-seo-links__body a {
  color: var(--color-primary);
  text-decoration: none;
}

.nds-seo-links__body a:hover {
  text-decoration: underline;
}

.nds-seo-links__desc {
  margin-top: 10px;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Sidebar wrapper ─────────────────────────────────────── */
.nds-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Employer card ───────────────────────────────────────── */
.nds-employer-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow-sm);
}

.nds-employer-card__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.nds-employer-card__logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  margin-bottom: 14px;
}

.nds-employer-card__logo {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
}

.nds-employer-card__logo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nds-employer-card__name {
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: 10px;
  line-height: 1.3;
}

.nds-employer-card__name:hover {
  color: var(--color-primary);
}

.nds-employer-card__socials {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.nds-employer-card__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all var(--transition-base);
}

.nds-employer-card__social:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.nds-employer-card__divider {
  height: 1px;
  background: var(--color-border);
  margin: 14px 0;
}

.nds-employer-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nds-employer-card__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.nds-employer-card__meta-row svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.nds-employer-card__meta-row--warn svg {
  color: #e0a800;
}

.nds-employer-card__kraz {
  font-size: 10px;
  color: var(--color-text-muted);
  text-align: center;
  margin: 8px 0 0;
}

.nds-employer-card__all-offers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base);
}

.nds-employer-card__all-offers:hover {
  background: rgba(0, 51, 160, 0.06);
  text-decoration: none;
}

/* ── Breadcrumb in sidebar ───────────────────────────────── */
.nds-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 10px;
  color: var(--color-text-muted);
}

.nds-breadcrumb li {
  display: flex;
  align-items: center;
}

.nds-breadcrumb li + li::before {
  content: "\0203A";
  margin-right: 4px;
  color: var(--color-text-muted);
}

.nds-breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.nds-breadcrumb a:hover {
  color: var(--color-primary);
}

/* ── Apply section ───────────────────────────────────────── */
.nds-apply-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nds-apply-btn,
.nds-quick-apply-btn {
  width: 100%;
  text-align: center;
  font-size: 15px !important;
  padding: 13px 20px !important;
}

.nd-w-full {
  width: 100%;
}

/* ── Archived notice ─────────────────────────────────────── */
.nds-archived-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff8e1;
  border: 1px solid #ffd54f;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #7a5800;
}

.nds-archived-notice svg {
  flex-shrink: 0;
  color: #e0a800;
}

/* ── Contact card ────────────────────────────────────────── */
.nds-contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}

.nds-contact-card__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.nds-contact-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}

.nds-contact-card__row:last-child {
  border-bottom: none;
}

.nds-contact-card__row svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.nds-contact-card__row a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.nds-contact-card__row a:hover {
  text-decoration: underline;
}

/* ── Callback card ───────────────────────────────────────── */
.nds-callback-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}

.nds-callback-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
}

.nds-callback-card__title svg {
  color: var(--color-primary);
}

.nds-callback-card__input {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition-base);
  box-sizing: border-box;
}

.nds-callback-card__input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

/* ── Similar offers ──────────────────────────────────────── */
.nds-similar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}

.nds-similar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.nds-similar__title svg {
  color: var(--color-primary);
}

.nds-similar__item {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nds-similar__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.nds-similar__item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.35;
  transition: color var(--transition-base);
}

.nds-similar__item-title:hover {
  color: var(--color-primary);
}

.nds-similar__item-meta {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ── User action buttons ─────────────────────────────────── */
.nds-user-actions {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-xs);
}

.nds-user-actions__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
}

.nds-user-actions__btn:hover,
.nds-user-actions__btn.is-active {
  background: rgba(0, 51, 160, 0.07);
  color: var(--color-primary);
}

.nds-user-actions__btn.is-active svg {
  fill: var(--color-primary);
  stroke: var(--color-primary);
}

/* ── Share buttons ───────────────────────────────────────── */
.nds-share {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
}

.nds-share__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

.nds-share__buttons {
  display: flex;
  gap: 8px;
}

.nds-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
}

.nds-share__btn--fb {
  background: #1877f2;
  color: #fff;
}

.nds-share__btn--fb:hover {
  background: #0d65d9;
  color: #fff;
  text-decoration: none;
}

.nds-share__btn--li {
  background: #0a66c2;
  color: #fff;
}

.nds-share__btn--li:hover {
  background: #0856a3;
  color: #fff;
  text-decoration: none;
}

/* ── Print link ──────────────────────────────────────────── */
.nds-print-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.nds-print-link:hover {
  color: var(--color-primary);
  border-color: rgba(0, 51, 160, 0.3);
  background: rgba(0, 51, 160, 0.03);
}

/* ── Quick Apply Modal ───────────────────────────────────── */
.nds-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.nds-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

.nds-modal__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
}

.nds-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}

.nds-modal__close:hover {
  background: #fee;
  border-color: #fcc;
  color: #c00;
}

.nds-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 6px;
}

.nds-modal__subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

.nds-modal__input {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition-base);
  box-sizing: border-box;
}

.nds-modal__input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

/* ── Design default overrides (inside nds-offer-body) ────── */
.nds-offer-body .box.box-title-box {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0045c8 100%);
  color: #fff;
  border-radius: 0;
  border: none;
  padding: 32px 32px 24px;
  margin: 0;
}

.nds-offer-body .box.box-title-box .titlebox {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}

.nds-offer-body .box.box-title-box .company {
  display: block;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 4px;
}

.nds-offer-body .offer-details {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nds-offer-body .offer-details li {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.nds-offer-body .offer-details .orange {
  color: #ffd36b;
  font-weight: 600;
}

.nds-offer-body .offer-details-more {
  list-style: none;
  padding: 16px 32px;
  margin: 0;
  background: var(--color-bg);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  border-bottom: 1px solid var(--color-border);
}

.nds-offer-body .offer-details-more li {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 4px 0;
}

.nds-offer-body .offer-details-more strong {
  color: var(--color-text);
  font-weight: 600;
}

.nds-offer-body .offer-details-more a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.nds-offer-body .offer-details-more a:hover {
  text-decoration: underline;
}

.nds-offer-body .box.box-offer-content {
  border: none;
  border-radius: 0;
  padding: 28px 32px;
  margin: 0;
  box-shadow: none;
}

.nds-offer-body .box.box-offer-content .inner {
  max-width: 100%;
}

.nds-offer-body .small-box {
  margin-bottom: 28px;
}

.nds-offer-body .small-box h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-primary);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.nds-offer-body .small-box p,
.nds-offer-body .small-box ul,
.nds-offer-body .small-box ol {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
}

.nds-offer-body .small-box ul,
.nds-offer-body .small-box ol {
  padding-left: 20px;
}

.nds-offer-body .small-box ul li,
.nds-offer-body .small-box ol li {
  margin-bottom: 4px;
}

.nds-offer-body .clausule {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.5;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 20px;
  border: 1px solid var(--color-border);
}

.nds-offer-body .new-image {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
}

.nds-offer-body .ad-wysywig h1.text-center {
  font-size: 20px;
  color: var(--color-text);
  margin: 0 0 20px;
}

.nds-offer-body .required-documents {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.nds-offer-body .required-documents h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

.nds-offer-body .required-doc-box {
  display: inline-flex;
  background: rgba(0, 51, 160, 0.07);
  border: 1px solid rgba(0, 51, 160, 0.15);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  margin: 3px;
  font-size: 13px;
  color: var(--color-primary);
}

.nds-offer-body .default-icons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}

.nds-offer-body .default-icon-container {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: auto !important;
  padding: 12px 16px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  flex: 0 0 auto;
}

.nds-offer-body .default-icon-container img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 6px;
}

.nds-offer-body .default-oferujemy-icon-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}

/* Footer apply block inside design.
   background-color NOT set here — design_N.css uses background-image on .footer.
   Using background shorthand would reset design's footer background image! */
.nds-offer-body .footer {
  text-align: center;
}

.nds-offer-body .footer-content-dscp {
  display: block;
  margin-bottom: 4px;
}

.nds-offer-body .footer-content-dscp.second-line {
  font-weight: 700;
  font-size: 15px;
}

.nds-offer-body .apply-button.company-application,
.nds-offer-body .company-link.company-application {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  padding: 13px 36px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: var(--font-family) !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: all var(--transition-base);
  margin-top: 12px;
}

.nds-offer-body .apply-button.company-application:hover,
.nds-offer-body .company-link.company-application:hover {
  background: #0028c4 !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── Responsive — show page ──────────────────────────────── */
@media (max-width: 960px) {
  .nds-page__inner {
    grid-template-columns: 1fr;
  }

  .nds-sidebar {
    position: static;
    order: -1; /* sidebar before main on mobile */
  }

  .nds-employer-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 8px;
    align-items: start;
  }

  .nds-employer-card__label { grid-column: 1 / -1; }
  .nds-employer-card__logo-wrap { grid-row: 2; justify-content: flex-start; min-height: auto; }
  .nds-employer-card__name { grid-row: 2; text-align: left; }
}

@media (max-width: 640px) {
  .nds-page {
    padding: 12px 0 40px;
  }

  .nds-page__inner {
    padding: 0 12px;
    gap: 16px;
  }

  .nds-offer-body .box.box-title-box {
    padding: 20px 18px 16px;
  }

  .nds-offer-body .box.box-offer-content {
    padding: 18px 18px;
  }

  .nds-offer-body .offer-details-more {
    padding: 12px 18px;
  }

  .nds-modal__box {
    padding: 24px 18px 20px;
  }

  .nds-employer-card {
    display: flex;
    flex-direction: column;
  }

  .nds-employer-card__name {
    text-align: center;
  }
}

/* ============================================================
   DESIGN-* — PREMIUM OFFER DESIGNS (design_1–36)
   Shared styles for _design_premium.php + _design_body.php
   ============================================================ */

/* ── Hero header ─────────────────────────────────────────── */
/* Fallback bg only — design_N.css sets its own background-image.
   Use background-color (not shorthand) so design_N.css background-image is NOT reset.
   No flex: design_1.css uses absolutely-positioned children inside .head. */
.ogloszenie-design-new-1 .head {
  position: relative;
  min-height: 280px;
  background-color: #0f3e90; /* fallback; design_N.css bg-image will show on top */
  overflow: hidden;
  color: #fff;
}

.ogloszenie-design-new-1 .head .bg {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.ogloszenie-design-new-1 .head .bg-1 {
  width: 400px;
  height: 400px;
  background: #fff;
  top: -100px;
  right: -80px;
}

.ogloszenie-design-new-1 .head .bg-2 {
  width: 250px;
  height: 250px;
  background: #fff;
  bottom: -80px;
  left: 40%;
}

.ogloszenie-design-new-1 .head .title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.25;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.design-logo {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.design-logo img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 6px 10px;
}

.design-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.design-hero-meta__item {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.design-hero-meta__item--salary {
  font-weight: 700;
  color: #ffd36b;
}

.design-hero-meta__sep {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

/* ── Body sections ───────────────────────────────────────── */
.design-body {
  padding: 0;
}

.design-section {
  padding: 28px 36px;
  border-bottom: 1px solid var(--color-border);
}

.design-section:last-child {
  border-bottom: none;
}

.design-section__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.design-section__content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
}

.design-section__content p,
.design-section__content ul,
.design-section__content ol {
  margin-bottom: 12px;
}

.design-section__content ul,
.design-section__content ol {
  padding-left: 20px;
}

.design-section__content li {
  margin-bottom: 4px;
}

/* Tags (languages, documents) */
.design-section__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.design-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 51, 160, 0.07);
  color: var(--color-primary);
  border-radius: 20px;
  border: 1px solid rgba(0, 51, 160, 0.15);
}

/* Icons section */
.design-section--icons {
  background: var(--color-bg);
}

.design-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.design-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 110px;
  padding: 16px 10px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
}

.design-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: brightness(0) invert(1); /* ensure white SVGs show on dark bg */
}

.design-icon span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

/* Video embed */
.design-section__video {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.design-section__video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* GDPR clausule */
.design-clausule {
  padding: 20px 36px 24px;
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.6;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

/* ── Footer CTA ──────────────────────────────────────────── */
.design-footer {
  padding: 28px 36px;
  background: var(--color-bg);
  border-top: 2px solid var(--color-border);
  text-align: center;
}

.design-footer__text {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.design-footer__cta {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.design-apply-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 40px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: var(--font-family) !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.design-apply-btn:hover {
  background: #0028c4 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none !important;
}

.design-footer__validity {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ── Hero meta: inline row on wider screens ──────────────── */
@media (min-width: 600px) {
  .design-hero-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
  }

  .design-hero-meta__item {
    display: inline;
  }

  .design-hero-meta__sep {
    display: inline;
    margin: 0 6px;
    color: rgba(255,255,255,0.4);
  }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .ogloszenie-design-new-1 .head {
    padding: 22px 18px 18px;
    min-height: auto;
    justify-content: flex-start;
    gap: 10px;
  }

  .ogloszenie-design-new-1 .head .title {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .design-hero-meta {
    flex-direction: column;
    gap: 3px;
  }

  .design-hero-meta__sep {
    display: none; /* hide separators on mobile — stack items vertically */
  }

  .design-hero-meta__item {
    font-size: 12px;
  }

  .design-section {
    padding: 18px 16px;
  }

  .design-footer {
    padding: 18px 16px;
  }

  .design-clausule {
    padding: 14px 16px;
  }
}

/* ============================================================
   LISTING BOX — mobile responsive for .ad-on-list items
   ============================================================ */

@media (max-width: 480px) {
  .ndl-offer-list .ad-on-list {
    padding: 10px 12px !important;
    gap: 10px !important;
  }

  .ndl-offer-list .ad-on-list .logo,
  .ndl-offer-list .ad-on-list .logo.centerY,
  .ndl-offer-list .ad-on-list .logo.logo-c {
    width: 48px !important;
    height: 40px !important;
  }

  .ndl-offer-list .ad-on-list h3 {
    font-size: 13px !important;
  }
}

/* Other-places multi-location dropdown */
.ndl-offer-list .ad-on-list .other-places {
  margin-top: 4px !important;
  padding: 0 !important;
  float: none !important;
}

.ndl-offer-list .ad-on-list .other-places ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 2px 0 0 !important;
}

.ndl-offer-list .ad-on-list .other-places ul li {
  font-size: 11px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* ── Quick links widget fix ──────────────────────────────── */
.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-primary);
  background: rgba(0, 51, 160, 0.06);
  border: 1px solid rgba(0, 51, 160, 0.15);
  border-radius: 20px;
  padding: 4px 12px;
  text-decoration: none;
  transition: all var(--transition-base);
  margin: 2px;
}

.quick-links a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ============================================================
   PREMIUM DESIGN — fixes when rendered inside .nds-offer-body
   ============================================================ */

/* design_1.css adds border:1px solid #eee to .ogloszenie-design-new-1,
   but .nds-offer-body already has a border — remove the inner duplicate */
.nds-offer-body .ogloszenie-design-new-1 {
  border: none !important;
}

/* Ensure the top corners of the design match the card's border-radius */
.nds-offer-body .ogloszenie-design-new-1 .head {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* .subhead: ensure it doesn't have its own border-radius on bottom corners */
.nds-offer-body .ogloszenie-design-new-1 .subhead {
  border-radius: 0;
}

/* ── Favorite star button in listing items ─── */
.ndl-offer-list .ad-on-list .star {
  display: none !important; /* hide per-location favourite stars in listing */
}

/* ── Person-flag icon (recruitment invite indicator) ─── */
.ndl-offer-list .ad-on-list .person-flag {
  color: var(--color-accent) !important;
  font-size: 11px !important;
  vertical-align: middle !important;
}
