/* ==========================================================================
   Online Vle - Jobs Directory & CMS Custom Stylesheet
   Comprehensive layout, sizing fallbacks, and interactive UI components
   ========================================================================== */

/* Core Theme Utility Fallbacks */
:root {
  --primary: #e11d48;
  --primary-hover: #be123c;
  --primary-foreground: #ffffff;
  --border: #e2e8f0;
  --foreground: #0f172a;
}

.border-primary { border-color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.text-primary-foreground { color: var(--primary-foreground) !important; }
.text-transparent { color: transparent !important; }
.opacity-0 { opacity: 0 !important; }
.antialiased { -webkit-font-smoothing: antialiased !important; -moz-osx-font-smoothing: grayscale !important; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important; }
.border-collapse { border-collapse: collapse !important; }
.p-12 { padding: 3rem !important; }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%) !important; }
.from-neutral-50 { --tw-gradient-from: #f8fafc; }
.to-background { --tw-gradient-to: #ffffff; }
.hover\:border-border:hover { border-color: var(--border) !important; }
.hover\:text-foreground:hover { color: var(--foreground) !important; }

/* Display & Visibility Utilities */
.block { display: block !important; }
.inline { display: inline !important; }
.inline-block { display: inline-block !important; }
.inline-flex { display: inline-flex !important; }
.flex { display: flex !important; }
.grid { display: grid !important; }

/* .hidden MUST be declared after display utilities so it takes precedence */
.hidden,
[hidden],
div.hidden,
section.hidden,
aside.hidden,
p.hidden,
button.hidden {
  display: none !important;
}

/* Flex Direction, Wrap & Alignment */
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-1 { flex: 1 1 0% !important; }
.min-w-0 { min-width: 0 !important; }

.items-start { align-items: flex-start !important; }
.items-center { align-items: center !important; }
.items-end { align-items: flex-end !important; }
.items-stretch { align-items: stretch !important; }

.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }

.truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Overflow & Width Utilities */
.overflow-hidden   { overflow: hidden !important; }
.overflow-x-auto   { overflow-x: auto !important; max-width: 100% !important; }
.overflow-y-auto   { overflow-y: auto !important; }
.overflow-x-hidden { overflow-x: hidden !important; }
.max-w-full        { max-width: 100% !important; }
.w-full            { width: 100% !important; }
.h-full            { height: 100% !important; }

html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

@media (min-width: 640px) {
  .sm\:block { display: block !important; }
  .sm\:inline { display: inline !important; }
  .sm\:inline-flex { display: inline-flex !important; }
  .sm\:flex { display: flex !important; }
  .sm\:grid { display: grid !important; }
  .sm\:hidden { display: none !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:flex-col { flex-direction: column !important; }
  .sm\:items-center { align-items: center !important; }
  .sm\:w-auto { width: auto !important; }
  .sm\:flex-none { flex: none !important; }
  .sm\:p-6 { padding: 1.5rem !important; }
}

@media (min-width: 768px) {
  .md\:block { display: block !important; }
  .md\:inline { display: inline !important; }
  .md\:inline-block { display: inline-block !important; }
  .md\:inline-flex { display: inline-flex !important; }
  .md\:flex { display: flex !important; }
  .md\:grid { display: grid !important; }
  .md\:hidden { display: none !important; }
  .md\:flex-row { flex-direction: row !important; }
  .md\:flex-col { flex-direction: column !important; }
  .md\:items-center { align-items: center !important; }
  .md\:justify-between { justify-content: space-between !important; }
  .md\:justify-end { justify-content: flex-end !important; }
  .md\:p-5 { padding: 1.25rem !important; }
  .md\:p-6 { padding: 1.5rem !important; }
  .md\:py-14 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
  .md\:text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
  .md\:text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
  .md\:ml-2 { margin-left: 0.5rem !important; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block !important; }
  .lg\:inline { display: inline !important; }
  .lg\:inline-flex { display: inline-flex !important; }
  .lg\:flex { display: flex !important; }
  .lg\:grid { display: grid !important; }
  .lg\:hidden { display: none !important; }
}

/* Protection against content-gate accidental blur on Jobs board */
body.jobs-page-body main,
body.jobs-page-body header,
body.jobs-page-body footer,
body.jobs-page-body article,
body.jobs-page-body nav,
body.jobs-page-body [data-job-opps] {
  filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
}

body.jobs-page-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* ==========================================================================
   Universal Sizing & SVG Constraints
   Ensures SVG icons and avatar blocks never expand unexpectedly
   ========================================================================== */
.size-2     { width: 0.5rem !important; height: 0.5rem !important; }
.size-2\.5  { width: 0.625rem !important; height: 0.625rem !important; }
.size-3     { width: 0.75rem !important; height: 0.75rem !important; }
.size-3\.5  { width: 0.875rem !important; height: 0.875rem !important; }
.size-4     { width: 1rem !important; height: 1rem !important; }
.size-4\.5  { width: 1.125rem !important; height: 1.125rem !important; }
.size-5     { width: 1.25rem !important; height: 1.25rem !important; }
.size-6     { width: 1.5rem !important; height: 1.5rem !important; }
.size-7     { width: 1.75rem !important; height: 1.75rem !important; }
.size-8     { width: 2rem !important; height: 2rem !important; }
.size-9     { width: 2.25rem !important; height: 2.25rem !important; }
.size-10    { width: 2.5rem !important; height: 2.5rem !important; }
.size-12    { width: 3rem !important; height: 3rem !important; }
.size-14    { width: 3.5rem !important; height: 3.5rem !important; }
.size-16    { width: 4rem !important; height: 4rem !important; }
.size-full  { width: 100% !important; height: 100% !important; }

/* SVG hard bounds */
svg.size-2    { width: 0.5rem !important; height: 0.5rem !important; min-width: 0.5rem; max-width: 0.5rem; min-height: 0.5rem; max-height: 0.5rem; flex-shrink: 0; }
svg.size-2\.5 { width: 0.625rem !important; height: 0.625rem !important; min-width: 0.625rem; max-width: 0.625rem; min-height: 0.625rem; max-height: 0.625rem; flex-shrink: 0; }
svg.size-3    { width: 0.75rem !important; height: 0.75rem !important; min-width: 0.75rem; max-width: 0.75rem; min-height: 0.75rem; max-height: 0.75rem; flex-shrink: 0; }
svg.size-3\.5 { width: 0.875rem !important; height: 0.875rem !important; min-width: 0.875rem; max-width: 0.875rem; min-height: 0.875rem; max-height: 0.875rem; flex-shrink: 0; }
svg.size-4    { width: 1rem !important; height: 1rem !important; min-width: 1rem; max-width: 1rem; min-height: 1rem; max-height: 1rem; flex-shrink: 0; }
svg.size-4\.5 { width: 1.125rem !important; height: 1.125rem !important; min-width: 1.125rem; max-width: 1.125rem; min-height: 1.125rem; max-height: 1.125rem; flex-shrink: 0; }
svg.size-5    { width: 1.25rem !important; height: 1.25rem !important; min-width: 1.25rem; max-width: 1.25rem; min-height: 1.25rem; max-height: 1.25rem; flex-shrink: 0; }
svg.size-6    { width: 1.5rem !important; height: 1.5rem !important; min-width: 1.5rem; max-width: 1.5rem; min-height: 1.5rem; max-height: 1.5rem; flex-shrink: 0; }
svg.size-7    { width: 1.75rem !important; height: 1.75rem !important; min-width: 1.75rem; max-width: 1.75rem; min-height: 1.75rem; max-height: 1.75rem; flex-shrink: 0; }
svg.size-8    { width: 2rem !important; height: 2rem !important; min-width: 2rem; max-width: 2rem; min-height: 2rem; max-height: 2rem; flex-shrink: 0; }
svg.size-9    { width: 2.25rem !important; height: 2.25rem !important; min-width: 2.25rem; max-width: 2.25rem; min-height: 2.25rem; max-height: 2.25rem; flex-shrink: 0; }
svg.size-14   { width: 3.5rem !important; height: 3.5rem !important; min-width: 3.5rem; max-width: 3.5rem; flex-shrink: 0; }
svg.size-16   { width: 4rem !important; height: 4rem !important; min-width: 4rem; max-width: 4rem; flex-shrink: 0; }

.shrink-0 { flex-shrink: 0 !important; }

/* ==========================================================================
   Positioning & Z-Index Utilities
   ========================================================================== */
.static   { position: static !important; }
.fixed    { position: fixed !important; }
.absolute { position: absolute !important; }
.relative { position: relative !important; }
.sticky   { position: sticky !important; }

.inset-0 {
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
}

.top-0 { top: 0 !important; }
.top-4 { top: 1rem !important; }
.top-1\/2 { top: 50% !important; }
.bottom-0 { bottom: 0 !important; }
.bottom-4 { bottom: 1rem !important; }
.bottom-6 { bottom: 1.5rem !important; }
.left-0 { left: 0 !important; }
.left-3 { left: 0.75rem !important; }
.left-3\.5 { left: 0.875rem !important; }
.left-4 { left: 1rem !important; }
.right-0 { right: 0 !important; }
.right-3 { right: 0.75rem !important; }
.right-3\.5 { right: 0.875rem !important; }
.right-4 { right: 1rem !important; }
.right-6 { right: 1.5rem !important; }

.-translate-y-1\/2 { transform: translateY(-50%) !important; }
.translate-y-0 { transform: translateY(0) !important; }

.z-0  { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-30 { z-index: 30 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }

/* Paddings & Margins */
.p-2\.5  { padding: 0.625rem !important; }
.p-3\.5  { padding: 0.875rem !important; }
.p-7     { padding: 1.75rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3\.5 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3\.5 { padding-top: 0.875rem !important; padding-bottom: 0.875rem !important; }
.py-8    { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-10   { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.pt-2    { padding-top: 0.5rem !important; }
.pt-3    { padding-top: 0.75rem !important; }
.pt-4    { padding-top: 1rem !important; }
.pb-4    { padding-bottom: 1rem !important; }
.pb-16   { padding-bottom: 4rem !important; }
.pl-9    { padding-left: 2.25rem !important; }
.pl-10   { padding-left: 2.5rem !important; }
.pl-11   { padding-left: 2.75rem !important; }
.pr-3    { padding-right: 0.75rem !important; }
.pr-10   { padding-right: 2.5rem !important; }

.-mb-\[2px\] { margin-bottom: -2px !important; }
.mb-1    { margin-bottom: 0.25rem !important; }
.mb-1\.5 { margin-bottom: 0.375rem !important; }
.mb-2    { margin-bottom: 0.5rem !important; }
.mb-3    { margin-bottom: 0.75rem !important; }
.mb-4    { margin-bottom: 1rem !important; }
.mb-5    { margin-bottom: 1.25rem !important; }
.mb-8    { margin-bottom: 2rem !important; }
.mt-0\.5 { margin-top: 0.125rem !important; }
.mt-1    { margin-top: 0.25rem !important; }
.mt-1\.5 { margin-top: 0.375rem !important; }
.my-3    { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
.my-6    { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.mr-1    { margin-right: 0.25rem !important; }
.ml-auto { margin-left: auto !important; }

/* Gaps & Space-y */
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2    { gap: 0.5rem !important; }
.gap-3    { gap: 0.75rem !important; }
.gap-3\.5 { gap: 0.875rem !important; }
.gap-4    { gap: 1rem !important; }
.gap-6    { gap: 1.5rem !important; }
.gap-8    { gap: 2rem !important; }

.space-y-3 > :not([hidden]) ~ :not([hidden])   { margin-top: 0.75rem !important; }
.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.875rem !important; }
.space-y-6 > :not([hidden]) ~ :not([hidden])   { margin-top: 1.5rem !important; }

/* Max Widths & Heights */
.max-w-xs { max-width: 20rem !important; }
.max-w-sm { max-width: 24rem !important; }
.max-w-md { max-width: 28rem !important; }
.max-w-lg { max-width: 32rem !important; }
.max-w-xl { max-width: 36rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-3xl { max-width: 48rem !important; }
.max-w-4xl { max-width: 56rem !important; }
.max-w-5xl { max-width: 64rem !important; }
.max-w-7xl { max-width: 80rem !important; }

.max-h-\[90vh\] { max-height: 90vh !important; }
.max-h-\[92vh\] { max-height: 92vh !important; }
.max-h-\[94vh\] { max-height: 94vh !important; }
.min-h-\[250px\] { min-height: 250px !important; }

/* Shadows */
.shadow-sm  { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; }
.shadow     { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1) !important; }
.shadow-md  { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important; }
.shadow-lg  { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important; }
.shadow-xl  { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; }

/* Typography & Interactive States */
.text-\[10px\] { font-size: 10px !important; line-height: 14px !important; }
.text-\[11px\] { font-size: 11px !important; line-height: 16px !important; }
.leading-relaxed { line-height: 1.625 !important; }
.text-right { text-align: right !important; }
.select-none { user-select: none !important; }
.pointer-events-none { pointer-events: none !important; }
.pointer-events-auto { pointer-events: auto !important; }

/* Theme Colors, Badges & Accents */
.text-rose-300    { color: #fca5a5 !important; }
.text-rose-400    { color: #fb7185 !important; }
.text-rose-600    { color: #e11d48 !important; }
.text-rose-700    { color: #be123c !important; }
.text-emerald-300 { color: #6ee7b7 !important; }
.text-emerald-600 { color: #059669 !important; }
.text-emerald-700 { color: #047857 !important; }
.text-sky-600     { color: #0284c7 !important; }
.text-sky-700     { color: #0369a1 !important; }
.text-amber-600   { color: #d97706 !important; }
.text-amber-700   { color: #b45309 !important; }
.text-neutral-200 { color: #e2e8f0 !important; }
.text-neutral-400 { color: #94a3b8 !important; }
.text-neutral-600 { color: #475569 !important; }
.text-neutral-700 { color: #334155 !important; }
.text-neutral-800 { color: #1e293b !important; }

.bg-neutral-50    { background-color: #f8fafc !important; }
.bg-neutral-50\/50{ background-color: rgba(248, 250, 252, 0.5) !important; }
.bg-neutral-50\/70{ background-color: rgba(248, 250, 252, 0.7) !important; }
.bg-neutral-100   { background-color: #f1f5f9 !important; }
.bg-rose-50       { background-color: #fff1f2 !important; }
.bg-rose-100      { background-color: #ffe4e6 !important; }
.bg-rose-600      { background-color: #e11d48 !important; }
.bg-rose-600\/20  { background-color: rgba(225, 29, 72, 0.2) !important; }
.bg-rose-950      { background-color: #4c0519 !important; }
.bg-emerald-400   { background-color: #34d399 !important; }
.bg-emerald-700\/80 { background-color: rgba(4, 120, 87, 0.8) !important; }
.bg-blue-600      { background-color: #2563eb !important; }
.bg-red-600       { background-color: #dc2626 !important; }

.border-b-2         { border-bottom-width: 2px !important; }
.border-transparent { border-color: transparent !important; }
.border-neutral-200 { border-color: #e2e8f0 !important; }
.border-neutral-700 { border-color: #334155 !important; }
.border-rose-200    { border-color: #fecdd3 !important; }
.border-rose-500\/30{ border-color: rgba(244, 63, 94, 0.3) !important; }
.border-rose-800    { border-color: #9f1239 !important; }
.border-primary\/30 { border-color: rgba(225, 29, 72, 0.3) !important; }

.hover\:bg-neutral-50:hover  { background-color: #f8fafc !important; }
.hover\:bg-neutral-100:hover { background-color: #f1f5f9 !important; }
.hover\:bg-neutral-200:hover { background-color: #e2e8f0 !important; }
.hover\:bg-neutral-700:hover { background-color: #334155 !important; }
.hover\:bg-rose-50:hover     { background-color: #fff1f2 !important; }
.hover\:bg-rose-600:hover    { background-color: #e11d48 !important; }
.hover\:bg-rose-700:hover    { background-color: #be123c !important; }
.hover\:bg-emerald-700:hover { background-color: #047857 !important; }
.hover\:text-rose-600:hover  { color: #e11d48 !important; }
.hover\:text-rose-700:hover  { color: #be123c !important; }
.hover\:text-neutral-700:hover{ color: #334155 !important; }

.focus\:bg-white:focus       { background-color: #ffffff !important; }
.focus\:border-primary:focus { border-color: var(--primary) !important; }
.focus\:ring-1:focus         { box-shadow: 0 0 0 1px var(--primary) !important; }
.focus\:ring-primary:focus   { outline: none !important; box-shadow: 0 0 0 2px var(--primary) !important; }
.focus-within\:ring-1:focus-within { box-shadow: 0 0 0 1px var(--primary) !important; }
.focus-within\:ring-primary:focus-within { box-shadow: 0 0 0 2px var(--primary) !important; }

/* Keyframe Animations */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite !important; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite !important; }

/* Tag Badges on Job Cards */
.job-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem !important;
  line-height: 1rem;
  font-weight: 500;
  background-color: #f1f5f9;
  color: #334155;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  margin-right: 0.375rem;
  margin-bottom: 0.25rem;
}

/* Sidebar Admin Promo Card */
.admin-promo-widget {
  background: linear-gradient(135deg, #171717 0%, #262626 100%) !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
}
.admin-promo-widget h3 {
  color: #ffffff !important;
}
.admin-promo-widget p {
  color: #cbd5e1 !important;
}

/* ==========================================================================
   Responsive Multi-Column Grid System
   ========================================================================== */
.grid-cols-1  { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.grid-cols-5  { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.grid-cols-6  { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

.col-span-1   { grid-column: span 1 / span 1 !important; }
.col-span-2   { grid-column: span 2 / span 2 !important; }
.col-span-3   { grid-column: span 3 / span 3 !important; }
.col-span-4   { grid-column: span 4 / span 4 !important; }
.col-span-5   { grid-column: span 5 / span 5 !important; }
.col-span-6   { grid-column: span 6 / span 6 !important; }
.col-span-7   { grid-column: span 7 / span 7 !important; }
.col-span-8   { grid-column: span 8 / span 8 !important; }
.col-span-12  { grid-column: span 12 / span 12 !important; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:col-span-2  { grid-column: span 2 / span 2 !important; }
  .sm\:col-span-3  { grid-column: span 3 / span 3 !important; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .md\:col-span-1  { grid-column: span 1 / span 1 !important; }
  .md\:col-span-2  { grid-column: span 2 / span 2 !important; }
  .md\:col-span-3  { grid-column: span 3 / span 3 !important; }
  .md\:col-span-4  { grid-column: span 4 / span 4 !important; }
  .md\:col-span-5  { grid-column: span 5 / span 5 !important; }
  .md\:col-span-6  { grid-column: span 6 / span 6 !important; }
  .md\:col-span-7  { grid-column: span 7 / span 7 !important; }
  .md\:col-span-8  { grid-column: span 8 / span 8 !important; }
  .md\:col-span-12 { grid-column: span 12 / span 12 !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-5  { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-6  { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .lg\:col-span-1   { grid-column: span 1 / span 1 !important; }
  .lg\:col-span-2   { grid-column: span 2 / span 2 !important; }
  .lg\:col-span-3   { grid-column: span 3 / span 3 !important; }
  .lg\:col-span-4   { grid-column: span 4 / span 4 !important; }
  .lg\:col-span-5   { grid-column: span 5 / span 5 !important; }
  .lg\:col-span-6   { grid-column: span 6 / span 6 !important; }
  .lg\:col-span-7   { grid-column: span 7 / span 7 !important; }
  .lg\:col-span-8   { grid-column: span 8 / span 8 !important; }
  .lg\:col-span-12  { grid-column: span 12 / span 12 !important; }
}

/* ==========================================================================
   Search Input & Controls
   ========================================================================== */
.job-search-wrapper {
  position: relative;
  width: 100%;
}

.job-search-wrapper input {
  width: 100%;
  padding-left: 2.75rem !important;
  padding-right: 2.5rem !important;
  min-height: 44px;
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: #94a3b8;
  border-radius: 9999px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.15s ease;
  z-index: 5;
}

.search-clear-btn:hover {
  color: #0f172a;
  background-color: #e2e8f0;
}

.search-clear-btn.hidden {
  display: none !important;
}

/* Workplace Mode Filter Buttons */
.workplace-filter-btn {
  background-color: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.workplace-filter-btn:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.workplace-filter-btn.active {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

/* Filter Dropdown Styling */
.filter-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.25rem !important;
  min-height: 38px;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

/* Reset Filters Button */
#reset-filters-btn {
  min-height: 38px;
  cursor: pointer;
}

#reset-filters-btn svg {
  width: 0.875rem !important;
  height: 0.875rem !important;
  flex-shrink: 0;
}

/* Quick Filter Badges / Pills */
.badge-pill-filter {
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.badge-pill-filter:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
  background-color: #ffffff;
}

.badge-pill-filter.active {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

/* Horizontal pill scrollbar container */
.quick-filters-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.quick-filters-scroll::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   Job Cards & Badges
   ========================================================================== */
.badge-urgent {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.28);
}

.badge-featured {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 700;
}

.badge-remote {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-hybrid {
  background-color: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.badge-onsite {
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.salary-tag {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-weight: 600;
}

.salary-tag svg {
  width: 0.875rem !important;
  height: 0.875rem !important;
  flex-shrink: 0;
}

/* Job Card Hover & Transitions */
.job-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid #e5e7eb;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

.job-card.is-featured {
  border-left: 4px solid #f59e0b;
}

.job-card.is-urgent {
  border-left: 4px solid #ef4444;
}

/* Text Truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pulse animation for urgent indicator */
@keyframes urgentPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

.pulse-urgent {
  animation: urgentPulse 2s infinite ease-in-out;
}

/* ==========================================================================
   Modal Overlay & Drawer
   ========================================================================== */
.job-modal-backdrop {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background-color: rgba(15, 23, 42, 0.65) !important;
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 50 !important;
}

/* Absolute guarantee: if modal has hidden class, it MUST be hidden */
.job-modal-backdrop.hidden,
#job-modal.hidden,
#job-editor-modal.hidden,
#delete-modal.hidden,
#login-modal.hidden {
  display: none !important;
}

.job-modal-backdrop:not(.hidden) {
  display: flex !important;
  animation: modalFadeIn 0.2s ease-out forwards;
}

.job-modal-backdrop:not(.hidden) > div {
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #ffffff;
}

.modal-footer-sticky {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background-color: #ffffff;
}

.modal-body-scroll::-webkit-scrollbar {
  width: 6px;
}
.modal-body-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.modal-body-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.modal-body-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
#toast-notification {
  position: fixed !important;
  bottom: 1.5rem !important;
  right: 1.5rem !important;
  z-index: 50 !important;
  pointer-events: none;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-width: calc(100vw - 2rem);
}

#toast-notification.show {
  pointer-events: auto;
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* ==========================================================================
   Admin CMS Specific Styles
   ========================================================================== */
.admin-stat-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cms-table-action-btn {
  padding: 0.35rem;
  border-radius: 0.375rem;
  color: #64748b;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cms-table-action-btn:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}
.cms-table-action-btn svg {
  width: 1rem !important;
  height: 1rem !important;
  flex-shrink: 0;
}
