/**
 * Public layout: sidebar + main (zelfde look & feel als admin/student)
 */
.app-public {
  display: flex;
  min-height: 100vh;
  background: var(--color-neutral-50, #f8fafc);
}

.app-public__sidebar {
  --sidebar-bg: #1e293b;
  --sidebar-width: 260px;
  --sidebar-text: rgba(255, 255, 255, 0.9);
  --sidebar-text-muted: rgba(255, 255, 255, 0.6);
  --sidebar-accent: #3b82f6;
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-fixed, 1030);
  transition: transform 0.2s ease, width 0.2s ease;
}

.app-public__sidebar-brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-public__sidebar-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sidebar-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.app-public__sidebar-brand-text {
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.app-public__sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.app-public__sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-public__sidebar-nav-item {
  margin: 0;
}

.app-public__sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  color: var(--sidebar-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background 0.15s ease, color 0.15s ease;
  border-left: 3px solid transparent;
}

.app-public__sidebar-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sidebar-text);
}

.app-public__sidebar-nav-link.active {
  background: rgba(59, 130, 246, 0.15);
  color: white;
  border-left-color: var(--sidebar-accent);
}

.app-public__sidebar-nav-link i {
  font-size: 1.15rem;
  opacity: 0.9;
  width: 1.35rem;
  text-align: center;
}

.app-public__sidebar-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-public__sidebar-footer .app-public__sidebar-nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.app-public__main {
  flex: 1;
  margin-left: var(--sidebar-width, 260px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-public__content {
  flex: 1;
  padding: 1.5rem 2rem 2rem;
}

.app-public__sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1029;
}

.app-public__sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1040;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-600, #4f46e5);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

@media (max-width: 991.98px) {
  .app-public__sidebar {
    transform: translateX(-100%);
  }

  .app-public__sidebar.open {
    transform: translateX(0);
  }

  .app-public__main {
    margin-left: 0;
  }

  .app-public__sidebar-toggle {
    display: flex;
  }

  .app-public__sidebar-overlay.show {
    display: block;
  }
}

/* ===== SITE FOOTER (professional layout – rustig en uitgebalanceerd) ===== */
.site-footer {
  margin-top: var(--space-20, 5rem);
  background: var(--color-neutral-900, #0f172a);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-sm, 0.875rem);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.6;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-12, 3rem) var(--space-6, 1.5rem) 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10, 2.5rem);
  padding-bottom: var(--space-10, 2.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 576px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .site-footer__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-8, 2rem);
    padding-bottom: var(--space-12, 3rem);
  }
}

.site-footer__brand h2 {
  font-size: var(--text-lg, 1.125rem);
  font-weight: var(--font-semibold, 600);
  color: #fff;
  margin: 0 0 var(--space-3, 0.75rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.site-footer__brand-tagline {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-5, 1.25rem);
  line-height: 1.65;
  max-width: 20em;
}

.site-footer__brand-address,
.site-footer__brand-contact {
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
}

.site-footer__brand-address div + div,
.site-footer__brand-contact div + div {
  margin-top: var(--space-2, 0.5rem);
}

.site-footer__brand-contact {
  margin-top: var(--space-4, 1rem);
}

.site-footer__contact .site-footer__brand-contact {
  margin-top: 0;
}

.site-footer__brand-contact a {
  color: inherit;
  text-decoration: none;
}

.site-footer__brand-contact a:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.site-footer__section-title {
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--font-medium, 500);
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-4, 1rem);
  line-height: 1.3;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__list li + li {
  margin-top: var(--space-3, 0.75rem);
}

.site-footer__list li {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}

.site-footer__list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__list a:hover {
  color: #fff;
}

.site-footer__list li small {
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-top: 0.125rem;
}

/* Nieuwsbrief als aparte, rustige sectie */
.site-footer__newsletter-col .site-footer__newsletter {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.site-footer__newsletter {
  margin-top: var(--space-6, 1.5rem);
  padding-top: var(--space-5, 1.25rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__newsletter p {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-3, 0.75rem);
  line-height: 1.5;
}

.site-footer__newsletter .form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: var(--text-sm, 0.875rem);
  padding: 0.5rem 0.75rem;
  max-width: 100%;
  border-radius: 6px;
}

.site-footer__newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.site-footer__newsletter .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: none;
  outline: none;
}

.site-footer__newsletter .btn-primary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  white-space: nowrap;
  border-radius: 6px;
}

.site-footer__newsletter .btn-primary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4, 1rem);
  padding: var(--space-5, 1.25rem) 0;
}

.site-footer__copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs, 0.75rem);
  margin: 0;
  line-height: 1.5;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4, 1rem);
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs, 0.75rem);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.65);
}
