/* =====================================================
   ROOT VARIABLES
===================================================== */
:root {
  --jl-primary: #039344;
  --jl-accent: #3ec1ff;
  --jl-bg: #f8fafc;
  --jl-border: #c1cdd4;
  --jl-muted: #64748b;
  --jl-heading: #0179BB;
}

/* =====================================================
   MAIN CONTAINER
===================================================== */
.job-container {
  display: grid;
  grid-template-columns: 3fr 7fr;
  width: 100%;
}

/* =====================================================
   SEARCH SECTION
===================================================== */
.job-search-container {
  padding: 1em;
}

.job-search-fields {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
  width: 100%;
}

.job-input-wrap {
  width: 100%;
}

.job-input-wrap label{
    color: #039344;
}

.job-input-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.job-search-input {
  width: 100%;
  height: auto;
  padding: 9px 36px 9px 12px;
  font-size: 16px;
  border: 1px solid #c2c2c2 !important;
  background: #fff;
  border-radius: 4px;
}
.job-search-input:focus {
  border-color: #456d3e !important;
}

/* Clear icon */
.clear-input {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  cursor: pointer;
  color: #999;
  display: none;
}

.clear-input:hover {
  color: #333;
}

.job-search-input:not(:placeholder-shown) + .clear-input {
  display: block;
}

.job-search-btn {
  width: 100%;
  border-radius: 30px;
  padding: 14px 32px;
  background-color: var(--jl-primary);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  color: white;
  cursor: pointer;
}

/* =====================================================
   JOB LIST
===================================================== */
.jobs-list-container {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  padding: 0rem 1rem 1rem 1rem;
}

.job-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px;
  /* background: var(--jl-bg); */
  border-bottom: 1px solid #e2e8f0;
  /* border-radius: 12px; */
  text-decoration: none;
  transition: all 0.25s ease;
}

.job-card:hover {
  background: #f1f5f9;
  transform: translateY(-0.5px);
}

.job-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.job-title-section h6 {
  margin: 0;
  color: var(--jl-heading);
  text-transform: capitalize;
  font-size:1rem;
  font-weight:700;
}

.job-meta-section {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #555;
}

.job-location,
.job-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon {
  color: #0066cc;
}

.arrow {
  font-size: 22px;
  color: #0066cc;
}

/* =====================================================
   SKELETON LOADER
===================================================== */
.skeleton-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 1.5rem;
}

.skeleton-card {
  padding: 20px;
  border-radius: 12px;
  background: #e5e7eb;
}

.skeleton-title,
.skeleton-meta {
  background: linear-gradient(90deg, #e5e7eb, #f3f4f6, #e5e7eb);
  animation: shimmer 1.2s infinite;
}

.skeleton-title {
  height: 18px;
  width: 60%;
  margin-bottom: 10px;
}

.skeleton-meta {
  height: 14px;
  width: 40%;
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

/* =====================================================
   JOB DETAILS PAGE
===================================================== */

.back-row {
  margin-bottom: 1rem;
}

.back-row a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.arrow-back {
  transform: rotate(90deg);
}

.job-order-title-header {
  border-bottom: 1px solid var(--jl-border);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  color:var(--jl-heading);
}

.job-order-title-header h3 {
    font-size: 1.8rem;
    margin:0px 0px 0.5em 0;
    font-weight:700;
}

.header-apply-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.comp-loc-div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.apply_btn {
  background-color: var(--jl-primary);
  padding: 0.8rem 1.2rem;
  color: #fff;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.apply_btn:hover {
  background: transparent;
  border: 2px solid var(--jl-primary);
  color: var(--jl-primary);
}

.description-span {
  margin-top: 1rem;
}
.job-description p {
  font-size: 1rem;
  margin-bottom: 0.2em !important;
  color: #333333;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* =====================================================
   SHARE BUTTONS
===================================================== */
.job-share-section h5 {
  margin-bottom: 0.5em !important;
  margin-top:0;
}
.job-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
===================================================== */

.job-details-container {
  padding: 2rem;
}
/* Tablet only */
@media (min-width: 768px) and (max-width: 1024px) {
  .job-search-fields {
    flex-direction: row;
    align-items: flex-end;
  }
}

@media (min-width: 1025px) {
  .job-details-container {
    padding: 2rem clamp(2rem, 10vw, 20rem);
  }
}

/* Tablets & Below */
@media (max-width: 1024px) {
  .job-container {
    grid-template-columns: 1fr;
  }
}

/* Tablets */
@media (min-width: 768px) {
  .job-search-btn {
    width: auto;
  }
  .job-search-container {
    padding-bottom: 1.5em;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .job-order-title-header {
    border-bottom: none;
  }
  .job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .job-meta-section {
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
  }

  .arrow {
    display: none;
  }

  .job-details-container {
    padding: 1rem;
  }
  .header-apply-row {
    flex-direction: column;
    align-items: stretch;
  }

  .apply_btn {
    width: 100%;
    text-align: center;
  }
  .jobs-list-container {
    gap: 0px;
    padding: 0rem;
    margin-top: 1rem;
  }
  .job-search-btn-wrap {
    width: 100%;
  }
  .job-search-btn,
  .apply_btn {
    width: 100% !important;
    border-radius: 8px !important;
    padding: 8px !important;
  }
  .apply-link {
    width: 100% !important;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .job-order-title-header {
    border-bottom: none;
  }
  .job-order-title-header h3 {
    font-size: 1.4rem;
  }

  .job-description {
    font-size: 0.95rem;
  }
  .job-description p {
    font-size: 0.9rem;
  }
  .job-search-container {
    padding: 0em;
  }
}
