/* Vivek Vidya Mandir – global styles */

:root {
  font-size: 14.5px;
}

@media (min-width: 1280px) {
  :root {
    font-size: 15px;
  }
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.6;
}

#navbar {
  contain: layout style;
}

@media (min-width: 640px) {
  #navbar > div > div {
    min-height: 1.5rem;
  }
}

.nav-link {
  color: #374151;
}

.nav-link .underline-indicator {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 2px;
  width: 0;
  background: linear-gradient(to right, #10b981, #14b8a6);
  transition: width 0.3s ease;
}

.nav-link:hover .underline-indicator {
  width: 80%;
}

.nav-link.active {
  color: #10b981;
  font-weight: 700;
}

.nav-link.active .underline-indicator {
  width: 80%;
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
  display: block;
  transition: max-height 300ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 300ms ease, visibility 0s 300ms;
}

#mobile-menu.show {
  max-height: 80vh;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  overflow-y: auto;
  transition: max-height 300ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 300ms ease, visibility 0s;
}

#mobile-overlay {
  transition: opacity 180ms ease;
  opacity: 0;
  pointer-events: none;
}

#mobile-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu-btn {
  display: block !important;
}

@media (min-width: 1280px) {
  #mobile-menu-btn {
    display: none !important;
  }
}

#close-icon {
  display: none;
}

#mobile-menu-btn[aria-expanded="true"] #hamburger-icon {
  display: none;
}

#mobile-menu-btn[aria-expanded="true"] #close-icon {
  display: inline-block !important;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Shared CTA helpers */
.vvm-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  border-radius: 9999px;
  background: #fff;
  color: #047857;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.vvm-cta-primary:hover {
  background: #ecfdf5;
  transform: scale(1.05);
}

.vvm-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  border-radius: 9999px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.vvm-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}
