/* all content */
.jobs-display {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  max-width: 100%;
}

.job-content {
  display: relative;
  display: flex;
  gap: 0;
  width: 100%;
}

/* left content */

.job-listing-side {
  /* position: sticky;
  top: 60px; */
  flex: 1 1 100px;
  max-width: 640px;
  border-right: 1px solid #eaeaea;
  padding: 50px 40px 40px 15vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 120vh;
  /* max-height: 140vh; */
}

/* left content headers */
.job-search {
  position: relative;
  display: flex;
  gap: 10px;
}

.job-listing-headers {
  position: sticky;
  top: 67px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: white;
  z-index: 1;
  /* position: relative; */
}

.job-listing-headers.stuck {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 20px 0;
}

.job-listing-header {
  font-size: 18px;
  font-weight: 600;
}

.job-listing-search {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid #0658c4;
  border-radius: 5px;
  font-size: 14px;
  color: #666;
  background-color: #0658c412;
}

.listing-search {
  border: none;
  width: 100%;
  background-color: transparent;
  font-size: 12px;
}

.listing-search:focus {
  outline: none;
}

.job-listing-filter {
  display: flex;
  gap: 10px;
  max-width: 400px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.job-listing-filter::-webkit-scrollbar {
  display: none;
}

.job-listing-filter:first-child {
  scroll-snap-align: start;
}

.listing-filter {
  padding: 8px 21px;
  background-color: #f0f0f0;
  font-size: 12px;
  font-weight: 600;
  border-radius: 17px;
  color: #222121;
  text-decoration: none;
  display: flex;
  justify-content: center;
  white-space: nowrap;
}

.filter-active {
  background-color: #0658c4;
  color: white;
}

.next-filter,
.previous-filter {
  position: absolute;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  font-size: 14px;
  color: #909090;
  background: white;
  cursor: pointer;
  bottom: 0;
}

.job-listing-headers.stuck .next-filter,
.job-listing-headers.stuck .previous-filter {
  bottom: 20px;
}

.next-filter:hover,
.previous-filter:hover {
  color: #222121;
  transition: 0.4s bottom;
}

.previous-filter {
  left: -10px;
}

.next-filter {
  right: -10px;
}

.show-filter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100px;
  color: white;
  background-color: #0658c4;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.job-filter {
  position: absolute;
  left: 0;
  right: 0;
  background-color: white;
  z-index: 1;
  border-radius: 17px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.filter-headers {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  font-weight: 700;
  font-size: 14px;
}

.reset-filter {
  color: rgb(248, 86, 86);
  font-size: 13px;
  cursor: pointer;
}

.filter-button {
  display: flex;
  justify-content: right;
}

.filter-submit {
  height: 30px;
  width: 100px;
  color: white;
  background-color: #0658c4;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.filter-submit:hover {
  background-color: #257ff6;
  transition: 0.4s all;
}

/* left content middle */
.job-listing-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  flex: 1;
}

.listing-con-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

.listing-content-header {
  padding-left: 7px;
  font-size: 12px;
  color: #909090;
}

.listing-content-header span {
  padding: 0 4px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #000;
}

.sort-jobs {
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #acbacc42;
  border-radius: 5px;
  color: #222121;
  font-size: 12px;
}

.sort-jobs select {
  background-color: transparent;
  border: none;
  font-size: 12px;
  width: 70px;
}

.sort-jobs select:focus {
  outline: none;
}

.no-jobs,
.error {
  font-size: 13px;
  font-weight: 600;
  color: #585757;
}

.error {
  color: #ff1a1a;
}

.total-jobs {
  color: black;
}

.view-all-jobs-link {
  color: #0658c4;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.4px;
  font-weight: 500;
}

.main-list {
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #f8f8f8;
  border-radius: 12px;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.highlighted {
  margin: 10px;
  outline: 2px solid #0658c4;
  transition: 0.4s all;
}

.job-list-top {
  display: flex;
  gap: 10px;
}

.job-list-top img {
  height: 63px;
  width: 63px;
  object-fit: contain;
}

.list-top-headers {
  display: flex;
  flex-direction: column;
  /* gap: 5px; */
}

.job-list-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-overflow: ellipsis;
}

.company-list-name {
  font-size: 12px;
  color: #585757;
}

.list-extras {
  display: flex;
  gap: 10px;
  padding: 5px 0;
}

.extra {
  padding: 5px 10px;
  background-color: #0658c412;
  font-size: 11px;
  font-weight: 600;
  border-radius: 24px;
}

.job-des {
  font-size: 13px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #585757;
  line-height: 1.4em;
  max-height: calc(1.4em * 2);
  display: none;
}

.list-bottom {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-top: 5px;
}

.job-list-location {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-post {
  font-size: 12px;
  color: #585757;
  letter-spacing: 0.4px;
  padding-top: 6px;
}

.listing-button {
  display: flex;
  justify-content: center;
}

.load-more {
  border: 2px solid #acbacc42;
  color: #257ff6;
  font-weight: 600;
  border-radius: 44px;
  background-color: white;
  height: 45px;
  width: 140px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.load-more span {
  font-size: 13px;
}

.load-more:hover {
  background-color: #f1efef7d;
  transition: 0.4s all;
}

/* right content */
.display-content {
  position: sticky;
  top: 60px;
  flex: 1 1 520px;
  padding: 50px 15vh 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: calc(100vh - 60px);
  max-width: 100%;
  overflow: auto;
  z-index: 1;
}

.bread-crumb {
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.bread-crumb a {
  color: #0658c4;
  text-decoration: none;
  font-weight: 600;
}

.job-empty-content {
  max-width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-x: hidden;
}

/* ads */
.job-ads {
  display: flex;
  width: 100%;
  border-radius: 17px;
  /* padding: 10px 0 0 0; */
  box-sizing: border-box;
}

.empty-content-img {
  min-width: 100%;
  height: 100%;
  position: relative;
  border-radius: 17px;
  background-color: #e3e6ea;
  display: flex;
  justify-content: center;
}

.empty-content-img img {
  max-width: 100%;
  width: auto;
  height: 200px;
  border-radius: 17px;
  object-fit: cover;
}

.visit-ad {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 80px;
  height: 40px;
  background-color: #0658c4;
  border-radius: 7px;
  color: white;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.visit-ad:hover {
  background-color: #257ff6;
  transition: 0.4s all;
}

.visit-ad-button {
  width: 150px;
  height: 45px;
  background-color: #0658c4;
  border-radius: 7px;
  color: white;
  font-size: 14px;
  text-decoration: none;
}

/* //end of ads */

/* job empty content */

.jobs-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}

.login-empty-content {
  display: flex;
  justify-content: center;
  width: 100%;
}

.login-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 0 1 350px;
}

.login-empty-header {
  font-size: 18px;
  font-weight: 700;
}

.login-empty-text {
  font-size: 13px;
  color: #585757;
  text-align: center;
  width: 100%;
}

.empty-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
  width: 100%;
}

.google-signin-wrapper {
  margin: 10px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.google-signin-button {
  display: flex;
  justify-content: center;
  width: 100%;
}

.google-signin-button > div {
  width: 100% !important;
}

.google-signin-button iframe {
  width: 100% !important;
}

.empty-input {
  margin-top: 10px;
  padding: 5px 12px;
  background-color: #f0f0f0;
  border-radius: 6px;
  width: 100%;
  border: none;
  font-weight: 500;
}

.empty-input:focus {
  outline: none;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.empty-link {
  font-size: 13px;
  font-weight: 600;
  color: #0658c4;
  text-decoration: none;
}

.empty-link:hover {
  font-weight: 700;
}

.empty-signin-button {
  background-color: #0658c4;
  width: 100%;
  padding: 6px 12px;
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
}

.empty-signin-button:hover {
  background-color: #257ff6;
  transition: 0.4s all;
}

.empty-question {
  font-size: 13px;
  color: #585757;
  text-align: center;
}

.login-empty .divider {
  margin: 10px 0 0;
}

.g_id_signin {
  border-radius: 10px;
}

.loading-context {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 17px;
  color: #585757;
  font-size: 14px;
}

.right-loading-context {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #585757;
  font-size: 14px;
  align-items: center;
}

.main-empty-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
}

.main-empty-header {
  font-size: 18px;
  font-weight: 600;
  text-transform: capitalize;
  color: #383636;
  text-align: center;
  letter-spacing: 1px;
}

.main-empty-des {
  color: #585757;
  font-size: 13px;
  text-align: center;
  width: 75%;
}

.main-empty-gif {
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-empty-gif img {
  width: auto;
  height: 35vh;
  border-radius: 10px;
}

/* loaders */

.loader {
  width: 15px;
  padding: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0658c4;
  --_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: l3 1s infinite linear;
}

@keyframes l3 {
  to {
    transform: rotate(1turn);
  }
}

@keyframes hideFilter {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    display: none;
  }
}

@keyframes ShowFilter {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    display: flex;
  }
}

/* skeleton loaders */
.skeleton-loader {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-headers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.skeleton-headers-left {
  width: 65%;
  height: 20px;
  background-color: #f3f4f6;
  border-radius: 5px;
}

.skeleton-lists {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skeleton-list {
  padding: 10px 20px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  background-color: #f3f4f6;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-list-image img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.skeleton-list-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skeleton-list-company {
  width: 80%;
  height: 15px;
  background-color: #9ca3af;
  border-radius: 15px;
}

.skeleton-list-date {
  width: 65%;
  height: 15px;
  background-color: #d1d5db;
  border-radius: 15px;
}

/* details skeloton */

.details-skeleton {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background: white;
}

.details-skeleton-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.details-skeleton-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.details-skeleton-company {
  width: 120px;
  height: 15px;
  background-color: #f3f4f6;
  border-radius: 17px;
}

.skeleton-job-title {
  width: 50%;
  height: 15px;
  background-color: #f3f4f6;
  border-radius: 17px;
}

.details-skeleton-other {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.details-skeleton-date {
  width: 80px;
  height: 15px;
  background-color: #f3f4f6;
  border-radius: 17px;
}

.details-skeleton-buttons {
  display: flex;
  gap: 10px;
}

.details-skeleton-button {
  width: 80px;
  height: 30px;
  background-color: #f3f4f6;
  border-radius: 17px;
}

.details-skeleton-apply {
  background-color: #0658c4;
}

.details-skeleton-duration {
  background-color: #fef6f6;
}

.details-skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.details-skeleton-extras {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 50px;
}

.details-skeleton-extra {
  height: 50px;
  background-color: #0658c412;
  border-radius: 10px;
}

.details-skeleton-description {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.details-skeleton-description-header {
  width: 75%;
  height: 10px;
  background-color: #9ca3af;
  border-radius: 10px;
}

.details-skeleton-description-content:nth-last-child(3) {
  width: 60%;
  height: 10px;
  background-color: #f3f4f6;
  border-radius: 10px;
}

.details-skeleton-description-content:nth-last-child(2) {
  width: 65%;
  height: 10px;
  background-color: #f3f4f6;
  border-radius: 10px;
}

.details-skeleton-description-content:nth-last-child(1) {
  width: 50%;
  height: 10px;
  background-color: #f3f4f6;
  border-radius: 10px;
}

@keyframes pulse {
  50% {
    opacity: 0.7;
  }
}

@media (max-width: 1400px) {
  .job-listing-side {
    flex: 1 1 500px;
    max-width: 500px;
  }
}

@media (max-width: 1134px) {
  .job-content {
    flex-wrap: wrap-reverse;
  }

  .job-listing-side {
    flex: 1 1 720px;
    max-width: 100%;
    padding: 0 7.5dvw 40px 7.5dvw;
    border: none;
  }

  .job-listing-filter {
    width: 100%;
    max-width: 500px;
  }

  .listing-filter {
    max-width: fit-content;
  }

  .main-list {
    padding: 0;
  }

  .jon-listing-side {
    max-height: auto;
  }

  .jobs-placeholder {
    display: none;
  }

  .main-empty-content {
    display: none;
  }

  .bread-crumb {
    display: none;
  }

  .login-empty-content {
    display: none;
  }

  .display-content {
    position: relative;
    top: 0;
    padding: 40px 5dvw;
    height: fit-content;
  }

  .job-details {
    /* padding: 20px 0 100px; */
    position: fixed;
    top: 63px;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    border-top: 1px solid #0658c412;
    background-color: #0658c412;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
  }

  .mobile-hidden {
    display: none;
  }

  .details-skeleton {
    position: fixed;
    top: 63px;
    right: 0;
    bottom: 0;
    left: 0;
    flex: 1;
    height: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: none;
    background: white;
  }

  .details-skeleton div {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  .right-loading-context {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    color: white;
  }
}

@media (max-width: 768px) {
  .jobs-display.banner-active {
    margin-top: 150px;
  }

  .job-details.banner-active {
    top: 163px;
    bottom: -100px;
  }

  .details-skeleton.banner-active {
    top: 163px;
  }

  .job-listing-side {
    flex: 1 1 100px;
    padding: 0 5dvw 40px 5dvw;
  }
  .display-content {
    padding: 40px 5dvw 20px 5dvw;
    min-height: fit-content;
  }
  .job-listing-filter {
    max-width: 400px;
  }

  .job-listing-header {
    font-size: 16px;
  }

  .job-list-title {
    font-size: 14px;
  }

  .jobs-ads {
    width: 90vw;
    height: 38.08vw;
  }

  .empty-content-img {
    width: 90vw;
    height: 38.08vw;
  }

  .empty-content-img img {
    width: 90vw;
    height: 38.08vw;
    object-fit: cover;
  }

  .job-empty-content {
    min-height: 45vw;
  }
}

@media (max-width: 480px) {
  .job-listing-side {
    padding: 0 5dvw 40px;
  }

  .display-content {
    padding: 40px 5dvw 0;
    min-height: fit-content;
  }

  .job-listing-filter {
    max-width: 300px;
  }

  .extra {
    display: none;
  }

  .list-bottom {
    display: none;
  }

  .job-des {
    display: none;
  }

  .listing-filter {
    font-size: 12px;
  }

  .details-skeleton-date {
    max-width: 300px;
    width: 100%;
    height: 10px;
    margin-bottom: 20px;
  }

  .details-skeleton-extras {
    margin-bottom: 20px;
    gap: 20px;
  }

  .details-skeleton-buttons {
    display: none;
  }
}

@media (max-width: 340px) {
  .job-listing-filter {
    max-width: 250px;
  }
}

.hideFilter {
  animation: hideFilter 0.5s forwards;
}

.showFilter {
  animation: ShowFilter 0.5s forwards;
}

.logo-class i {
  color: #0658c4;
  font-size: 18px;
}

/* /shareModal */

#shareModal {
  display: flex;
  justify-content: center;
  align-items: center;
}

.share-modal {
  max-width: 270px !important;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.share-header {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.share-buttons {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.share-button {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1effe;
  border-radius: 50%;
  font-size: 16px;
  color: #000;
  cursor: pointer;
  text-decoration: none;
}

.share-button:hover {
  background-color: #e1effe;
}

.share-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #e1effe;
  border-radius: 5px;
  font-size: 14px;
  width: 100%;
  z-index: 1;
}

.copy-link {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.copy-link::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 1000;
}

/* Show tooltip on hover */
.copy-link:hover::after {
  opacity: 1;
}

.share-link span {
  white-space: nowrap;
  font-size: 13px;
  overflow-x: hidden;
}

.custom-tooltip {
  position: absolute;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  display: none;
  z-index: 9999;
}

.hidden {
  display: none !important;
}

.no-overflow {
  overflow: hidden;
}
