/* ==========================================================================
   Vacancies & Careers Revamp Design System
   City of Harare Municipal Recruitment Portal
   ========================================================================== */

:root {
  --v-primary: #0f172a;
  --v-primary-accent: #1e3a8a;
  --v-green-vivid: #10b981;
  --v-gold: #f59e0b;
  --v-gold-hover: #d97706;
  --v-dark-navy: #091e42;
  --v-bg-light: #f8fafc;
  --v-border-color: #e2e8f0;
  --v-radius: 12px;
  --v-radius-lg: 16px;
  --v-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --v-shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.12);
  --v-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Wrapper */
.vacancies-page-wrapper {
  background-color: var(--v-bg-light);
  min-height: 100vh;
  padding-bottom: 5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.vacancies-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(9, 30, 66, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%), var(--bg-img, url('/assets/img/slider/harare/4-hre.webp'));
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 4.5rem 1.5rem 3.5rem;
  border-bottom: 4px solid var(--v-gold);
}

.vacancies-hero-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.vacancies-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.vacancies-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.vacancies-hero-title {
  font-family: 'Fraunces', serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

.vacancies-hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 760px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Hero Stats Bar */
.vacancies-stats-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.vacancies-stat-box {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.vacancies-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--v-gold);
}

.vacancies-stat-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.vacancies-stat-lbl {
  font-size: 0.825rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Filter & Search Toolbar (Matches Resources Portal Design System)
   ========================================================================== */
.vacancies-filter-card {
  background: #ffffff;
  border-radius: var(--v-radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.vacancies-search-wrapper {
  position: relative;
  width: 100%;
}

.vacancies-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.2rem;
  pointer-events: none;
}

.vacancies-search-input {
  border-radius: 50px !important;
  padding: 0.65rem 1rem 0.65rem 2.75rem !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #f8fafc !important;
  font-size: 0.95rem;
  height: 44px;
  transition: all 0.2s ease;
}

.vacancies-search-input:focus {
  border-color: #10b981 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
  outline: none;
}

.vacancies-filter-select {
  border-radius: 50px !important;
  padding: 0.5rem 1rem !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #f8fafc !important;
  font-size: 0.9rem;
  height: 44px;
  transition: all 0.2s ease;
}

.vacancies-filter-select:focus {
  border-color: #10b981 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
}

.vacancies-pill-btn {
  border-radius: 50px !important;
  height: 44px;
  padding: 0 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Quick Filter Pills Row (Resources style) */
.vacancies-pills-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.vacancies-filter-pill {
  padding: 6px 16px;
  border-radius: 50px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vacancies-filter-pill:hover,
.vacancies-filter-pill.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  text-decoration: none;
}

/* ==========================================================================
   Vacancy Cards & Listing
   ========================================================================== */
.vacancy-card {
  background: #ffffff;
  border-radius: var(--v-radius-lg);
  border: 1px solid var(--v-border-color);
  padding: 1.75rem;
  box-shadow: var(--v-shadow);
  transition: var(--v-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vacancy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v-shadow-hover);
  border-color: #cbd5e1;
}

.vacancy-card.featured-card {
  border-left: 5px solid var(--v-gold);
  background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
}

.vacancy-badge-featured {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}

.vacancy-badge-type {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

.vacancy-badge-dept {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

.vacancy-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--v-primary);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.vacancy-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.vacancy-card-title a:hover {
  color: var(--v-primary-accent);
}

.vacancy-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.vacancy-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vacancy-card-summary {
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.vacancy-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.vacancy-btn-apply {
  background-color: var(--v-primary);
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--v-transition);
}

.vacancy-btn-apply:hover {
  background-color: var(--v-primary-accent);
  color: #ffffff;
}

/* ==========================================================================
   Details Page Styling
   ========================================================================== */
.vacancy-details-hero {
  background: linear-gradient(135deg, #091e42 0%, #0f172a 100%);
  color: #ffffff;
  padding: 3.5rem 1.5rem 3rem;
  border-bottom: 4px solid var(--v-gold);
}

.vacancy-details-title {
  font-family: 'Fraunces', serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.vacancy-details-content {
  background: #ffffff;
  border-radius: var(--v-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--v-shadow);
  border: 1px solid var(--v-border-color);
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}

.vacancy-details-content h2, 
.vacancy-details-content h3, 
.vacancy-details-content h4 {
  color: var(--v-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.vacancy-details-content ul, 
.vacancy-details-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.vacancy-details-content li {
  margin-bottom: 0.5rem;
}

.vacancy-sidebar-card {
  background: #ffffff;
  border-radius: var(--v-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--v-shadow);
  border: 1px solid var(--v-border-color);
  position: sticky;
  top: 90px;
}

.vacancy-apply-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Floating Mobile Apply Bar */
.vacancy-mobile-apply-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
  z-index: 1000;
  border-top: 1px solid var(--v-border-color);
}

@media (max-width: 991px) {
  .vacancy-mobile-apply-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Attachment Portal Callout Styles
   ========================================================================== */
.attachment-portal-banner {
  background: linear-gradient(135deg, #091e42 0%, #0f172a 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 5px solid #f59e0b;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.attachment-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.attachment-banner-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
  min-width: 280px;
}

.attachment-banner-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.attachment-banner-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.attachment-banner-title {
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.attachment-banner-desc {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.attachment-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.attachment-banner-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
  color: #0f172a !important;
}

.attachment-sidebar-widget {
  background: linear-gradient(135deg, #091e42 0%, #0f172a 100%);
  border-radius: 12px;
  padding: 1.25rem;
  color: #ffffff;
  margin-top: 1.25rem;
  border-left: 4px solid #f59e0b;
}

.attachment-stat-box {
  text-decoration: none !important;
  transition: var(--v-transition);
  cursor: pointer;
}

.attachment-stat-box:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
}

.attachment-stat-box .attachment-icon {
  color: #f59e0b !important;
}

/* ==========================================================================
   Print Stylesheet
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .vacancies-hero, nav, footer, .vacancy-sidebar-card, .vacancy-mobile-apply-bar, .btn {
    display: none !important;
  }
  .vacancy-details-content {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
}
