/**
 * AlertBaba Pro - Theme Stylesheet
 * Fully Responsive, Modern, High CTR Ad-Ready Job & Sarkari Portal
 * Enhanced with Dark Mode, Countdown Timer, Selection Stepper, FAB & Lead Capture Modal
 */

/* ==========================================================================
   1. Typography & Global Elements
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ab-font-sans);
  color: var(--ab-text-main);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.1rem; }

p {
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1rem;
}

.ab-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--ab-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ab-badge-primary { background: #dbeafe; color: #1e40af; }
.ab-badge-success { background: #d1fae5; color: #065f46; }
.ab-badge-warning { background: #fef3c7; color: #92400e; }
.ab-badge-danger  { background: #fee2e2; color: #991b1b; }
.ab-badge-orange  { background: #ffedd5; color: #c2410c; }
.ab-badge-purple  { background: #f3e8ff; color: #6b21a8; }
.ab-badge-dark    { background: #0f172a; color: #f8fafc; }

.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--ab-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  text-decoration: none !important;
}

.ab-btn-primary {
  background: var(--ab-primary);
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(15, 76, 129, 0.25);
}
.ab-btn-primary:hover {
  background: var(--ab-primary-dark);
  transform: translateY(-1px);
}

.ab-btn-accent {
  background: var(--ab-accent);
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(249, 115, 22, 0.25);
}
.ab-btn-accent:hover {
  background: var(--ab-accent-hover);
  transform: translateY(-1px);
}

.ab-btn-outline {
  background: var(--ab-bg-card);
  color: var(--ab-primary) !important;
  border-color: var(--ab-border);
}
.ab-btn-outline:hover {
  background: var(--ab-primary-subtle);
  border-color: var(--ab-primary-light);
}

.ab-btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
}
.ab-btn-whatsapp:hover {
  background: #1eb857;
}

.ab-btn-telegram {
  background: #0088cc;
  color: #ffffff !important;
}
.ab-btn-telegram:hover {
  background: #0077b5;
}

/* ==========================================================================
   2. Top Bar & Alert Ticker
   ========================================================================== */
.ab-topbar {
  background: #091e30;
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ab-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ab-ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ab-ticker-label {
  background: var(--ab-accent);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--ab-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  animation: ab-blink 2s infinite;
}

@keyframes ab-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.ab-ticker-content {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f1f5f9;
}
.ab-ticker-content a {
  color: #f8fafc;
  font-weight: 600;
}
.ab-ticker-content a:hover {
  color: #fb923c;
  text-decoration: underline;
}

.ab-topbar-social {
  display: none;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .ab-topbar-social {
    display: flex;
  }
}
.ab-topbar-social a {
  color: #94a3b8;
  font-size: 0.775rem;
  font-weight: 600;
}
.ab-topbar-social a:hover {
  color: #ffffff;
}

/* ==========================================================================
   3. Main Header & Navigation
   ========================================================================== */
.ab-header {
  background: var(--ab-bg-card);
  border-bottom: 2px solid var(--ab-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--ab-shadow-sm);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.ab-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.ab-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
}

.ab-brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0f4c81, #f97316);
  border-radius: var(--ab-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
}

.ab-brand-text {
  display: flex;
  flex-direction: column;
}

.ab-brand-name {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ab-primary);
  line-height: 1.1;
}
.ab-brand-name span {
  color: var(--ab-accent);
}

.ab-brand-tagline {
  font-size: 0.68rem;
  color: var(--ab-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Nav Menu */
.ab-nav-desktop {
  display: none;
}
@media (min-width: 992px) {
  .ab-nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.ab-nav-list {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.ab-nav-list li a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ab-text-main);
  border-radius: var(--ab-radius-sm);
  transition: all 0.18s ease;
}
.ab-nav-list li a:hover,
.ab-nav-list li.current-menu-item a {
  color: var(--ab-primary);
  background: var(--ab-primary-subtle);
}

.ab-nav-badge {
  background: var(--ab-accent);
  color: #ffffff;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--ab-radius-full);
  margin-left: 0.25rem;
  font-weight: 800;
}

/* Mobile Toggle & Buttons */
.ab-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--ab-radius-md);
  border: 1px solid var(--ab-border);
  background: var(--ab-bg-card);
  cursor: pointer;
  color: var(--ab-text-main);
  font-size: 1rem;
}
@media (min-width: 992px) {
  .ab-mobile-toggle#ab-mobile-toggle {
    display: none;
  }
}

.hidden-xs {
  display: none;
}
@media (min-width: 640px) {
  .hidden-xs {
    display: inline;
  }
}

/* Off-canvas mobile menu */
.ab-mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: var(--ab-bg-card);
  z-index: 10000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 25px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.ab-mobile-drawer.active {
  right: 0;
}

.ab-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.ab-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.ab-drawer-header {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ab-border);
}
.ab-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ab-text-muted);
}

.ab-drawer-body {
  padding: 1.25rem;
  flex: 1;
}

.ab-drawer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ab-drawer-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ab-text-main);
  border-bottom: 1px solid var(--ab-border);
}

/* ==========================================================================
   4. High-CTR Ad Placement Zones
   ========================================================================== */
.ab-ad-slot {
  margin: 1.25rem 0;
  text-align: center;
  position: relative;
  clear: both;
}

.ab-ad-inner {
  display: inline-block;
  max-width: 100%;
  background: var(--ab-bg-card);
  border: 1px dashed var(--ab-border);
  border-radius: var(--ab-radius-sm);
  padding: 0.5rem;
  position: relative;
}

.ab-ad-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ab-text-light);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.ab-ad-header {
  background: var(--ab-bg-card);
  border-bottom: 1px solid var(--ab-border);
  padding: 0.65rem 0;
}

/* Mobile Sticky Bottom Floating Bar Ad */
.ab-floating-ad-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ab-bg-card);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
  padding: 0.4rem;
  z-index: 999;
  text-align: center;
  border-top: 1px solid var(--ab-border);
}
.ab-floating-ad-close {
  position: absolute;
  top: -24px;
  right: 12px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  text-transform: uppercase;
}

/* ==========================================================================
   5. Hero Section with Live Search & Fast Filter Badges
   ========================================================================== */
.ab-hero {
  background: linear-gradient(135deg, #091e30 0%, #0f4c81 60%, #1e3a8a 100%);
  color: #ffffff;
  padding: 2.75rem 0 2.25rem;
  position: relative;
  overflow: hidden;
}

.ab-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.ab-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.ab-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.35rem 1rem;
  border-radius: var(--ab-radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #fed7aa;
}

.ab-hero-title {
  color: #ffffff;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}
.ab-hero-title span {
  color: #fb923c;
}

.ab-hero-subtitle {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Box */
.ab-search-box {
  background: var(--ab-bg-card);
  border-radius: var(--ab-radius-lg);
  padding: 0.5rem;
  box-shadow: 0 15px 35px rgba(9, 30, 48, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .ab-search-box {
    flex-direction: row;
    padding: 0.4rem;
  }
}

.ab-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  background: var(--ab-bg-body);
  border-radius: var(--ab-radius-md);
  border: 1px solid var(--ab-border);
}
.ab-search-field input,
.ab-search-field select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ab-text-main);
  outline: none;
}

.ab-search-btn {
  background: var(--ab-accent);
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--ab-radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.ab-search-btn:hover {
  background: var(--ab-accent-hover);
  transform: translateY(-1px);
}

/* Quick Filter Badges */
.ab-quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.ab-tag-link {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--ab-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}
.ab-tag-link:hover {
  background: #ffffff;
  color: var(--ab-primary);
  border-color: #ffffff;
}

/* ==========================================================================
   6. Classic 3-Column Sarkari Job Matrix (Results, Admit Card, Latest Jobs)
   ========================================================================== */
.ab-matrix-section {
  padding: 2.25rem 0;
}

.ab-matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .ab-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ab-matrix-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ab-matrix-col {
  background: var(--ab-bg-card);
  border-radius: var(--ab-radius-md);
  border: 1px solid var(--ab-border);
  box-shadow: var(--ab-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ab-matrix-head {
  padding: 0.85rem 1.15rem;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ab-matrix-head.blue   { background: linear-gradient(135deg, #0f4c81, #1e40af); }
.ab-matrix-head.orange { background: linear-gradient(135deg, #c2410c, #ea580c); }
.ab-matrix-head.green  { background: linear-gradient(135deg, #065f46, #16a34a); }
.ab-matrix-head.purple { background: linear-gradient(135deg, #6b21a8, #9333ea); }
.ab-matrix-head.red    { background: linear-gradient(135deg, #991b1b, #dc2626); }

.ab-matrix-items {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.ab-matrix-items li {
  border-bottom: 1px solid var(--ab-border);
}
.ab-matrix-items li:last-child {
  border-bottom: none;
}

.ab-matrix-items li a {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ab-text-main);
  line-height: 1.4;
  transition: all 0.15s ease;
}
.ab-matrix-items li a:hover {
  background: var(--ab-bg-body);
  color: var(--ab-accent);
  padding-left: 1.35rem;
}
.ab-matrix-dot {
  color: var(--ab-accent);
  font-weight: 800;
}

.ab-matrix-foot {
  padding: 0.75rem 1.15rem;
  background: var(--ab-bg-body);
  border-top: 1px solid var(--ab-border);
  text-align: right;
}
.ab-matrix-foot a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ab-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   7. Modern Job Cards Grid
   ========================================================================== */
.ab-jobs-section {
  padding: 2.25rem 0;
}

.ab-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
  .ab-section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.ab-section-title {
  margin: 0;
  position: relative;
  display: inline-block;
}
.ab-section-title::after {
  content: '';
  display: block;
  width: 45px;
  height: 4px;
  background: var(--ab-accent);
  border-radius: var(--ab-radius-full);
  margin-top: 0.4rem;
}

.ab-jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .ab-jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .ab-jobs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ab-job-card {
  background: var(--ab-bg-card);
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-md);
  padding: 1.25rem;
  box-shadow: var(--ab-shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.ab-job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ab-shadow-lg);
  border-color: #cbd5e1;
}

.ab-job-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.ab-org-logo {
  width: 48px;
  height: 48px;
  background: var(--ab-primary-subtle);
  border: 1px solid #bfdbfe;
  color: var(--ab-primary);
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: var(--ab-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ab-job-info {
  flex: 1;
}

.ab-org-name {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--ab-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.ab-job-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.ab-job-card-title a {
  color: var(--ab-text-main);
}
.ab-job-card-title a:hover {
  color: var(--ab-accent);
}

.ab-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0;
}

.ab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--ab-radius-sm);
  background: var(--ab-bg-body);
  color: var(--ab-text-muted);
}
.ab-pill.vacancies {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-weight: 700;
}
.ab-pill.urgent {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  font-weight: 700;
}

.ab-job-card-bottom {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ab-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ab-last-date {
  font-size: 0.775rem;
  color: var(--ab-text-muted);
  font-weight: 600;
}
.ab-last-date strong {
  color: #dc2626;
}

/* ==========================================================================
   8. Single Job Listing Layout, Stepper & Tables
   ========================================================================== */
.ab-single-layout {
  padding: 2rem 0 3.5rem;
}

.ab-single-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 992px) {
  .ab-single-grid {
    grid-template-columns: 1fr 340px;
  }
}

.ab-single-main {
  background: var(--ab-bg-card);
  border-radius: var(--ab-radius-md);
  border: 1px solid var(--ab-border);
  padding: 1.5rem;
  box-shadow: var(--ab-shadow-sm);
}
@media (min-width: 640px) {
  .ab-single-main {
    padding: 2.25rem;
  }
}

/* Countdown Bar */
.ab-countdown-bar {
  background: linear-gradient(135deg, #fef2f2, #fff7ed);
  border: 2px solid #f87171;
  border-radius: var(--ab-radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.ab-timer-box {
  background: #0f172a;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  min-width: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.ab-timer-box span {
  font-size: 1.15rem;
  font-weight: 900;
  color: #facc15;
  line-height: 1;
}
.ab-timer-box small {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

/* Selection Stepper */
.ab-stepper-box {
  background: var(--ab-bg-body);
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.ab-stepper-stages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ab-step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ab-bg-card);
  border: 1px solid var(--ab-border);
  padding: 0.5rem 0.85rem;
  border-radius: var(--ab-radius-full);
}

.ab-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ab-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ab-step-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ab-text-main);
}

.ab-step-arrow {
  color: var(--ab-accent);
  font-weight: 900;
}

/* Breadcrumbs */
.ab-breadcrumbs {
  font-size: 0.8125rem;
  color: var(--ab-text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ab-breadcrumbs a {
  color: var(--ab-text-muted);
  font-weight: 500;
}
.ab-breadcrumbs a:hover {
  color: var(--ab-primary);
}

/* Single Header */
.ab-single-header {
  border-bottom: 2px solid var(--ab-border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
}

.ab-single-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--ab-text-main);
  margin-bottom: 0.85rem;
}

.ab-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--ab-text-muted);
}

/* AI Overview Direct Answer Box */
.ab-ai-summary-box {
  background: linear-gradient(to right, #fff7ed, var(--ab-bg-card));
  border-left: 4px solid var(--ab-accent);
  border-radius: 0 var(--ab-radius-md) var(--ab-radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.ab-ai-summary-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ab-ai-summary-box p {
  font-size: 0.95rem;
  color: var(--ab-text-main);
  margin: 0;
  line-height: 1.65;
}

/* Job Details Meta Table */
.ab-meta-table-box {
  margin: 2rem 0;
  border-radius: var(--ab-radius-md);
  border: 1px solid var(--ab-border);
  overflow: hidden;
}

.ab-meta-table-head {
  background: var(--ab-primary);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ab-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.ab-meta-table th,
.ab-meta-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--ab-border);
  vertical-align: middle;
}

.ab-meta-table th {
  width: 32%;
  background: var(--ab-bg-body);
  color: var(--ab-text-muted);
  font-weight: 700;
  text-align: left;
}

.ab-meta-table td {
  color: var(--ab-text-main);
  font-weight: 500;
}

/* Official Links Box */
.ab-links-card {
  background: var(--ab-bg-card);
  border: 2px solid #16a34a;
  border-radius: var(--ab-radius-md);
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.1);
}

.ab-links-head {
  background: #16a34a;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ab-links-table {
  width: 100%;
  border-collapse: collapse;
}
.ab-links-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--ab-border);
  font-size: 0.95rem;
}
.ab-links-table td:first-child {
  font-weight: 700;
  color: var(--ab-text-main);
}
.ab-links-table td:last-child {
  text-align: right;
}

/* Social Share Buttons */
.ab-share-box {
  background: var(--ab-bg-body);
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-md);
  padding: 1.25rem;
  margin: 2rem 0;
  text-align: center;
}
.ab-share-label {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ab-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}
.ab-share-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   9. Viral Applicant Tools
   ========================================================================== */
.ab-tool-card {
  background: var(--ab-bg-card);
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-lg);
  padding: 2rem;
  box-shadow: var(--ab-shadow-md);
  max-width: 720px;
  margin: 2rem auto;
}

.ab-tool-header {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--ab-border);
  padding-bottom: 1.5rem;
}

.ab-tool-badge {
  background: #ffedd5;
  color: #c2410c;
  padding: 0.25rem 0.75rem;
  border-radius: var(--ab-radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.ab-form-group {
  margin-bottom: 1.25rem;
}

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

.ab-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--ab-radius-md);
  border: 1px solid var(--ab-border);
  background: var(--ab-bg-body);
  color: var(--ab-text-main);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}
.ab-form-control:focus {
  background: var(--ab-bg-card);
  border-color: var(--ab-primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

.ab-tool-result {
  background: linear-gradient(135deg, #091e30, #0f4c81);
  color: #ffffff;
  padding: 1.75rem;
  border-radius: var(--ab-radius-md);
  margin-top: 1.75rem;
  text-align: center;
  display: none;
}
.ab-tool-result.active {
  display: block;
  animation: ab-fade 0.3s ease;
}

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

.ab-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.ab-stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: var(--ab-radius-sm);
  padding: 0.75rem;
}
.ab-stat-val {
  font-size: 1.65rem;
  font-weight: 900;
  display: block;
  color: #fb923c;
}
.ab-stat-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #cbd5e1;
  font-weight: 700;
}

/* ==========================================================================
   10. Floating Action Buttons (FAB) & Subscriber Modal
   ========================================================================== */
.ab-fab-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 998;
}

.ab-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
}
.ab-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.ab-fab-bell { background: linear-gradient(135deg, #f97316, #ea580c); animation: ab-bell-ring 3s infinite; }
.ab-fab-tg   { background: #0088cc; }
.ab-fab-wa   { background: #25d366; }

@keyframes ab-bell-ring {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
  50% { transform: rotate(0); }
}

/* Lead Capture Modal */
.ab-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ab-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.ab-modal-content {
  background: var(--ab-bg-card);
  border-radius: var(--ab-radius-lg);
  border: 1px solid var(--ab-border);
  width: 100%;
  max-width: 460px;
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ab-modal-backdrop.active .ab-modal-content {
  transform: scale(1);
}

.ab-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--ab-bg-body);
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ab-text-muted);
}

/* ==========================================================================
   11. Dark Mode / Night Reading Mode
   ========================================================================== */
body.dark-mode {
  --ab-primary: #3b82f6;
  --ab-primary-dark: #1d4ed8;
  --ab-primary-light: #60a5fa;
  --ab-primary-subtle: #1e293b;
  --ab-text-main: #f8fafc;
  --ab-text-muted: #94a3b8;
  --ab-text-light: #64748b;
  --ab-bg-body: #0b1120;
  --ab-bg-card: #131c31;
  --ab-border: #1e293b;
}

body.dark-mode p {
  color: #cbd5e1;
}

body.dark-mode .ab-header,
body.dark-mode .ab-single-main,
body.dark-mode .ab-job-card,
body.dark-mode .ab-matrix-col,
body.dark-mode .ab-widget,
body.dark-mode .ab-tool-card,
body.dark-mode .ab-modal-content {
  background: var(--ab-bg-card);
  border-color: #1e293b;
}

body.dark-mode .ab-search-box {
  background: #1e293b;
}

body.dark-mode .ab-meta-table th {
  background: #1e293b;
  color: #cbd5e1;
}

body.dark-mode .ab-meta-table td {
  color: #f8fafc;
}

/* ==========================================================================
   12. Sidebar & Footer
   ========================================================================== */
.ab-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ab-widget {
  background: var(--ab-bg-card);
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-md);
  padding: 1.25rem;
  box-shadow: var(--ab-shadow-sm);
}

.ab-widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ab-text-main);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ab-border);
  margin-bottom: 1rem;
  position: relative;
}
.ab-widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 35px;
  height: 2px;
  background: var(--ab-accent);
}

.ab-widget-telegram {
  background: linear-gradient(135deg, #0088cc, #005f8c);
  color: #ffffff;
  border-radius: var(--ab-radius-md);
  padding: 1.5rem;
  text-align: center;
}
.ab-widget-telegram h4 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.ab-widget-telegram p {
  color: #e0f2fe;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.ab-sticky-sidebar {
  position: sticky;
  top: 80px;
}

.ab-footer {
  background: #091e30;
  color: #94a3b8;
  margin-top: auto;
  border-top: 4px solid var(--ab-accent);
  font-size: 0.875rem;
}

.ab-footer-main {
  padding: 3.5rem 0 2rem;
}

.ab-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .ab-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ab-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
  }
}

.ab-footer-col h4 {
  color: #f8fafc;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.ab-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ab-footer-links li {
  margin-bottom: 0.5rem;
}
.ab-footer-links li a {
  color: #94a3b8;
  transition: all 0.2s ease;
}
.ab-footer-links li a:hover {
  color: #ffffff;
  padding-left: 0.25rem;
}

.ab-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  font-size: 0.8125rem;
}

.ab-footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: center;
}
@media (min-width: 768px) {
  .ab-footer-bottom-inner {
    flex-direction: row;
    text-align: left;
  }
}

/* ==========================================================================
   13. Print Media Styles (Candidates Printing Job Notifications)
   ========================================================================== */
@media print {
  .ab-header, .ab-topbar, .ab-footer, .ab-sidebar, .ab-ad-slot,
  .ab-floating-ad-bar, .ab-fab-container, .ab-share-box, .ab-modal-backdrop,
  .ab-push-prompt-bar {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .ab-single-main {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   14. Native Browser Push Notification Prompt Bar
   ========================================================================== */
.ab-push-prompt-bar {
  background: linear-gradient(135deg, #1e3a8a, #0f4c81);
  color: #ffffff;
  padding: 0.65rem 0;
  border-bottom: 2px solid var(--ab-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  animation: ab-slideDown 0.35s ease;
}

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

.ab-push-prompt-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ab-push-prompt-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.ab-push-bell-icon {
  font-size: 1.5rem;
  animation: ab-bell-ring 2.5s infinite;
}

.ab-push-prompt-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Sidebar List & State-District Accordion */
.ab-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ab-sidebar-list li {
  border-bottom: 1px solid var(--ab-border);
}
.ab-sidebar-list li:last-child {
  border-bottom: none;
}
.ab-sidebar-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ab-text-main);
  transition: all 0.15s ease;
}
.ab-sidebar-list li a:hover {
  color: var(--ab-accent);
  padding-left: 0.35rem;
}

.ab-state-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ab-state-item {
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius-sm);
  background: var(--ab-bg-body);
  overflow: hidden;
}
.ab-state-summary {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  color: var(--ab-text-main);
}
.ab-district-links {
  padding: 0.6rem 0.85rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--ab-text-muted);
  border-top: 1px dashed var(--ab-border);
}
.ab-district-links a {
  color: var(--ab-primary);
  font-weight: 600;
}
.ab-district-links a:hover {
  color: var(--ab-accent);
  text-decoration: underline;
}

