/* ============================================================
   DigitalKasur.com - Main Stylesheet
   A Pakistani District Portal - Modern, Responsive, Dark Mode
   Version: 2.1.0 - Bootstrap 5 Compatible
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================================ */
:root {
  /* ---- Primary Palette (Teal - from logo) ---- */
  --primary-color: #0A4D68;
  --primary-light: #088395;
  --primary-dark: #071E3D;
  --primary-rgb: 10, 77, 104;

  /* ---- Secondary / Accent (Gold / Amber) ---- */
  --secondary-color: #F59E0B;
  --secondary-light: #FBBF24;
  --secondary-dark: #D97706;
  --secondary-rgb: 245, 158, 11;

  /* ---- Neutrals ---- */
  --white: #FFFFFF;
  --black: #000000;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* ---- Semantic Colors ---- */
  --success-color: #10B981;
  --success-light: #D1FAE5;
  --info-color: #3B82F6;
  --info-light: #DBEAFE;
  --warning-color: #F59E0B;
  --warning-light: #FEF3C7;
  --danger-color: #EF4444;
  --danger-light: #FEE2E2;

  /* ---- Theme-aware Aliases ---- */
  --text-color: var(--gray-800);
  --text-muted: var(--gray-500);
  --text-light: var(--gray-400);
  --heading-color: var(--gray-900);
  --bg-body: var(--gray-50);
  --bg-light: var(--white);
  --bg-dark: var(--gray-900);
  --bg-card: var(--white);
  --bg-card-hover: var(--gray-50);
  --border-color: var(--gray-200);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-color-md: rgba(0, 0, 0, 0.12);

  /* ---- Typography ---- */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: clamp(0.7rem, 0.66rem + 0.2vw, 0.75rem);
  --font-size-sm: clamp(0.8rem, 0.76rem + 0.2vw, 0.875rem);
  --font-size-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --font-size-md: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --font-size-3xl: clamp(1.875rem, 1.4rem + 2.375vw, 2.5rem);
  --font-size-4xl: clamp(2.25rem, 1.6rem + 3.25vw, 3.5rem);

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* ---- Spacing ---- */
  --spacer-xs: 0.25rem;
  --spacer-sm: 0.5rem;
  --spacer-md: 1rem;
  --spacer-lg: 1.5rem;
  --spacer-xl: 2rem;
  --spacer-2xl: 3rem;
  --spacer-3xl: 4rem;
  --spacer-4xl: 6rem;

  /* ---- Border Radius ---- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px var(--shadow-color);
  --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -2px var(--shadow-color);
  --shadow-lg: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -4px var(--shadow-color);
  --shadow-xl: 0 20px 25px -5px var(--shadow-color-md), 0 8px 10px -6px var(--shadow-color);
  --shadow-card: 0 1px 3px var(--shadow-color), 0 1px 2px var(--shadow-color);
  --shadow-card-hover: 0 10px 25px var(--shadow-color-md);

  /* ---- Transitions ---- */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-theme: 400ms ease;

  /* ---- Z-Index Scale ---- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-offcanvas: 400;
  --z-modal-backdrop: 500;
  --z-modal: 600;
  --z-popover: 700;
  --z-tooltip: 800;
  --z-whatsapp: 900;
  --z-chatbot: 910;
  --z-back-to-top: 850;

  /* ---- Container (for custom containers only) ---- */
  --container-max: 1280px;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  /* ---- Top Bar ---- */
  --topbar-height: 32px;
  --topbar-bg: var(--primary-dark);

  /* ---- Navbar ---- */
  --navbar-height: 52px;
  --navbar-bg: var(--white);

  /* ---- WhatsApp ---- */
  --whatsapp-color: #25D366;
  --whatsapp-size: 56px;
}

/* ============================================================
   2. DARK MODE OVERRIDES
   ============================================================ */
[data-theme="dark"] {
  --text-color: var(--gray-200);
  --text-muted: var(--gray-400);
  --text-light: var(--gray-500);
  --heading-color: var(--gray-50);
  --bg-body: var(--gray-900);
  --bg-light: var(--gray-800);
  --bg-dark: var(--black);
  --bg-card: var(--gray-800);
  --bg-card-hover: var(--gray-700);
  --border-color: var(--gray-700);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-color-md: rgba(0, 0, 0, 0.4);
  --navbar-bg: var(--gray-900);
  --topbar-bg: var(--black);
}

/* ============================================================
   3. BASE STYLES (Minimal - no destructive resets)
   ============================================================ */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--text-color);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-theme), color var(--transition-theme);
  overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--gray-800);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: var(--gray-600);
}

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

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

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* ============================================================
   4. TYPOGRAPHY (Custom classes only - no Bootstrap overrides)
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  transition: color var(--transition-theme);
}

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

p {
  color: var(--text-color);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--heading-color);
  margin-bottom: var(--spacer-sm);
  position: relative;
}

.section-subtitle {
  font-size: var(--font-size-md);
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  padding: var(--spacer-xs) var(--spacer-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacer-sm);
}

/* ============================================================
   5. CUSTOM BUTTONS (Enhance Bootstrap, don't break it)
   ============================================================ */

/* Custom button styles that ADD to Bootstrap's .btn */
.btn {
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  border-color: var(--primary-dark);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--gray-900);
  border-color: var(--secondary-color);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
  border-color: var(--secondary-dark);
  color: var(--gray-900);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

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

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

.btn-success {
  background: var(--success-color);
  border-color: var(--success-color);
}

.btn-danger {
  background: var(--danger-color);
  border-color: var(--danger-color);
}

.btn-whatsapp {
  background: var(--whatsapp-color);
  color: var(--white);
  border-color: var(--whatsapp-color);
}

.btn-whatsapp:hover {
  background: #1DA851;
  border-color: #1DA851;
  color: var(--white);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

.btn-icon.btn-lg {
  width: 48px;
  height: 48px;
}

/* ============================================================
   6. TOP BAR
   ============================================================ */
.top-bar {
  background: var(--topbar-bg);
  color: var(--white);
  height: var(--topbar-height);
  font-size: var(--font-size-xs);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  transition: background-color var(--transition-theme);
  display: flex;
  align-items: center;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--spacer-md);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--spacer-sm);
}

.top-bar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.25);
  display: inline-block;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.top-bar a:hover {
  color: var(--secondary-color);
}

.top-bar-link {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  white-space: nowrap;
}

.top-bar-link:hover {
  color: var(--secondary-color);
}

.top-bar-link span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-social {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition-fast);
}

.top-bar-social:hover {
  background: var(--secondary-color);
  color: var(--gray-900);
}

/* Top bar language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--spacer-xs);
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  transition: background var(--transition-fast);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.lang-toggle .active-lang {
  font-weight: var(--font-weight-bold);
  color: var(--secondary-color);
}

/* ============================================================
   7. NAVBAR (Scoped to #mainNavbar to not conflict with Bootstrap)
   ============================================================ */
#mainNavbar.navbar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--navbar-bg);
  box-shadow: var(--shadow-md);
  z-index: var(--z-sticky);
  transition: background-color var(--transition-theme), box-shadow var(--transition-theme);
  padding-top: 0;
  padding-bottom: 0;
}

#mainNavbar.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

#mainNavbar.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  flex-wrap: nowrap;
}

#mainNavbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacer-sm);
  text-decoration: none;
  flex-shrink: 0;
  padding-top: 0;
  padding-bottom: 0;
}

#mainNavbar .navbar-brand img {
  height: 36px;
  width: auto;
}

.brand-text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  line-height: 1;
}

.brand-text span {
  color: var(--secondary-color);
}

/* Nav Links - scoped to #mainNavbar */
#mainNavbar .navbar-nav {
  align-items: center;
  gap: var(--spacer-xs);
}

#mainNavbar .nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacer-xs);
  padding: 0.5rem 0.75rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
  color: var(--primary-color);
  background: rgba(var(--primary-rgb), 0.06);
}

#mainNavbar .nav-item {
  position: relative;
}

/* Nav right section */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--spacer-sm);
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 180px;
  padding: 0.4rem 0.75rem !important;
  padding-right: 2.5rem !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-full) !important;
  background: var(--bg-light);
  color: var(--text-color);
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
  width: 220px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.search-btn:hover {
  color: var(--primary-color);
}

/* Login Button */
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacer-xs);
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.login-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* User Menu Button */
.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacer-xs);
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
}

.user-menu-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-color);
  font-size: 1rem;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
}

.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: inline; }
[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: calc(var(--topbar-height) + var(--navbar-height));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.92) 0%,
    rgba(var(--primary-rgb), 0.75) 40%,
    rgba(var(--secondary-rgb), 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--spacer-3xl) var(--spacer-lg);
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: var(--spacer-sm) var(--spacer-lg);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacer-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: var(--spacer-lg);
  line-height: var(--line-height-tight);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title span {
  color: var(--secondary-color);
}

.hero-subtitle {
  font-size: var(--font-size-md);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacer-2xl);
  line-height: var(--line-height-relaxed);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacer-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacer-2xl);
  margin-top: var(--spacer-3xl);
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat {
  text-align: center;
  color: var(--white);
}

.hero-stat-number {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  display: block;
}

.hero-stat-label {
  font-size: var(--font-size-xs);
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   9. CARDS (Enhance Bootstrap cards, don't replace them)
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-theme);
  border: 1px solid var(--border-color);
}

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

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-body {
  padding: var(--spacer-lg);
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  transition: color var(--transition-fast);
}

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

.card-text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
}

.card-footer {
  padding: var(--spacer-md) var(--spacer-lg);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-light);
  transition: background-color var(--transition-theme);
}

/* Featured Badge */
.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: var(--gray-900);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-badge i {
  font-size: 0.65rem;
}

/* Category Badge */
.category-badge {
  display: inline-block;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.category-badge.gold {
  background: rgba(var(--secondary-rgb), 0.15);
  color: var(--secondary-dark);
}

.category-badge.red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.category-badge.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

/* ============================================================
   10. CITY CARDS
   ============================================================ */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacer-lg);
}

.city-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacer-xl) var(--spacer-lg);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.city-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.city-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacer-md);
  display: block;
}

.city-card-name {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  margin-bottom: var(--spacer-xs);
  transition: color var(--transition-fast);
}

.city-card:hover .city-card-name {
  color: var(--primary-color);
}

.city-card-count {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ============================================================
   11. STATS SECTION
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: var(--spacer-3xl) 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacer-xl);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: var(--white);
  padding: var(--spacer-lg);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: var(--spacer-sm);
  opacity: 0.9;
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  display: block;
  line-height: 1;
  margin-bottom: var(--spacer-sm);
}

.stat-label {
  font-size: var(--font-size-sm);
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Color-coded stats */
.stat-item:nth-child(1) .stat-icon { color: var(--secondary-color); }
.stat-item:nth-child(2) .stat-icon { color: #34D399; }
.stat-item:nth-child(3) .stat-icon { color: #60A5FA; }
.stat-item:nth-child(4) .stat-icon { color: #F472B6; }

/* ============================================================
   12. SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacer-lg);
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacer-xl);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  font-size: 1.5rem;
  margin-bottom: var(--spacer-lg);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.service-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  margin-bottom: var(--spacer-sm);
  transition: color var(--transition-theme);
}

.service-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--spacer-lg);
  line-height: var(--line-height-relaxed);
}

.service-cta {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: var(--spacer-xs);
  transition: gap var(--transition-fast);
}

.service-card:hover .service-cta {
  gap: var(--spacer-sm);
}

/* Category Filter Buttons */
.filter-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacer-sm);
  flex-wrap: wrap;
  margin-bottom: var(--spacer-2xl);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* ============================================================
   13. BUSINESS DIRECTORY
   ============================================================ */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacer-lg);
}

.business-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacer-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  display: flex;
  gap: var(--spacer-lg);
}

.business-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.business-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
}

.business-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-info {
  flex: 1;
  min-width: 0;
}

.business-name {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  margin-bottom: var(--spacer-xs);
  transition: color var(--transition-fast);
}

.business-name:hover {
  color: var(--primary-color);
}

.business-category {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: var(--spacer-sm);
}

.business-meta {
  display: flex;
  align-items: center;
  gap: var(--spacer-md);
  margin-bottom: var(--spacer-md);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.business-meta i {
  margin-right: 4px;
  color: var(--primary-color);
}

/* Star Rating */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-rating .fa-star {
  font-size: 0.75rem;
}

.star-rating .text-warning {
  color: var(--secondary-color) !important;
}

.star-rating .text-muted {
  color: var(--gray-300) !important;
}

.star-rating small {
  margin-left: 4px;
  color: var(--text-muted);
}

.business-actions {
  display: flex;
  gap: var(--spacer-sm);
}

.business-actions .btn {
  font-size: var(--font-size-xs);
  padding: 0.3rem 0.75rem;
}

/* ============================================================
   14. JOBS LISTING
   ============================================================ */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacer-lg);
}

.job-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacer-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  position: relative;
}

.job-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.job-card .featured-badge {
  top: 12px;
  right: 12px;
  left: auto;
}

.job-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacer-md);
  margin-bottom: var(--spacer-lg);
}

.job-company-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.job-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  margin-bottom: 2px;
  transition: color var(--transition-theme);
}

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

.job-company {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.job-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacer-md);
  margin-bottom: var(--spacer-lg);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.job-detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.job-detail i {
  color: var(--primary-color);
  font-size: 0.75rem;
}

.job-type-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.job-type-badge.full-time {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.job-type-badge.part-time {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info-color);
}

.job-type-badge.contract {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.job-type-badge.freelance {
  background: rgba(168, 85, 247, 0.1);
  color: #A855F7;
}

/* Skill Tags */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacer-xs);
  margin-bottom: var(--spacer-lg);
}

.skill-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  background: var(--gray-100);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .skill-tag {
  background: var(--gray-700);
  color: var(--gray-300);
}

.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacer-md);
  border-top: 1px solid var(--border-color);
}

.job-deadline {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.job-deadline i {
  color: var(--danger-color);
  margin-right: 4px;
}

.job-salary {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--success-color);
}

/* ============================================================
   15. NEWS SECTION
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacer-lg);
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.news-card .card-img-wrapper {
  aspect-ratio: 16 / 9;
}

.news-card-body {
  padding: var(--spacer-lg);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--spacer-md);
  margin-bottom: var(--spacer-sm);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.news-card-meta i {
  margin-right: 4px;
}

.news-card-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  margin-bottom: var(--spacer-sm);
  line-height: var(--line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news-card-title:hover {
  color: var(--primary-color);
}

.news-card-excerpt {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.views-counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.views-counter i {
  font-size: 0.7rem;
}

/* Breaking News Ticker */
.breaking-news-ticker {
  background: var(--danger-color);
  color: var(--white);
  padding: var(--spacer-sm) 0;
  overflow: hidden;
  position: relative;
}

.breaking-news-ticker .container {
  display: flex;
  align-items: center;
  gap: var(--spacer-md);
}

.breaking-badge {
  background: var(--white);
  color: var(--danger-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.ticker-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-content a {
  color: var(--white);
  margin-right: var(--spacer-3xl);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.ticker-content a:hover {
  color: var(--secondary-color);
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   16. BLOG
   ============================================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--spacer-2xl);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacer-lg);
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.blog-card .card-img-wrapper {
  aspect-ratio: 16 / 10;
}

.blog-card-body {
  padding: var(--spacer-lg);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--spacer-md);
  margin-bottom: var(--spacer-sm);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.blog-card-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  margin-bottom: var(--spacer-sm);
  line-height: var(--line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.blog-card-title:hover {
  color: var(--primary-color);
}

.blog-card-excerpt {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--spacer-md);
}

/* Blog Sidebar */
.blog-sidebar {
  position: sticky;
  top: calc(var(--topbar-height) + var(--navbar-height) + var(--spacer-lg));
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacer-xl);
  margin-bottom: var(--spacer-lg);
  border: 1px solid var(--border-color);
  transition: background-color var(--transition-theme), border-color var(--transition-theme);
}

.sidebar-widget-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  margin-bottom: var(--spacer-lg);
  padding-bottom: var(--spacer-sm);
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.sidebar-widget ul li {
  padding: var(--spacer-sm) 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul li:last-child {
  border-bottom: none;
}

.sidebar-widget ul li a {
  color: var(--text-color);
  font-size: var(--font-size-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.sidebar-widget ul li a:hover {
  color: var(--primary-color);
}

.sidebar-widget .count {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
}

/* Newsletter Form */
.newsletter-form {
  text-align: center;
}

.newsletter-form p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--spacer-lg);
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-light);
  color: var(--text-color);
  margin-bottom: var(--spacer-sm);
  transition: border-color var(--transition-fast);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.newsletter-form .btn {
  width: 100%;
}

/* ============================================================
   17. CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacer-2xl);
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: var(--spacer-2xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.contact-info-card h3 {
  color: var(--white);
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacer-sm);
}

.contact-info-card > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacer-xl);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacer-md);
  margin-bottom: var(--spacer-lg);
}

.contact-info-item .icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-item h5 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.contact-social-links {
  display: flex;
  gap: var(--spacer-sm);
  margin-top: var(--spacer-xl);
}

.contact-social-links a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.contact-social-links a:hover {
  background: var(--secondary-color);
  color: var(--gray-900);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacer-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: background-color var(--transition-theme);
}

.contact-form-card h3 {
  font-size: var(--font-size-xl);
  color: var(--heading-color);
  margin-bottom: var(--spacer-xl);
}

/* Map Embed */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--spacer-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.map-embed iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

/* ============================================================
   18. FORM STYLES (SHARED)
   ============================================================ */
.form-group {
  margin-bottom: var(--spacer-lg);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-color);
  margin-bottom: var(--spacer-sm);
}

.form-control {
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

[data-theme="dark"] .form-control {
  background: var(--gray-800);
  border-color: var(--gray-600);
  color: var(--gray-200);
}

[data-theme="dark"] .form-control:focus {
  background: var(--gray-700);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
}

[data-theme="dark"] .form-control::placeholder {
  color: var(--gray-500);
}

.form-control.is-invalid {
  border-color: var(--danger-color);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.invalid-feedback {
  font-size: var(--font-size-xs);
  color: var(--danger-color);
  margin-top: var(--spacer-xs);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

/* Input Group */
.input-group .input-group-text {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--gray-100);
  border: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

[data-theme="dark"] .input-group .input-group-text {
  background: var(--gray-700);
}

.input-group .input-group-text:hover {
  background: var(--gray-200);
  color: var(--primary-color);
}

/* Checkbox / Radio */
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
}

.form-check label {
  font-size: var(--font-size-sm);
  color: var(--text-color);
  cursor: pointer;
}

/* ============================================================
   19. AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacer-3xl) var(--spacer-lg);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

[data-theme="dark"] .auth-page {
  background: var(--gray-900);
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 460px;
  padding: var(--spacer-2xl);
  border: 1px solid var(--border-color);
  transition: background-color var(--transition-theme);
}

.auth-card-header {
  text-align: center;
  margin-bottom: var(--spacer-xl);
}

.auth-card-header .auth-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacer-md);
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card-header .auth-logo i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.auth-card-header h2 {
  font-size: var(--font-size-xl);
  color: var(--heading-color);
  margin-bottom: var(--spacer-xs);
}

.auth-card-header p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

.auth-card .form-group {
  margin-bottom: var(--spacer-md);
}

.auth-card .btn {
  width: 100%;
  padding: 0.875rem;
  font-size: var(--font-size-md);
}

.auth-footer {
  text-align: center;
  margin-top: var(--spacer-lg);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--spacer-md);
  margin: var(--spacer-lg) 0;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Demo Credentials Box */
.demo-credentials {
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px dashed var(--primary-color);
  border-radius: var(--radius-md);
  padding: var(--spacer-md);
  margin-top: var(--spacer-lg);
  font-size: var(--font-size-xs);
}

.demo-credentials h5 {
  font-size: var(--font-size-sm);
  color: var(--primary-color);
  margin-bottom: var(--spacer-sm);
  display: flex;
  align-items: center;
  gap: var(--spacer-xs);
}

.demo-credentials p {
  margin-bottom: var(--spacer-xs);
  color: var(--text-muted);
}

.demo-credentials code {
  background: rgba(var(--primary-rgb), 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
}

/* Password Toggle */
.password-toggle {
  position: relative;
}

.password-toggle .form-control {
  padding-right: 3rem;
}

.password-toggle .toggle-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.password-toggle .toggle-password:hover {
  color: var(--primary-color);
}

/* ============================================================
   20. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacer-xs);
  margin-top: var(--spacer-2xl);
}

.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-color);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.page-item .page-link:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.page-item.active .page-link {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  pointer-events: none;
}

.page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
  background: var(--bg-light);
}

/* ============================================================
   21. CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: var(--spacer-3xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacer-xl);
  position: relative;
  z-index: 1;
}

.cta-content {
  flex: 1;
}

.cta-content h2 {
  color: var(--white);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacer-sm);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-md);
  margin-bottom: 0;
}

.cta-action {
  flex-shrink: 0;
}

/* ============================================================
   22. FOOTER
   ============================================================ */
.site-footer {
  background: #0C1B2A;
  color: #B0BEC5;
  padding-top: var(--spacer-4xl);
}

[data-theme="dark"] .site-footer {
  background: #070F18;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: var(--spacer-2xl);
}

.footer-brand {
  margin-bottom: var(--spacer-lg);
}

.footer-brand img {
  height: 44px;
  margin-bottom: var(--spacer-md);
}

.footer-brand p {
  font-size: var(--font-size-sm);
  color: var(--gray-400);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacer-lg);
}

.footer-social {
  display: flex;
  gap: var(--spacer-sm);
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #90A4AE;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  margin-bottom: var(--spacer-lg);
  position: relative;
  padding-bottom: var(--spacer-sm);
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary-color);
  border-radius: var(--radius-full);
}

.footer-links li {
  margin-bottom: var(--spacer-sm);
}

.footer-links li a {
  color: #90A4AE;
  font-size: var(--font-size-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--spacer-xs);
  transition: all var(--transition-fast);
}

.footer-links li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-links li a i {
  font-size: 0.6rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.footer-links li a:hover i {
  opacity: 1;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacer-sm);
  margin-bottom: var(--spacer-md);
  font-size: var(--font-size-sm);
}

.footer-contact li i {
  color: var(--secondary-color);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact li a {
  color: #90A4AE;
}

.footer-contact li a:hover {
  color: var(--secondary-color);
}

/* Copyright Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--spacer-lg) 0;
  margin-top: var(--spacer-3xl);
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacer-md);
}

.footer-copyright {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

.footer-bottom-links {
  display: flex;
  gap: var(--spacer-lg);
}

.footer-bottom-links a {
  color: var(--gray-500);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--secondary-color);
}

/* ============================================================
   23. WHATSAPP FLOAT BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-whatsapp);
  width: var(--whatsapp-size);
  height: var(--whatsapp-size);
  border-radius: 50%;
  background: var(--whatsapp-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--gray-800);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
}

[data-theme="dark"] .whatsapp-tooltip {
  background: var(--gray-800);
  color: var(--gray-200);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Pulse ring animation - subtle, not a big green circle */
.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-color);
  animation: whatsapp-pulse-anim 2s ease-out infinite;
  pointer-events: none;
}

@keyframes whatsapp-pulse-anim {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* ============================================================
   23b. AI CHATBOT FLOAT BUTTON
   ============================================================ */
.ai-chatbot-float {
  position: fixed;
  bottom: calc(var(--whatsapp-size) + 24px + 20px);
  right: 24px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  z-index: var(--z-chatbot);
  transition: all var(--transition-base);
  text-decoration: none;
  animation: chatbot-pulse-glow 2s ease-in-out infinite;
}

.ai-chatbot-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
  color: var(--white);
}

@keyframes chatbot-pulse-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(99, 102, 241, 0.7); }
}

[dir="rtl"] .ai-chatbot-float,
.rtl .ai-chatbot-float {
  right: auto;
  left: 24px;
}

/* ============================================================
   24. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: calc(var(--whatsapp-size) + 24px + 20px + 52px + 20px);
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-back-to-top);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
}

/* ============================================================
   25. PROCESS STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacer-xl);
  position: relative;
}

/* Connecting line */
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-full);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacer-lg);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  position: relative;
  transition: all var(--transition-base);
}

.process-step:hover .process-step-circle {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.process-step-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  margin-bottom: var(--spacer-sm);
}

.process-step-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
}

/* ============================================================
   26. WHY CHOOSE US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacer-xl);
}

.why-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacer-2xl);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.why-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacer-lg);
  font-size: 1.75rem;
  color: var(--primary-color);
  transition: all var(--transition-base);
}

.why-card:hover .why-icon {
  background: var(--primary-color);
  color: var(--white);
  transform: rotateY(180deg);
}

.why-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--heading-color);
  margin-bottom: var(--spacer-sm);
}

.why-card-desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
}

/* ============================================================
   27. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translateY(0);
  }
  40%, 43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translateY(-16px);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translateY(-8px);
  }
  90% {
    transform: translateY(-2px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Animation Utilities */
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeInDown { animation: fadeInDown 0.6s ease forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.6s ease forwards; }
.animate-fadeInRight { animation: fadeInRight 0.6s ease forwards; }
.animate-zoomIn { animation: zoomIn 0.6s ease forwards; }
.animate-bounce { animation: bounce 1s ease; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* Scroll-triggered animations */
[data-animate] {
  opacity: 0;
}

[data-animate].animated {
  opacity: 1;
}

/* Delay utilities */
.delay-100 { animation-delay: 100ms !important; }
.delay-200 { animation-delay: 200ms !important; }
.delay-300 { animation-delay: 300ms !important; }
.delay-400 { animation-delay: 400ms !important; }
.delay-500 { animation-delay: 500ms !important; }
.delay-600 { animation-delay: 600ms !important; }
.delay-700 { animation-delay: 700ms !important; }
.delay-800 { animation-delay: 800ms !important; }

/* Transition Utilities */
.transition-all { transition: all var(--transition-base); }
.transition-colors { transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base); }
.transition-transform { transition: transform var(--transition-base); }
.transition-opacity { transition: opacity var(--transition-base); }

/* ============================================================
   28. LANGUAGE TOGGLE (NAVBAR)
   ============================================================ */
.navbar-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--spacer-xs);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--text-color);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.navbar-lang-toggle:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.navbar-lang-toggle .active-lang {
  font-weight: var(--font-weight-bold);
}

/* ============================================================
   29. RTL SUPPORT (URDU)
   ============================================================ */
[dir="rtl"],
.rtl {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .top-bar .container,
.rtl .top-bar .container {
  direction: rtl;
}

[dir="rtl"] .top-bar-info,
.rtl .top-bar-info {
  flex-direction: row-reverse;
}

[dir="rtl"] #mainNavbar .nav-link i,
.rtl #mainNavbar .nav-link i {
  margin-right: 0;
  margin-left: var(--spacer-xs);
}

[dir="rtl"] .search-input,
.rtl .search-input {
  padding-left: 1rem !important;
  padding-right: 2.5rem !important;
}

[dir="rtl"] .search-btn,
.rtl .search-btn {
  left: 4px;
  right: auto;
}

[dir="rtl"] .hero-content,
.rtl .hero-content {
  direction: rtl;
}

[dir="rtl"] .service-cta,
.rtl .service-cta {
  direction: rtl;
}

[dir="rtl"] .footer-title::after,
.rtl .footer-title::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .footer-links li a:hover,
.rtl .footer-links li a:hover {
  padding-left: 0;
  padding-right: 5px;
}

[dir="rtl"] .whatsapp-float,
.rtl .whatsapp-float {
  right: auto;
  left: 24px;
}

[dir="rtl"] .whatsapp-tooltip,
.rtl .whatsapp-tooltip {
  right: auto;
  left: calc(100% + 12px);
}

[dir="rtl"] .back-to-top,
.rtl .back-to-top {
  right: auto;
  left: 28px;
}

[dir="rtl"] .featured-badge,
.rtl .featured-badge {
  left: auto;
  right: 12px;
}

[dir="rtl"] .job-card .featured-badge,
.rtl .job-card .featured-badge {
  right: auto;
  left: 12px;
}

[dir="rtl"] select.form-control,
.rtl select.form-control {
  background-position: left 0.75rem center;
  padding-left: 2.5rem;
  padding-right: 1rem;
}

[dir="rtl"] .password-toggle .toggle-password,
.rtl .password-toggle .toggle-password {
  right: auto;
  left: 1rem;
}

/* ============================================================
   30. DARK MODE - FULL COMPONENT OVERRIDES
   ============================================================ */
[data-theme="dark"] .card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .card-footer {
  background: var(--gray-700);
}

[data-theme="dark"] #mainNavbar.navbar {
  background: var(--gray-900);
  border-bottom: 1px solid var(--gray-700);
}

[data-theme="dark"] #mainNavbar .nav-link {
  color: var(--gray-300);
}

[data-theme="dark"] #mainNavbar .nav-link:hover,
[data-theme="dark"] #mainNavbar .nav-link.active {
  color: var(--primary-light);
  background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] #mainNavbar .dropdown-menu {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

[data-theme="dark"] #mainNavbar .dropdown-item {
  color: var(--gray-300);
}

[data-theme="dark"] #mainNavbar .dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-light);
}

[data-theme="dark"] .search-input {
  background: var(--gray-800);
  border-color: var(--gray-600) !important;
  color: var(--gray-200);
}

[data-theme="dark"] .search-input::placeholder {
  color: var(--gray-500);
}

[data-theme="dark"] .service-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .service-card:hover .service-icon {
  background: var(--primary-light);
}

[data-theme="dark"] .service-icon {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-light);
}

[data-theme="dark"] .business-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .business-avatar {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-light);
}

[data-theme="dark"] .job-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .job-company-logo {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-light);
}

[data-theme="dark"] .news-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .blog-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .sidebar-widget {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .city-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .city-card:hover {
  border-color: var(--primary-light);
}

[data-theme="dark"] .why-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .process-step-circle {
  background: var(--gray-800);
  border-color: var(--primary-light);
}

[data-theme="dark"] .process-step:hover .process-step-circle {
  background: var(--primary-light);
}

[data-theme="dark"] .filter-btn {
  background: var(--gray-800);
  border-color: var(--gray-600);
  color: var(--gray-300);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

[data-theme="dark"] .category-badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-light);
}

[data-theme="dark"] .contact-form-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .contact-info-item .icon-box {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .page-item .page-link {
  background: var(--gray-800);
  border-color: var(--gray-600);
  color: var(--gray-300);
}

[data-theme="dark"] .page-item .page-link:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
}

[data-theme="dark"] .page-item.active .page-link {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

[data-theme="dark"] .mobile-nav {
  background: var(--gray-900);
}

[data-theme="dark"] .demo-credentials {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary-light);
}

[data-theme="dark"] .demo-credentials code {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-light);
}

[data-theme="dark"] .newsletter-form input[type="email"] {
  background: var(--gray-800);
  border-color: var(--gray-600);
  color: var(--gray-200);
}

[data-theme="dark"] .star-rating .text-muted {
  color: var(--gray-600) !important;
}

/* ============================================================
   31. RESPONSIVE BREAKPOINTS (work WITH Bootstrap)
   ============================================================ */

/* ---- lg: 992px - 1200px (Tablet landscape) ---- */
@media (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ---- md: max 991.98px (Tablet) ---- */
@media (max-width: 991.98px) {
  /* Navbar mobile adjustments */
  #mainNavbar.navbar {
    height: auto;
    min-height: var(--navbar-height);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  #mainNavbar .navbar-brand img {
    height: 36px;
  }

  /* Grids - tablet layout */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .jobs-grid {
    grid-template-columns: 1fr;
  }

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

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .process-steps::before {
    display: none;
  }

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

  /* Hero */
  .hero-section {
    min-height: 70vh;
  }

  .hero-stats {
    gap: var(--spacer-xl);
  }

  /* CTA */
  .cta-section .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- sm: max 767.98px (Mobile) ---- */
@media (max-width: 767.98px) {
  /* Top Bar */
  .top-bar-info a:not(:first-child) {
    display: none;
  }

  /* Hero */
  .hero-section {
    min-height: 60vh;
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-sm);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--spacer-lg);
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
  }

  /* Grids - mobile layout */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .business-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacer-md);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacer-md);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--spacer-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacer-xl);
  }

  /* Auth */
  .auth-card {
    padding: var(--spacer-xl);
  }

  /* Breaking Ticker */
  .breaking-news-ticker .container {
    gap: var(--spacer-sm);
  }
}

/* ---- xs: max 575.98px (Small mobile) ---- */
@media (max-width: 575.98px) {
  /* Top bar stack */
  .top-bar .container {
    flex-direction: column;
    height: auto;
    padding-top: var(--spacer-sm);
    padding-bottom: var(--spacer-sm);
    gap: var(--spacer-xs);
  }

  .top-bar-actions {
    display: none;
  }

  /* Navbar brand */
  .brand-text {
    font-size: var(--font-size-md);
  }

  /* Grids - small mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Business card stack */
  .business-card {
    flex-direction: column;
    text-align: center;
  }

  .business-avatar {
    margin: 0 auto;
  }

  .business-actions {
    justify-content: center;
  }

  .business-meta {
    justify-content: center;
  }

  /* Job card */
  .job-header {
    flex-direction: column;
  }

  .job-footer {
    flex-direction: column;
    gap: var(--spacer-sm);
    align-items: flex-start;
  }

  /* City cards */
  .city-card {
    padding: var(--spacer-lg) var(--spacer-md);
  }

  .city-card-icon {
    font-size: 2rem;
  }

  /* Stats */
  .stat-number {
    font-size: var(--font-size-2xl);
  }

  /* WhatsApp */
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .whatsapp-tooltip {
    display: none;
  }

  /* Back to top */
  .back-to-top {
    width: 38px;
    height: 38px;
    bottom: 84px;
    right: 16px;
    font-size: 0.9rem;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  /* Auth */
  .auth-page {
    padding: var(--spacer-xl) var(--spacer-md);
  }

  .auth-card {
    padding: var(--spacer-lg);
    border-radius: var(--radius-lg);
  }

  /* Filter */
  .filter-buttons {
    gap: var(--spacer-xs);
  }

  .filter-btn {
    padding: 0.4rem 0.875rem;
    font-size: var(--font-size-xs);
  }

  /* Pagination */
  .page-item .page-link {
    min-width: 34px;
    height: 34px;
    font-size: var(--font-size-xs);
  }

  /* Section titles */
  .section-title {
    font-size: var(--font-size-2xl);
  }

  /* Footer */
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* ============================================================
   32. PRINT STYLES
   ============================================================ */
@media print {
  /* Hide non-essential elements */
  .top-bar,
  .navbar,
  .whatsapp-float,
  .back-to-top,
  .breaking-news-ticker,
  .site-footer,
  .footer-bottom,
  .btn,
  .filter-buttons,
  .pagination,
  .hero-section .hero-overlay,
  .cta-section,
  .theme-toggle,
  .navbar-lang-toggle,
  .search-box,
  .nav-right {
    display: none !important;
  }

  /* Reset layout */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }

  .hero-section {
    margin-top: 0 !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  .hero-content {
    color: black !important;
    padding: 0 !important;
  }

  .hero-title,
  .hero-subtitle,
  .hero-badge {
    color: black !important;
    background: none !important;
    border: none !important;
  }

  .card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  .card:hover {
    transform: none !important;
  }

  a {
    color: black !important;
    text-decoration: underline !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }

  img {
    max-width: 100% !important;
  }

  /* Remove shadows and backgrounds */
  * {
    box-shadow: none !important;
  }

  h1, h2, h3, h4, h5, h6 {
    color: black !important;
    page-break-after: avoid;
  }

  p, li {
    orphans: 3;
    widows: 3;
  }
}

/* ============================================================
   33. UTILITY OVERRIDES & MISC
   ============================================================ */

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, var(--gray-700) 25%, var(--gray-600) 50%, var(--gray-700) 75%);
  background-size: 200% 100%;
}

/* Toast / Alert - enhance Bootstrap alerts */
.alert {
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
}

.alert-success {
  background: var(--success-light);
  color: #065F46;
  border-color: #A7F3D0;
}

.alert-danger {
  background: var(--danger-light);
  color: #991B1B;
  border-color: #FECACA;
}

.alert-info {
  background: var(--info-light);
  color: #1E40AF;
  border-color: #BFDBFE;
}

.alert-warning {
  background: var(--warning-light);
  color: #92400E;
  border-color: #FDE68A;
}

[data-theme="dark"] .alert-success {
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .alert-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .alert-info {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
  border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .alert-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
  border-color: rgba(245, 158, 11, 0.3);
}

/* Badge */
.badge-primary {
  background: var(--primary-color);
  color: var(--white);
}

.badge-secondary {
  background: var(--secondary-color);
  color: var(--gray-900);
}

.badge-success {
  background: var(--success-color);
  color: var(--white);
}

.badge-danger {
  background: var(--danger-color);
  color: var(--white);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--spacer-xl) 0;
}

/* Truncate */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Image cover utility */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Gradient overlays for variety */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
}

.gradient-mixed {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pakistani flag accent line */
.pak-accent {
  height: 4px;
  background: linear-gradient(90deg, #01411C 0%, #01411C 25%, var(--white) 25%, var(--white) 50%, #01411C 50%, #01411C 100%);
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  gap: var(--spacer-xs);
  margin-bottom: var(--spacer-xl);
  overflow-x: auto;
}

.tab-nav-link {
  padding: var(--spacer-sm) var(--spacer-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.tab-nav-link:hover,
.tab-nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Responsive video */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tooltip */
.tooltip-custom {
  position: relative;
}

.tooltip-custom::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  color: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: var(--z-tooltip);
}

.tooltip-custom:hover::after {
  opacity: 1;
  visibility: visible;
}

/* End of stylesheet */

/* ============================================================
   ADDITIONAL: AI CHATBOT POPUP
   ============================================================ */
.ai-chatbot-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-chatbot);
}

.ai-chatbot-popup {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 350px;
  max-height: 500px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  animation: chatbotSlideUp 0.3s ease;
}

[data-theme="dark"] .ai-chatbot-popup {
  background: var(--gray-800);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

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

.chatbot-popup-header {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: var(--white);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-header-info i {
  font-size: 1.3rem;
}

.chatbot-header-info strong {
  display: block;
  font-size: 0.95rem;
}

.chatbot-header-info small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
}

.chatbot-close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.chatbot-close-btn:hover {
  background: rgba(255,255,255,0.35);
}

.chatbot-popup-body {
  padding: 16px;
  overflow-y: auto;
  max-height: 400px;
  flex: 1;
}

.chatbot-message {
  margin-bottom: 12px;
}

.chatbot-message.bot p {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-color);
  padding: 10px 14px;
  border-radius: 12px 12px 12px 4px;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

[data-theme="dark"] .chatbot-message.bot p {
  background: rgba(99, 102, 241, 0.15);
}

.chatbot-message.user p {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 12px 12px 4px 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 0 0 auto;
  max-width: 85%;
  margin-left: auto;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.suggestion-chip {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: #6366F1;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.suggestion-chip:hover {
  background: #6366F1;
  color: var(--white);
  border-color: #6366F1;
}

[data-theme="dark"] .suggestion-chip {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}

.chatbot-answers {
  margin-bottom: 8px;
}

.chatbot-input-area {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.chatbot-input-area input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--bg-light);
  color: var(--text-color);
  outline: none;
}

.chatbot-input-area input:focus {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.chatbot-input-area button {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.chatbot-input-area button:hover {
  transform: scale(1.08);
}

/* ============================================================
   ADDITIONAL: MOBILE SEARCH BUTTON
   ============================================================ */
.mobile-search-btn {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 1.2rem;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.mobile-search-btn:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

/* ============================================================
   ADDITIONAL: FOOTER HEADING COLOR FIX
   ============================================================ */
.footer-heading {
  color: var(--white) !important;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacer-lg);
  position: relative;
  padding-bottom: var(--spacer-sm);
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--secondary-color);
  border-radius: var(--radius-full);
}

.footer-about {
  color: #90A4AE;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.footer-bottom-link {
  color: #78909C;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-bottom-link:hover {
  color: var(--secondary-color);
}

.footer-newsletter .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-size: var(--font-size-sm);
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255,255,255,0.4);
}

.footer-newsletter .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--secondary-color);
  box-shadow: none;
  color: var(--white);
}

/* Chatbot popup responsive */
@media (max-width: 420px) {
  .ai-chatbot-popup {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 80px;
  }
}
