/* Back to Top Button Styles */
.back-to-top {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007aff, #00c6ae);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px rgba(0, 122, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1200;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top .svgIcon {
  width: 16px;
  transition: all 0.3s ease;
}

.back-to-top .svgIcon path {
  fill: white;
}

.back-to-top:hover {
  width: 140px;
  border-radius: 50px;
  background: linear-gradient(135deg, #00c6ae, #007aff);
  box-shadow: 0px 0px 0px 6px rgba(0, 122, 255, 0.2);
}

.back-to-top:hover .svgIcon {
  transform: translateY(-200%);
}

.back-to-top::before {
  position: absolute;
  bottom: -20px;
  content: attr(data-text);
  color: white;
  font-size: 0px;
  font-family: "Cairo", sans-serif;
}

.back-to-top:hover::before {
  font-size: 14px;
  opacity: 1;
  bottom: unset;
  transition-duration: 0.3s;
}

@media (max-width: 600px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .back-to-top:hover {
    width: 120px;
  }

  .back-to-top:hover::before {
    font-size: 13px;
  }
}
