html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem; /* Fix for navbar overlap */
}

.active-link {
  color: #2563eb;
  font-weight: 600;
  border-bottom: 2px solid #2563eb;
  transition: all 0.3s ease; /* Smooth transition for active link */
}

/* FAQ Smooth Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
  max-height: 500px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Navbar Shrink and Fade In */
nav {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease;
}

nav.show {
  opacity: 1;
  transform: translateY(0);
}

nav.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav.scrolled img {
  height: 32px;
  width: 32px;
}

/* Back to Top Button */
#back-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 50; /* 🛑 Add this to make sure it's above everything */
}

#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
