/**=====================
  Home scss
==========================**/
.autocomplete-results {
  margin-top: 8px;
  border-radius: 6px !important;
  position: absolute;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background-color: $white;
  border: 1px solid #ddd;
  z-index: 999;
  padding: 14px;

  &::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #ddd;
  }

  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: rgba(229, 232, 234, 0.4);
  }

  .autocomplete-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;

    &:hover {
      img {
        box-shadow: 3px 3px 9px rgba($border-color, 0.38);
      }

      h5 {
        color: var(--theme-color);
        margin-left: 10px;

        [dir="rtl"] & {
          margin-left: unset;
          margin-right: 10px;
        }
      }
    }

    +.autocomplete-item {
      border-top: 1px solid rgba(221, 221, 221, 0.52);
      padding-top: 10px;
      margin-top: 10px;
    }

    img {
      object-fit: cover;
      margin-right: 10px;
      width: 94px;
      height: 60px;
      border-radius: 5px;
      transition: all 0.15s ease-in-out;

      [dir="rtl"] & {
        margin-right: unset;
        margin-left: 10px;
      }
    }

    h5 {
      font-size: 16px;
      font-weight: 500;
      transition: all 0.15s ease-in-out;
    }
  }
}


.slick-list {
  .slick-track {
    margin-inline: -15px;

    @media (max-width: 767.98px) {
      margin-inline: -5px;
    }

    .slick-slide {
      padding-inline: 15px;

      @media (max-width: 767.98px) {
        padding-inline: 5px;
      }
    }
  }
}

.service-list-section {
  position: relative;

  .slick-prev {
    background-repeat: no-repeat;
    background-size: 80% auto;
    background-position: center;
    width: 28px;
    height: 20px;
    top: -75px;
    position: absolute;
    opacity: 1;
    content: none;
    border: none;
    padding: 0;
    color: transparent;
    background-color: transparent;


    &.slick-arrow {
      background-image: url("@/svg/preview.svg");
      right: 30px;
      left: auto;

      [dir="rtl"] & {
        right: auto;
        left: 0;
      }

      &.swiper-button-disabled {
        background-image: url("@/svg/preview-disable.svg") !important;
      }
    }
  }

  .slick-next {
    background-repeat: no-repeat;
    background-size: 80% auto;
    background-position: center;
    width: 28px;
    height: 20px;
    top: -75px;
    position: absolute;
    opacity: 1;
    content: none;
    border: none;
    padding: 0;
    color: transparent;
    background-color: transparent;


    &.slick-arrow {
      background-image: url("@/svg/next.svg") !important;
      right: 0;
      left: auto;

      [dir="rtl"] & {
        right: auto;
        left: 30px;
      }


      &.swiper-button-disabled {
        background-image: url("@/svg/next-disable.svg") !important;
      }

    }
  }

  .card {
    border: none;

    .card-image {
      border-radius: 5px;
      position: relative;
      overflow: hidden;

      .time {
        position: absolute;
        bottom: calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320)));
        right: calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320)));
        background-color: $white;
        padding: 3px calc(7px + (9 - 7) * ((100vw - 320px) / (1920 - 320)));
        border-radius: calc(4px + (5 - 4) * ((100vw - 320px) / (1920 - 320)));
        text-transform: capitalize;

        body.dark & {
          background-color: #323640;
        }

        .iconsax {
          --Iconsax-Size: calc(15px + (16 - 15) * ((100vw - 320px) / (1920 - 320)));
        }
      }
    }
  }
}

.job-request-section {
  .job-details {
    .position-relative {
      .job-image {
        border-radius: 11px; 
      }

      >div {
        margin-top: calc(-113px + (-191 - -113) * ((100vw - 991px) / (1920 - 991)));
        margin-bottom: calc(-47px + (-71 - -47) * ((100vw - 991px) / (1920 - 991)));
        margin-right: 64px;

        img {
          height: calc(240px + (360 - 240) * ((100vw - 991px) / (1920 - 991)));
        }
      }
    }

    .job-request-content {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;

      a {
        display: inline-block;
      }

      h3 {
        font-weight: 700;
        font-size: calc(20px + (32 - 20) * ((100vw - 320px) / (1920 - 320)));
        color: $title-color;
        width: 90%;

        @media (max-width: 991.98px) {
          width: 100%;
        }

        body.dark & {
          color: $white;
        }
      }

      p {
        width: 80%;
        font-size: calc(14px + (18 - 14) * ((100vw - 320px) / (1920 - 320)));
        color: $light-color;
        line-height: 1.5;
        margin-top: calc(8px + (12 - 8) * ((100vw - 320px) / (1920 - 320)));
        margin-bottom: calc(16px + (28 - 16) * ((100vw - 320px) / (1920 - 320)));

        @media (max-width: 991.98px) {
          width: 100%;
        }

        body.dark & {
          color: rgba($white, 0.6);
        }
      }

      .btn {
        width: max-content;
      }

      ul {
        display: grid;
        margin-top: 18px;
        gap: 3px;

        li {
          font-size: 16px;
          line-height: 1.5;

          .feather {
            width: 20px;
          }
        }
      }
    }
  }
}

.job-request-section-2 {
  .job-details {
    .job-image {
      border-radius: calc(8px + (11 - 8) * ((100vw - 320px) / (1920 - 320)));
      height: calc(194px + (440 - 194) * ((100vw - 320px) / (1920 - 320)));
      object-fit: cover;
      width: 100%;
    }

    .job-request-content {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;

      a {
        display: inline-block;
      }

      h3 {
        font-weight: 700;
        font-size: calc(20px + (32 - 20) * ((100vw - 320px) / (1920 - 320)));
        color: $title-color;
        body.dark & {
          color: $white;
        }
      }

      p {
        margin-top: calc(6px + (12 - 6) * ((100vw - 320px) / (1920 - 320)));
        font-size: calc(15px + (18 - 15) * ((100vw - 320px) / (1920 - 320)));
        color: $light-color;
        line-height: 1.5;
        body.dark & {
          color: rgba($white, 0.6);
        }
      }

      ul {
        display: grid;
        margin-top: calc(12px + (18 - 12) * ((100vw - 320px) / (1920 - 320)));
        gap: 5px;
        margin-bottom: calc(16px + (28 - 16) * ((100vw - 320px) / (1920 - 320)));

        li {
          font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
          line-height: 1.5;

          .feather {
            width: calc(18px + (20 - 18) * ((100vw - 320px) / (1920 - 320)));
          }
        }
      }

      .btn {
        width: max-content;
      }
    }
  }
}