/* style.css - Enhanced stylesheet for all webpages */

/* Reset default margin and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body layout */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  color: #1f2937;
  line-height: 1.6;
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

/* Container wrapper */
.container {
  display: flex;
  width: 100%;
}

/* Sidebar Styling */
.sidebar {
  width: 240px;
  background-color: #f3f7fa;
  color: #1f2937;
  padding: 20px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  border-right: 1px solid #cbd5e1;
}

.sidebar h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.5rem;
  color: #0f172a;
}

.sidebar nav a {
  display: block;
  color: #1e293b;
  text-decoration: none;
  margin: 0.6rem 0;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}

.sidebar nav a:hover {
  background-color: #3b82f6;
  color: #ffffff;
}

/* Main content area */
main.content {
  margin-left: 260px;
  padding: 2rem;
  flex: 1;
  max-width: 100%;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Header styling */
header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 0.5rem;
}

header h1 {
  font-size: 1.8rem;
  color: #1e40af;
}

/* Headings */
h2, h3 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111827;
}

/* Description box styling */
.description-box {
  margin-top: 1rem;
}

.description-box p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #374151;
}

/* Math/equation blocks */
.description-box p.latex {
  font-family: 'Georgia', serif;
  font-size: 1.25rem;
  margin: 1.5rem 0;
  text-align: center;
  color: #111827;
}

/* Lists */
ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

ul li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
  color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #cbd5e1;
  }

  .sidebar h2 {
    text-align: center;
  }

  main.content {
    margin-left: 0;
    margin-top: 0;
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: none;
  }
}
