.qiss-program-block {
  position: relative;
  z-index: 1;

  .section-title {
    font-size: 40px;
    line-height: 50px;
    font-weight: 700;
    color: #222222;
    text-transform: uppercase;
    margin-top: 20px;

    @media screen and (min-width: 1281px) {
      &::before {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 150px;
        background-image: url(../assets/before-title-arrow.svg);
        background-repeat: no-repeat;
        background-size: contain;
        margin-top: -110px;
      }
    }

    @media screen and (max-width: 1280px) {
      &::before {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 150px;
        background-image: url(../assets/before-title-arrow.svg);
        background-repeat: no-repeat;
        margin-top: -40px;
      }
    }

    @media screen and (max-width: 390px) {
      &::before {
        content: '';
        position: absolute;
        left: -10px;
        width: 100%;
        height: 150px;
        background-image: url(../assets/before-title-arrow.svg);
        background-repeat: no-repeat;
        margin-top: -40px;
      }
    }

    @media screen and (max-width: 1580px) {
      font-size: 25px;
      line-height: 30px;
    }

    @media screen and (max-width: 992px) {
      font-size: 20px;
      line-height: 24px;
      text-align: center;
    }


    @media screen and (max-width: 520px) {
      font-size: 16px;
      line-height: 19.5px;
    }
  }

  .qiss-grid {
    margin-top: 40px;

    .qiss-container {
      .qiss-header {
        .qiss-phase-label {
          font-size: 24px;
          line-height: 39px;
          font-weight: 700;
          color: #6800FF;
          text-align: center;
          margin-bottom: 0;

          @media screen and (max-width: 1580px) {
            font-size: 20px;
            line-height: 35px;
          }

          @media screen and (max-width: 960px) {
            font-size: 18px;
            line-height: 30px;
          }

          @media screen and (max-width: 669px) {
            font-size: 16px;
            line-height: 26px;
          }
        }

        .qiss-outline {
          width: 100%;
        }
      }

      .qiss-items {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-top: 20px;
        gap: 74px;
        overflow: hidden;

        @media screen and (max-width: 767px) {
          overflow: unset;
          gap: 50px;
        }

        .qiss-col {
          margin-bottom: 10px;

          @media screen and (max-width: 767px) {
            width: 100%;
          }

          .qiss-item {
            width: 300px;
            min-height: 100%;
            border-radius: 30px;
            background-color: #FCFAFF;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
            position: relative;

            @media screen and (max-width: 767px) {
              width: 100%;
              display: grid;
              grid-template-columns: 110px 1fr;
            }

            @media screen and (min-width: 768px) {
              &.qiss-next-item::before {
                content: '';
                position: absolute;
                top: 50%;
                left: calc(100% - 125px);
                width: 200px;
                height: 280px;
                transform: translate(0, -50%);
                background-image: url(../assets/polygon-next.svg);
                background-repeat: no-repeat;
                background-size: contain;
                z-index: -1;
              }
            }

            @media screen and (max-width: 767px) {
              &.qiss-next-item::after {
                content: '';
                position: absolute;
                top: 100%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 200px;
                height: 200px;
                background-image: url(../assets/polygon-next-bottom.svg);
                background-repeat: no-repeat;
                background-size: contain;
                margin-top: 40px;
                z-index: -1;
              }
            }

            .qiss-image {
              img {
                position: relative;
                z-index: 1;
                border-top-left-radius: 30px;
                border-top-right-radius: 30px;
                width: 100%;

                @media screen and (max-width: 767px) {
                  border-radius: 30px;
                  height: 100%;
                  object-fit: cover;
                }
              }
            }

            .qiss-content {
              position: relative;
              z-index: 2;
              border-radius: 30px;
              padding: 20px;
              background-color: #FCFAFF;
              margin-top: -25px;

              @media screen and (max-width: 767px) {
                margin-top: auto;
              }

              .qiss-title {
                font-size: 20px;
                line-height: 24px;
                font-weight: 700;
                color: #6800FF;
                text-align: center;
                margin-bottom: 20px;

                @media screen and (max-width: 960px) {
                  font-size: 18px;
                  line-height: 20px;
                }

                @media screen and (max-width: 669px) {
                  font-size: 16px;
                  line-height: 18px;
                  text-align: left;
                }
              }

              .qiss-description {
                font-size: 16px;
                line-height: 19px;
                font-weight: 400;
                color: #222222;

                @media screen and (max-width: 960px) {
                  font-size: 14px;
                  line-height: 16px;
                }

                @media screen and (max-width: 669px) {
                  font-size: 12px;
                  line-height: 14px;
                }
              }
            }
          }
        }

        .qiss-col.last-items {
          width: calc(45% - 20px);
          @media screen and (max-width: 767px) {
            width: 100%;
          }

          .qiss-item.last-items {
            margin-top: 20px;
            width: 100%;
            min-width: 300px;
            min-height: auto;
            position: relative;

            @media screen and (min-width: 768px) {
              &.qiss-next-item::before {
                content: '';
                position: absolute;
                top: 50%;
                left: calc(100% - 125px);
                width: 200px;
                height: 280px;
                transform: translate(0, -50%);
                background-image: url(../assets/polygon-next.svg);
                background-repeat: no-repeat;
                background-size: contain;
                z-index: -1;
              }
            }

            @media screen and (max-width: 767px) {
              display: block;

              &.qiss-next-item::after {
                content: '';
                position: absolute;
                top: 100%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 200px;
                height: 200px;
                background-image: url(../assets/polygon-next-bottom.svg);
                background-repeat: no-repeat;
                background-size: contain;
                margin-top: 40px;
                z-index: -1;
              }
            }

            .qiss-image {
              img {
                min-height: 150px;
                @media screen and (max-width: 767px) {
                  border-bottom-left-radius: 0;
                  border-bottom-right-radius: 0;
                }
              }
            }

            .qiss-content {
              @media screen and (max-width: 767px) {
                margin-top: -25px;
              }
            }
          }
        }
      }

      .qiss-items.last-items {
        @media screen and (max-width: 767px) {
          gap: 50px;
        }
      }
    }
  }
}
