/* Jobs listing and job detail styles */
/* Jobs listing and job detail styles */
@import url('/assets/css/main.css');

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero-section {
  padding: 2.5rem 0 1.75rem;
  background: radial-gradient(circle at top left, #e0f2fe 0, #ffffff 55%);
  border-bottom: 1px solid #e5e7eb;
}

.hero-section .container {
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.hero-section h1 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
}

.hero-section p {
  margin: 0;
  font-size: 0.98rem;
  color: #4b5563;
}

/* Quick search */

.quick-search {
  margin-top: 1.25rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border-radius: 9999px;
  padding: 0.5rem 0.9rem;
  border: 1px solid #d1d5db;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.search-box .icon.icon-search {
  flex: 0 0 auto;
  color: #6b7280;
}

.search-box input[type="text"],
.search-box input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: #111827;
}

.search-box input::placeholder {
  color: #9ca3af;
}

/* =========================================================
   FILTERS SECTION
   ========================================================= */

.filters-section {
  padding: 1.75rem 0 1.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.filters-section .container {
  max-width: 1080px;
  margin: 0 auto;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.35rem;
}

.filter-group select {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  font-size: 0.9rem;
  color: #111827;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.filter-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.filter-group select:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
}

/* Filter actions (Clear Filters button area) */

.filter-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.filter-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
}

/* Outlined button style override */

.btn.btn-outline {
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: #374151;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease;
}

.btn.btn-outline:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.btn.btn-outline:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
}

/* Icons inside filter buttons */

.filter-actions .icon {
  width: 16px;
  height: 16px;
}

/* =========================================================
   RESULTS SECTION (light styling only)
   ========================================================= */

.results-section {
  padding: 1.75rem 0 2.5rem;
  background-color: #f9fafb;
}

.results-section .container {
  max-width: 1080px;
  margin: 0 auto;
}

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.results-count {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

/* Jobs grid itself is still handled by main.css / existing styles */

/* No-results & loading */

.loading-spinner,
.no-results {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  text-align: center;
  color: #4b5563;
}

.loading-spinner .icon,
.no-results .icon {
  display: block;
  margin: 0 auto 0.35rem;
  color: #2563eb;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 640px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
}

@media (min-width: 768px) {
  .filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: flex-end;
  }

  .filter-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .filters-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ------------------------------
   JOB LIST + CARD STYLES
------------------------------ */

.job-list-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 30px;
}

.job-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 22px;
    border: 1px solid #e4e7ec;
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: #0066cc;
}

/* Logo & Title Wrapper */
.job-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.job-card-header img {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    object-fit: contain;
    background: #f5f7fa;
    padding: 8px;
    border: 1px solid #e5e5e5;
}

.job-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #002244;
    margin: 0;
}

/* Meta Info */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 0.9rem;
    color: #4b5563;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tags / Labels */
.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.job-tag {
    font-size: 0.8rem;
    background: #e8f3ff;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #cce6ff;
    color: #0059b3;
}

/* CTA */
.job-card .apply-btn {
    margin-top: auto;
    background: #007bff;
    color: white;
    text-align: center;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.job-card .apply-btn:hover {
    background: #005fcc;
}

/* ------------------------------
   RESPONSIVE GRID
------------------------------ */

@media (min-width: 768px) {
    .job-list-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .job-list-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

