/* ==========================================================================
   Advertisement.pk — Premium Job Portal Design System
   Version: 1.0.0
   Author: Advertisement.pk
   ========================================================================== */

/* ==========================================================================
   0. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
  /* ── Brand Palette ── */
  --primary: #1A3A5C;
  --primary-dark: #0D2137;
  --primary-mid: #234E72;
  --accent: #F59E0B;
  --accent-light: #FBBF24;
  --accent-hover: #D97706;
  --accent-glow: rgba(245, 158, 11, 0.35);

  /* ── Semantic Badges ── */
  --govt-bg: #E6F1FB;
  --govt-text: #0C447C;
  --private-bg: #E1F5EE;
  --private-text: #085041;
  --grade-bg: #FAEEDA;
  --grade-text: #633806;

  /* ── Status Colors ── */
  --status-safe: #16A34A;
  --status-safe-bg: #DCFCE7;
  --status-warning: #EA580C;
  --status-warning-bg: #FFF7ED;
  --status-urgent: #DC2626;
  --status-urgent-bg: #FEF2F2;

  /* ── Surfaces & Text ── */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F1F5F9;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
  --text-inverse: #FFFFFF;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --input-bg: #FFFFFF;
  --overlay: rgba(15, 23, 42, 0.6);

  /* ── Spacing Scale ── */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.15);
  --shadow-card-hover: 0 12px 28px -6px rgba(26, 58, 92, 0.18), 0 4px 8px -4px rgba(0, 0, 0, 0.08);

  /* ── Border Radius ── */
  --border-radius: 10px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ── Typography ── */
  --font-heading: 'Hind', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-urdu: 'Noto Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.375rem;
  --text-3xl: 1.75rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;

  /* ── Transitions ── */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;

  /* ── Z-Index Scale ── */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-drawer: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-tooltip: 700;

  /* ── Navbar ── */
  --navbar-height: 64px;
}

/* ==========================================================================
   0b. DARK MODE OVERRIDES
   ========================================================================== */

body.dark-mode {
  --bg-page: #0F172A;
  --bg-card: #1E293B;
  --bg-card-alt: #162032;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;
  --border: #334155;
  --border-strong: #475569;
  --input-bg: #1E293B;
  --overlay: rgba(0, 0, 0, 0.75);

  --govt-bg: #0C2D4A;
  --govt-text: #7CB9E8;
  --private-bg: #0A2E24;
  --private-text: #6EE7B7;
  --grade-bg: #3D2A0A;
  --grade-text: #FCD34D;

  --status-safe-bg: #052E16;
  --status-warning-bg: #431407;
  --status-urgent-bg: #450A0A;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.35), 0 4px 8px -4px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.4), 0 8px 12px -6px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 28px -6px rgba(0, 0, 0, 0.45), 0 4px 8px -4px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   1. GLOBAL RESETS & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  transition: background-color var(--duration-slow) var(--ease-default),
              color var(--duration-slow) var(--ease-default);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-default);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text-primary);
  overflow-wrap: break-word;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  line-height: var(--leading-normal);
  overflow-wrap: break-word;
}

::selection {
  background-color: var(--accent);
  color: var(--primary-dark);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

body.dark-mode ::-webkit-scrollbar-track {
  background: var(--bg-page);
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: var(--border);
}

/* ==========================================================================
   2. SKIP TO CONTENT (Accessibility)
   ========================================================================== */

.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: var(--z-tooltip);
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top var(--duration-base) var(--ease-out);
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--accent-light);
  outline-offset: 2px;
}

/* ==========================================================================
   3. CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container--narrow {
  max-width: 960px;
}

.container--wide {
  max-width: 1440px;
}

/* ==========================================================================
   4. STICKY NAVBAR
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--navbar-height);
  background: var(--primary-dark);
  transition: box-shadow var(--duration-base) var(--ease-default),
              background-color var(--duration-slow) var(--ease-default);
}

.navbar.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

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

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--duration-base) var(--ease-default);
}

.navbar__logo:hover {
  opacity: 0.9;
}

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.navbar__logo-suffix {
  color: var(--text-inverse);
  font-weight: 400;
  opacity: 0.8;
}

/* Navigation links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.navbar__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--duration-base) var(--ease-default),
              background-color var(--duration-base) var(--ease-default);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--space-md);
  right: var(--space-md);
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-slow) var(--ease-bounce);
}

.navbar__link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.navbar__link:hover::after {
  transform: scaleX(1);
}

.navbar__link.is-active {
  color: #FFFFFF;
}

.navbar__link.is-active::after {
  transform: scaleX(1);
  background: var(--accent);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ==========================================================================
   5. HAMBURGER MENU (Mobile)
   ========================================================================== */

.hamburger {
  display: none;
  position: relative;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: calc(var(--z-drawer) + 1);
}

.hamburger__line {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  transition: transform var(--duration-slow) var(--ease-default),
              opacity var(--duration-base) var(--ease-default),
              top var(--duration-slow) var(--ease-default);
}

.hamburger__line:nth-child(1) { top: 0; }
.hamburger__line:nth-child(2) { top: 9px; }
.hamburger__line:nth-child(3) { top: 18px; }

.hamburger.is-active .hamburger__line:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* ==========================================================================
   6. MOBILE DRAWER
   ========================================================================== */

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: var(--overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease-default),
              visibility var(--duration-slow) var(--ease-default);
}

.mobile-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--z-drawer) + 1);
  width: 300px;
  max-width: 85vw;
  background: var(--primary-dark);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: var(--text-xl);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-default);
}

.mobile-drawer__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-drawer__nav {
  padding: var(--space-md) 0;
}

.mobile-drawer__link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background var(--duration-base) var(--ease-default),
              color var(--duration-base) var(--ease-default),
              border-color var(--duration-base) var(--ease-default);
}

.mobile-drawer__link:hover,
.mobile-drawer__link.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-left-color: var(--accent);
}

.mobile-drawer__link-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* Body scroll lock when drawer is open */
body.drawer-open {
  overflow: hidden;
}

/* ==========================================================================
   7. DARK MODE TOGGLE
   ========================================================================== */

.dark-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-default),
              transform var(--duration-slow) var(--ease-bounce);
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.dark-mode-toggle:active {
  transform: scale(0.95);
}

.dark-mode-toggle__icon {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-slower) var(--ease-bounce);
}

.dark-mode-toggle__icon--sun {
  display: none;
}

.dark-mode-toggle__icon--moon {
  display: block;
}

body.dark-mode .dark-mode-toggle__icon--sun {
  display: block;
  transform: rotate(180deg);
}

body.dark-mode .dark-mode-toggle__icon--moon {
  display: none;
}

body.dark-mode .dark-mode-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   8. ADSENSE LEADERBOARD
   ========================================================================== */

.ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) auto;
  padding: var(--space-sm);
}

.ad-container__label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.ad-container__slot {
  width: 728px;
  max-width: 100%;
  min-height: 90px;
  background: var(--bg-card-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  transition: background-color var(--duration-slow) var(--ease-default);
}

.ad-container--sidebar .ad-container__slot {
  width: 300px;
  min-height: 250px;
}

.ad-container--responsive .ad-container__slot {
  width: 100%;
  min-height: 100px;
}

/* ==========================================================================
   9. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-mid) 100%);
  padding: var(--space-4xl) var(--space-lg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(35, 78, 114, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-page), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-light);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(4px);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, var(--text-5xl));
  font-weight: 700;
  color: #FFFFFF;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

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

.hero__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating pattern dots */
.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle, #FFFFFF 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* ==========================================================================
   10. SEARCH BAR
   ========================================================================== */

.search-bar {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

.search-bar__wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar__icon {
  position: absolute;
  left: var(--space-md);
  width: 22px;
  height: 22px;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: color var(--duration-base) var(--ease-default);
}

.search-bar__input {
  width: 100%;
  height: 56px;
  padding: 0 var(--space-2xl) 0 var(--space-2xl);
  background: var(--input-bg);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg), 0 0 0 0 transparent;
  transition: box-shadow var(--duration-slow) var(--ease-default),
              border-color var(--duration-base) var(--ease-default),
              background-color var(--duration-slow) var(--ease-default);
}

.search-bar__input::placeholder {
  color: var(--text-tertiary);
}

.search-bar__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-xl), 0 0 0 4px var(--accent-glow);
}

.search-bar__input:focus ~ .search-bar__icon {
  color: var(--accent);
}

.search-bar__submit {
  position: absolute;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--space-lg);
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: var(--text-sm);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-base) var(--ease-default),
              transform var(--duration-base) var(--ease-default);
}

.search-bar__submit:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.search-bar__submit:active {
  transform: scale(0.98);
}

/* ==========================================================================
   11. HERO BUTTONS
   ========================================================================== */

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default),
              background var(--duration-base) var(--ease-default);
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn:active {
  transform: translateY(0);
}

.hero-btn--govt {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.hero-btn--govt:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.hero-btn--private {
  background: linear-gradient(135deg, #059669, #047857);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.hero-btn--private:hover {
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45);
  background: linear-gradient(135deg, #10B981, #059669);
}

.hero-btn__icon {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   12. ACTIVE JOBS COUNTER
   ========================================================================== */

.jobs-counter {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.jobs-counter__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.jobs-counter__label {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* ==========================================================================
   13. POPULAR TAGS
   ========================================================================== */

.popular-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.popular-tags__label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-right: var(--space-xs);
}

.popular-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  font-weight: 400;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background var(--duration-base) var(--ease-default),
              color var(--duration-base) var(--ease-default),
              transform var(--duration-base) var(--ease-default);
}

.popular-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* ==========================================================================
   14. STATISTICS BAR
   ========================================================================== */

.stats-bar {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--space-2xl) * -1);
  margin-bottom: var(--space-2xl);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default),
              background var(--duration-slow) var(--ease-default);
}

body.dark-mode .stat-card {
  background: rgba(30, 41, 59, 0.75);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-md);
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

.stat-card__icon svg {
  width: 22px;
  height: 22px;
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-2xs);
  font-variant-numeric: tabular-nums;
}

.stat-card__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   15. FILTER TOOLBAR
   ========================================================================== */

.filter-toolbar {
  position: sticky;
  top: var(--navbar-height);
  z-index: var(--z-sticky);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-xs);
  transition: background-color var(--duration-slow) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default);
}

.filter-toolbar.is-scrolled {
  box-shadow: var(--shadow-md);
}

.filter-toolbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: nowrap;
  overflow-x: auto;
}

.filter-toolbar__search {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.filter-toolbar__search-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.filter-toolbar__search-input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-md) 0 calc(var(--space-md) + 24px);
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: border-color var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default),
              background-color var(--duration-slow) var(--ease-default);
}

.filter-toolbar__search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--input-bg);
}

.filter-select,
.filter-input {
  height: 44px;
  padding: 0 var(--space-xl) 0 var(--space-md);
  background-color: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text-primary);
  min-width: 160px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: border-color var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default),
              background-color var(--duration-slow) var(--ease-default);
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background-color: var(--input-bg);
}

.filter-input[type="date"] {
  min-width: 150px;
}

.filter-toolbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  height: 44px;
  padding: 0 var(--space-lg);
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-base) var(--ease-default),
              transform var(--duration-base) var(--ease-default);
}

.filter-toolbar__btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.filter-toolbar__btn--reset {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.filter-toolbar__btn--reset:hover {
  background: var(--bg-card-alt);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.filter-toolbar__mobile-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  height: 44px;
  padding: 0 var(--space-md);
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
}

/* ==========================================================================
   16. MOBILE FILTER DRAWER (Bottom Sheet)
   ========================================================================== */

.filter-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease-default),
              visibility var(--duration-slow) var(--ease-default);
}

.filter-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.filter-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-overlay) + 1);
  max-height: 85vh;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-drawer.is-open {
  transform: translateY(0);
}

.filter-drawer__handle {
  display: flex;
  justify-content: center;
  padding: var(--space-md) 0 var(--space-sm);
}

.filter-drawer__handle::before {
  content: '';
  width: 40px;
  height: 4px;
  background: var(--border-strong);
  border-radius: var(--radius-full);
}

.filter-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border);
}

.filter-drawer__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.filter-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-card-alt);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-drawer__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.filter-drawer__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-drawer__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.filter-drawer__footer {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
}

.filter-drawer__footer .filter-toolbar__btn {
  flex: 1;
}

/* ==========================================================================
   17. QUICK FILTER TABS
   ========================================================================== */

.quick-filters {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quick-filters::-webkit-scrollbar {
  display: none;
}

.quick-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-default);
}

.quick-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 158, 11, 0.06);
}

.quick-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
}

.quick-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 var(--space-xs);
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.quick-filter.is-active .quick-filter__count {
  background: rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   18. FEATURED JOBS CAROUSEL
   ========================================================================== */

.featured-carousel {
  position: relative;
  margin: var(--space-2xl) 0;
}

.featured-carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.featured-carousel__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.featured-carousel__nav {
  display: flex;
  gap: var(--space-sm);
}

.featured-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-default);
}

.featured-carousel__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
  transform: scale(1.05);
}

.featured-carousel__arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.featured-carousel__track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-sm);
}

.featured-carousel__track::-webkit-scrollbar {
  display: none;
}

.featured-carousel__card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.featured-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.featured-carousel__dot {
  width: 8px;
  height: 8px;
  background: var(--border-strong);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  padding: 0;
  transition: all var(--duration-base) var(--ease-default);
}

.featured-carousel__dot:hover {
  background: var(--text-tertiary);
}

.featured-carousel__dot.is-active {
  width: 24px;
  background: var(--accent);
}

/* ==========================================================================
   19. TRENDING SEARCHES
   ========================================================================== */

.trending-searches {
  margin: var(--space-2xl) 0;
}

.trending-searches__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.trending-searches__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.trending-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-default);
}

.trending-chip:hover {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.06);
  color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.trending-chip__icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.trending-chip__fire {
  color: #EF4444;
}

/* ==========================================================================
   20. GRADE CHIPS
   ========================================================================== */

.grade-chips {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.grade-chips::-webkit-scrollbar {
  display: none;
}

.grade-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--grade-bg);
  color: var(--grade-text);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--duration-base) var(--ease-default);
}

.grade-chip:hover {
  border-color: var(--grade-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.grade-chip.is-active {
  background: var(--grade-text);
  color: #FFFFFF;
}

/* ==========================================================================
   21. JOB GRID
   ========================================================================== */

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.job-grid--two-col {
  grid-template-columns: repeat(2, 1fr);
}

/* ==========================================================================
   22. JOB CARD
   ========================================================================== */

.job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--duration-slow) var(--ease-default),
              box-shadow var(--duration-slow) var(--ease-default),
              border-color var(--duration-base) var(--ease-default),
              background-color var(--duration-slow) var(--ease-default);
  animation: fadeInUp var(--duration-slower) var(--ease-out) both;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

.job-card:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Card entrance stagger */
.job-card:nth-child(1)  { animation-delay: 0ms; }
.job-card:nth-child(2)  { animation-delay: 60ms; }
.job-card:nth-child(3)  { animation-delay: 120ms; }
.job-card:nth-child(4)  { animation-delay: 180ms; }
.job-card:nth-child(5)  { animation-delay: 240ms; }
.job-card:nth-child(6)  { animation-delay: 300ms; }
.job-card:nth-child(7)  { animation-delay: 360ms; }
.job-card:nth-child(8)  { animation-delay: 420ms; }
.job-card:nth-child(9)  { animation-delay: 480ms; }

.job-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.job-card__logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-card__logo-initials {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.job-card__info {
  flex: 1;
  min-width: 0;
}

.job-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--duration-base) var(--ease-default);
}

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

body.dark-mode .job-card:hover .job-card__title {
  color: var(--accent-light);
}

.job-card__org {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badge row */
.job-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

/* Meta row */
.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.job-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.job-card__meta-icon {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.job-card__meta-label {
  font-weight: 500;
  color: var(--text-tertiary);
}

.job-card__meta-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* View Details button */
.job-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  height: 40px;
  margin-top: auto;
  padding: 0 var(--space-md);
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-default);
}

.job-card__cta:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

body.dark-mode .job-card__cta {
  color: var(--accent-light);
}

body.dark-mode .job-card__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

.job-card__cta-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-base) var(--ease-default);
}

.job-card__cta:hover .job-card__cta-icon {
  transform: translateX(3px);
}

/* Featured ribbon */
.job-card--featured {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: var(--shadow-glow);
}

.job-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

/* ==========================================================================
   23. BADGE STYLES
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 3px var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-govt {
  background: var(--govt-bg);
  color: var(--govt-text);
}

.badge-private {
  background: var(--private-bg);
  color: var(--private-text);
}

.badge-grade {
  background: var(--grade-bg);
  color: var(--grade-text);
}

.badge-location {
  background: var(--bg-card-alt);
  color: var(--text-secondary);
}

.badge-featured {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--primary-dark);
  box-shadow: 0 0 12px var(--accent-glow);
}

.badge-closing {
  background: #DC2626;
  color: #FFFFFF;
  animation: pulse 2s ease-in-out infinite;
}

.badge-new {
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  color: #FFFFFF;
}

.badge__icon {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   24. STATUS INDICATORS (Card Left Border)
   ========================================================================== */

.status-safe {
  border-left: 4px solid var(--status-safe);
}

.status-warning {
  border-left: 4px solid var(--status-warning);
}

.status-urgent {
  border-left: 4px solid var(--status-urgent);
  animation: urgentPulse 3s ease-in-out infinite;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 600;
}

.status-indicator--safe {
  color: var(--status-safe);
}

.status-indicator--warning {
  color: var(--status-warning);
}

.status-indicator--urgent {
  color: var(--status-urgent);
}

.status-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.status-indicator--safe .status-indicator__dot {
  background: var(--status-safe);
}

.status-indicator--warning .status-indicator__dot {
  background: var(--status-warning);
}

.status-indicator--urgent .status-indicator__dot {
  background: var(--status-urgent);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ==========================================================================
   25. IN-FEED AD CARD
   ========================================================================== */

.ad-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-alt);
  border: 1px dashed var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  min-height: 200px;
  transition: background-color var(--duration-slow) var(--ease-default);
}

.ad-card__label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.ad-card__slot {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

/* ==========================================================================
   26. PAGINATION
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-2xl) 0;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-default);
}

.pagination__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 158, 11, 0.06);
}

.pagination__btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.pagination__btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.pagination__btn:disabled,
.pagination__btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination__arrow {
  font-size: var(--text-lg);
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

/* ==========================================================================
   27. TELEGRAM JOIN SECTION
   ========================================================================== */

.telegram-section {
  position: relative;
  margin: var(--space-2xl) 0;
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(135deg, var(--accent), var(--accent-light), #F97316);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
}

.telegram-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.telegram-section__content {
  position: relative;
  z-index: 1;
}

.telegram-section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(4px);
}

.telegram-section__icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-dark);
}

.telegram-section__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

.telegram-section__desc {
  font-size: var(--text-base);
  color: rgba(13, 33, 55, 0.75);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.telegram-section__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--primary-dark);
  color: #FFFFFF;
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default);
}

.telegram-section__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 33, 55, 0.35);
}

.telegram-section__btn-icon {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   28. MEGA FOOTER
   ========================================================================== */

.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-3xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-md);
  text-decoration: none;
}

.footer__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-lg);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-default);
}

.footer__social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__section-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-default),
              padding-left var(--duration-base) var(--ease-default);
}

.footer__link:hover {
  color: #FFFFFF;
  padding-left: var(--space-xs);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
}

.footer__copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__bottom-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-default);
}

.footer__bottom-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   29. SINGLE JOB PAGE LAYOUT
   ========================================================================== */

.single-job {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.single-job__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
  align-items: start;
}

.single-job__main {
  min-width: 0;
}

.single-job__sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-md));
}

.single-job__header {
  margin-bottom: var(--space-xl);
}

.single-job__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: var(--leading-snug);
}

.single-job__org {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.single-job__content {
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: var(--leading-normal);
}

.single-job__content h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.single-job__content h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.single-job__content p {
  margin-bottom: var(--space-md);
}

.single-job__content ul,
.single-job__content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.single-job__content li {
  margin-bottom: var(--space-xs);
  list-style: disc;
  color: var(--text-primary);
}

.single-job__content ol li {
  list-style: decimal;
}

/* ==========================================================================
   30. BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: var(--space-md) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.breadcrumbs__link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-default);
}

.breadcrumbs__link:hover {
  color: var(--accent);
}

.breadcrumbs__separator {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  user-select: none;
}

.breadcrumbs__current {
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   31. JOB IMAGE CONTAINER
   ========================================================================== */

.job-image {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  cursor: zoom-in;
}

.job-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow) var(--ease-default);
}

.job-image:hover img {
  transform: scale(1.02);
}

.job-image__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent 40%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--space-md);
  transition: opacity var(--duration-base) var(--ease-default);
}

.job-image:hover .job-image__overlay {
  opacity: 1;
}

.job-image__zoom-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  backdrop-filter: blur(4px);
}

.job-image__zoom-icon svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   32. LIGHTBOX OVERLAY
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease-default),
              visibility var(--duration-slow) var(--ease-default);
  cursor: zoom-out;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform var(--duration-slow) var(--ease-out);
}

.lightbox.is-open .lightbox__image {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: var(--text-xl);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-default),
              transform var(--duration-base) var(--ease-default);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox__controls {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.lightbox__zoom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  cursor: pointer;
  font-size: var(--text-base);
  transition: background var(--duration-base) var(--ease-default);
}

.lightbox__zoom-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   33. INFORMATION TABLE
   ========================================================================== */

.info-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.info-table th {
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-card-alt);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.info-table td {
  padding: var(--space-md);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.info-table tr:nth-child(even) td {
  background: var(--bg-card-alt);
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table tr:hover td {
  background: rgba(245, 158, 11, 0.04);
}

body.dark-mode .info-table tr:hover td {
  background: rgba(245, 158, 11, 0.06);
}

/* Key-value table variant */
.info-table--kv th {
  width: 180px;
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--bg-card-alt);
}

.info-table--kv td {
  font-weight: 500;
}

/* ==========================================================================
   34. STICKY SIDEBAR CARDS
   ========================================================================== */

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: background-color var(--duration-slow) var(--ease-default);
}

.sidebar-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
}

.sidebar-card__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.sidebar-card__row + .sidebar-card__row {
  border-top: 1px solid var(--border);
}

.sidebar-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
  color: var(--primary);
}

body.dark-mode .sidebar-card__icon {
  color: var(--accent-light);
}

.sidebar-card__icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-card__label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xs);
}

.sidebar-card__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md);
  margin-top: var(--space-md);
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: var(--text-sm);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-base) var(--ease-default),
              transform var(--duration-base) var(--ease-default);
}

.sidebar-card__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   35. RELATED JOBS GRID
   ========================================================================== */

.related-jobs {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}

.related-jobs__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.related-jobs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ==========================================================================
   36. FORM INPUTS (Consistent Styling)
   ========================================================================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.form-label--required::after {
  content: ' *';
  color: var(--status-urgent);
}

.form-input,
.form-textarea {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-md);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: border-color var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default),
              background-color var(--duration-slow) var(--ease-default);
}

.form-textarea {
  height: auto;
  min-height: 120px;
  padding: var(--space-md);
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input:disabled,
.form-textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--bg-card-alt);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--status-urgent);
  font-weight: 500;
}

/* ==========================================================================
   37. CUSTOM SELECT DROPDOWN
   ========================================================================== */

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  padding: 0 var(--space-md);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-default),
              box-shadow var(--duration-base) var(--ease-default);
}

.custom-select__trigger:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.custom-select__arrow {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  transition: transform var(--duration-base) var(--ease-default);
}

.custom-select.is-open .custom-select__arrow {
  transform: rotate(180deg);
}

.custom-select__dropdown {
  position: absolute;
  top: calc(100% + var(--space-xs));
  left: 0;
  right: 0;
  z-index: var(--z-dropdown);
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--duration-base) var(--ease-default),
              visibility var(--duration-base) var(--ease-default),
              transform var(--duration-base) var(--ease-default);
}

.custom-select.is-open .custom-select__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select__option {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-default);
}

.custom-select__option:hover {
  background: var(--bg-card-alt);
}

.custom-select__option.is-selected {
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-hover);
  font-weight: 600;
}

/* ==========================================================================
   38. LOADING SKELETON
   ========================================================================== */

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s ease-in-out infinite;
}

body.dark-mode .skeleton::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
}

.skeleton--card {
  height: 280px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
}

.skeleton--text {
  height: 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.skeleton--text-sm {
  height: 10px;
  width: 60%;
}

.skeleton--avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.skeleton--badge {
  width: 80px;
  height: 24px;
  border-radius: var(--radius-full);
}

.skeleton--button {
  width: 100%;
  height: 40px;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
}

.skeleton-card__header {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.skeleton-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.skeleton-card__badges {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

/* ==========================================================================
   39. TOAST NOTIFICATION
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 320px;
  max-width: 420px;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  pointer-events: auto;
  transform: translateX(120%);
  animation: slideInRight var(--duration-slow) var(--ease-out) forwards;
}

.toast.is-dismissing {
  animation: slideOutRight var(--duration-slow) var(--ease-in) forwards;
}

.toast__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.toast__content {
  flex: 1;
  min-width: 0;
}

.toast__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2xs);
}

.toast__message {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.toast__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-default);
}

.toast__close:hover {
  background: var(--bg-card-alt);
  color: var(--text-primary);
}

.toast--success {
  border-left: 4px solid var(--status-safe);
}

.toast--success .toast__icon {
  color: var(--status-safe);
}

.toast--warning {
  border-left: 4px solid var(--status-warning);
}

.toast--warning .toast__icon {
  color: var(--status-warning);
}

.toast--error {
  border-left: 4px solid var(--status-urgent);
}

.toast--error .toast__icon {
  color: var(--status-urgent);
}

.toast--info {
  border-left: 4px solid var(--primary);
}

.toast--info .toast__icon {
  color: var(--primary);
}

/* ==========================================================================
   40. SCROLL TO TOP BUTTON
   ========================================================================== */

.scroll-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-full);
  color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--duration-slow) var(--ease-default),
              visibility var(--duration-slow) var(--ease-default),
              transform var(--duration-slow) var(--ease-default),
              background var(--duration-base) var(--ease-default);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.scroll-top:active {
  transform: translateY(0);
}

.scroll-top svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   41. ANIMATIONS & KEYFRAMES
   ========================================================================== */

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

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes urgentPulse {
  0%, 100% {
    border-left-color: var(--status-urgent);
    box-shadow: none;
  }
  50% {
    border-left-color: #EF4444;
    box-shadow: inset 4px 0 12px -4px rgba(220, 38, 38, 0.15);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(120%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes slideUpDrawer {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes dotPulse {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
}

.spinner--lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

.spinner--sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

/* Dot loader */
.dot-loader {
  display: inline-flex;
  gap: var(--space-xs);
}

.dot-loader__dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: var(--radius-full);
  animation: dotPulse 1.4s ease-in-out infinite;
}

.dot-loader__dot:nth-child(2) { animation-delay: 0.16s; }
.dot-loader__dot:nth-child(3) { animation-delay: 0.32s; }

/* ==========================================================================
   42. UTILITY CLASSES
   ========================================================================== */

/* ── Screen Reader Only ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Text ── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-urdu { font-family: var(--font-urdu); }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Display ── */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* ── Flex ── */
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* ── Gap ── */
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ── Margin ── */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.ml-xs { margin-left: var(--space-xs); }
.ml-sm { margin-left: var(--space-sm); }
.ml-md { margin-left: var(--space-md); }

.mr-xs { margin-right: var(--space-xs); }
.mr-sm { margin-right: var(--space-sm); }
.mr-md { margin-right: var(--space-md); }

/* ── Padding ── */
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-2xl { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }

/* ── Width ── */
.w-full { width: 100%; }
.max-w-full { max-width: 100%; }

/* ── Position ── */
.relative { position: relative; }
.absolute { position: absolute; }

/* ── Border ── */
.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* ── Shadow ── */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ── Overflow ── */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* ── Cursor ── */
.cursor-pointer { cursor: pointer; }

/* ── Opacity ── */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* ── Section wrapper ── */
.section {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background: var(--bg-card-alt);
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.section__subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-2xs);
}

.section__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color var(--duration-base) var(--ease-default);
}

.section__link:hover {
  color: var(--accent-hover);
}

/* ── Button base ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration-base) var(--ease-default);
}

.btn--primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--bg-card-alt);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

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

.btn--outline:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.btn--sm {
  height: 36px;
  padding: 0 var(--space-md);
  font-size: var(--text-xs);
}

.btn--lg {
  height: 52px;
  padding: 0 var(--space-xl);
  font-size: var(--text-base);
}

/* ── Tag / Chip ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-default);
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Divider ── */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: var(--space-lg) 0;
}

/* ── Empty state ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

.empty-state__icon {
  width: 80px;
  height: 80px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.empty-state__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.empty-state__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: var(--space-lg);
}

/* ── Results header ── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.results-header__count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.results-header__count strong {
  color: var(--text-primary);
  font-weight: 600;
}

.results-header__sort {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ==========================================================================
   43. PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .navbar,
  .site-footer,
  .ad-container,
  .ad-card,
  .scroll-top,
  .toast-container,
  .filter-toolbar,
  .filter-drawer,
  .filter-drawer-overlay,
  .mobile-drawer,
  .mobile-drawer-overlay,
  .hamburger,
  .dark-mode-toggle,
  .hero-buttons,
  .search-bar,
  .popular-tags,
  .telegram-section,
  .pagination,
  .quick-filters,
  .featured-carousel__nav,
  .featured-carousel__dots,
  .job-card__cta,
  .sidebar-card__cta,
  .scroll-top,
  .skip-to-content {
    display: none !important;
  }

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

  .job-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12pt;
  }

  .job-card {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #ccc;
    padding: 12pt;
  }

  .single-job__layout {
    grid-template-columns: 1fr;
  }

  .single-job__sidebar {
    position: static;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  .navbar__link::after,
  .footer__link::after {
    content: none;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .hero {
    min-height: auto;
    padding: 24pt 0;
  }

  .hero__title {
    font-size: 24pt;
  }
}

/* ==========================================================================
   44. FOCUS STYLES (WCAG 2.1 AA)
   ========================================================================== */

/* Remove default outlines globally */
*:focus {
  outline: none;
}

/* Apply visible focus rings for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Specific focus overrides */
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.job-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.pagination__btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (forced-colors: active) {
  .badge,
  .quick-filter,
  .grade-chip {
    border: 1px solid;
  }

  .job-card {
    border: 2px solid;
  }

  .btn,
  .hero-btn {
    border: 2px solid;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .job-card:hover {
    transform: none;
  }

  .hero-btn:hover {
    transform: none;
  }

  .search-bar__submit:hover {
    transform: none;
  }
}

/* ==========================================================================
   45. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ── Extra Large (≤ 1280px) ── */
@media (max-width: 1280px) {
  .container {
    max-width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

/* ── Large / Tablet Landscape (≤ 1024px) ── */
@media (max-width: 1024px) {
  .job-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .single-job__layout {
    grid-template-columns: 1fr 280px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .featured-carousel__card {
    flex: 0 0 260px;
  }
}

/* ── Tablet / Medium (≤ 768px) ── */
@media (max-width: 768px) {
  :root {
    --navbar-height: 56px;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  /* Navbar */
  .navbar__nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: 320px;
    padding: var(--space-3xl) var(--space-md);
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .search-bar {
    max-width: 100%;
  }

  .search-bar__input {
    height: 50px;
    font-size: var(--text-sm);
  }

  .search-bar__submit {
    height: 38px;
    padding: 0 var(--space-md);
    font-size: var(--text-xs);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn {
    justify-content: center;
  }

  /* Stats */
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .stat-card {
    padding: var(--space-md);
  }

  .stat-card__number {
    font-size: var(--text-xl);
  }

  /* Filter toolbar — hide inline, show mobile trigger */
  .filter-toolbar__inner {
    flex-wrap: wrap;
  }

  .filter-toolbar__search {
    min-width: 100%;
    order: 1;
  }

  .filter-select,
  .filter-input,
  .filter-toolbar__btn,
  .filter-toolbar__btn--reset {
    display: none;
  }

  .filter-toolbar__mobile-trigger {
    display: inline-flex;
    order: 2;
  }

  /* Job grid */
  .job-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .job-grid--two-col {
    grid-template-columns: 1fr;
  }

  /* Single job */
  .single-job__layout {
    grid-template-columns: 1fr;
  }

  .single-job__sidebar {
    position: static;
  }

  /* Related jobs */
  .related-jobs__grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__brand {
    max-width: 100%;
  }

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

  .footer__bottom-links {
    justify-content: center;
  }

  /* Carousel */
  .featured-carousel__card {
    flex: 0 0 280px;
  }

  .featured-carousel__nav {
    display: none;
  }

  /* Pagination */
  .pagination {
    flex-wrap: wrap;
  }

  /* Toast */
  .toast-container {
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }

  /* Scroll top */
  .scroll-top {
    width: 42px;
    height: 42px;
    right: var(--space-md);
    bottom: var(--space-md);
  }

  /* Ad container */
  .ad-container__slot {
    width: 100%;
    min-height: 60px;
  }

  /* Telegram */
  .telegram-section {
    padding: var(--space-xl) var(--space-md);
  }

  .telegram-section__title {
    font-size: var(--text-xl);
  }

  /* Lightbox */
  .lightbox__image {
    max-width: 95vw;
    max-height: 85vh;
  }

  .lightbox__close {
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
  }
}

/* ── Small / Phone (≤ 480px) ── */
@media (max-width: 480px) {
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
  h3 { font-size: var(--text-lg); }

  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .hero {
    min-height: 280px;
    padding: var(--space-2xl) var(--space-md);
  }

  .hero__title {
    font-size: var(--text-2xl);
  }

  .hero__subtitle {
    font-size: var(--text-sm);
  }

  .jobs-counter__number {
    font-size: var(--text-2xl);
  }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
  }

  .stat-card {
    padding: var(--space-sm);
  }

  .stat-card__icon {
    width: 36px;
    height: 36px;
  }

  .stat-card__icon svg {
    width: 18px;
    height: 18px;
  }

  .stat-card__number {
    font-size: var(--text-lg);
  }

  .stat-card__label {
    font-size: var(--text-xs);
  }

  .job-card {
    padding: var(--space-md);
  }

  .job-card__logo {
    width: 40px;
    height: 40px;
  }

  .job-card__meta {
    gap: var(--space-sm);
  }

  .single-job__title {
    font-size: var(--text-xl);
  }

  .sidebar-card {
    padding: var(--space-md);
  }

  .breadcrumbs {
    font-size: var(--text-xs);
  }

  .pagination__btn {
    min-width: 36px;
    height: 36px;
    font-size: var(--text-xs);
  }

  .mobile-drawer {
    width: 100%;
    max-width: 100%;
  }

  .featured-carousel__card {
    flex: 0 0 260px;
  }

  .info-table th,
  .info-table td {
    padding: var(--space-sm);
    font-size: var(--text-xs);
  }

  .telegram-section__icon {
    width: 48px;
    height: 48px;
  }

  .telegram-section__icon svg {
    width: 24px;
    height: 24px;
  }
}

/* ── Extra Small (≤ 360px) ── */
@media (max-width: 360px) {
  .hero__badge {
    font-size: var(--text-xs);
  }

  .hero-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
  }

  .stats-bar__grid {
    grid-template-columns: 1fr;
  }

  .job-card__badges {
    gap: var(--space-2xs);
  }

  .badge {
    font-size: 0.65rem;
    padding: 2px var(--space-xs);
  }
}

/* ==========================================================================
   BONUS: WordPress Specific Overrides
   ========================================================================== */

/* WordPress admin bar spacing */
.admin-bar .navbar {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .navbar {
    top: 46px;
  }
}

/* WordPress alignment classes */
.alignleft {
  float: left;
  margin-right: var(--space-lg);
  margin-bottom: var(--space-md);
}

.alignright {
  float: right;
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-md);
}

.alignwide {
  max-width: calc(100% + var(--space-2xl) * 2);
  margin-left: calc(var(--space-2xl) * -1);
  margin-right: calc(var(--space-2xl) * -1);
}

.alignfull {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* WordPress caption */
.wp-caption {
  margin-bottom: var(--space-lg);
  max-width: 100%;
}

.wp-caption-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  text-align: center;
}

/* WordPress gallery */
.gallery {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
}

/* WordPress block editor colors */
.has-primary-color { color: var(--primary); }
.has-accent-color { color: var(--accent); }
.has-primary-background-color { background-color: var(--primary); }
.has-accent-background-color { background-color: var(--accent); }

/* Screen reader text (WordPress default class) */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.screen-reader-text:focus {
  display: block;
  top: 5px;
  left: 5px;
  width: auto;
  height: auto;
  padding: var(--space-md);
  clip: auto;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  z-index: var(--z-tooltip);
}

/* ==========================================================================
   END OF STYLESHEET
   ========================================================================== */
