html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* ── Navbar base ── */
nav a {
  text-decoration: none;
  padding: 6px 4px;
  color: #111827;
  position: relative;
}

nav a.active-nav {
  color: #111827;
  font-weight: 600;
}

/* ── Dropdown menu ── */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  text-decoration: none;
  transition: background 0.15s ease;
}

/* ── Mobile menu ── */
#mobile-menu {
  overflow-y: auto;
}

/* ── Hamburger bars animation ── */
.hamburger-bar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Program cards ── */
.program-card {
  scroll-margin-top: 100px;
}

/* Section scroll offset for sticky header */
section[id] {
  scroll-margin-top: 90px;
}

/* ── Details/Summary accordion ── */
details[open] {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Core Values cards ── */
.value-card {
  background: #fff;
}

/* ── Sidebar panel ── */
#sidebar-panel {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Sidebar tab ── */
#sidebar-tab {
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s ease;
}

#sidebar-tab svg {
  transition: transform 0.3s ease;
}

/* ── Sidebar backdrop ── */
#sidebar-backdrop {
  transition: opacity 0.3s ease;
}

/* ── Logo ── */
#site-header img:first-child {
  height: 64px;
  width: auto;
  object-fit: contain;
}

/* ── Navbar transparent → white on scroll ── */
#site-header {
  transition: background 0.3s ease, box-shadow 0.3s ease;
  height: 100px;
}

#site-header .nav-link {
  transition: color 0.3s ease;
}

/* Body font */
body {
  font-family: 'Inter', sans-serif;
}

#site-header {
  background: transparent !important;
  background-color: transparent !important;
}

/* Remove the white gap between navbar and hero video */
body {
  background-color: #000;
}

.year-tab {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: transparent;
  color: #6b7280;
  transition: all 0.2s;
  font-weight: 400;
}

.year-tab.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
  font-weight: 500;
}

.year-tab:hover:not(.active) {
  background: #f9fafb;
  color: #111827;
}

.year-panel.hidden {
  display: none;
}