/* ===== Sidebar Styling ===== */
.toc {
  width: 300px;
  padding: 20px;
  background: #f2f2f2;
  border-radius: 8px;
}

.toc h2 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #333;
}

/* Master Image */
.circular--square {
  border-radius: 50%;
  display: block;
  margin: 0 auto 15px;
}

/* ===== Layout ===== */
.deepdive-container {
  display: flex;
  gap: 20px;
  padding: 40px 20px;
  justify-content: center;
  align-items: flex-start;
}

.content-area {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  min-height: 70vh;
}

ul#tocList {
  list-style: none;
  padding-left: 0;
}

ul#tocList li {
  margin-bottom: 8px;
}

ul#tocList a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

ul#tocList a:hover {
  color: #e57c1f;
}

.topic-link.active {
  color: #e57c1f;
  font-weight: bold;
}

/* ===== Navigation Buttons ===== */
.nav-buttons-top,
.nav-buttons-bottom {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

button {
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #3e8e41;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .deepdive-container {
    flex-direction: column;
  }

  .toc {
    width: 100%;
  }

  .content-area {
    width: 100%;
  }
}
