/* ===== FOOTER ===== */
    footer {
      background: var(--navy);
      color: rgba(255, 255, 255, 0.6);
      padding: 50px 5% 28px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 40px;
      margin-bottom: 40px;
    }

    .footer-brand p {
      font-size: 0.85rem;
      line-height: 1.7;
      margin-top: 12px;
      max-width: 260px;
    }

    .footer-logo {
      height: 36px;
      filter: brightness(10);
      margin-bottom: 8px;
    }

    .footer-col h4 {
      color: white;
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 14px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .footer-col ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .footer-col a {
      color: rgba(255, 255, 255, 0.55);
      text-decoration: none;
      font-size: 0.83rem;
      transition: color 0.2s;
    }

    .footer-col a:hover {
      color: var(--green-accent);
    }

    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 22px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.8rem;
    }

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ===== SHARED RESPONSIVE NAVBAR ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #10264a;
  transition: all 0.3s ease;
}

/* Adjust span color for dark navbar (in detail/lecture/proc/mono pages) */
nav.dark-nav .menu-toggle span,
nav:not(.light-nav) .menu-toggle span,
body:not(:has(.pub-hero)) .menu-toggle span {
  background-color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links-wrapper {
    position: fixed;
    top: 68px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 68px);
    background-color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.1);
  }
  
  /* If parent nav is dark, make drawer dark */
  nav:not(.light-nav) .nav-links-wrapper,
  body:not(:has(.pub-hero)) .nav-links-wrapper {
    background-color: var(--navy, #0a1628);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .nav-links-wrapper.active {
    left: 0;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    margin-bottom: 40px;
  }
  
  /* Text colors on dark drawer */
  nav:not(.light-nav) .nav-links a,
  body:not(:has(.pub-hero)) .nav-links a {
    color: rgba(255, 255, 255, 0.82) !important;
  }
  
  nav:not(.light-nav) .nav-links a:hover,
  nav:not(.light-nav) .nav-links a.active,
  body:not(:has(.pub-hero)) .nav-links a:hover,
  body:not(:has(.pub-hero)) .nav-links a.active {
    color: var(--green-accent, #2dce73) !important;
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Text colors on light drawer */
  nav.light-nav .nav-links a,
  body:has(.pub-hero) .nav-links a {
    color: #10264a !important;
  }
  
  nav.light-nav .nav-links a:hover,
  nav.light-nav .nav-links a.active,
  body:has(.pub-hero) .nav-links a:hover,
  body:has(.pub-hero) .nav-links a.active {
    color: #0a2a55 !important;
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .nav-cta {
    width: 100%;
    text-align: center;
  }
}

/* Hamburger animations */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== ADDITIONAL CONTENT RESPONSIVENESS ===== */
@media (max-width: 580px) {
  .proceeding-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-hero-stats {
    gap: 20px;
    justify-content: space-between;
    width: 100%;
  }
  .type-tabs {
    flex-direction: column;
    width: 100%;
  }
  .type-tab {
    width: 100%;
    text-align: center;
  }
}
