/* ============================================================================
   GOVERNMENT RECRUITMENT INTELLIGENCE PLATFORM — RED & WHITE LIGHT MODE SYSTEM
   Aesthetic: Ultra-Crisp Light Mode, High Contrast Slate, Crimson/Ruby Red Accents
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Core Light Palette */
  --bg-main: #ffffff;
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-subtle-alt: #f8fafc;

  /* Red Brand Tokens */
  --primary-red: #dc2626;
  --primary-red-hover: #b91c1c;
  --primary-red-dark: #991b1b;
  --primary-red-light: #ef4444;
  --primary-red-glow: rgba(220, 38, 38, 0.16);
  --bg-red-subtle: #fef2f2;
  --bg-red-light: #fee2e2;
  --border-red: #fecaca;
  --border-red-active: #dc2626;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-glass: #e2e8f0;
  --border-accent: rgba(220, 38, 38, 0.3);

  /* Functional Accents */
  --emerald: #059669;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;
  --purple: #7c3aed;
  --purple-bg: #f5f3ff;
  --purple-border: #ddd6fe;

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-white: #ffffff;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 18px 36px -6px rgba(220, 38, 38, 0.12), 0 6px 14px -3px rgba(15, 23, 42, 0.05);
  --shadow-red-glow: 0 0 25px rgba(220, 38, 38, 0.2);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  zoom: 0.9; /* Exact 90% canvas scaling replicating Chrome 90% browser zoom */
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 8%, rgba(220, 38, 38, 0.035) 0%, transparent 40%),
    radial-gradient(circle at 90% 12%, rgba(220, 38, 38, 0.025) 0%, transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(37, 99, 235, 0.018) 0%, transparent 50%);
  background-attachment: fixed;
}

@media (max-width: 767px) {
  body {
    zoom: 1; /* Standard touch-friendly scale for mobile screens */
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================================
   1. BREAKING GAZETTES LIVE TICKER
   ============================================================================ */
.breaking-ticker {
  background: linear-gradient(90deg, #b91c1c 0%, #dc2626 50%, #991b1b 100%);
  color: var(--text-white);
  padding: 0.45rem 0;
  position: relative;
  overflow: hidden;
  z-index: 101;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.25);
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  color: var(--primary-red-dark);
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ticker-marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}

.ticker-marquee:hover .ticker-content {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-block;
  margin-right: 2.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.ticker-item:hover {
  opacity: 1;
  text-decoration: underline;
}

.ticker-item strong {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-right: 0.35rem;
  font-weight: 700;
}

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

/* Pulse Dot */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-red);
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  animation: pulse-red 1.8s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ============================================================================
   2. STICKY NAVBAR (RED & WHITE LIGHT)
   ============================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--bg-red-subtle), var(--bg-red-light));
  border: 1px solid var(--border-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.08);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-title span {
  color: var(--primary-red);
}

.brand-badge {
  font-size: 0.675rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-red-subtle);
  color: var(--primary-red-dark);
  border: 1px solid var(--border-red);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  margin-left: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.24s ease;
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Search Icon Button & Hamburger Toggle */
.btn-icon-mobile {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
  flex-shrink: 0;
}

.btn-icon-mobile:hover {
  background: var(--bg-red-subtle);
  color: var(--primary-red);
  border-color: var(--border-red);
}

.nav-hamburger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.nav-hamburger-btn:hover {
  border-color: var(--primary-red);
  background: var(--bg-red-subtle);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
}

.nav-hamburger-btn.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--primary-red);
}

.nav-hamburger-btn.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-hamburger-btn.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--primary-red);
}

/* Mobile Offcanvas Drawer & Backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

body.drawer-locked {
  overflow: hidden !important;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(85vw, 360px);
  height: 100%;
  background: #ffffff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.mobile-drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-drawer-close-btn:hover {
  background: var(--bg-red-subtle);
  color: var(--primary-red);
  border-color: var(--border-red);
}

.mobile-drawer-search {
  padding: 1rem 1.25rem;
  background: var(--bg-subtle-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mobile-search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.mobile-search-input {
  width: 100%;
  padding: 0.65rem 3.5rem 0.65rem 2.4rem !important;
  font-size: 0.875rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.mobile-search-submit {
  position: absolute;
  right: 0.35rem;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.75rem !important;
}

.mobile-drawer-body {
  padding: 1.25rem;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-group-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.925rem;
  text-decoration: none;
  transition: var(--transition-fast);
  background: transparent;
}

.mobile-nav-item:hover {
  background: var(--bg-subtle);
  color: var(--primary-red);
}

.mobile-nav-item.active {
  background: var(--bg-red-subtle);
  color: var(--primary-red);
  border: 1px solid var(--border-red);
  font-weight: 700;
}

.mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: inherit;
  flex-shrink: 0;
}

.mobile-nav-item.active .mobile-nav-icon {
  background: var(--primary-red);
  color: #ffffff;
}

.mobile-nav-text {
  flex: 1;
}

.mobile-nav-chevron {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
}

.mobile-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mobile-quick-chip {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.mobile-quick-chip:hover {
  background: var(--bg-red-subtle);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.mobile-drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle-alt);
}

/* ============================================================================
   3. BUTTONS & UI PRIMITIVES
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ef4444 0%, var(--primary-red) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
  color: var(--text-white);
}

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

.btn-outline {
  background: #ffffff;
  color: var(--primary-red);
  border: 1.5px solid var(--border-red);
}

.btn-outline:hover {
  background: var(--bg-red-subtle);
  border-color: var(--primary-red);
  color: var(--primary-red-dark);
  transform: translateY(-2px);
}

.btn-glass {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-glass:hover {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
  color: var(--primary-red);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--bg-red-subtle);
  color: var(--primary-red-dark);
  border: 1px solid var(--border-red);
}

.btn-accent:hover {
  background: var(--bg-red-light);
  color: var(--primary-red);
  transform: translateY(-2px);
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

/* Badges */
.badge-org {
  display: inline-flex;
  align-items: center;
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  background: var(--bg-red-subtle);
  color: var(--primary-red);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-xs);
}

.badge-urgent {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
  border-radius: var(--radius-xs);
}

.badge-active {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-xs);
}

.badge-closed {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-xs);
}

/* ============================================================================
   4. HERO CAROUSEL SECTION
   ============================================================================ */
.hero-carousel-section {
  padding: 2.5rem 0 3rem;
}

.carousel-container {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  padding: 3rem 3.5rem;
  align-items: center;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-red);
  background: var(--bg-red-subtle);
  border: 1px solid var(--border-red);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-xs);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.slide-title span {
  color: var(--primary-red);
}

.slide-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.slide-card-preview {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.slide-card-preview:hover {
  border-color: var(--border-red);
  box-shadow: var(--shadow-md);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.preview-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.preview-label {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.2rem;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.carousel-arrow:hover {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow.prev { left: 1.25rem; }
.carousel-arrow.next { right: 1.25rem; }

/* ============================================================================
   5. COMPREHENSIVE JOB CARDS GRID (EXHAUSTIVE DETAILS)
   ============================================================================ */
.section-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--primary-red);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.job-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.job-card > div:first-child {
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.job-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
}

.job-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.job-advt-num {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 6-Item Data Matrix */
.job-metrics-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.85rem;
  background: var(--bg-subtle-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  margin-bottom: 1rem;
}

.metric-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.metric-cell-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.metric-cell-val {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  min-height: 2.3em;
}

.job-dates-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-red-subtle);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-sm);
  margin-top: auto;
  margin-bottom: 0.85rem;
}

.job-dates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.job-dates-label {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.job-dates-val {
  font-size: 0.825rem;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.job-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  box-sizing: border-box;
}

.job-card-actions .btn-card-main {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  justify-content: center;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

.job-card-actions .job-card-secondary-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.job-card-actions .btn-card-sub {
  width: 100%;
  padding: 0.525rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Fallback for legacy card buttons */
.job-card-actions > .btn:first-child:not(.btn-card-sub) {
  width: 100%;
  justify-content: center;
}

/* ============================================================================
   6. SEARCH & FILTER PANELS
   ============================================================================ */
.filter-panel {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

.filter-grid-6 {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

.filter-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

/* Responsive Collapsible Filter Panel System */
.filter-form-responsive {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.filter-top-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.filter-search-wrap {
  flex: 1;
}

.filter-actions-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
}

.filter-toggle-btn.is-active {
  background: var(--bg-red-subtle);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.filter-collapsible {
  display: contents;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* ============================================================================
   7. COMMISSION HUBS & EXAM HUBS
   ============================================================================ */
.commissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.commission-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: block;
}

.commission-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.commission-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  background: var(--bg-red-subtle);
  border: 1px solid var(--border-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-red);
}

.commission-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary-red);
  stroke: currentColor;
}

.metric-cell-label svg {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  stroke: currentColor;
  flex-shrink: 0;
}

.job-dates-header svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  vertical-align: middle;
  display: inline-block;
}

.btn-card-sub svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  vertical-align: middle;
  margin-right: 0.25rem;
  flex-shrink: 0;
}

.commission-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.commission-count {
  font-size: 0.8rem;
  color: var(--primary-red);
  font-weight: 700;
}

/* Exam Hub Cards */
.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.exam-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
}

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

/* ============================================================================
   8. DETAIL PAGES & DOSSIERS (RECRUITMENT & EXAM)
   ============================================================================ */
.dossier-hero {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.dossier-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dossier-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.dossier-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 900px;
  margin-bottom: 2rem;
}

/* KPI Cards Row */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.kpi-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-top: 0.35rem;
}

/* Structured Content Boxes */
.content-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.content-box-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.data-table th {
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-subtle);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: var(--bg-red-subtle);
}

/* Tabs */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--primary-red);
  background: var(--bg-red-subtle);
}

.tab-btn.active {
  background: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ============================================================================
   9. MULTI-PAGE ADMIN SUITE & SIDEBAR ARCHITECTURE
   ============================================================================ */
.admin-shell {
  display: flex;
  min-height: calc(100vh - 72px);
  background-color: var(--bg-body);
}

.admin-sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.admin-sidebar-nav {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.admin-nav-item:hover {
  background: var(--bg-red-subtle);
  color: var(--primary-red);
}

.admin-nav-item.active {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.admin-nav-item.active span.admin-nav-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.admin-nav-badge {
  font-size: 0.725rem;
  font-weight: 800;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
}

.admin-main-content {
  flex: 1;
  padding: 2.25rem 2.5rem;
  overflow-y: auto;
}

.admin-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-page-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-close:hover {
  color: var(--primary-red);
}

/* Auth Cards */
.auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.auth-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-emblem {
  width: 56px;
  height: 56px;
  background: var(--bg-red-subtle);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.admin-terminal-window {
  background: #0f172a;
  color: #38bdf8;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.825rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid #1e293b;
  max-height: 280px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ============================================================================
   10. FOOTER
   ============================================================================ */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  margin-top: 4rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.02);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.65;
  margin-top: 0.75rem;
  max-width: 380px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--primary-red);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================================
   11. COMPREHENSIVE RESPONSIVE SYSTEM (MULTI-TIER BREAKPOINTS)
   ============================================================================ */

/* Table Scroll Wrapper & Mobile Hint */
.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.table-scroll-hint {
  display: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  padding: 0.25rem 0.5rem 0.5rem;
  font-weight: 600;
}

/* ----------------------------------------------------------------------------
   A. LAPTOPS & SMALL DESKTOPS (<= 1200px)
   ---------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 1.5rem;
  }
  .job-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  .commissions-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .filter-grid {
    grid-template-columns: 1.8fr 1fr 1fr 1fr auto;
    gap: 0.75rem;
  }
}

/* ----------------------------------------------------------------------------
   B. TABLETS LANDSCAPE (<= 1024px)
   ---------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.85rem;
  }
  .carousel-slide {
    grid-template-columns: 1fr;
    padding: 2.25rem 2rem;
    gap: 2rem;
  }
  .slide-title {
    font-size: 2.1rem;
  }
  .filter-grid, .filter-grid-6 {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .kpi-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* ----------------------------------------------------------------------------
   C. TABLETS PORTRAIT & LARGE PHONES (<= 768px)
   ---------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Navbar & Drawer Header */
  .navbar {
    height: 64px;
  }
  .nav-links, .nav-desktop-search, .nav-desktop-cta {
    display: none !important;
  }
  .btn-icon-mobile, .nav-hamburger-btn {
    display: flex !important;
  }

  /* Core Layout Grids */
  .container {
    padding: 0 1rem;
  }
  .job-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .commissions-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 0.85rem;
  }
  .exam-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  /* Hero Section */
  .hero-carousel-section {
    padding: 1.25rem 0 2rem;
  }
  .carousel-slide {
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
  }
  .slide-title {
    font-size: clamp(1.4rem, 5vw, 1.85rem);
    margin-bottom: 0.75rem;
  }
  .slide-desc {
    font-size: 0.925rem;
    margin-bottom: 1.25rem;
  }
  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .carousel-arrow.prev { left: 0.5rem; }
  .carousel-arrow.next { right: 0.5rem; }

  /* Headings & Section Wrappers */
  .section-title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .section-title-wrap > .btn {
    width: 100%;
    justify-content: center;
  }
  .section-title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }
  .dossier-hero {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
  }
  .dossier-title {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
  }
  .content-box {
    padding: 1.35rem;
    margin-bottom: 1.5rem;
  }

  /* Responsive Collapsible Filter Panel */
  .filter-panel {
    padding: 1rem 1.15rem;
    margin-bottom: 1.75rem;
  }
  .filter-grid, .filter-grid-6, .filter-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  .filter-toggle-btn {
    display: inline-flex !important;
  }
  .filter-collapsible {
    display: none;
  }
  .filter-collapsible.is-open {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
  }

  /* Horizontal Tab Navigation */
  .tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
  }
  .tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }

  /* Hybrid Adaptive Tables -> Stacked Mobile Cards */
  .table-scroll-hint {
    display: block;
  }

  .responsive-adaptive-table thead {
    display: none;
  }

  .responsive-adaptive-table,
  .responsive-adaptive-table tbody,
  .responsive-adaptive-table tr,
  .responsive-adaptive-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .responsive-adaptive-table tr {
    background: #ffffff;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
  }

  .responsive-adaptive-table tr:hover {
    border-color: var(--border-red);
    box-shadow: var(--shadow-md);
  }

  .responsive-adaptive-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    text-align: right;
  }

  .responsive-adaptive-table td::before {
    content: attr(data-label);
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    flex-shrink: 0;
  }

  .responsive-adaptive-table td:first-child {
    padding-top: 0;
    font-size: 1.05rem;
    text-align: left;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .responsive-adaptive-table td:first-child::before {
    display: none;
  }

  .responsive-adaptive-table td:last-child {
    border-bottom: none;
    padding-top: 0.85rem;
    padding-bottom: 0;
    display: block;
    text-align: center;
  }

  .responsive-adaptive-table td:last-child::before {
    display: none;
  }

  .responsive-adaptive-table td:last-child .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* ----------------------------------------------------------------------------
   D. STANDARD SMARTPHONES (<= 640px)
   ---------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Detail Page Specification Table Adaptive Mode */
  .job-article-spec-table thead {
    display: none;
  }
  .job-article-spec-table, 
  .job-article-spec-table tbody, 
  .job-article-spec-table tr, 
  .job-article-spec-table td {
    display: block;
    width: 100% !important;
  }
  .job-article-spec-table tr {
    margin-bottom: 0.85rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: #ffffff;
    overflow: hidden;
  }
  .job-article-spec-table td {
    padding: 0.55rem 0.85rem;
    box-sizing: border-box;
  }
  .job-article-spec-table td:nth-child(odd) {
    background: var(--bg-subtle);
    font-size: 0.725rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: none;
    padding-top: 0.65rem;
  }
  .job-article-spec-table td:nth-child(even) {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    word-break: break-word;
  }

  .job-article-intro-card {
    padding: 1.5rem 1.25rem;
  }
  .job-article-section {
    padding: 1.5rem 1.25rem;
  }
  .job-article-main-title {
    font-size: 1.45rem;
  }
  .job-article-heading {
    font-size: 1.2rem;
  }

  /* Footer 1-Column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* ----------------------------------------------------------------------------
   E. COMPACT SMARTPHONES (<= 480px)
   ---------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding: 0 0.85rem;
  }

  /* Navbar Brand */
  .brand-title {
    font-size: 1.25rem !important;
  }
  .nav-brand img {
    width: 40px !important;
    height: 40px !important;
  }

  /* Breaking Ticker */
  .ticker-label {
    font-size: 0.65rem;
    padding: 0.18rem 0.45rem;
    letter-spacing: 0.04em;
  }
  .ticker-wrap {
    gap: 0.6rem;
  }
  .ticker-item {
    font-size: 0.8rem;
    margin-right: 1.75rem;
  }

  /* Job Cards */
  .job-card {
    padding: 1.15rem;
  }
  .job-title {
    font-size: 1.05rem;
    min-height: auto;
  }
  .job-metrics-matrix {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.65rem;
    padding: 0.75rem;
  }
  .metric-cell-val {
    font-size: 0.8rem;
  }
  .job-card-actions .job-card-secondary-actions {
    grid-template-columns: 1fr;
  }
  .job-dates-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .job-dates-val {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  /* Hero Actions */
  .slide-actions {
    flex-direction: column;
    width: 100%;
  }
  .slide-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Commission Cards */
  .commissions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem;
  }
  .commission-card {
    padding: 1.15rem 0.75rem;
  }
  .commission-name {
    font-size: 0.95rem;
  }

  /* Backlink Partner Card */
  .backlink-partner-card {
    padding: 1.35rem;
  }
  .backlink-partner-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .backlink-partner-action {
    flex-direction: column;
    width: 100%;
  }
  .backlink-partner-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ----------------------------------------------------------------------------
   F. ULTRA-SMALL PHONES (<= 360px)
   ---------------------------------------------------------------------------- */
@media (max-width: 360px) {
  .container {
    padding: 0 0.65rem;
  }
  .job-metrics-matrix {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .commissions-grid {
    grid-template-columns: 1fr !important;
  }
  .kpi-row {
    grid-template-columns: 1fr;
  }
  .slide-title {
    font-size: 1.35rem;
  }
}

/* ============================================================================
   15. EMBEDDED JOB BLOG ARTICLES & SEO GUIDES
   ============================================================================ */
.job-article-wrapper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.job-article-intro-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.job-article-intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-red), #b91c1c);
}

.job-article-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-red);
  background: var(--bg-red-subtle);
  border: 1px solid var(--border-red);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.job-article-main-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.job-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.job-article-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.job-article-section {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.job-article-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--bg-red-light);
  letter-spacing: -0.01em;
}

.job-article-subheading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}

.job-article-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.job-article-callout {
  background: var(--bg-subtle);
  border-left: 4px solid var(--primary-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem;
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 1.25rem 0;
}

.job-article-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.job-article-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.job-article-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 800;
}

.job-article-ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 1rem 0;
}

.job-article-selection-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.job-selection-step {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-red);
  background: #ffffff;
  border: 1px solid var(--border-red);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.job-selection-step strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.job-selection-step p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.job-article-faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-article-faq-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.job-article-table-responsive {
  overflow-x: auto;
}

.job-article-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.job-article-spec-table td {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.job-article-spec-table tr:nth-child(even) {
  background: var(--bg-subtle);
}

/* ============================================================================
   16. BACKLINK VERIFICATION PARTNER CARD (jobrecruitment.in)
   ============================================================================ */
.backlink-partner-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
  position: relative;
  overflow: hidden;
  border: 1px solid #334155;
}

.backlink-partner-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(220, 38, 38, 0.15);
  border-radius: 50%;
  filter: blur(40px);
}

.backlink-partner-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.backlink-partner-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.backlink-partner-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.backlink-partner-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.backlink-partner-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.backlink-partner-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.backlink-partner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.backlink-partner-btn:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
  color: #ffffff;
}

.backlink-partner-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}
