#head_top {
  width: 100%;
  overflow: visible;
  /* background-color: #444444; */
  > .row {
    &:nth-of-type(1) {
      width: 100%;
      height: 50px;
      background-color: #031f42;
      padding: 0 8%;
      display: flex;
      > div {
        &:nth-of-type(1) {
          width: 25%;
          height: 100%;
          /* border: 1px solid red; */
          display: flex;
          align-items: center;
          justify-content: space-between;
          > div {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            > i {
              font-size: 14px;
              color: #f7c04d;
            }
            > h5 {
              font-size: 10px;
              color: white;
              direction: ltr;
              font-family: "Gabarito", sans;
            }
          }
        }
        &:nth-of-type(2) {
          width: 75%;
          height: 100%;
          display: flex;
          align-items: center;
          gap: 80px;
          justify-content: left;
          > div {
            width: 100%;
            &:nth-of-type(1) {
              width: 15%;
              display: flex;
              justify-content: left;
              gap: 10px;
              color: white;
              font-family: "serif";
              > span {
                font-size: 20px;
              }
              > a {
                font-size: 11px;
                font-family: "Gabarito", sans;
                display: flex;
                align-items: center;
                transition: 0.4s;
                &:hover {
                  color: #f7c04d;
                }
              }
            }
            &:nth-of-type(2) {
              width: 15%;
              display: flex;
              justify-content: space-between;
              > i {
                color: white;
              }
            }
          }
        }
      }
    }
    /* row first end */
    &:nth-of-type(2) {
      width: 100%;
      height: 100px;
      background-color: rgb(255, 255, 255);
      box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.452);
      padding: 0 8%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      > div {
        &:nth-of-type(1) {
          width: 20%;
          display: flex;
          gap: 10px;
          align-items: center;
          /* border: 1px solid red; */
          > figure {
            width: 17%;
            height: auto;
            > img {
              width: 100%;
            }
          }
          > h4 {
            font-size: 28px;
            font-weight: 900;
            color: rgba(58, 54, 54, 0.788);
          }
        }
        &:nth-of-type(2) {
          width: 35%;
          height: 100%;
          display: flex;
          gap: 10px;
          align-items: center;
          justify-content: center;
          /* border: 1px solid red; */
          > form {
            width: 350px;
            height: 40px;
            display: flex;
            /* border: 1px solid red; */
            position: relative;
            > input {
              width: 100%;
              height: 100%;
              background-color: rgba(212, 212, 212, 0.445);
              border-radius: 30px;
              border: none;
              padding: 20px;
              &::placeholder {
                font-family: "Gabarito", sans-serif;
                color: #031f42;
                border: none;
                font-size: 17px;
              }
            }
            input:focus {
              outline: none;
            }
            > i {
              background-color: #031f42;
              position: absolute;
              color: white;
              height: 100%;
              width: 20%;
              top: 0;
              left: 0;
              display: flex;
              align-items: center;
              justify-content: center;
              border-radius: 30px 0 0 30px;
              transition: 0.4s;
              cursor: pointer;
              &:hover {
                background-color: rgb(0, 162, 255);
              }
            }
          }
        }
        &:nth-of-type(3) {
          width: 45%;
          display: flex;
          align-items: center;
          height: 100%;
          /* border: 1px solid yellow; */
          gap: 5%;
          > ul {
            width: 85%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            > li {
              width: 25%;
              height: 50%;
              transition: 0.4s;
              position: relative;
              &:hover {
                background-color: #0071dc;
                border-radius: 50px;
                > a {
                  color: white;
                  > div {
                    border-top: 5px solid white;
                  }
                }
                > ul {
                  opacity: 1;
                  visibility: visible;
                }
              }
              > a {
                font-size: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                height: 50px;
                > div {
                  width: 0px;
                  height: 0px;
                  margin: 5px 10px 0 0;
                  background-color: rgba(0, 0, 0, 0);
                  border-top: 5px solid #031f42;
                  border-right: 5px solid rgba(255, 0, 0, 0);
                  border-bottom: 5px solid rgba(255, 0, 0, 0);
                  border-left: 5px solid rgba(255, 0, 0, 0);
                }
              }
              > ul {
                opacity: 0;
                visibility: hidden;
                position: absolute;
                top: 100%;
                right: 0;
                width: 150%;
                height: auto;
                z-index: 5;
                background-color: rgb(255, 255, 255);
                transition: 0.7s;
                > li {
                  > a {
                    padding: 20px;
                    font-size: 12px;
                    width: 100%;
                    height: 100%;
                    display: flex;
                    background-color: #ffffff;
                  }
                }
              }
            }
          }
          > i {
            width: 10%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 50px;
          }
        }
      }
    }
    /* row second end */
    &:nth-of-type(3) {
      height: 550px;
      width: 100%;
      overflow-y: hidden;
      > div {
        &:nth-of-type(1) {
          width: 60%;
          height: 100%;
          /* background-color: #f7c04d; */
          padding: 120px 8% 0 8%;
          > h6 {
            color: #0071dc;
            font-size: 18px;
          }
          > h4 {
            color: #444444;
            font-size: 32px;
            font-weight: bolder;
            margin-top: 20px;
          }
          > p {
            margin-top: 30px;
            color: #666666;
            padding-bottom: 50px;
          }
          > a {
            margin-top: 80px;
            background-color: #0071dc;
            padding: 20px 40px;
            border-radius: 10px;
            color: white;
            transition: 0.4s;
            &:hover {
              background-color: #f7c04d;
              color: #444444;
            }
          }
        }
        &:nth-of-type(2) {
          padding-top: 30px;
          width: 40%;
          height: 100%;
          /* background-color: aqua; */
          > figure {
            width: 100%;
            height: 80%;
            margin-top: 50px;
            background-image: url(../images/bg.png);
            background-repeat: no-repeat;
            background-size: contain;
            > img {
              width: 80%;
              height: 100%;
            }
          }
        }
      }
    }
    /* row third end */
  }
}
#courses {
  width: 100%;
  > .row {
    /* 1 */
    &:nth-of-type(1) {
      padding: 20px 8%;
      display: flex;
      justify-content: space-between;
      > h3 {
        color: #575757;
      }
      > a {
        background-color: #8b8b8b8e;
        width: 100px;
        height: 40px;
        color: #575757;
        font-size: 13px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
        &:hover {
          background-color: #0071dc;
          color: white;
        }
      }
    }
    /* 1 end  */
    /* 2 */
    &:nth-of-type(2) {
      padding: 20px 8%;
      display: flex;
      justify-content: space-between;
      > .card {
        width: 250px;
        height: 350px;
        background-color: #a7a7a74f;
        border-radius: 10px;
        > figure {
          height: 70%;
          width: 100%;
          position: relative;
          overflow: hidden;
          &:hover {
            &::after {
              width: 100%;
              height: 100%;
              border-radius: 10px 10px 0 0;
              top: 0;
              right: 0;
            }
          }

          &::after {
            content: "";
            background-color: #2c2c2c27;
            border-radius: 100% 0% 17% 83% / 0% 100% 0% 100%;
            width: 40%;
            height: 30%;
            position: absolute;
            top: -20%;
            right: -40%;
            z-index: 1;
            transition-duration: 0.4s;
            transition-timing-function: linear;
          }
          > img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px 10px 0 0;
          }
        }
        > div {
          height: 70px;
          margin: 12% 8% 4% 8%;
          > h6 {
            color: #474747;
            font-size: 13px;
            padding-bottom: 15px;
          }
          > span {
            color: #0071dc;
            font-size: 12px;
          }
        }
      }
    }
    /* 2 end */
    /* 3 */
    &:nth-of-type(3) {
      margin-top: 50px;
      width: 100%;
      padding: 20px 8%;
      display: flex;
      justify-content: space-between;
      > div {
        &:nth-of-type(1) {
          width: 45%;
          > h4 {
            font-size: 24px;
            color: rgb(29, 29, 29);
          }
          > p {
            color: #444444;
            padding-top: 50px;
            text-align: justify;
            line-height: 30px;
            font-size: 14px;
          }
        }
        &:nth-of-type(2) {
          width: 45%;
          > h4 {
            font-size: 24px;
            color: rgb(29, 29, 29);
          }
          > div {
            width: 100%;
            height: 50px;
            background-color: #dfdfdf93;
            border-radius: 20px;
            margin-top: 50px;
            padding: 4%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            > span {
              color: #0071dc;
              font-size: 13px;
            }
            > i {
              color: #0071dc;
            }
          }
        }
      }
    }
    /* 3 end */
    /* 4 */
    &:nth-of-type(4) {
      margin-top: 50px;
      width: 100%;
      padding: 20px 8%;
      display: flex;
      justify-content: space-between;
      > div {
        height: 100%;
        &:nth-of-type(1) {
          width: 15%;
          > figure {
            display: flex;
            align-items: center;
            gap: 10px;
          }
          > span {
            font-size: 12px;
            color: #6d6d6dbb;
            display: flex;
            margin-top: 20px;
          }
          > h6 {
            direction: ltr;
            color: #0071dc;
            font-size: 16px;
            display: flex;
            justify-content: right;
            margin-top: 5px;
          }
          > h5 {
            padding-top: 50px;
            font-size: 12px;
            color: #6d6d6dbb;
          }
          > address {
            font-size: 12px;
            color: #292929;
            padding-top: 5px;
            text-align: justify;
          }
          > div {
            padding-left: 50px;
            padding-top: 20px;
            display: flex;
            justify-content: space-between;
          }
        }
        &:nth-of-type(2) {
          width: 80%;
          display: flex;
          justify-content: space-between;
          > div {
            width: 19%;
            > h5 {
              font-size: 20px;
            }
            > ul {
              padding-top: 30px;
              > li {
                margin-top: 20px;
                > a {
                  color: #666666;
                  font-size: 14px;
                }
              }
            }
          }
        }
      }
    }
    /* 4 end */
  }
}
#copyright {
  width: 100%;
  .row {
    width: 100%;
    height: 80px;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: #292929; */
    &::before {
      content: "";
      background-color: rgba(46, 46, 46, 0.144);
      width: 100%;
      height: 2px;
    }
    > p {
      color: #b9b9b9;
      font-size: 12px;
    }
    > a {
      background-color: #8f8f8f;
      width: 110px;
      height: 35px;
      color: white;
      border-radius: 10px;
      font-size: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: 0.6s;
      &:hover {
        background-color: #f7c04d;
      }
    }
  }
}

/* footer fixed */
.copyRight {
  width: 300px;
  height: 300px;
  position: fixed;
  bottom: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  &:hover {
    > ul {
      right: 88%;
      top: 25%;
    }
  }
  > .bg {
    position: absolute;
    width: 190px;
    height: 200px;
    border-radius: 52% 48% 70% 30% / 28% 30% 70% 72%;
    background-color: rgb(252, 71, 71);
    animation: rotate 10s linear infinite;
    z-index: 0;
  }
  > .bg2 {
    position: absolute;
    width: 180px;
    height: 220px;
    border-radius: 71% 29% 53% 47% / 33% 76% 24% 67%;
    background-color: rgb(248, 47, 47);
    animation: rotate2 6s linear infinite; /* انیمیشن جدید */
    z-index: 0;
  }
  > img {
    width: 200px;
    height: 200px;
    z-index: 1;
  }
  > span {
    width: 100%;
    position: absolute;
    bottom: 20px;
    font-weight: 600;
    left: 0;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    text-align: center;
  }
  > ul {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 18%;
    right: 30%;
    z-index: 0;
    transition: 1s;
    > li {
      width: 100%;
      height: 100%;
      list-style: none;
      > a {
        width: 100%;
        padding: 15px;
        height: 100%;
        display: flex;
        text-decoration: none;
        color: black;
        &:hover {
          > img {
            opacity: 0.8;
          }
        }
        > img {
          width: 25px;
          height: 25px;
        }
      }
    }
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
    border-radius: 48% 52% 51% 49% / 30% 30% 70% 70%;
    background-color: rgba(238, 0, 0, 0.938);
  }
  25% {
    transform: rotate(90deg);
    border-radius: 27% 73% 41% 59% / 72% 47% 53% 28%;
    background-color: rgba(247, 37, 37, 0.938);
  }
  50% {
    transform: rotate(200deg);
    border-radius: 54% 46% 17% 83% / 84% 13% 87% 16%;
    background-color: rgba(211, 38, 32, 0.945);
  }
  100% {
    transform: rotate(360deg);
    border-radius: 80% 20% 60% 40% / 40% 50% 50% 60%;
    background-color: rgb(255, 43, 43);
  }
}

@keyframes rotate2 {
  0% {
    transform: rotate(0deg);
    border-radius: 48% 52% 51% 49% / 30% 30% 70% 70%;
    background-color: rgba(238, 0, 0, 0.938);
  }
  25% {
    transform: rotate(90deg);
    border-radius: 62% 38% 28% 72% / 58% 53% 47% 42%;
    background-color: rgba(247, 37, 37, 0.938);
  }
  50% {
    transform: rotate(200deg);
    border-radius: 62% 38% 52% 48% / 31% 76% 24% 69%;
    background-color: rgba(211, 38, 32, 0.945);
  }
  100% {
    transform: rotate(360deg);
    border-radius: 80% 20% 60% 40% / 40% 50% 50% 60%;
    background-color: rgb(255, 43, 43);
  }
}

.slideInRight {
  -webkit-animation-name: slideInRight;
  animation-name: slideInRight;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
@-webkit-keyframes slideInRight {
  0% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    visibility: visible;
  }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  0% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    visibility: visible;
  }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

.swing {
  -webkit-transform-origin: top center;
  -ms-transform-origin: top center;
  transform-origin: top center;
  -webkit-animation-name: swing;
  animation-name: swing;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
@-webkit-keyframes swing {
  20% {
    -webkit-transform: rotate3d(0, 0, 1, 15deg);
    transform: rotate3d(0, 0, 1, 15deg);
  }
  40% {
    -webkit-transform: rotate3d(0, 0, 1, -10deg);
    transform: rotate3d(0, 0, 1, -10deg);
  }
  60% {
    -webkit-transform: rotate3d(0, 0, 1, 5deg);
    transform: rotate3d(0, 0, 1, 5deg);
  }
  80% {
    -webkit-transform: rotate3d(0, 0, 1, -5deg);
    transform: rotate3d(0, 0, 1, -5deg);
  }
  100% {
    -webkit-transform: rotate3d(0, 0, 1, 0deg);
    transform: rotate3d(0, 0, 1, 0deg);
  }
}
@keyframes swing {
  20% {
    -webkit-transform: rotate3d(0, 0, 1, 15deg);
    transform: rotate3d(0, 0, 1, 15deg);
  }
  40% {
    -webkit-transform: rotate3d(0, 0, 1, -10deg);
    transform: rotate3d(0, 0, 1, -10deg);
  }
  60% {
    -webkit-transform: rotate3d(0, 0, 1, 5deg);
    transform: rotate3d(0, 0, 1, 5deg);
  }
  80% {
    -webkit-transform: rotate3d(0, 0, 1, -5deg);
    transform: rotate3d(0, 0, 1, -5deg);
  }
  100% {
    -webkit-transform: rotate3d(0, 0, 1, 0deg);
    transform: rotate3d(0, 0, 1, 0deg);
  }
}
