

.body {
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  color: #333;
}
.sidebar {
  width: 300px;
  padding: 30px 20px;
  background: #f9f9f9;
  border-right: 1px solid #ddd;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

.sidebar h4 {
  font-weight: bold;
  margin-bottom: 15px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin: 10px 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
  cursor: pointer;
}

.sidebar ul li a.active {
  color: orange;
}

.main-content {
  flex: 1; /* or use flex-grow like you did */
  padding: 20px;
  overflow-y: auto;
  min-height: 100vh;
}

.section {
  padding: 20px 0;
  scroll-margin-top: 100px;
  transition: background-color 0.3s;
}

.section {
  scroll-margin-top: 100px; /* ensures the section isn’t hidden behind any fixed headers */
}

.highlight {
  background-color: #fff7cc;
  transition: background-color 1s ease-out;
}

h1 {
  font-size: 24px;
  margin-bottom: 15px;
}

p {
  margin-bottom: 10px;
}

/* .next-button {
  background-color: orange;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 20px;
  cursor: pointer;
  border-radius: 5px;
} */

.sidebar ul li a.active {
    font-weight: bold;
    color: orange;
    border-left: 3px solid orange;
    padding-left: 5px;
}

/* Mobile sidebar toggle button */
.sidebar-toggle {
    display: none; /* Hidden by default on desktop */
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: #0056b3;
}

/* Show toggle button only on mobile devices */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar {
        display: none; /* Hide sidebar by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        background: white;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        display: block;
    }
    
    .main-content {
        width: 100%;
    }
    
    .body {
        flex-direction: column;
    }
}