/* ===== HERO BACKGROUND SLIDESHOW ===== */
.hero-job-search {
  position: relative;
  color: #fff;
  padding: 80px 20px;
  overflow: hidden;
  margin-bottom: 30px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg-1 {
  background-image: url('/uploads/photos/jobs/job-hero-bg.png');
  opacity: 1;
}

.hero-bg-2 {
  background-image: url('/uploads/photos/jobs/job-hero-bg2.png');
}

.hero-bg-3 {
  background-image: url('/uploads/photos/jobs/job-hero-bg3.png');
}

.hero-overlay {
  position: relative;
  background: rgba(0, 0, 0, 0.55);
  padding: 50px 30px;
  border-radius: 16px;
  max-width: 900px;
  margin: auto;
  text-align: center;
  z-index: 2;
}


.hero-job-search h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-job-search h1 .highlight {
  color: #2DC4F0;
}

/* ===== FORM ===== */
.job-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  padding: 6px;
  gap: 8px;
  justify-content: center;
}

/* Each field */
.job-search-form .form-field {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 40px;
  padding: 6px 16px;
  flex: 1;
  min-width: 160px;
}

.job-search-form select {
  border: none;
  outline: none;
  width: 100%;
  font-size: 15px;
  color: #333;
  background: transparent;
}

/* ===== BUTTON ===== */
.search-btn {
  background: #000;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: #36454F;
}

/* ===== RESET LINK ===== */
.reset-link {
  margin-top: 16px;
}

.reset-link a {
  color: #fff;
  text-decoration: underline;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-job-search {
    padding: 60px 15px;
  }

  .hero-overlay {
    padding: 40px 20px;
  }

  .job-search-form {
    flex-direction: column;
    border-radius: 20px;
  }

  .job-search-form .form-field {
    width: 100%;
  }
}


.service-categories {
  padding-bottom: 10px;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
  flex-wrap: nowrap;
}

.service-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ICON CONTAINER */
.service-icon {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}

.service-icon i {
  font-size: 2rem;
  color: #555;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

/* TEXT */
.service-categories span {
  font-size: 1rem;
  color: #555;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 10px;
}

.service-categories span::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #007bff;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.service-btn.active .service-icon {
  position: relative;
}

.service-btn.active .service-icon::before {
  content: "";
  position: absolute;
  width: 65px;
  height: 65px;
  background: url("/uploads/photos/logo/blob_active.png") no-repeat center center / contain;
  z-index: 1;
  transition: all 0.3s ease;
}

.service-btn.active .service-icon i {
  color: #7b1fa2; /* match your brand tone */
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.service-btn.active span {
  color: #7b1fa2;
  font-weight: 600;
  position: relative;
}

.service-btn.active span::after {
  width: 28px;
  background-color: #7b1fa2;
}

/* Enable horizontal scroll on small screens */
@media (max-width: 768px) {
  .service-categories {
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    gap: 30px;
    padding: 10px 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide scrollbar (optional) */
  .service-categories::-webkit-scrollbar {
    display: none;
  }

  .service-categories {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }

  .service-btn {
    flex: 0 0 auto; /* prevent buttons from shrinking */
  }
}

/* --- Grid Layout --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* --- Reusable Card --- */
.service-card {
  background-color: #fff;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* --- Image Section --- */
.service-card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Status badge overlay */
.badge-status {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: capitalize;
}

/* --- Body --- */
.service-card-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.service-card-location {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.service-card-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.service-card-meta i {
  margin-right: 4px;
  color: #2563eb;
}

/* --- Button --- */
.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: #2563eb;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-quote:hover {
  background-color: #1d4ed8;
}
