/* QMALLUZ Qatar Job Portal - Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/geist-sans@5.0.0/index.min.css');

:root {
  /* HSL Specifications */
  --background: 260 87% 3%;
  --foreground: 40 6% 95%;
  --hero-sub: 40 6% 82%;
  
  /* Premium Palette mapped to dark theme */
  --primary: #8A1538;       /* Qatar Maroon */
  --primary-hover: #a51842;
  --primary-light: rgba(138, 21, 56, 0.15);
  --secondary: #D4AF37;     /* Gold Accent */
  --secondary-hover: #bda031;
  --secondary-light: rgba(212, 175, 55, 0.15);
  
  --dark: #080514;          /* Deep dark blue-purple matching HSL 260 87% 3% */
  --dark-soft: #110d29;     /* Soft card background */
  --light: #18133a;         /* Input backgrounds */
  --light-muted: rgba(255, 255, 255, 0.08);
  --white: #FFFFFF;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  
  /* Fonts */
  --font-header: 'General Sans', 'Outfit', sans-serif;
  --font-body: 'Geist Sans', 'Inter', sans-serif;

  /* Shadows & Radius */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pulseBorder {
  0% { box-shadow: 0 0 0 0 rgba(138, 21, 56, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(138, 21, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(138, 21, 56, 0); }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* SPA View Handling */
.view-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
  padding-bottom: 60px;
}

.view-section.active {
  display: block;
}

/* Header & Navigation */
.main-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-muted);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

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

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 50px;
  width: 210px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--dark-soft);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

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

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 21, 56, 0.2);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

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

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--dark-soft);
  border: 1px solid var(--light-muted);
}

.btn-outline:hover {
  background-color: var(--light-muted);
  color: var(--dark);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-md);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(138, 21, 56, 0.04) 0%, rgba(212, 175, 55, 0.04) 100%), var(--white);
  border-bottom: 1px solid var(--light-muted);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  border: 1px solid rgba(138, 21, 56, 0.15);
}

.hero-title {
  font-family: var(--font-header);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 520px;
}

/* Search Bar Component */
.search-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--light-muted);
  max-width: 650px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  flex: 1;
}

.search-field:not(:last-child) {
  border-right: 1px solid var(--light-muted);
}

.search-field i {
  color: var(--primary);
  font-size: 16px;
}

.search-field input,
.search-field select {
  border: none;
  outline: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  background: transparent;
}

.hero-tags {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tag-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.hero-tag {
  background-color: var(--light);
  border: 1px solid var(--light-muted);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--dark-soft);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-tag:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: rgba(138, 21, 56, 0.2);
}

/* Hero Illustration */
.hero-illustration-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-card {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 4px solid var(--white);
  transform: rotate(-1deg);
  transition: var(--transition);
}

.hero-image-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-image-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: pulseBorder 3s infinite;
}

.fc-1 {
  bottom: 20px;
  left: -20px;
}

.fc-2 {
  top: 40px;
  right: -10px;
}

.fc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.fc-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.fc-text p {
  font-size: 11px;
  color: var(--muted);
}

/* Categories Grid */
.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-header);
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.category-card {
  background-color: var(--white);
  border: 1px solid var(--light-muted);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  color: var(--dark);
  transition: var(--transition);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(138, 21, 56, 0.2);
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background-color: var(--primary);
  color: var(--white);
}

.category-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-info p {
  font-size: 13px;
  color: var(--muted);
}

/* Jobs Listings Section */
.jobs-main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* Sidebar Filters */
.filters-sidebar {
  background-color: var(--white);
  border: 1px solid var(--light-muted);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group:not(:last-child) {
  border-bottom: 1px solid var(--light-muted);
  padding-bottom: 20px;
}

.filter-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-list {
  list-style: none;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--dark-soft);
  cursor: pointer;
}

.filter-item input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Job Listing Results */
.job-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.sort-select-wrapper select {
  border: 1px solid var(--light-muted);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark-soft);
  outline: none;
  background-color: var(--white);
}

.job-list-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card {
  background-color: var(--white);
  border: 1px solid var(--light-muted);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(138, 21, 56, 0.2);
}

.job-card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.company-logo-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  background-color: var(--light);
  flex-shrink: 0;
}

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

.job-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.job-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

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

.btn-bookmark {
  color: var(--muted);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.btn-bookmark:hover,
.btn-bookmark.active {
  color: var(--primary);
}

.job-company-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

.job-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.meta-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--light);
  color: var(--dark-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-pill i {
  color: var(--primary);
}

.meta-pill.salary {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.meta-pill.time-tag {
  background-color: #E0F2FE;
  color: #0369A1;
}

.job-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--light);
  padding-top: 14px;
}

.job-posted-time {
  font-size: 12px;
  color: var(--muted);
}

.job-card-actions {
  display: flex;
  gap: 8px;
}

/* Employer Hub View */
.employer-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  min-height: calc(100vh - 80px);
}

.employer-sidebar {
  background-color: var(--white);
  border-right: 1px solid var(--light-muted);
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.emp-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--dark-soft);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}

.emp-sidebar-link i {
  font-size: 16px;
}

.emp-sidebar-link:hover,
.emp-sidebar-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* Employer Dashboard Main Panel */
.emp-main-panel {
  padding: 30px 0;
}

.emp-welcome-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #B2224D 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.emp-welcome-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 250px;
  height: 250px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.emp-welcome-banner h1 {
  font-family: var(--font-header);
  font-size: 28px;
  margin-bottom: 8px;
}

.emp-welcome-banner p {
  opacity: 0.85;
  font-size: 14px;
  max-width: 500px;
}

.emp-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background-color: var(--white);
  border: 1px solid var(--light-muted);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.stat-info h3 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.stat-number {
  font-family: var(--font-header);
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-card:nth-child(1) .stat-icon {
  background-color: rgba(3, 105, 161, 0.08);
  color: #0369A1;
}

.stat-card:nth-child(2) .stat-icon {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--success);
}

.stat-card:nth-child(3) .stat-icon {
  background-color: rgba(245, 158, 11, 0.08);
  color: var(--warning);
}

/* Applicants Grid & Dashboard Cards */
.dash-columns {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

.dashboard-box {
  background-color: var(--white);
  border: 1px solid var(--light-muted);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.dash-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dash-box-title {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
}

.applicant-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.applicant-card {
  border: 1px solid var(--light-muted);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: var(--transition);
}

.applicant-card:hover {
  border-color: var(--primary-light);
  background-color: var(--light);
}

.applicant-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.applicant-details {
  flex: 1;
}

.applicant-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.applicant-applied-role {
  font-size: 13px;
  color: var(--muted);
}

.applicant-meta {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.applicant-meta i {
  color: var(--primary);
}

.applicant-actions {
  display: flex;
  gap: 8px;
}

.status-badge {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

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

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

/* Post a Job Form Styling */
.form-card {
  background-color: var(--white);
  border: 1px solid var(--light-muted);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-header h2 {
  font-family: var(--font-header);
  font-size: 26px;
  font-weight: 800;
}

.form-header p {
  color: var(--muted);
  font-size: 14px;
}

.form-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--light-muted);
  color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark-soft);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--light-muted);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  outline: none;
  background-color: var(--light);
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(138, 21, 56, 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

/* CV Template Builder Hub */
.cv-builder-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: flex-start;
}

.cv-builder-form {
  background-color: var(--white);
  border: 1px solid var(--light-muted);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.cv-builder-preview {
  position: sticky;
  top: 100px;
  background-color: var(--white);
  border: 1px solid var(--light-muted);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.cv-template-select-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.cv-template-card {
  border: 2px solid var(--light-muted);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.cv-template-card i {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 4px;
}

.cv-template-card h4 {
  font-size: 11px;
  font-weight: 700;
}

.cv-template-card.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.cv-template-card.active i {
  color: var(--primary);
}

/* Modern CV Layout Styles */
.cv-paper-preview {
  background-color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 30px;
  font-size: 12px;
  min-height: 560px;
  border: 1px solid var(--light-muted);
}

/* Template 1: Modern (Maroon theme) */
.cv-paper-preview.theme-modern {
  border-top: 6px solid var(--primary);
}
.cv-paper-preview.theme-modern .cv-header-sec {
  border-bottom: 1px solid var(--light-muted);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.cv-paper-preview.theme-modern .cv-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}
.cv-paper-preview.theme-modern .cv-section-title {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px solid var(--primary-light);
  padding-bottom: 2px;
  margin-top: 12px;
  margin-bottom: 8px;
}

/* Template 2: Professional (Dark Slate theme) */
.cv-paper-preview.theme-professional {
  border-top: 6px solid var(--dark-soft);
}
.cv-paper-preview.theme-professional .cv-header-sec {
  background-color: var(--dark-soft);
  color: var(--white);
  padding: 12px;
  margin: -30px -30px 12px -30px;
}
.cv-paper-preview.theme-professional .cv-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.cv-paper-preview.theme-professional .cv-section-title {
  color: var(--dark-soft);
  font-weight: 700;
  border-bottom: 2px solid var(--dark-soft);
  padding-bottom: 2px;
  margin-top: 12px;
  margin-bottom: 8px;
}

/* Template 3: Creative (Gold/Teal theme) */
.cv-paper-preview.theme-creative {
  border-left: 6px solid var(--secondary);
}
.cv-paper-preview.theme-creative .cv-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
  text-transform: uppercase;
}
.cv-paper-preview.theme-creative .cv-section-title {
  color: var(--secondary-hover);
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 8px;
}

/* Template 4: Executive (Minimal classic) */
.cv-paper-preview.theme-executive {
  font-family: Georgia, serif;
}
.cv-paper-preview.theme-executive .cv-name {
  font-size: 22px;
  text-align: center;
  font-weight: normal;
  color: #111;
}
.cv-paper-preview.theme-executive .cv-sub {
  text-align: center;
}
.cv-paper-preview.theme-executive .cv-contact-info {
  text-align: center;
  border-bottom: 1px double #333;
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.cv-paper-preview.theme-executive .cv-section-title {
  font-weight: bold;
  border-bottom: 1px solid #333;
  margin-top: 12px;
  margin-bottom: 8px;
}

.cv-contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.cv-section {
  margin-bottom: 12px;
}

.cv-item {
  margin-bottom: 8px;
}

.cv-item-title-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.cv-item-sub {
  color: var(--muted);
  font-style: italic;
  font-size: 11px;
}

/* Job Details Slide-over Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  justify-content: flex-end;
  align-items: stretch;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  width: 100%;
  max-width: 600px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--light-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--dark);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--light-muted);
  background-color: var(--light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Job Details specifics */
.job-detail-header {
  margin-bottom: 24px;
}

.job-detail-desc {
  font-size: 14px;
  color: var(--dark-soft);
  margin-bottom: 24px;
}

.job-detail-section {
  margin-bottom: 24px;
}

.job-detail-title {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.job-detail-list {
  padding-left: 20px;
  font-size: 14px;
}

.job-detail-list li {
  margin-bottom: 6px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background-color: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: scaleUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.info {
  border-left: 4px solid var(--secondary);
}

/* Apply Modal Form */
.apply-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Footer Section */
.main-footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px 0;
  margin-top: auto;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-logo {
  height: 50px;
  width: 210px;
  filter: brightness(0) invert(1); /* Converts text to white */
}

.footer-text {
  font-size: 13px;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--dark-soft);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}

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

.footer-column h3 {
  color: var(--white);
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--dark-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 38px;
  }
  .hero-subtitle {
    margin-inline: auto;
  }
  .search-container {
    margin-inline: auto;
  }
  .hero-tags {
    justify-content: center;
  }
  .hero-illustration-wrapper {
    display: none; /* Hide illustrative elements on smaller tablet screens */
  }
  .jobs-main-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    position: static;
  }
  .employer-layout {
    grid-template-columns: 1fr;
  }
  .employer-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--light-muted);
    padding: 12px;
    gap: 8px;
  }
  .dash-columns {
    grid-template-columns: 1fr;
  }
  .cv-builder-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Add responsive menu in future iterations, handle basic toggle */
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .emp-stats-row {
    grid-template-columns: 1fr;
  }
  .search-container {
    flex-direction: column;
    padding: 12px;
  }
  .search-field {
    width: 100%;
    border-right: none !important;
    border-bottom: 1px solid var(--light-muted);
  }
  .search-field:last-of-type {
    border-bottom: none;
  }
  .search-container .btn {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
}

/* Admin Job Manager Styles */
.admin-job-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--light);
  border: 1px solid var(--light-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.admin-job-item:hover {
  border-color: rgba(138, 21, 56, 0.2);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.admin-job-details {
  flex: 1;
}

.admin-job-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.admin-job-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.btn-delete-job {
  background-color: transparent;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-delete-job:hover {
  background-color: var(--danger);
  color: var(--white);
  border-color: var(--danger);
  transform: translateY(-1px);
}

/* Printing Mode for CV Builder Export */
@media print {
  body * {
    visibility: hidden;
  }
  #cv-paper-to-print, #cv-paper-to-print * {
  }
}

/* --- New Dark Hero, Navbar, and Marquee Styles --- */
.hero-page-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible; /* blur glow expands outside */
  background-color: hsl(var(--background));
  z-index: 1;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0; /* JS-controlled fade loop starts at 0 */
  pointer-events: none;
}

.blurred-glow-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 984px;
  height: 527px;
  background-color: #030712; /* bg-gray-950 */
  filter: blur(82px);
  opacity: 0.9;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

/* Navbar overrides */
.hero-navbar-wrapper {
  position: relative;
  z-index: 100;
  width: 100%;
  background-color: transparent;
}

.hero-navbar {
  width: 100%;
  padding: 20px 32px; /* py-5 px-8 */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.hero-nav-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, hsl(var(--foreground) / 0.2) 50%, transparent);
  margin-top: 3px;
}

.hero-nav-items {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-nav-btn {
  background: none;
  border: none;
  color: hsl(var(--foreground) / 0.9);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  padding: 6px 0;
  text-decoration: none;
}

.hero-nav-btn:hover {
  color: hsl(var(--foreground));
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.hero-nav-btn i {
  font-size: 11px;
  transition: var(--transition);
}

.hero-nav-btn:hover i {
  transform: translateY(2px);
}

/* Dropdown Menu styling */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--foreground) / 0.1);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-item {
  color: hsl(var(--foreground) / 0.9);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  text-align: left;
  transition: var(--transition);
  font-family: var(--font-body);
}

.dropdown-item:hover {
  background-color: hsl(var(--foreground) / 0.1);
  color: hsl(var(--foreground));
}

/* Button Variants */
.btn-hero-secondary {
  background-color: hsl(var(--foreground) / 0.08);
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--foreground) / 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
  border-color: hsl(var(--foreground));
  box-shadow: 0 0 25px hsl(var(--foreground) / 0.25);
  transform: translateY(-2px);
}

.nav-signup-btn {
  border-radius: 9999px; /* rounded-full */
  padding: 8px 16px; /* px-4 py-2 */
  font-size: 14px;
}

.cta-consult-btn {
  border-radius: var(--radius-md);
  padding: 24px 29px; /* px-[29px] py-[24px] */
  font-size: 16px;
  margin-top: 25px;
}

/* Hero Content layout */
.hero-content-flex {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-headline {
  font-family: 'General Sans', sans-serif;
  font-size: 220px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.024em;
  color: hsl(var(--foreground));
  text-align: center;
}

.hero-headline .gradient-text {
  background-image: linear-gradient(to left, #6366f1, #a855f7, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 1200px) {
  .hero-headline {
    font-size: 140px;
  }
}
@media (max-width: 768px) {
  .hero-headline {
    font-size: 80px;
  }
}
@media (max-width: 480px) {
  .hero-headline {
    font-size: 50px;
  }
}

.hero-subtitle {
  color: hsl(var(--hero-sub));
  font-size: 18px; /* text-lg */
  line-height: 2rem; /* leading-8 */
  max-width: 28rem; /* max-w-md */
  margin-top: 9px;
  opacity: 0.8;
  text-align: center;
}

/* Logo marquee section styling */
.marquee-pinned-bottom {
  padding-bottom: 40px; /* pb-10 */
  width: 100%;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.logo-marquee-container {
  display: flex;
  align-items: center;
  gap: 48px; /* gap-12 = 3rem */
  max-width: 1024px; /* max-w-5xl */
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}

.marquee-static-text {
  font-size: 14px; /* text-sm */
  color: hsl(var(--foreground) / 0.5);
  line-height: 1.25rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: left;
}

.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.marquee-track {
  display: flex;
  gap: 64px; /* gap-16 = 4rem */
  width: max-content;
  animation: scrollMarquee 20s linear infinite;
}

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px; /* text-base */
  font-weight: 600; /* font-semibold */
  color: hsl(var(--foreground));
  white-space: nowrap;
}

.marquee-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px; /* rounded-lg */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: hsl(var(--foreground));
}

/* Liquid glass utility class */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

