/* Learnly-pro — shared institutional styles (Tailwind handles layout) */
:root {
  --navy: #0b1b3f;
  --emerald: #10b981;
  --canvas: #f7f9fc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: var(--canvas);
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #0b1b3f;
  color: #fff;
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* Desktop courses dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 17rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 18px 50px -18px rgba(11, 27, 63, 0.28);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* FAQ */
details.faq > summary {
  list-style: none;
  cursor: pointer;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq[open] .faq-chevron { transform: rotate(180deg); }

/* Tabs */
.tab-btn[aria-selected="true"] {
  background: #0b1b3f;
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(11, 27, 63, 0.5);
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(16, 185, 129, 0.65);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 36px -8px rgba(16, 185, 129, 0.75);
}

/* Login spinner */
.btn-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.card-lift {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(11, 27, 63, 0.22);
}
