@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

.m365-container {
  width: 100%;
  position: absolute;
  height: 100%;
}

.m365-background {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}
.m365-back-heading {
  position: absolute;
  font-size: 30px;
  margin-top: 220px;
  width: 50%;
  margin-left: 5%;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  color: black;
  letter-spacing: 1.75px;
}

.m365-back-heading span {
  font-size: 25px;
}

.m365-back-img img {
  margin: 13% 0% 0% 60%;
  width: 400px;
  height: 350px;
}

.m365-upper-container {
  position: absolute;
  width: 100%;
  margin-top: 50px;
  height: 250px;
  display: flex;
  flex-wrap: wrap;
}

.m365-upper-left {
  width: 50%;
  padding: 30px 10px 10px 30px;
  color: #717882;
  font-family: "Poppins", sans-serif;
}

.m365-upper-right img {
  width: 300px;
  height: 250px;
  margin: -10% 0% 0% 50%;
}

.m365-mid-container {
  width: 100%;
  height: 800px;
  margin-top: 350px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.m365-mid-box-container-header {
  font-family: "Poppins", sans-serif;
  padding: 0px 10px 30px 30px;
  font-size: 30px;
  font-weight: 600;
  background-image: linear-gradient(60deg, #007fff, #01000a);
  background-clip: text;
  width: 100%;
  color: transparent;
  text-align: center;
}

.m365-box {
  margin-top: 0px;
  width: 350px;
  height: 350px;
  background-color: #f1f8ff;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}
.m365-box:hover {
  background-color: #e1effd;
}

.m365-box-heading {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 500;
  line-height: 1.5rem;
  padding: 10px 10px 10px 20px;
  text-align: center;
}

.m365-box-content {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1.5rem;
  padding: 0px 10px 10px 20px;
  text-align: center;
  color: #717882;
}

.m365-footer {
  width: 100%;
  position: relative;
  margin-top: 100px;
}

@media only screen and (max-width: 660px) {
  .m365-background {
    height: fit-content;
    display: flex;
    justify-content: center;
  }
  .m365-back-heading {
    width: 100%;
    font-size: 20px;
    margin-top: 120px;
    margin-left: 0;
    text-align: center;
  }
  .m365-back-heading span {
    font-size: 16px;
  }
  .m365-back-img {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .m365-back-img img {
    margin-left: 0;
    margin-top: 250px;
    width: 300px;
    height: 300px;
  }

  .m365-upper-container {
    display: block;
    position: relative;
    height: fit-content;
    margin-top: 20px;
  }

  .m365-upper-left {
    width: 100%;
  }
  .m365-upper-right {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .m365-upper-right img {
    margin: 0;
  }

  .m365-mid-container {
    margin-top: 50px;
  }
}

@media only screen and (min-width: 660px) and (max-width: 950px) {
  .m365-background {
    height: fit-content;
  }
  .m365-back-heading {
    width: 50%;
    font-size: 25px;
    margin-top: 120px;
    margin-left: 30px;
  }
  .m365-back-heading span {
    font-size: 20px;
  }
  .m365-back-img {
    display: flex;
    justify-content: right;
    width: 100%;
  }
  .m365-back-img img {
    margin-left: 0;
    margin-top: 50px;
    width: 300px;
    height: 300px;
  }

  .m365-upper-container {
    display: block;
    position: relative;
    height: fit-content;
    margin-top: 20px;
  }

  .m365-upper-left {
    width: 100%;
  }
  .m365-upper-right {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .m365-upper-right img {
    margin: 0;
  }

  .m365-mid-container {
    margin-top: 50px;
  }
}

@media only screen and (min-width: 950px) and (max-width: 1300px) {
  .m365-background {
    height: fit-content;
    padding-bottom: 30px;
  }

  .m365-back-heading {
    width: 50%;
    font-size: 30px;
    margin-top: 140px;
    margin-left: 30px;
  }
  .m365-back-heading span {
    font-size: 25px;
  }

  .m365-back-img {
    display: flex;
    justify-content: right;
    width: 100%;
  }

  .m365-back-img img {
    margin-left: 0;
    margin-top: 80px;
  }
}
