@import url("./responsive.css");

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

.view1 {
  width: 100%;
  padding: 48px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  background-image: var(--primaryBg-gradient);
  margin-top: 60px;
  position: relative;
}

.bg-image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.1;
}

.view1 h1 {
  font-size: 40px;
  color: #fff;
  font-weight: 600;
}

.view1 a {
  width: fit-content;
  text-decoration: none;
  padding: 8px 24px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 4px;
}

.view2 {
  width: 100%;
  padding: 48px 5%;
  display: flex;
}

.seperator {
  height: 100vh;
  width: 1.2px;
  background-color: var(--light-gray);
  margin-inline: 4%;
  position: sticky;
  top: 70px;
}

.view2-left {
  width: 60%;
}

.jobs-body {
  width: 100%;
  margin: 0 auto;
}

.search {
  width: 100%;
  display: flex;
  align-items: center;
  /* gap: 8px; */
  padding: 8px 12px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
}

.search input {
  width: 100%;
  border: none;
}

.search input:focus {
  outline: none;
}

.job-cards {
  width: 100%;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.job {
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--primary-color);
}

.job-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.job-header h5 {
  max-width: 80%;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-header p {
  font-size: 15px;
  color: var(--dark-gray);
}

.job-location {
  width: 100%;
  font-size: 16px;
  color: var(--dark-gray);
  margin-top: 8px;
}

.job-details {
  width: 100%;
  margin-top: 8px;
}

.job-details p {
  font-size: 14px;
  color: var(--dark-gray);
}

.job-actions {
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
}

.job-actions .view-jd {
  display: block;
  width: fit-content;
  font-size: 13px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid var(--primary-color);
}

.job-actions .apply {
  display: block;
  width: fit-content;
  font-size: 13px;
  color: var(--primary-color);
  background-color: transparent;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid var(--primary-color);
}

/* Upload Box UI */
.resume-upload-box {
  cursor: pointer;
  border: 2px dashed rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  padding: 18px;
  transition: 0.2s ease;
  background: rgba(0, 0, 0, 0.02);
}

.resume-upload-box:hover {
  border-color: rgba(13, 110, 253, 0.8);
  background: rgba(13, 110, 253, 0.05);
  transform: translateY(-1px);
}

.upload-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.upload-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  font-size: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border: none;
}

.no-jobs {
  text-align: center;
}

.view2-right {
  width: 40%;
}

.view2-right h1 {
  font-size: 20px;
  font-weight: 600;
  text-decoration: underline;
}

.form-container {
  width: 100%;
  position: sticky;
  top: 75px;
}

.form-container form {
  margin-top: 1.5rem;
}

.error-message {
  margin: 2px 0 0 4px;
}

@media (max-width: 1024px) {
  .seperator {
    display: none;
  }

  .view2 {
    flex-direction: column;
    gap: 2rem;
  }

  .view2-right {
    width: 100%;
  }

  .view2-left {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .view1 h1 {
    font-size: 28px;
    text-align: center;
  }

  .job-header {
    align-items: start;
  }

  .job-header h5 {
    /* max-width: 80%; */
    white-space: pre-wrap;
    overflow: auto;
    text-overflow: unset;
  }

  .job-header p {
    white-space: nowrap;
  }
}
