.share-container {
  position: relative;
  display: inline-block;
  direction: rtl;
}

.share-menu {
  position: absolute;
  right: 0;
  background-color: #d7df25ff;
  z-index: 1000;
  min-width: 200px;
}

.share-menu a {
  padding: 8px 12px;
  display: block;
  color: #333;
  text-decoration: none;
}

.share-menu a:hover {
  background-color: #f8f9fa;
}

/* Floating Share Button */
#floatingShareBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #d7df25ff;
  color: #0d3c61;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.6rem;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}

#floatingShareBtn:hover {
  background-color: #ffca2c;
  color: black;
}

/* Modal background */
#shareModalBackdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

/* Modal box */
#shareModal {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  background: white;
  color: black;
  padding: 20px;
  border-radius: 12px;
  z-index: 1000;
  width: 260px;
  display: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#shareModal h5 {
  margin-bottom: 15px;
  font-weight: bold;
  color: #0d3c61;
  text-align: center;
}

.share-icons {
  display: flex;
  justify-content: space-around;
  gap: 15px;
}

.share-icons a {
  font-size: 1.8rem;
  color: #0d3c61;
  transition: color 0.3s;
}

.share-icons a:hover {
  color: #ffca2c;
}
