.m-formula-container {
  position: relative;
  height: 500px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(74, 175, 237, 0.1), transparent);

}

.success-circle {
  position: absolute;
  top: 40%;
  left: 45%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
  animation: pulse 2s infinite;
}

.success-content {
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.m-item {
  position: absolute;
  width: 200px;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 5;
}

.m-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 20;
}

.m-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 30px;
  height: 30px;
  background: #4e54c8;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.m-content h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #333;
}

.m-content p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* Position the items in a circular pattern */
.m-item-1 {
  /* top: %; */
  left: 40%;
  border: 1px solid #000;
  /* transform: translateX(-50%); */
}

.m-item-2 {
  top: 30%;
  right: 5%;
  border: 1px solid #000;

}

.m-item-3 {
  bottom: 10%;
  right: 8%;
    border: 1px solid #000;

}

.m-item-4 {
  bottom: 10%;
  left: 20%;
  /* transform: translateX(-50%); */
  border: 1px solid #000;

}

.m-item-5 {
  top: 30%;
  border: 1px solid #000;
  left: 5%;
}

/* Connector lines */
.m-formula-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 80%;
  height: 80%;
  border: 2px dashed #000000;
  border-radius: 50%;
  z-index: 1;
}

/* Animation for the center circle */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 84, 200, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(78, 84, 200, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 84, 200, 0);
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .m-formula-container {
    height: 600px;
  }
  
  .m-item {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .m-formula-container {
    height: auto;
    position: relative;
    padding-top: 50px;
  }
  
  .success-circle {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 auto 40px;
  }
  
  .m-item {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
  }
  
  .m-formula-container::before {
    display: none;
  }
}