:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

* {
  box-sizing: border-box;
}

a:has(> img[alt="CareerNova Logo"]) {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

a:has(> img[alt="CareerNova Logo"]) img {
  height: 2.6rem;
  width: auto;
  border-radius: 0.9rem;
  padding: 0.25rem;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.75);
}

a:has(> img[alt="CareerNova Logo"]) span {
  font-weight: 800;
}

@media (max-width: 1024px) {
  body {
    font-size: 15px;
  }

  .max-w-7xl,
  .max-w-5xl,
  .max-w-3xl {
    width: min(100%, 100%) !important;
  }

  .px-6,
  .lg\:px-8 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-14,
  .py-16,
  .py-20 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .min-h-\[92vh\] {
    min-height: auto !important;
  }
}

@media (max-width: 768px) {
  .grid.md\:grid-cols-2,
  .grid.md\:grid-cols-3,
  .grid.md\:grid-cols-4,
  .grid.md\:grid-cols-5,
  .grid.lg\:grid-cols-2,
  .grid.lg\:grid-cols-3,
  .grid.lg\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }

  .flex-col.md\:flex-row,
  .flex-col.sm\:flex-row,
  .flex-col.lg\:flex-row {
    flex-direction: column !important;
  }

  .w-full.md\:w-auto,
  .w-full.sm\:w-auto {
    width: 100% !important;
  }

  .gap-4,
  .gap-6,
  .gap-8,
  .gap-10 {
    gap: 1rem !important;
  }

  .rounded-3xl,
  .rounded-2xl,
  .rounded-xl2 {
    border-radius: 1rem !important;
  }

  .jobs-search-form {
    padding: 1rem !important;
  }

  .jobs-search-form .grid {
    grid-template-columns: 1fr !important;
  }

  .jobs-filters-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(88vw, 320px);
    max-width: 320px;
    height: 100dvh;
    overflow-y: auto;
    border-radius: 0 1rem 1rem 0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    transform: translateX(-102%);
    transition: transform 0.2s ease;
    z-index: 60;
  }

  .jobs-filters-shell.is-open .jobs-filters-panel {
    transform: translateX(0);
  }

  .jobs-filters-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .jobs-filters-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  .text-4xl {
    font-size: 2.3rem !important;
    line-height: 1.1 !important;
  }

  .text-5xl {
    font-size: 2.6rem !important;
  }

  .text-6xl {
    font-size: 3rem !important;
  }

  .p-8,
  .p-10,
  .p-12 {
    padding: 1.25rem !important;
  }

  .px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .h-18 {
    height: 4.25rem !important;
  }

  .space-y-3 > * + *,
  .space-y-4 > * + *,
  .space-y-6 > * + * {
    margin-top: 0.75rem !important;
  }

  .site-feature-card {
    padding: 1rem !important;
  }
}
