body {
  background-color: #f8fafc;
  color: #475569;
}
.row {
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.job-search-section {
  padding: 4rem 0 5rem;
  border-bottom: 1px solid #e2e8f0;
}

.back-btn {
  transition: all 0.3s ease;
  font-size: 0.95rem;
  color: #64748b !important;
}

.back-btn:hover {
  color: #2563eb !important;
  transform: translateX(-5px);
}

/* --- Premium Search Bar --- */
.premium-search-bar {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.premium-search-bar:focus-within {
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
  border-color: #2563eb;
}

.search-main {
  font-weight: 500;
  font-size: 1.1rem;
  padding: 1.25rem 1rem;
  color: #0f172a;
}

.search-main::placeholder {
  color: #94a3b8;
}

.search-btn-main {
  background: #2563eb !important; /* Solid Brand Blue */
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.25rem 3rem !important;
  transition: all 0.3s ease;
}

.search-btn-main:hover {
  background: #1d4ed8 !important;
}

/* --- Premium Filter Groups --- */
.premium-filter-group {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  height: 100%;
}

.premium-filter-group:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.1);
}

.premium-filter-group .form-label {
  font-weight: 700;
  color: #475569;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.premium-filter-group .input-group-text {
  background: transparent;
  border: none;
  border-bottom: 2px solid #e2e8f0;
  border-radius: 0;
  color: #94a3b8;
  padding-left: 0;
}

.filter-input {
  border: none !important;
  border-bottom: 2px solid #e2e8f0 !important;
  border-radius: 0 !important;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem !important;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  background: transparent;
  box-shadow: none !important;
  transition: border-color 0.3s ease;
}

.filter-input:focus {
  border-bottom-color: #2563eb !important;
}

.filter-btn {
  border-radius: 12px !important;
  border: 2px solid #2563eb !important;
  font-weight: 700 !important;
  font-size: 1rem;
  color: #2563eb !important;
  transition: all 0.3s ease;
  background: transparent;
}

.filter-btn:hover {
  background: #2563eb !important;
  color: white !important;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
  transform: translateY(-2px);
}

/* --- Premium Job Cards --- */
.jobs-list-section {
  min-height: 100vh;
}

.premium-job-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  border-top: 5px solid #2563eb; /* Signature visual tie-in */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.premium-job-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
}

.job-header {
  background: #ffffff;
}

.job-title {
  color: #0f172a;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.job-company {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.job-meta-top {
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  display: flex;
  align-items: center;
}

/* Beautiful soft badges inside the card */
.job-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.premium-badge-soft {
  background: rgba(37, 99, 235, 0.05); /* Very soft blue tint */
  border: 1px solid rgba(37, 99, 235, 0.1);
  color: #334155;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.job-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
}

.full-desc-box {
  max-height: 150px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Custom Scrollbar for description box */
.full-desc-box::-webkit-scrollbar {
  width: 6px;
}
.full-desc-box::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
.full-desc-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.read-more-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.read-more-link:hover {
  text-decoration: underline;
}

.job-meta-bottom {
  font-size: 0.85rem;
  font-weight: 600;
  color: #192331;
}

.btn-apply {
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: 10px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);

}

.btn-apply:hover {
  background: #1d4ed8 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Empty State Styling */
.empty-state-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 4rem 2rem;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
  border: 1px dashed #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 4rem;
  color: #e2e8f0;
}

@media (max-width: 768px) {
  /* 1. Remove the unified background/shadow from the wrapper */
  .premium-search-bar {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
  }

  /* 2. Stack them vertically and add a gap */
  .premium-search-bar .input-group {
    flex-direction: column;
    gap: 15px;
  }

  .premium-search-bar .input-group-text {
    display: none; /* Hide icon on mobile to save space */
  }

  /* 3. Style the input as a standalone floating box */
  .search-main {
    width: 100% !important;
    border-radius: 16px !important; /* Fully rounded on all sides */
    text-align: center;
    background: #ffffff !important;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.1) !important;
    border: 1px solid #e2e8f0 !important;
  }

  /* 4. Style the button as a standalone floating pill */
  .search-btn-main {
    width: 100% !important;
    margin-left: 0 !important; /* Removes Bootstrap's default overlap margin */
    border-radius: 16px !important; /* Fully rounded on all sides */
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
  }

  .premium-filter-group {
    margin-bottom: 0.5rem;
  }
  /* Extra Small Devices (Mobile Phones) */
  @media (max-width: 480px) {
    /* Reduce section padding */
    .job-search-section {
      padding: 2rem 0 3rem;
    }

    /* Make search input smaller */
    .search-main {
      font-size: 0.9rem;
      padding: 0.8rem;
    }

    /* Button smaller */
    .search-btn-main {
      font-size: 0.9rem;
      padding: 0.8rem;
    }

    /* Filter box compact */
    .premium-filter-group {
      padding: 0.8rem;
    }

    /* Labels smaller */
    .premium-filter-group .form-label {
      font-size: 0.7rem;
    }

    /* Inputs smaller */
    .filter-input {
      font-size: 0.85rem;
    }

    /* Job title smaller */
    .job-title {
      font-size: 1.1rem;
    }

    /* Badges smaller */
    .premium-badge-soft {
      font-size: 0.75rem;
      padding: 5px 10px;
    }

    /* Buttons full width */
    .btn-apply {
      width:85%;
      font-size: 0.85rem;
      padding: 8px;
    }

    /* Stack job meta */
    .job-meta-top {
      flex-direction: column;
      align-items: flex-start;
      gap: 5px;
    }
  }
}
