.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap; /* prevent Share from dropping */
  padding: 50px 10%;
  position: relative;
  z-index: 2;
}

.footer-section {
  flex: 0 0 30%; /* fixed width for each column */
  display: flex;
  flex-direction: column;
}

.footer-section h4 {
  color: #0a58ca;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #084298;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #fdb72e;
}

/* Sublinks */
.footer-section ul li .sub-links {
  padding-left: 15px;
  margin-top: 4px;
}

.footer-section ul li .sub-links li {
  margin-bottom: 5px;
}

.footer-section ul li .sub-links li a {
  font-size: 0.9rem;
}






/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding: 15px 10%;
  font-size: 0.9rem;
  color: #084298;
  border-top: 1px solid #ddd;
  margin-top: 30px;
}

.footer-bottom a {
  color: #0a58ca;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #fdb72e;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-wrap: wrap;
    gap: 30px;
  }
  .footer-section {
    flex: 1 1 100%; /* stack vertically */
    text-align: center;
  }
  .footer-bottom {
    padding: 15px 5%;
  }
}

.animated-background {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff; /* white background */
}

.animated-background canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; /* background layer */
  width: 100%;
  height: 100%;
}

.footer-inner {
  position: relative;
  z-index: 2; /* content above canvas */
  width: 100%;
}

/* existing footer-content and footer-bottom styles remain the same */



/* Back to Top Button */
#back-to-top {
  display: none !important; /* force hidden on small screens */
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  cursor: pointer;
  font-size: 38px;
  font-weight: bold;
  color: #0a58ca;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .circle2 {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    overflow: hidden;
  }

/* Wave animation */
.circle2 .wave2 {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    box-shadow: 5px 5px 10px #888888; /* Horizontal, vertical, blur, color */
  text-align: center;
  line-height: 50px;
}

.circle2 .wave2:before,
.circle2 .wave2:after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: 0;
  left: 50%;
  transform: translate(-50%, -75%);
    background: rgba(0, 0, 0, 0.5);
}

.circle2 .wave2:before {
  border-radius: 45%;
  background: rgba(255, 255, 255, 0.3);
  animation: animate 5s linear infinite;
}

.circle2 .wave2:after {
  border-radius: 40%;
  background: rgba(255, 255, 255, 0.2);
  animation: animate 10s linear infinite;
}

/* Show only on large screens */
@media (min-width: 768px) {
  #back-to-top {
    display: flex !important; /* override any other conflicting rules */
  }
}

@keyframes animate {
  0% {
    transform: translate(-50%, -75%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -75%) rotate(360deg);
  }
}