:root {
  --bg: #4183c5;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #1f3c88;
  --primary-dark: #162c63;
  --border: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}

.custom-navbar {
  background: rgba(31, 60, 136, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
  color: #fff !important;
  font-size: 1.25rem;
  letter-spacing: 0.2px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.86) !important;
  font-weight: 500;
  padding: 0.65rem 1rem !important;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.18);
}

.page-shell {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

main .container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding: 2.5rem;
}

.site-footer {
  background-color: #111827;
  color: #e5e7eb;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-note {
  color: #9ca3af;
}

h1, h2, h3, h4, h5 {
  color: #111827;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

p {
  color: var(--text);
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.content-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
}

/* Lists left-aligned */
ul,
ol {
  text-align: left !important;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
}

li {
  text-align: left !important;
  margin-bottom: 0.35rem;
}

/* Anything inside list items should also stay left-aligned */
li *,
ul li *,
ol li * {
  text-align: left !important;
}

@media (max-width: 767px) {
  main .container {
    padding: 1.5rem;
    border-radius: 14px;
  }

  .nav-link {
    border-radius: 10px;
  }
}