body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #fff;
  color: #222;
}

ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.content h4 {
  margin-top: 10px;
}

.content p, h4 {
  margin-bottom: 10px;
}

main.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.highlight-blue {
  color: #007bff;
}

.intro-section h1 {
  text-align: center;
  margin-bottom: 80px;
  font-size: 40px;
}

.intro-section {
  margin-bottom: 50px;
}

.container {
  display: flex;
  align-items: flex-start;
}

.toc {
  width: 280px;
  position: sticky;
  top: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  margin-right: 30px;
  flex-shrink: 0;
  border: 1px solid #262626; /* lighter border */
  box-shadow: 0px 0px 0px 1px #262626; /* subtle outline */
}

.toc h4 {
  text-transform: uppercase;
  font-size: 14px;
  color: #6c63ff;
  margin-bottom: 20px;
}

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

.toc ul li {
  margin-bottom: 14px;
}

.toc ul li a {
  text-decoration: none;
  color: #444;
  padding-left: 10px;
  border-left: 3px solid transparent;
  display: block;
  transition: all 0.2s ease-in-out;
}

.toc ul li a.active {
  color: #6c63ff;
  border-left: 3px solid #6c63ff;
}


.content {
  flex-grow: 1;
  padding-bottom: 300px;
}

.content h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

/* ========== Responsive Fixes for Mobile View ========== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 0 10px;
  }

  .toc {
    width: 100%;
    position: relative;
    top: unset;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid #ccc;
    padding: 15px;
  }

  .toc h4 {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .toc ul li {
    margin-bottom: 10px;
  }

  .toc ul li a {
    font-size: 15px;
    padding-left: 8px;
  }

  .content {
    padding-bottom: 200px;
  }

  .content h3 {
    font-size: 20px;
  }

  .intro-section h1 {
    font-size: 24px;
  }

  body {
    font-size: 16px;
  }

  main.page {
    padding: 20px 15px;
  }
}
