:root {
  --primary: #2952e3;
  --primary-dark: #1e3fb8;
  --accent: #00c9a7;
  --dark: #0f172a;
  --gray-bg: #f6f8fc;
  --border: #e6e9f0;
  --text-muted: #64748b;
}

body {
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-bg);
  color: #1e293b;
}

a { text-decoration: none; }

/* ---------- Navbar ---------- */
.navbar {
  background: #000000 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.site-logo {
  height: 48px;
  width: auto;
  display: block;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 10px;
}
.footer-logo {
  height: 52px;
  width: auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 10px;
  display: block;
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.45rem;
  color: #ffffff !important;
  letter-spacing: -0.01em;
}
.navbar-brand span { color: var(--accent); }
.navbar-brand:hover { color: #ffffff !important; }
.navbar .nav-link {
  font-weight: 500;
  color: #d1d5db !important;
  transition: all 0.15s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffffff !important;
}
.navbar .dropdown-menu {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  padding: 6px 0;
}
.navbar .dropdown-item {
  color: #d1d5db;
  font-weight: 500;
  padding: 8px 18px;
  transition: all 0.15s ease;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: #1f2937;
  color: #ffffff;
}
.navbar .dropdown-toggle::after {
  vertical-align: 0.15em;
  border-top-color: #9ca3af;
}
.navbar .btn-outline-primary {
  color: #d1d5db;
  border-color: #6b7280;
  font-weight: 600;
}
.navbar .btn-outline-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25) !important;
}
.navbar-toggler-icon {
  filter: invert(1);
}
.nav-link {
  font-weight: 500;
  color: #334155 !important;
}
.nav-link:hover { color: var(--primary) !important; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: none;
}
.btn-accent:hover { background: #00b092; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #4f6ef7 60%, var(--accent) 130%);
  color: #fff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-weight: 800;
  font-size: 2.6rem;
}
.hero p.lead {
  font-size: 1.15rem;
  opacity: 0.92;
}
.hero-search {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}
.hero-stats {
  margin-top: 40px;
}
.hero-stats .stat-num {
  font-size: 1.8rem;
  font-weight: 800;
}
.hero-stats .stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ---------- Cards ---------- */
.job-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.2s ease;
  height: 100%;
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  border-color: transparent;
}
.job-card .company-badge {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}
.job-card .job-title {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.05rem;
}
.job-card .job-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.badge-type {
  background: #eef2ff;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 20px;
}
.badge-salary {
  background: #ecfdf5;
  color: #059669;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 20px;
}

/* ---------- Section headers ---------- */
.section-title {
  font-weight: 800;
  color: var(--dark);
}
.section-sub {
  color: var(--text-muted);
}

/* ---------- Services ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  height: 100%;
  padding: 24px;
  transition: all 0.2s ease;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
}
.service-card-icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 12px;
  color: var(--primary);
  display: inline-flex;
  font-size: 1.35rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}
.service-category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  height: 100%;
  overflow: hidden;
  transition: all 0.2s ease;
}
.service-category-card:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
}
.service-category-image {
  display: block;
  height: 220px;
  object-fit: cover;
  width: 100%;
}
.service-page-hero {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  padding: 32px;
}
.service-page-image {
  display: block;
  margin: 0 auto;
  max-height: 260px;
  max-width: 100%;
}

/* ---------- Auth pages ---------- */
.auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 15px;
}
.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(15,23,42,0.08);
  padding: 40px;
  max-width: 480px;
  width: 100%;
}
.role-toggle .btn {
  border-radius: 10px !important;
}

/* ---------- Dashboard ---------- */
.dash-sidebar {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 20px;
}
.dash-sidebar .nav-link {
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 4px;
  color: #334155 !important;
}
.dash-sidebar .nav-link.active {
  background: var(--primary);
  color: #fff !important;
}
.stat-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 24px;
}
.stat-card .stat-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* ---------- Misc ---------- */
.card-form {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 30px;
}
footer.site-footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 40px 0 20px;
  margin-top: 60px;
}
footer.site-footer a { color: #cbd5e1; }
footer.site-footer a:hover { color: #fff; }

.table thead th {
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.status-Pending { background: #fef9c3; color: #92600a; }
.status-Reviewed { background: #dbeafe; color: #1e40af; }
.status-Shortlisted { background: #dcfce7; color: #166534; }
.status-Rejected { background: #fee2e2; color: #991b1b; }
.status-Hired { background: #ede9fe; color: #5b21b6; }

/* ---------- Blogs ---------- */
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  transition: all 0.2s ease;
}
.blog-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: transparent;
}
.blog-card h2 a { color: var(--dark); }
.blog-card h2 a:hover { color: var(--primary); }
.blog-tag {
  background: #eef2ff;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
}
.pagination .page-link { color: var(--primary); border-radius: 8px; margin: 0 4px; }
.pagination .page-item.disabled .page-link { color: var(--text-muted); }
