html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}
/* Base Styles */
body {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #fcfcfc;
}

/* Layout */
.container {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 50px;
  flex-grow: 1; /* grow inside screen-container */
}

.screen-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Sticky Navigation */
nav {
  flex: 0 0 250px;
  position: sticky;
  top: 64px; /* Sticks 40px from the top of the viewport */
  align-self: start; /* Required for sticky to work inside flexbox */
  padding: 20px;
  padding-bottom: 10px;
  border-radius: 8px;
  /* background: #ffffff; */
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); */
  /* border: 1px solid #eee; */
}

nav h3 {
  margin-top: 0;
  font-size: 1rem;
  color: #111;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin-bottom: 7.5px;
}

nav a {
  text-decoration: none;
  color: #666;
  transition: all 0.2s ease-in-out;
  font-size: 0.9rem;
  display: block;
  border-left: 3px solid transparent;
  padding-left: 10px;
}

nav a:hover {
  color: #317d67;
}

/* Active State Highlight */
nav a.active {
  color: #317d67;
  font-weight: 600;
  border-left: 3px solid #317d67;
}

/* Article Content */
.content {
  flex: 1;
}

section {
  /* Adding min-height just to ensure there is enough room to scroll for this example */
  /* min-height: 80vh; */
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
}

section h2 {
  font-size: 1.5rem;
  color: #111;
  font-weight: 700;
  margin-top: 0;
}

li::marker {
  font-size: 1.5rem;
  color: #111;
  font-weight: 700;
}

p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.5rem;
}

/* Globals */

.section {
  display: flex;
  gap: 4rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
  position: relative;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  nav {
    display: none; /* Hides the navbar completely on mobile */
  }

  .container {
    flex-direction: column; /* Switches flexbox to vertical alignment */
    padding: 20px; /* Reduces padding for tighter mobile screens */
    gap: 0; /* Removes the gap since the navbar is gone */
  }

  section {
    min-height: auto; /* Optional: resets min-height so mobile users don't have to scroll endlessly through empty space */
    margin-bottom: 30px;
  }
}
