main {
  flex-direction: column;
}

.content {
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins";
  position: relative;
  flex-direction: column;
  padding-bottom: 20px;

  &.search_container {
    .content_wrap {
      padding: 30px 0;
    }
  }

  &.search_content {
    background-color: #fff9d3;

    .content_wrap {
      padding: 20px 0;
    }
  }

  .content_wrap {
    width: var(--maxContent);
    height: fit-content;

    @media screen and (max-width: 900px) {
      width: 100% !important;
      padding: 20px !important;
    }

    .search {
      width: 100%;
      height: fit-content;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;

      .search_box {
        height: 30px;
        width: 350px;
        background-color: #c3deff;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50px;

        input {
          width: 95%;
          border: none;
          outline: none;
          background-color: transparent;
          padding: 5px;
          font-family: "Poppins";

          &::placeholder {
            font-weight: 600;
            color: #fff;
          }
        }
      }

      button {
        height: 30px;
        border: none;
        outline: none;
        background-color: #003092;
        color: #fff;
        padding: 5px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-weight: 600
      }
    }

    .content_title {
      width: fit-content;
      height: fit-content;
      padding-bottom: 20px;
      text-align: left;
      line-height: 1.2;

      p {
        padding-left: 20px;
        color: #003092;
      }

      h1 {
        text-align: center;
        font-size: 28px;
        font-weight: 600;
        color: #003092;
        position: relative;
        padding-left: 20px;

        @media screen and (max-width: 768px) {
          font-size: 20px;
        }

        @media screen and (max-width: 550px) {
          font-size: 18px;
        }

        &::after {
          content: "";
          height: 60%;
          width: 20px;
          position: absolute;
          left: -20px;
          top: 50%;
          transform: translateY(-50%);
          background-color: #003092;

          @media screen and (max-width: 768px) {
            left: -10px;
          }
        }
      }
    }

    .content_body {
      width: 100%;
      height: fit-content;
      min-height: calc(100vh - 500px);
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;
      gap: 20px;

      @media screen and (max-width: 480px) {
        gap: 10px;
      }

      .content_notfound {
        height: fit-content;
        width: 40%;
        padding: 10px 30px;
        box-shadow: 0px 0px 5px #64646451;
        text-align: center;
        background-color: #fff;
        border-radius: 10px;
      }

      .content_item {
        width: 100%;
        height: fit-content;
        background-color: #003092;
        border-radius: 30px;
        overflow: hidden;
        display: flex;
        align-items: stretch;

        @media screen and (max-width: 480px) {
          width: 100%;
          display: flex;
          align-items: center;
        }

        .content_image {
          height: 100%;
          width: 400px;
          position: relative;
          overflow: hidden;
          padding: 25px;
          display: flex;
          align-items: center;
          justify-content: center;

          @media screen and (max-width: 480px) {
            width: 100px;
            min-width: 100px;
            padding: 10px;
          }

          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            overflow: hidden;
            transition: 0.3s ease-in-out;
            border-radius: 10px;
          }
        }

        .content_detail {
          height: 100%;
          width: 100%;
          padding: 10px 20px;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          gap: 10px;

          @media screen and (max-width: 480px) {
            height: 100%;
            justify-content: space-between;
            align-items: flex-start;
            padding: 5px 7px;
          }

          .title {
            color: #fff;
            font-size: 18px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-weight: 600;

            @media screen and (max-width: 480px) {
              font-size: 12px;
              -webkit-line-clamp: 3;
            }
          }

          p {
            color: #fff;
            font-size: 14px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-align: justify;
            font-size: 300;

            @media screen and (max-width: 480px) {
              font-size: 12px;
              -webkit-line-clamp: 2;
            }
          }

          a:not(.title) {
            text-decoration: none;
            background-color: #ffcf50;
            font-size: 14px;
            padding: 3px 10px;
            color: #000;
            border-radius: 50px;
            font-weight: 500;
            transition: 0.3s ease-in-out;
            width: fit-content;
            position: relative;
            right: 0;

            @media screen and (max-width: 480px) {
              font-size: 12px;
            }

            &:hover {
              background-color: #ffbb00;
            }
          }
        }

        &.skeleton {
          background-color: #e2e2e2;
          border-radius: 4px;
          position: relative;
          overflow: hidden;
          border-radius: 30px;
          pointer-events: none;

          .content_image {
            position: relative;
            background-color: #cfcfcf;
            overflow: hidden;

            img {
              opacity: 0;
            }

            &::after {
              content: "";
              height: 100%;
              width: 100%;
              position: absolute;
              top: 0;
              left: 0;
              background: linear-gradient(90deg, #cfcfcf 25%, #e0e0e0 50%, #cfcfcf 75%);
              animation: shimmer 1s infinite linear;
            }
          }

          .content_detail {
            p {
              width: fit-content;
              background-color: #cfcfcf;
              color: transparent;
              overflow: hidden;
              position: relative;

              &::after {
                content: "";
                height: 100%;
                width: 100%;
                position: absolute;
                top: 0;
                left: 0;
                background: linear-gradient(90deg, #cfcfcf 25%, #e0e0e0 50%, #cfcfcf 75%);
                animation: shimmer 1s infinite linear;
              }
            }

            a {
              background-color: #cfcfcf;
              color: transparent;
              overflow: hidden;
              position: relative;

              &::after {
                content: "";
                height: 100%;
                width: 100%;
                position: absolute;
                top: 0;
                left: 0;
                background: linear-gradient(90deg, #cfcfcf 25%, #e0e0e0 50%, #cfcfcf 75%);
                animation: shimmer 1s infinite linear;
              }
            }
          }
        }

        &:hover {
          .content_image img {
            transform: scale(1.1);
          }
        }
      }
    }
  }

  .content_navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: #003092;

    .content_nav {
      height: 30px;
      width: 30px;
      display: flex;
      align-items: center;
      background-color: #fff;
      padding: 10px;
      justify-content: center;
      cursor: pointer;
      border-radius: 5px;
      transition: 0.3s ease-in-out;

      &.disabled {
        pointer-events: none;
        opacity: 0.5;
      }

      &:hover {
        background-color: #003092;
        color: #fff;
      }

      &.prev>span {
        transform: rotate(180deg);
      }
    }
  }
}

@keyframes shimmer {
  0% {
    left: -150px;
  }

  100% {
    left: 100%;
  }
}