/* Body styling */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f7f9fa;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  padding: 40px 0;
}

/* Container */
main {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  padding: 32px 24px;
  margin-left: 170px; /* Adjusted for sidebar */
}

/* Headings */
h1,
h2,
h3 {
  color: #2a4d69;
  margin-bottom: 16px;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  border-bottom: 2px solid #e1e8ed;
  padding-bottom: 12px;
  margin-bottom: 24px;
  margin-left: 170px; /* Adjusted for sidebar */
}

h2 {
  font-size: 1.5rem;
  margin-top: 32px;
}

/* Paragraphs */
p {
  margin-bottom: 16px;
  margin-left: 5px;
}

/* Links */
a {
  color: #3182ce;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #225ea8;
  text-decoration: underline;
}

/* Lists */
ul,
ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

/* Buttons */
button,
.btn {
  background: #3182ce;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  margin: 8px 0;
}
button:hover,
.btn:hover {
  background: #26a822;
}

/* Images */
img {
  max-width: 100%;
  border-radius: 6px;
  margin: 16px 0;
  display: block;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  text-align: center;
  padding: 12px 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
  z-index: 100;
}

/* Sidebar Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 160px;
  background: #2a4d69;
  color: #fff;
  padding: 40px 0 0 0;
  box-shadow: 2px 0 16px rgba(42, 77, 105, 0.08);
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

nav li {
  width: 100%;
}

nav a {
  display: block;
  color: #fff;
  padding: 14px 32px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border-left: 4px solid transparent;
}

nav a:hover,
nav a.active {
  background: #225ea8;
  color: #e1e8ed;
  border-left: 4px solid #26a822;
}

/* Adjust main content to account for sidebar */
main {
  margin-left: 240px;
}

/* Responsive: hide sidebar on small screens */
@media (max-width: 700px) {
  nav {
    position: static;
    width: 100vw;
    height: auto;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
  }
  nav ul {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
  }
  nav a {
    padding: 12px 10px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  nav a:hover,
  nav a.active {
    background: #225ea8;
    border-bottom: 3px solid #26a822;
    border-left: none;
  }
  main {
    margin-left: 0;
    margin-top: 60px;
  }
  label {
    display: block;
    margin-bottom: 8px;
    color: #2a4d69;
  }
}
