.w-1400 {
  margin: auto;
  max-width: 1400px;

  @media (max-width: 1440px) {
    max-width: 95%;
  }
}

.w-1200 {
  max-width: 1200px;
  margin: auto;

  @media (max-width: 1240px) {
    max-width: 95%;
  }
}

.pb-5 {
  padding-bottom: 5rem;
}

.min-height-banner {
  min-height: 333px;
}

.align-end {
  align-items: end !important;
}

.detail__page-banner-title {
  text-align: start !important;
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  padding-bottom: calc(11.5rem + 2rem - 5rem);

  @media (max-width: 1200px) {
    row-gap: 1.3vw;
    padding-bottom: calc(11.5rem + 2rem - 6.6vw);
  }

  @media (max-width: 700px) {
    padding-bottom: calc(18vw + 2rem - 6.6vw);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  @media (max-width: 400px) {
    text-align: center !important;
  }

  .smallTitle {
    font-size: 1rem;
  }

  .title {
    font-weight: bold;
    margin-left: -3px;
    line-height: 1.2;
  }
}

.seek {
  position: relative;
  padding: 5.3rem 0rem;

  @media (max-width: 1024px) {
    padding: 3rem 0 0 0;
  }

  &::before {
    content: '';
    background-color: #f6f6f6;
    position: absolute;
    top: 0;
    left: 0;
    width: 51.6%;
    height: 100%;
    z-index: -10;

    @media (max-width: 1024px) {
      display: none;
    }
  }

  .bg_img {
    position: absolute;
    right: 0;
    top: 0;
    z-index: -20;

    @media (max-width: 1024px) {
      display: none;
    }
  }

  .seek-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 30;

    .icon-wrap {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 160px;
      aspect-ratio: 160 / 170;
      color: #fff;
      border-radius: 5px;
      transform: translate(-80%, 20%);
      background: linear-gradient(135deg, #479ddc, #186298);

      @media (max-width: 1440px) {
        width: 11.1vw;
      }

      @media (max-width: 1280px) {
        display: none;
      }

      img {
        max-height: 4rem;
        width: 38%;
        height: auto;
      }

      span {
        padding-top: 1rem;
        font-weight: 600;
        font-size: 18px;
      }
    }
  }

  .seek_container {
    display: grid;
    grid-template-columns: 1fr 54.3%;
    align-items: center;
    position: relative;
    z-index: 10;

    @media (max-width: 1024px) {
      grid-template-columns: 1fr;
      row-gap: 2rem;
    }

    .info {
      margin-right: 2rem;

      @media (max-width: 1024px) {
        margin-right: 0rem;
      }

      .content {
        max-width: 540px;

        @media (max-width: 1024px) {
          max-width: 100%;
          text-align: center;
        }

        h3 {
          margin-bottom: 25px;
          text-align: start;

          @media (min-width: 768px) {
            font-size: clamp(1.75rem, 0.4167rem + 2.7778vw, 2.5rem);
          }

          @media (max-width: 1024px) {
            text-align: center;
          }

          span {
            font-weight: 600;
            color: #339966;
          }
        }

        p {
          color: #3e3e3e;
          margin-bottom: 3.3vw;

          @media (max-width: 768px) {
            margin-bottom: 2rem;
          }

          span {
            font-weight: 600;
            color: #0c66a3;
          }
        }

        .info_link {
          background-color: #fff;
          display: inline-block;
          border: 1px solid #339966;

          a {
            font-weight: 600;
            color: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0rem 2.2rem;
            height: 5.1rem;
            transition: all 0.3s ease;

            &:hover {
              background-color: #339966;
              color: #fff;

              .icon_wrap img {
                transform: translate(0%, -5%);

                &.icon {
                  opacity: 0;
                }

                &.icon_color {
                  opacity: 1;
                }
              }
            }

            .icon_wrap {
              position: relative;
              margin-right: 1rem;
              transform: translateY(4px);

              img {
                transition: transform 0.4s ease;

                &.icon {
                  opacity: 1;
                }

                &.icon_color {
                  position: absolute;
                  top: 0;
                  left: 0;
                  opacity: 0;
                }
              }
            }

            span {
            }
          }
        }
      }
    }

    .img {
      img {
        display: block;
        max-height: 31.2rem;
        width: 100%;
        height: auto;
        box-shadow: 0 20px 20px 0px rgba(0, 0, 0, 0.1);

        @media (max-width: 1024px) {
          max-height: 100%;
          margin: auto;
        }
      }
    }
  }
}

.search {
  padding-top: 4.5vw;

  @media (max-width: 1024px) {
    padding-top: 0vw;
  }

  .search_local {
    position: relative;
    z-index: 10;

    .search_container {
      display: grid;
      grid-template-columns: 1fr 47%;
      margin-bottom: -13rem;

      @media (max-width: 1440px) {
        max-width: 100%;
      }

      @media (max-width: 1024px) {
        grid-template-columns: 1fr;
        margin-bottom: 0rem;
      }

      .img {
        width: 100%;
        position: relative;
        z-index: 10;

        @media (max-width: 1024px) {
          order: 2;
        }

        img {
          display: block;
          max-height: 31.3rem;
          height: auto;
          width: 116%;

          @media (max-width: 1024px) {
            width: 95%;
            margin: 0 auto;
            padding-bottom: 3rem;
          }
        }
      }

      .info {
        flex: 1;
        position: relative;
        z-index: 10;

        @media (max-width: 1024px) {
          order: 1;
        }

        .wrap {
          background-color: #fff;
          height: 100%;
          width: 100%;
          display: flex;
          align-items: center;
          justify-content: center;
          flex-direction: column;
          transform: translateY(5vw);
          position: relative;
          padding: 4rem 3rem;
          z-index: 20;
          background-color: #fff;
          box-shadow: 0 0px 18px 9px rgba(0, 0, 0, 0.1);

          @media (max-width: 1024px) {
            transform: translateY(0);
            padding: 3rem 1rem;
            box-shadow: none;
          }

          .content {
            max-width: 490px;

            @media (max-width: 1024px) {
              max-width: 100%;
              text-align: center;
            }

            h3 {
              margin-bottom: 30px;
              text-align: start;

              @media (min-width: 768px) {
                font-size: clamp(1.75rem, 0.4167rem + 2.7778vw, 2.5rem);
              }

              @media (max-width: 1024px) {
                text-align: center;
              }

              span {
                font-weight: 600;
                color: #339966;
              }
            }

            p {
              color: #3e3e3e;
              margin-bottom: 3.2vw;
              letter-spacing: 1.1px;

              @media (max-width: 768px) {
                margin-bottom: 2rem;
              }

              span {
                font-weight: 600;
                color: #0c66a3;
              }
            }

            .info_link {
              background-color: #fff;
              display: inline-block;
              border: 1px solid #339966;

              a {
                font-weight: 600;
                color: #000;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 0rem 2.2rem;
                height: 5.1rem;
                transition: all 0.3s ease-out;

                &:hover {
                  background-color: #339966;
                  color: #fff;

                  .icon_wrap img {
                    transform: translate(0%, -5%);

                    &.icon {
                      opacity: 0;
                    }

                    &.icon_color {
                      opacity: 1;
                    }
                  }
                }

                .icon_wrap {
                  position: relative;
                  margin-right: 1.5rem;
                  transform: translateY(2px);

                  img {
                    transition: transform 0.3s ease-out;

                    &.icon {
                      opacity: 1;
                    }

                    &.icon_color {
                      position: absolute;
                      top: 0;
                      left: 0;
                      opacity: 0;
                    }
                  }
                }

                span {
                }
              }
            }
          }
        }
      }
    }
  }

  .search_Nationwide {
    background-color: #f6f6f6;
    position: relative;
    overflow: hidden;

    .search_container {
      padding-top: 18.8rem;
      position: relative;
      display: flex;
      align-items: center;

      @media (max-width: 1024px) {
        justify-content: center;
        padding-top: 0rem;
      }

      .info {
        position: relative;
        z-index: 10;
        min-height: 420px;

        @media (max-width: 1024px) {
          min-height: 100%;
          padding: 4rem 1rem;
        }

        .content {
          display: flex;
          align-items: center;
          margin-bottom: 3rem;
          margin-top: 2.5rem;

          @media (max-width: 1024px) {
            margin-top: 0rem;
          }

          .icon {
            background-color: #fff;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            aspect-ratio: 1/1;
            width: 6.4rem;
            box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.1);
            margin-right: 1.6rem;

            img {
              aspect-ratio: 40/38;
              width: 40px;
            }
          }

          .txt {
            h3 {
              text-align: start;
              margin-bottom: 1rem;

              @media (min-width: 768px) {
                font-size: clamp(1.75rem, 1.3056rem + 0.9259vw, 2rem);
              }
            }

            p {
              color: #535353;
            }
          }
        }

        .info_links {
          display: flex;
          flex-wrap: wrap;
          column-gap: 2.2rem;

          @media (max-width: 700px) {
            flex-direction: column;
            row-gap: 2.2rem;
          }

          .links {
            background-color: #fff;
            display: inline-block;
            border: 1px solid #263a65;

            a {
              font-weight: 600;
              color: #000;
              display: flex;
              align-items: center;
              justify-content: center;
              padding: 0rem 2.2rem;
              height: 5.1rem;
              transition: all 0.3s ease-out;

              &:hover {
                background-color: #263a65;
                color: #fff;

                .icon_wrap img {
                  transform: translate(0%, -5%);

                  &.icon {
                    opacity: 0;
                  }

                  &.icon_color {
                    opacity: 1;
                  }
                }
              }

              .icon_wrap {
                position: relative;
                margin-right: 1rem;

                img {
                  transition: transform 0.4s ease;

                  &.icon {
                    opacity: 1;
                  }

                  &.icon_color {
                    position: absolute;
                    top: 0;
                    left: 0;
                    opacity: 0;
                  }
                }
              }

              span {
              }
            }
          }
        }
      }
    }

    .bg_img {
      position: absolute;
      bottom: 0;
      right: 0;

      @media (max-width: 1024px) {
        opacity: 0.6;
        right: auto;
        left: 50%;
        transform: translateX(-53%);
      }

      img {
        display: block;
      }
    }
  }
}

.advertise {
  position: relative;

  .container {
    margin-bottom: -16rem;
    padding-top: 7rem;
    position: relative;
    z-index: 10;

    &.pt-10 {
      padding-top: 9.7rem;

      @media (max-width: 1440px) {
        padding-top: 7.8vw;
      }
    }

    @media (max-width: 1440px) {
      padding-top: 7.8vw;
    }

    .title {
      max-width: 1132px;
      text-align: center;
      position: relative;
      padding: 0rem 1rem;
      margin-right: auto;
      margin-left: auto;

      &.title-line {
        margin-bottom: 5.4rem;

        &::after {
          content: '';
          position: absolute;
          bottom: -17%;
          left: 50%;
          transform: translate(-50%, 100%);
          width: 0.5px;
          height: 4rem;
          background-color: #cccccc;
        }
      }

      h3 {
        margin-bottom: 26px;

        span {
          color: #339966;
        }
      }

      p {
        color: #3e3e3e;

        a {
          font-weight: 600;
          color: #0c66a3;
        }
      }
    }

    .info_lists {
      .item {
        padding: 2rem 1.6rem;

        @media (max-width: 1440px) {
          padding: 2rem 1.8vw;
        }

        a {
          box-shadow: 0 7px 20px 5px rgba(0, 0, 0, 0.2);
          display: grid;
          grid-template-columns: minmax(180px, 38.4%) 1fr;
          position: relative;
          z-index: 20;
          background-color: #fff;
          border-radius: 7px;
          transition: all 0.5s ease-out;

          @media (max-width: 1024px) {
            box-shadow: 0 7px 20px 1px rgba(0, 0, 0, 0.2);
          }

          @media (max-width: 768px) {
            box-shadow: 0 3px 11px 4px rgba(0, 0, 0, 0.2);
          }

          &:hover {
            transform: translateY(-5%);

            .info {
              h5 {
                color: #0c66a3;
              }

              .btn {
                color: #fff;

                &::after {
                  left: 0;
                  right: initial;
                  width: 100%;
                }
              }
            }
          }

          .img {
            img {
              width: 100%;
              height: auto;
              max-height: 100%;
            }
          }

          .info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: start;
            row-gap: 1.5rem;
            margin: 0rem auto;
            padding-left: 2.5rem;
            padding-right: 1.6rem;

            @media (max-width: 1440px) {
              padding-left: 2.1vw;
              padding-right: 1.4vw;
              row-gap: 1.6vw;
            }

            @media (max-width: 768px) {
              row-gap: 3.1vw;
            }

            .date {
              font-weight: 600;
              color: #787878;
            }

            h5 {
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 2; /* 顯示幾行 */
              overflow: hidden;
              font-size: clamp(1.1rem, 0.3889rem + 1.4815vw, 1.5rem);
              font-weight: 800;
              transition: all 0.5s ease-out;
            }

            p {
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 2; /* 顯示幾行 */
              overflow: hidden;
              font-size: 18px;
              color: #3e3e3e;
            }

            .btn {
              font-family: 'Muli', sans-serif;
              display: inline-block;
              position: relative;
              padding: 15px 25px;
              font-size: 16px;
              border: 1px solid #ccc;

              &:hover {
                color: #fff;

                &::after {
                  left: 0;
                  right: initial;
                  width: 100%;
                }
              }

              &:after {
                content: '';
                position: absolute;
                top: 0;
                right: 0;
                height: 100%;
                width: 0;
                background: #3ec4d8;
                transition: width 0.3s;
              }

              span {
                position: relative;
                z-index: 5;
              }
            }
          }
        }
      }

      .slick-dots {
        position: relative;
        bottom: -40px;

        .slick-active {
          button::before {
            opacity: 1;
            transition: all 0.3s ease-out;
          }
        }

        button::before {
          color: #fff;
          font-size: 0.9rem;
        }
      }

      .slick-prev {
        top: auto;
        bottom: 0;
        border: 1px solid #fff;
        width: 50px;
        height: 50px;
        transform: translate(-100%, 106%);
        transition: all 0.3s ease-out;

        &:active {
          background-color: #fff;
          transform: translate(-100%, 110%);

          &::after {
            color: #263a65;
          }
        }

        &::before {
          display: none;
        }

        &::after {
          font-size: 16px;
          color: #fff;
          transition: all 0.5s ease-out;
        }
      }

      .slick-next {
        top: auto;
        bottom: 0;
        border: 1px solid #fff;
        width: 50px;
        height: 50px;
        transform: translate(0, 106%);
        transition: all 0.3s ease-out;

        &:active {
          background-color: #fff;
          transform: translate(0, 110%);

          &::before {
            color: #263a65;
          }
        }

        &::before {
          font-family: 'fontello';
          font-size: 16px;
          color: #fff;
          transition: all 0.5s ease-out;
        }
      }
    }
  }

  .bg_img {
    position: absolute;
    left: 0;
    top: 0;
    z-index: -10;

    @media (max-width: 1024px) {
      display: none;
    }
  }

  .bg {
    background-color: #243b67;
    padding: 10.5rem 0rem;
  }
}

.recruitment-detail {
  background-color: #f6f6f6;
  padding: 5rem 0rem;

  @media (max-width: 1200px) {
    padding: 6.6vw 0rem;
  }

  .container {
    background-color: #fff;
    padding: 5rem 6.2rem;
    position: relative;
    z-index: 30;
    margin-top: -11.5rem;
    border-radius: 5px;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);

    @media (max-width: 1200px) {
      padding: 6.6vw 7vw;
    }

    @media (max-width: 700px) {
      margin-top: -18vw;
    }

    .title {
      font-weight: bold;
    }

    .banner {
      padding: 2.6rem 0rem;
      display: inline-block;

      img {
        width: 100%;
      }
    }

    .info {
      margin-bottom: 4rem;

      .text-blue {
        color: #0c66a3;
        font-weight: 600;
      }

      .text-green {
        color: #339966;
        font-weight: 600;
      }

      p {
        font-size: 20px;
        font-weight: 500;
        line-height: 1.6;
      }

      .info_block {
        padding-top: 2rem;

        &:has(.img) {
          display: grid;
          grid-template-columns: 1fr 1fr;

          @media (max-width: 1024px) {
            grid-template-columns: 1fr;

            .img {
              padding: 2rem 0rem;
            }
          }

          .content {
            padding-top: 1rem;
          }
        }

        &.block-50 {
          display: grid;
          grid-template-columns: 1fr 1fr;

          @media (max-width: 1200px) {
            grid-template-columns: 1fr;
          }
        }

        .content {
          h4 {
            font-size: 21px;
            font-weight: bold;
            margin-bottom: 1rem;
          }

          li {
            font-size: 18px;
            line-height: 1.6;
            color: #535353;
            padding-bottom: 0.2rem;
            padding-left: 1.6rem;
            position: relative;

            &::before {
              content: '';
              position: absolute;
              display: inline-block;
              left: 0.6rem;
              top: 0.8em;
              transform: translateY(-50%);
              width: 5px;
              height: 5px;
              margin-right: 5px;
              background-color: #535353;
              border-radius: 50%;
            }

            &:has(.text-green):before {
              background-color: #339966;
            }
          }
        }

        .img {
          img {
            width: 100%;
          }
        }
      }
    }

    .share {
      border-top: 1px solid rgba(83, 83, 83, 0.3);
      padding-top: 2rem;
      display: flex;
      align-items: center;

      p {
        font-size: 18px;
        font-weight: bold;
        padding-right: 1rem;
      }

      ul {
        display: flex;
        column-gap: 1rem;
      }
    }
  }

  .link_back {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding-top: 6rem;

    @media (max-width: 1200px) {
      padding-top: 8vw;
    }

    .btn {
      font-family: 'Muli', sans-serif;
      display: inline-block;
      position: relative;
      background-color: #fff;

      &:hover {
        a {
          color: #fff;
        }

        &::after {
          left: 0;
          right: initial;
          width: 100%;
        }
      }

      &:after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 0%;
        background: #3ec4d8;
        transition: width 0.3s;
      }

      a {
        border: 1px solid #ccc;
        display: block;
        padding: 1.9rem 2.1rem;
        font-size: 18px;
        position: relative;
        z-index: 5;
        transition: color 0.3s ease-out;
      }
    }
  }
}

html {
  scroll-behavior: smooth;
}
