/* Glass Card Job Styling - Vanilla CSS (Bootstrap Compatible) */

.jobs-container {
  padding: 40px 0;
}

/* Filter Bar Styling */
.filter-section form.d-flex {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-bottom: 24px !important;
  gap: 10px !important; /* Uniform horizontal and vertical gap */
}

.filter-section form .custom-filter-dropdown {
  position: relative !important;
}

.filter-pill {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.filter-pill:hover {
  background-color: #f1f5f9;
}

.filter-pill.active {
  background-color: #ff6b35; /* Orange to match UI */
  color: #fff;
  border-color: #ff6b35;
}

.filter-pill.active i {
  color: #fff;
}

.filter-pill i {
  font-size: 10px;
  margin-left: 6px;
  color: #64748b;
}

.filter-dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  min-width: 220px;
  max-height: 400px;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}

.filter-options-list {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Scrollbar styling for dropdown */
.filter-options-list::-webkit-scrollbar {
  width: 4px;
}
.filter-options-list::-webkit-scrollbar-track {
  background: transparent;
}
.filter-options-list::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

/* Custom Checkbox Styling to match image */
.custom-control-input:checked ~ .custom-control-label::before {
  border-color: #3b82f6;
  background-color: #fff;
  color: #3b82f6;
}

.custom-checkbox .custom-control-label::before {
  border-radius: 50% !important; /* Circular like the image */
  border: 1.5px solid #cbd5e1;
  width: 18px;
  height: 18px;
}

.custom-checkbox .custom-control-label::after {
  width: 18px;
  height: 18px;
  background-size: 60% 60%;
}

.custom-control-label {
  font-size: 14px;
  font-weight: 400;
  color: #334155;
  cursor: pointer;
  padding-top: 2px;
  padding-left: 4px;
}

/* Salary Range Filter Styles */
.salary-range-container {
  padding: 4px;
}

.salary-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
  display: block;
}

.salary-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.salary-input-wrapper .currency {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.salary-range-input {
  width: 100%;
  padding: 10px 10px 10px 24px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background-color: #f8fafc;
  font-size: 14px;
  color: #334155;
  transition: all 0.2s ease;
  outline: none;
}

.salary-range-input:focus {
  border-color: #3b82f6;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Keep arrows in number input as per image */
.salary-range-input::-webkit-outer-spin-button,
.salary-range-input::-webkit-inner-spin-button {
  -webkit-appearance: inner-spin-button;
  opacity: 1;
}

.apply-range-btn {
  background-color: #3b82f6;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.apply-range-btn:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

.filter-reset-btn {
  font-size: 13px;
  color: #64748b;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-reset-btn:hover {
  color: #ef4444;
}

/* Glass Card Base */
.glass-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px;
  position: relative;
  height: 100%;
  cursor: pointer;
  display: block;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Job Card Link - Remove default anchor styling */
.job-card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.job-card-link:hover {
  text-decoration: none !important;
  color: inherit !important;
}

/* Popular Badge */
/* Card Inner Flex Layout */
.card-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

/* Left Content Area */
.card-content {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0 0 4px 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pills Row */
.pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0 8px;
  height: 20px;
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
  background-color: #f1f5f9;
  color: #334155;
  border: none;
  transition: background-color 0.15s ease;
}

.pill:hover {
  background-color: #e2e8f0;
}

.pill i {
  margin-right: 3px;
  font-size: 9px;
  opacity: 0.7;
}

/* Time Badge */
.time-badge {
  font-size: 10px;
  color: rgba(100, 116, 139, 0.7);
  margin-left: auto;
}

/* Right Action Area */
.card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.chevron-icon {
  color: rgba(100, 116, 139, 0.4);
  font-size: 16px;
}

/* Upload Button */
.btn-upload-link {
  background: #1a1a2e;
  color: #fff !important;
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-upload-link:hover {
  background: #16213e;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
}

/* Responsive */
@media (max-width: 576px) {
  .glass-card {
    padding: 14px;
  }
  .card-title {
    font-size: 14px;
  }
  .card-subtitle {
    font-size: 13px;
  }
  .popular-badge {
    right: 32px;
  }
}
/* Partner Introduction Styling */
.partner-intro-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

.partner-logo {
  max-width: 180px;
  height: auto;
  margin-right: 24px;
  display: block;
}

.partner-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 0;
}

.partner-text strong {
  color: #1e293b;
  font-weight: 700;
}

@media (max-width: 768px) {
  .partner-intro-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .partner-logo {
    margin-right: 0;
    margin-bottom: 16px;
    max-width: 150px;
  }
}
