:root {
  --bg: #eaf1fb;
  --panel: #ffffff;
  --text: #1b2640;
  --muted: #5c6677;
  --border: #c9d4e4;
  --primary: #2f6fd6;
  --primary-dark: #2459ae;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(180deg, #91bbe8 0%, #b8cff0 36%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

.container {
  width: min(1140px, calc(100% - 32px));
  max-width: 1140px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  border-bottom: 1px solid rgba(160, 183, 218, 0.42);
  background: rgba(232, 241, 252, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(27, 38, 64, 0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  padding: 6px;
  border-radius: 12px;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(27, 38, 64, 0.08);
  transform: translateY(-1px);
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-fallback {
  color: #1d3f75;
  font-weight: 700;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header-slot {
  display: flex;
  align-items: center;
}

.admin-header-slot:empty {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(160, 183, 218, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.language-select-wrap {
  position: relative;
}

.language-select-wrap::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #5b6b84;
  border-bottom: 2px solid #5b6b84;
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

#language-switcher {
  min-height: 42px;
  width: 58px;
  padding: 0 24px 0 11px;
  border: 1px solid rgba(160, 183, 218, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #1b2640;
  cursor: pointer;
  font-size: 1.08rem;
  line-height: 1;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 8px 18px rgba(27, 38, 64, 0.07);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

#language-switcher:hover {
  border-color: rgba(47, 111, 214, 0.42);
  background: #fff;
  transform: translateY(-1px);
}

.main-nav a,
.nav-button {
  text-decoration: none;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 12px;
}

.main-nav a::after,
.nav-button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.nav-button:hover {
  color: var(--primary);
  background: #eef5ff;
  transform: translateY(-1px);
}

.main-nav a:hover::after,
.nav-button:hover::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: var(--primary);
  background: #eef5ff;
}

.top-banner-ad {
  padding: 12px 0;
}

.ad-slot {
  border: 1px dashed rgba(91, 123, 170, 0.48);
  border-radius: 8px;
  background: rgba(237, 243, 252, 0.76);
  display: grid;
  place-items: center;
  text-align: center;
  color: #4a5f7e;
  font-weight: 600;
}

.ad-slot p {
  margin: 0;
  font-size: 0.86rem;
}

.ad-slot-horizontal {
  min-height: 90px;
}

.page-main {
  padding: 10px 0 30px;
}

.layout-with-ads {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  justify-items: stretch;
}

.content-column {
  grid-column: 1;
  width: 100%;
  max-width: 1140px;
  min-width: 0;
  justify-self: center;
  display: grid;
  gap: 18px;
}

.static-page {
  padding: 28px 0 42px;
}

.static-shell {
  display: grid;
  gap: 18px;
}

.static-hero,
.static-panel {
  border: 1px solid rgba(193, 207, 228, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(27, 38, 64, 0.08);
}

.static-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 247, 255, 0.97) 60%, rgba(232, 243, 255, 0.92) 100%);
}

.static-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(119, 214, 198, 0.12), rgba(47, 111, 214, 0.08)),
    repeating-linear-gradient(135deg, rgba(47, 111, 214, 0.18) 0 5px, transparent 5px 14px);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 54%, rgba(0, 0, 0, 0.18) 72%, rgba(0, 0, 0, 0.36) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 54%, rgba(0, 0, 0, 0.18) 72%, rgba(0, 0, 0, 0.36) 100%);
  pointer-events: none;
}

.static-hero > * {
  position: relative;
  z-index: 1;
}

.static-hero h1 {
  max-width: 21ch;
}

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

.static-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 22px;
}

.static-panel h2 {
  font-size: 1.18rem;
  line-height: 1.2;
}

.static-panel p,
.static-panel li {
  color: var(--muted);
}

.static-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-method {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  background: #fff;
}

.contact-method a {
  color: var(--primary);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

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

.rail-ad {
  display: none;
}

.ad-slot-vertical {
  min-height: 600px;
  position: sticky;
  top: 16px;
}

.hero,
.job-list-section,
.companies,
.categories,
.why-ads,
.route-detail-section,
.homepage-employer-cta {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(193, 207, 228, 0.9);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(27, 38, 64, 0.08);
}

.hero {
  position: relative;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 247, 255, 0.95) 58%, rgba(232, 243, 255, 0.9) 100%);
}

body.detail-route .content-column > section:not(.route-detail-section) {
  display: none;
}

body.detail-route .route-detail-section[hidden] {
  display: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(119, 214, 198, 0.1)),
    repeating-linear-gradient(135deg, rgba(47, 111, 214, 0.24) 0 5px, transparent 5px 14px);
  opacity: 0.9;
  border-radius: inherit;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 48%, rgba(0, 0, 0, 0.16) 62%, rgba(0, 0, 0, 0.38) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 48%, rgba(0, 0, 0, 0.16) 62%, rgba(0, 0, 0, 0.38) 100%);
  pointer-events: none;
}

.hero::after {
  content: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
}

h1 {
  margin-top: 10px;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.15;
  max-width: 20ch;
  text-wrap: balance;
}

.rotating-hero-text {
  display: block;
}

.eyebrow.rotating-hero-text {
  min-height: 1.5em;
}

h1.rotating-hero-text {
  min-height: 3.45em;
}

.rotating-hero-text .hero-word {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  filter: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
  will-change: opacity, transform;
}

.rotating-hero-text .hero-word.is-entering {
  opacity: 0;
  transform: translateY(0.45em);
  filter: none;
}

.rotating-hero-text .hero-word.is-exiting {
  opacity: 0;
  transform: translateY(-0.35em);
  filter: none;
}

.hero-copy {
  color: var(--muted);
  margin-top: 10px;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 8px;
  border: 1px solid rgba(184, 207, 238, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(27, 38, 64, 0.08);
}

.hero-jobs-cta {
  min-width: min(260px, 100%);
  min-height: 54px;
  padding: 0 30px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 14px 28px rgba(47, 111, 214, 0.24);
}

.search-panel {
  position: relative;
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(193, 207, 228, 0.98);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 16px 34px rgba(27, 38, 64, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-panel .btn {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: min(160px, 100%);
  padding-inline: 16px;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.15;
}

@media (min-width: 901px) {
  .search-panel {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr));
  }

  .search-panel .btn {
    justify-self: end;
    width: auto;
  }
}

.newsletter-form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.alert-category-field {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  margin: 0;
  padding: 10px;
  background: #f8fbff;
}

.alert-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: #334155;
  font-size: 0.88rem;
}

.check-option input {
  width: auto;
  min-height: auto;
}

.form-status {
  color: #405472;
  font-size: 0.9rem;
  align-self: center;
}

.form-status.is-error {
  color: #9e2f2f;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.notification-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  background: #eef5ff;
}

.notification-panel h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.subscriber-match-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
}

.subscriber-match-list li {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 10px;
}

.match-reasons {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 2px;
}

.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.field-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #586378;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.character-counter {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c9d7eb;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  min-width: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

textarea {
  min-height: 90px;
  padding-top: 8px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47, 111, 214, 0.62);
  box-shadow: 0 0 0 3px rgba(47, 111, 214, 0.12);
  outline: none;
}

#search-input {
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 0 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(47, 111, 214, 0.18);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 24px rgba(47, 111, 214, 0.22);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #e9f1fc;
  color: #254263;
  border: 1px solid #c8d8ed;
}

.btn-secondary:hover {
  background: #dce9fb;
  color: #17324f;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.section-head h2,
.categories h2 {
  letter-spacing: 0;
  line-height: 1.15;
}

.section-intro {
  margin-top: 6px;
  max-width: 70ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5f6a7d;
  font-size: 0.85rem;
  font-weight: 500;
}

.sort-control select {
  min-height: 38px;
  padding: 0 32px 0 10px;
  background: #fff;
}

.results-meta,
.no-results,
.link-muted {
  color: #405472;
}

.no-results {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: #f5f8fe;
}

.admin-session-note {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.job-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  align-items: start;
  gap: 18px;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  box-shadow: 0 10px 26px rgba(27, 38, 64, 0.07);
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: #bad0ed;
  box-shadow: 0 16px 34px rgba(27, 38, 64, 0.11);
}

.job-card.has-admin-actions {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 390px);
}

.job-meta,
.job-company {
  color: var(--muted);
  font-size: 0.9rem;
}

.job-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.job-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.job-content {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.job-image {
  box-sizing: border-box;
  width: 88px;
  height: 88px;
  object-fit: scale-down;
  object-position: center;
  display: block;
  overflow: hidden;
  border: 1px solid #cbd9ed;
  border-radius: 8px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    radial-gradient(circle at 50% 0%, rgba(47, 111, 214, 0.1), transparent 55%),
    #f2f6fd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.job-image.placeholder {
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: #6d7a8f;
}

.job-right-actions {
  min-width: 0;
  display: grid;
  grid-auto-rows: min-content;
  gap: 8px;
  justify-items: stretch;
  align-content: start;
  width: 100%;
}

.job-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s ease;
}

.job-link:hover {
  color: var(--primary-dark);
}

.job-location-link {
  color: #405472;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.job-location-link:hover {
  color: var(--primary-dark);
  border-color: rgba(36, 89, 174, 0.38);
}

.job-description-preview {
  color: #2f3f59;
  line-height: 1.45;
  font-size: 0.94rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.job-contact-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.job-contact-label {
  color: #405472;
  font-weight: 700;
}

.job-contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid #d8e5f5;
  border-radius: 999px;
  background: #f5f9ff;
  color: #31506f;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.job-contact-link:hover {
  border-color: #b9cdeb;
  background: #eef5ff;
  color: var(--primary-dark);
}

.job-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #e1e8f2;
  border-radius: 999px;
  background: #f8fafc;
  color: #526278;
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-tag-library-field {
  display: grid;
  gap: 10px;
}

.admin-tag-library {
  display: grid;
  gap: 12px;
}

.admin-tag-group {
  min-width: 0;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.admin-tag-group legend {
  padding: 0 6px;
  color: #344762;
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-tag-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.job-engagement {
  color: #69758a;
  font-size: 0.78rem;
  font-weight: 600;
}

.job-apply-btn {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border-radius: 8px;
}

.job-link-btn {
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #eef5ff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  line-height: 1.15;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.job-link-btn:hover {
  background: #e1ecfb;
  border-color: #adc7eb;
  transform: translateY(-1px);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e5f8ea;
  color: #1b8f46;
  font-size: 0.72rem;
  font-weight: 700;
}

.new-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf0ff;
  color: #3156a5;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 8px;
  border: 1px solid #f0b9b9;
  border-radius: 999px;
  background: #fff0f0;
  color: #9b2d2d;
  font-size: 0.72rem;
  font-weight: 800;
}

.sponsored-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 8px;
  border: 1px solid #e6c36a;
  border-radius: 999px;
  background: #fff4d4;
  color: #80580e;
  font-size: 0.72rem;
  font-weight: 800;
}

.matched-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 8px;
  border: 1px solid #b8ddc8;
  border-radius: 999px;
  background: #eefaf3;
  color: #247645;
  font-size: 0.72rem;
  font-weight: 800;
}

.popularity-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf8f5;
  color: #0e766f;
  font-size: 0.72rem;
  font-weight: 800;
}

.popularity-badge-popular {
  background: #edf8f5;
  color: #0e766f;
}

.popularity-badge-trending {
  background: #fff2dd;
  color: #8a5a08;
}

.job-card.is-sponsored {
  border-color: #e6c36a;
  background:
    linear-gradient(90deg, rgba(230, 195, 106, 0.18), rgba(47, 111, 214, 0.04) 48%, transparent),
    #fff;
}

.job-card.is-sponsored:hover {
  border-color: #d5aa46;
  box-shadow: 0 16px 34px rgba(82, 63, 23, 0.13);
}

.sponsor-note {
  margin-top: 5px;
  color: #6e5a24;
  font-size: 0.84rem;
  font-weight: 600;
}

.job-warning {
  margin-top: 4px;
  color: #a86122;
  font-size: 0.82rem;
}

.job-admin-actions {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  width: min(390px, 100%);
}

.btn-admin-action {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  font-size: 0.8rem;
  padding-inline: 12px;
  line-height: 1.15;
  white-space: normal;
}

.job-company-attach {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.job-company-attach select {
  min-height: 36px;
  font-size: 0.8rem;
  padding: 0 8px;
}

.job-admin-actions .btn-danger {
  grid-column: auto;
  justify-self: stretch;
  min-width: 0;
}

.view-all-jobs-link {
  min-height: 38px;
  padding: 9px 13px;
}

.view-all-jobs-link[hidden] {
  display: none;
}

.edit-preferences-button[hidden],
.sort-control[hidden] {
  display: none;
}

.job-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.job-pagination[hidden] {
  display: none;
}

.pagination-button {
  min-width: 40px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  background: #fff;
  color: #29415f;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.pagination-button:hover:not(:disabled),
.pagination-button.is-current {
  border-color: #adc7eb;
  background: #eef5ff;
  color: var(--primary);
  transform: translateY(-1px);
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.pagination-ellipsis {
  color: #6a7890;
  font-weight: 700;
  padding: 0 2px;
}

.btn-danger {
  background: #bd3b3b;
}

.btn-danger:hover {
  background: #9e2f2f;
}

.admin-create-block {
  margin-bottom: 0;
  padding: 16px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(27, 38, 64, 0.05);
}

.admin-create-block h3 {
  margin-bottom: 12px;
}

.post-job-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-import-block {
  display: grid;
  gap: 12px;
}

.admin-import-block h3 {
  margin-bottom: 4px;
}

.admin-import-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-import-form input[type="file"] {
  min-height: auto;
  padding: 9px;
  background: #fff;
}

.public-job-panel {
  padding: 24px;
}

.employer-page {
  padding-top: 28px;
}

.employer-shell {
  max-width: 980px;
}

.employer-hero h1 {
  max-width: 25ch;
}

.employer-intake-panel {
  gap: 18px;
}

.request-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid #cbd9ed;
  border-radius: 8px;
  background: #f7fbff;
}

.request-switch-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font-weight: 700;
}

.request-switch-button:hover,
.request-switch-button.is-active {
  border-color: #bfd2ee;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(27, 38, 64, 0.08);
}

.employer-request-panel[hidden] {
  display: none;
}

.public-job-form {
  gap: 14px;
}

.form-section-heading {
  padding-bottom: 4px;
  border-bottom: 1px solid #dbe6f4;
}

.form-section-heading h2 {
  font-size: 1.06rem;
  line-height: 1.2;
}

.public-radio-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.public-radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 8px;
  margin-top: 6px;
}

.public-upload-field input[type="file"] {
  min-height: auto;
  padding: 8px;
  border: 0;
  background: transparent;
}

.admin-launch-panel {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.admin-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-panel-sign-out {
  min-height: 36px;
  padding: 0 14px;
}

.admin-panel-open {
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(47, 111, 214, 0.18);
}

.admin-modal-card {
  width: min(1040px, 100%);
  max-height: 92vh;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.admin-modal-card .modal-close {
  position: static;
  box-shadow: none;
}

#admin-modal-title {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

#admin-panel-content {
  display: grid;
  gap: 14px;
}

.admin-dashboard-head {
  display: grid;
  gap: 10px;
  padding-bottom: 2px;
}

.admin-view-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid #cbd9ed;
  border-radius: 8px;
  background: #eef5ff;
}

.admin-view-tab {
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-view-tab span {
  display: block;
  margin-top: 2px;
  color: #5f7290;
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-view-tab:hover,
.admin-view-tab.is-active {
  border-color: #b9cdeb;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(27, 38, 64, 0.08);
}

.admin-panel-view {
  display: grid;
  gap: 14px;
}

.admin-panel-view[hidden] {
  display: none;
}

.job-request-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.job-request-section-head h3 {
  margin: 0;
}

.job-request-list {
  display: grid;
  gap: 12px;
}

.job-request-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #fff;
}

.job-request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-request-head h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.job-request-date {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.job-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.job-request-grid p {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e0e9f5;
  border-radius: 8px;
  background: #f7fbff;
}

.job-request-description {
  color: #334155;
  white-space: pre-wrap;
}

.job-request-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-request-links a {
  color: var(--primary);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.job-request-links a:hover {
  color: var(--primary-dark);
}

.request-image-preview {
  display: grid;
  grid-template-columns: minmax(0, 160px);
  gap: 8px;
}

.request-image-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 160px));
}

.request-image-preview img {
  box-sizing: border-box;
  width: 100%;
  height: 120px;
  max-height: 120px;
  object-fit: contain;
  object-position: center;
  display: block;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.translation-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.78);
}

.translation-fields legend {
  padding: 0 6px;
}

.taxonomy-manager-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 14px;
}

.taxonomy-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.taxonomy-panel h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.taxonomy-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.taxonomy-form .field:first-child {
  min-width: 0;
}

.taxonomy-form .field:nth-child(2) {
  grid-column: 1 / -1;
}

.taxonomy-form .btn {
  min-height: 42px;
  white-space: nowrap;
}

.taxonomy-list {
  display: grid;
  gap: 8px;
  max-height: min(50vh, 540px);
  overflow: auto;
  padding-right: 2px;
}

.taxonomy-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.taxonomy-item p,
.taxonomy-empty {
  color: var(--muted);
  font-size: 0.84rem;
}

.taxonomy-remove {
  min-height: 36px;
  padding-inline: 12px;
}

.image-drop-field {
  border: 1px dashed #b8cce8;
  border-radius: 8px;
  padding: 10px;
  background: rgba(248, 251, 255, 0.78);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.image-drop-field:focus-within,
.image-drop-field.is-dragging {
  border-color: rgba(47, 111, 214, 0.62);
  background: #f2f7ff;
  box-shadow: 0 0 0 3px rgba(47, 111, 214, 0.1);
}

.image-drop-hint {
  color: #5c6f8a;
  font-size: 0.82rem;
}

.image-drop-preview {
  display: none;
  width: 100%;
  min-height: 74px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #fff;
  place-items: center;
  padding: 8px;
}

.image-drop-field.has-image .image-drop-preview {
  display: grid;
}

.image-drop-preview img {
  box-sizing: border-box;
  width: 100%;
  height: 120px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.image-remove-button {
  width: fit-content;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #f0b7b7;
  border-radius: 999px;
  background: #fff2f2;
  color: #bd3b3b;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
}

.image-remove-button:hover {
  border-color: #e18f8f;
  background: #ffe2e2;
}

.image-remove-button[hidden] {
  display: none;
}

.field-full {
  grid-column: 1 / -1;
}

.company-filter {
  display: grid;
  gap: 5px;
  width: min(360px, 100%);
  min-width: min(360px, 100%);
}

.company-filter input {
  text-overflow: ellipsis;
}

.company-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.company-card {
  border: 1px solid #dce7f5;
  border-radius: 8px;
  background: #fff;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 10px 24px rgba(27, 38, 64, 0.07);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  will-change: opacity, transform;
}

.company-card:hover {
  border-color: #bad0ed;
  box-shadow: 0 16px 34px rgba(27, 38, 64, 0.12);
  transform: translateY(-2px);
}

.company-card.is-entering {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.company-card.is-leaving {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
}

.company-cover {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: contain;
  object-position: center;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(#fff, #fff) padding-box,
    #f4f8fe;
  padding: 12px;
}

.company-cover-placeholder {
  background:
    radial-gradient(circle at 20% 0%, rgba(119, 214, 198, 0.2), transparent 35%),
    linear-gradient(135deg, #e7eef9, #f7fbff);
}

.company-card-body {
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  height: 100%;
}

.company-card-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.company-logo {
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  object-fit: scale-down;
  object-position: center;
  display: block;
  overflow: hidden;
  padding: 4px;
  border: 1px solid #cbd9ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(27, 38, 64, 0.09);
}

.company-logo-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    var(--primary);
  font-weight: 700;
}

.company-description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  align-self: start;
  display: -webkit-box;
  min-height: 3.915em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.company-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  align-self: end;
  min-height: 42px;
  padding-top: 4px;
}

.company-card-actions .job-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}

.company-card-actions > a.job-link {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 10px;
}

.company-card-actions .company-danger-action {
  border-color: #f0c6c6;
  background: #fff1f1;
  color: #9e2f2f;
}

.company-card-actions .company-danger-action:hover {
  border-color: #d99b9b;
  background: #ffe2e2;
  color: #7f2626;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .company-card,
  .job-card,
  .category-card,
  .job-link-btn,
  .pagination-button,
  .btn,
  .rotating-hero-text .hero-word {
    transition: none;
  }

  .company-card:hover,
  .job-card:hover,
  .category-card:hover,
  .job-link-btn:hover,
  .pagination-button:hover,
  .btn:hover {
    transform: none;
  }
}

.mid-banner-ad .ad-slot-horizontal {
  min-height: 96px;
  background: #e5eefb;
}

.route-detail-section {
  padding: 0;
  overflow: hidden;
}

.detail-page-shell {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.detail-back-link {
  width: fit-content;
  font-weight: 800;
}

.detail-page-card {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.detail-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 24px;
  align-items: start;
}

.detail-page-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.detail-page-main h1,
.company-detail-head h1 {
  max-width: none;
  margin-top: 0;
}

.detail-subtitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #405472;
  font-size: 1.02rem;
  font-weight: 700;
}

.detail-subtitle a,
.job-company a,
.company-card h3 a,
.job-title-link {
  color: inherit;
  text-decoration: none;
}

.detail-subtitle a:hover,
.job-company a:hover,
.company-card h3 a:hover,
.job-title-link:hover {
  color: var(--primary);
}

.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-meta-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #dbe6f4;
  border-radius: 999px;
  background: #f7fbff;
  color: #405472;
  font-size: 0.84rem;
  font-weight: 700;
}

.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.detail-page-image {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  display: block;
  overflow: hidden;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.detail-page-image-placeholder {
  display: grid;
  place-items: center;
  color: #6d7a8f;
  font-weight: 700;
}

.detail-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: rgba(247, 251, 255, 0.78);
}

.detail-section:first-child {
  grid-column: 1 / -1;
}

.detail-related-section,
.seo-static-route {
  grid-column: 1 / -1;
}

.seo-static-route {
  display: grid;
  gap: 16px;
}

.detail-section h2 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.detail-section p {
  color: #405472;
}

.company-detail-cover {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
  border: 1px solid #dbe6f4;
  background: #fff;
  padding: 12px;
}

.company-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.company-detail-logo {
  box-sizing: border-box;
  width: 82px;
  height: 82px;
  object-fit: scale-down;
  object-position: center;
  display: block;
  overflow: hidden;
  border: 1px solid #d8e5f5;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.company-detail-jobs {
  margin-top: 4px;
}

.why-ads {
  display: grid;
  gap: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 247, 255, 0.96)),
    #fff;
}

.why-ads-intro {
  display: grid;
  gap: 8px;
  max-width: 74ch;
}

.why-ads-intro h2 {
  line-height: 1.15;
  text-wrap: balance;
}

.why-ads-intro p {
  color: var(--muted);
}

.why-ads-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-ads-points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(180, 198, 226, 0.82);
}

.why-ads-index {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 8px;
  background: #e7f7f3;
  color: #1b6a60;
  font-size: 0.78rem;
  font-weight: 800;
}

.why-ads-points h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.why-ads-points p {
  margin-top: 5px;
  color: var(--muted);
}

.why-ads-note {
  max-width: 78ch;
  padding: 12px 14px;
  border-left: 3px solid #77d6c6;
  border-radius: 0 8px 8px 0;
  background: rgba(119, 214, 198, 0.13);
  color: #254263;
  font-weight: 600;
}

.employer-cta-section {
  display: grid;
  gap: 14px;
}

.homepage-employer-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 255, 0.96)),
    #fff;
}

.employer-cta-section h2 {
  margin-top: 6px;
}

.employer-cta-section p:not(.eyebrow):not(.job-contact-list) {
  margin-top: 8px;
  max-width: 68ch;
  color: var(--muted);
}

.category-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 148px;
  border: 1px solid rgba(190, 208, 234, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.98)),
    #fff;
  padding: 22px 18px 18px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #77d6c6);
  opacity: 0.74;
  pointer-events: none;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 42%;
  background: linear-gradient(135deg, transparent 0%, rgba(119, 214, 198, 0.18) 100%);
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.7));
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.category-card:hover {
  border-color: #9cb8e4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.98)),
    #fff;
  box-shadow: 0 16px 34px rgba(27, 38, 64, 0.12);
  transform: translateY(-2px);
}

.category-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 214, 0.14), 0 14px 28px rgba(27, 38, 64, 0.1);
}

.category-card h3 {
  margin: 16px 0 0;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.category-card p {
  color: var(--muted);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.modal-job-image {
  box-sizing: border-box;
  width: 100%;
  height: clamp(150px, 28vh, 230px);
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 10px;
  border: 1px solid #d7e2f1;
  margin-bottom: 0;
  background: #fff;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.modal-job-image.placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 142px;
  color: #6d7a8f;
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 111, 214, 0.12), transparent 42%),
    linear-gradient(135deg, #f7faff, #eef4fd);
  font-weight: 600;
}

.modal-job-image.placeholder::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #c9d8ec;
  background:
    linear-gradient(135deg, transparent 48%, #c1d4ef 49% 51%, transparent 52%),
    linear-gradient(135deg, #ffffff, #e7effa);
}

.modal-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 14, 32, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 20;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(580px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(17, 29, 56, 0.28);
  border: 1px solid #dfe6f1;
  padding: 24px;
  position: relative;
  animation: modalEnter 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.job-detail-modal {
  width: min(640px, 100%);
  padding: 18px;
  border: 1px solid rgba(196, 211, 232, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.job-detail-modal > :not(.modal-action-row) {
  animation: modalContentEnter 0.32s ease both;
}

.job-detail-modal #modal-job-image-wrap {
  animation-delay: 0.03s;
}

.job-detail-modal #modal-job-title,
.job-detail-modal #modal-job-posted {
  animation-delay: 0.07s;
}

.job-detail-modal .modal-grid,
.job-detail-modal .modal-section,
.job-detail-modal #modal-job-source,
.job-detail-modal #modal-job-views {
  animation-delay: 0.1s;
}

.modal-action-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.alerts-modal-card {
  width: min(760px, 100%);
}

.preferences-modal-card {
  width: min(780px, 100%);
  display: grid;
  gap: 14px;
}

.preferences-kicker {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preferences-modal-card h3 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.18;
}

.preferences-copy {
  color: #405472;
}

.preferences-form {
  display: grid;
  gap: 14px;
}

.preferences-fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #f8fbff;
}

.preferences-fieldset legend {
  padding: 0 4px;
  color: #344762;
  font-size: 0.9rem;
  font-weight: 800;
}

.preference-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.preference-option {
  min-width: 0;
  border-radius: 8px;
}

.preference-option span {
  overflow-wrap: anywhere;
}

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

.adblock-backdrop {
  z-index: 40;
}

.adblock-modal-card {
  width: min(640px, 100%);
  display: grid;
  gap: 14px;
  border-top: 4px solid #d7a23a;
}

.adblock-kicker {
  color: #80580e;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.adblock-modal-card h3 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.18;
}

.adblock-copy {
  display: grid;
  gap: 10px;
  color: #405472;
}

.adblock-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalContentEnter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid #d9e3f1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 8px;
  cursor: pointer;
  color: #5b6678;
  box-shadow: 0 8px 18px rgba(27, 38, 64, 0.12);
  transition: color 0.16s ease, transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.modal-close:hover {
  color: #1b2640;
  border-color: #aebed5;
  background: #fff;
  transform: translateY(-1px);
}

.job-detail-modal .modal-close {
  position: static;
  box-shadow: none;
}

#modal-job-title {
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.16;
  margin-top: 18px;
  margin-bottom: 8px;
}

#modal-job-posted {
  color: #4c5f7c;
  font-weight: 500;
}

#modal-job-image-wrap {
  border-radius: 12px;
  overflow: hidden;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}

.modal-grid p {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1eaf6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(27, 38, 64, 0.05);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.modal-grid p:hover {
  border-color: #b6cbe8;
  box-shadow: 0 8px 18px rgba(27, 38, 64, 0.08);
  transform: translateY(-1px);
}

.modal-section {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #e5edf8;
}

.modal-section h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #344762;
}

.modal-label {
  display: block;
  color: #6c788a;
  font-size: 0.82rem;
  font-weight: 600;
}

.modal-value {
  display: block;
  color: #1b2640;
  margin-top: 2px;
}

#modal-job-contact {
  display: grid;
  gap: 8px;
}

#modal-job-source {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5edf8;
}

.modal-source-note {
  color: #52627a;
  font-size: 0.9rem;
  margin-right: auto;
}

.modal-source-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#modal-job-source .btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(47, 111, 214, 0.18);
}

#modal-job-views {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: #405472;
  font-size: 0.88rem;
  font-weight: 600;
}

#modal-job-apply-msg {
  margin-top: 8px;
  color: #52627a;
}

.status-banner {
  border: 1px solid #e1c7c7;
  background: #fff2f2;
  color: #9e2f2f;
  padding: 8px 10px;
  margin: 8px 0;
}

.sponsor-banner {
  border: 1px solid #e6c36a;
  background: #fff7dd;
  color: #6f5012;
  padding: 8px 10px;
  margin: 8px 0;
}

@media (prefers-reduced-motion: reduce) {
  .modal-card,
  .job-detail-modal > :not(.modal-action-row) {
    animation: none;
  }

  .modal-close,
  .modal-grid p,
  .brand,
  .main-nav a,
  .nav-button,
  #language-switcher {
    transition: none;
  }

  .modal-close:hover,
  .modal-grid p:hover,
  .brand:hover,
  .main-nav a:hover,
  .nav-button:hover,
  #language-switcher:hover {
    transform: none;
  }
}

.site-footer {
  background: linear-gradient(135deg, #041530 0%, #06223c 58%, #073947 100%);
  color: #d5e1f4;
  margin-top: 20px;
  padding: 32px 0 20px;
  border-top: 1px solid rgba(119, 214, 198, 0.32);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.footer-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(160, 183, 218, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-panel p:not(.footer-title) {
  color: #d5e1f4;
}

.footer-disclaimer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(160, 183, 218, 0.22);
  font-size: 0.9rem;
}

.footer-panel .footer-disclaimer {
  color: #aebfda;
}

.footer-link-list {
  display: grid;
  gap: 10px;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(122, 159, 211, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.footer-link::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 14px;
  border-top: 2px solid #77d6c6;
  border-right: 2px solid #77d6c6;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex: 0 0 auto;
}

.footer-link:hover {
  background: rgba(119, 214, 198, 0.12);
  border-color: rgba(119, 214, 198, 0.62);
  transform: translateY(-1px);
}

.footer-link:hover::after {
  transform: translateX(3px) rotate(45deg);
}

.footer-link[aria-current="page"] {
  background: rgba(119, 214, 198, 0.16);
  border-color: rgba(119, 214, 198, 0.72);
}

.ad-slot-footer {
  min-height: 60px;
  background: rgba(13, 38, 73, 0.92);
  border-color: rgba(96, 144, 207, 0.72);
  border-radius: 8px;
  color: #cddcf4;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(160, 183, 218, 0.22);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #d5e1f4;
}

.footer-bottom p:last-child {
  justify-self: end;
}

.footer-credit {
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 6px 12px;
  border: 1px solid rgba(119, 214, 198, 0.28);
  border-radius: 999px;
  background: rgba(119, 214, 198, 0.1);
}

@media (min-width: 1524px) {
  .container.layout-with-ads {
    width: min(1492px, calc(100% - 32px));
    max-width: 1492px;
    grid-template-columns: 160px minmax(0, 1140px) 160px;
  }

  .layout-with-ads > .rail-ad:first-child {
    grid-column: 1;
  }

  .content-column {
    grid-column: 2;
  }

  .layout-with-ads > .rail-ad:last-child {
    grid-column: 3;
  }

  .rail-ad {
    display: block;
  }
}

@media (max-width: 1200px) {
  .layout-with-ads {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-column {
    grid-column: 1;
  }

  .rail-ad {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero::before {
    opacity: 0.7;
    mask-image: linear-gradient(90deg, transparent 0%, transparent 58%, rgba(0, 0, 0, 0.14) 72%, rgba(0, 0, 0, 0.32) 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 58%, rgba(0, 0, 0, 0.14) 72%, rgba(0, 0, 0, 0.32) 100%);
  }

  .search-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .search-panel .field:first-child {
    grid-column: 1 / -1;
  }

  .search-panel .btn {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

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

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

  .category-grid,
  .footer-grid,
  .static-grid,
  .contact-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-ads-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-page-grid,
  .detail-section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-section:first-child {
    grid-column: auto;
  }

  .companies .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .homepage-employer-cta {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .company-filter {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .job-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .job-right-actions {
    width: 100%;
    justify-items: start;
  }

  .job-apply-btn,
  .job-right-actions > .job-link-btn {
    width: 100%;
    justify-content: center;
  }

  .job-admin-actions {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .job-admin-actions .btn-admin-action,
  .job-admin-actions .btn-danger {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-controls {
    margin-left: auto;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .job-list-section,
  .companies,
  .categories,
  .why-ads,
  .route-detail-section,
  .homepage-employer-cta,
  .static-hero,
  .static-panel {
    padding: 16px;
  }

  .route-detail-section {
    padding: 0;
  }

  .detail-page-shell {
    padding: 16px;
  }

  .detail-actions .btn,
  .detail-actions .job-apply-btn {
    width: 100%;
  }

  .company-detail-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero::before {
    opacity: 0.38;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 78%, rgba(0, 0, 0, 0.24) 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 78%, rgba(0, 0, 0, 0.24) 100%);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .search-panel,
  .newsletter-form,
  .alert-category-grid,
  .preference-option-grid,
  .admin-view-tabs,
  .admin-import-form,
  .request-switch,
  .public-radio-group,
  .job-request-grid,
  .taxonomy-manager-grid,
  .translation-fields,
  .post-job-form,
  .category-grid,
  .company-list,
  .footer-grid,
  .static-grid,
  .contact-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .taxonomy-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .taxonomy-form .field:nth-child(2) {
    grid-column: auto;
  }

  .taxonomy-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-modal-card {
    padding: 14px;
  }

  .admin-view-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-view-tab {
    text-align: center;
  }

  .job-request-head {
    flex-direction: column;
  }

  .job-request-date {
    white-space: normal;
  }

  .request-image-preview,
  .request-image-preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .job-card {
    align-items: flex-start;
    gap: 14px;
  }

  .section-head,
  .section-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .job-main {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .job-image {
    width: 56px;
    height: 56px;
  }

  .modal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .preferences-actions .btn {
    width: 100%;
  }

  .job-detail-modal {
    padding: 14px;
    border-radius: 14px;
  }

  #modal-job-title {
    margin-top: 14px;
  }

  #modal-job-source {
    display: grid;
    align-items: stretch;
  }

  #modal-job-source .btn {
    width: 100%;
  }

  .modal-source-note {
    margin-right: 0;
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .footer-bottom p:last-child {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-link {
    transition: none;
  }

  .footer-link:hover,
  .footer-link:hover::after {
    transform: none;
  }
}
