/* =========================
   BASE
========================= */

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  color: #444;
  background: #fff;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* =========================
   TOP NAVIGATION
========================= */

.top-nav {
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.nav-title {
  margin: 0;
  font-size: 18px;
  padding: 14px 0;
}

.nav-title a {
  color: #222;
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  border-right: 1px solid #ddd;
}

.nav-menu li:last-child {
  border-right: none;
}

.nav-menu li a {
  display: block;
  padding: 14px 16px;
  color: #267CB9;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-menu li a:hover {
  background-color: #e8e8e8;
  color: #145a86;
}

/* =========================
   SIDEBAR + MAIN CONTENT
========================= */

/* Left column */
header {
  width: 240px !important;
  float: left !important;
  position: static !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Right column */
section {
  width: calc(100% - 300px) !important;
  max-width: 700px !important;
  float: right !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Clear floats */
.wrapper::after {
  content: "";
  display: table;
  clear: both;
}

/* =========================
   TYPOGRAPHY
========================= */

p {
  margin: 0 0 18px 0;
  line-height: 1.75;
}

h1, h2, h3 {
  color: #333;
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.3;
}

ul {
  margin-top: 0;
  margin-bottom: 18px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

a {
  color: #267CB9;
}

a:hover {
  color: #145a86;
}

/* =========================
   SIDEBAR DETAILS
========================= */

header .profile-pic {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
  border-radius: 4px;
}

header p {
  font-size: 13px;
  margin: 8px 0;
  line-height: 1.5;
}

header p strong {
  display: block;
  margin-top: 14px;
  margin-bottom: 4px;
  color: #222;
}

header a {
  word-break: break-word;
}

/* =========================
   CONTENT-ONLY PAGES
========================= */

.content-wrapper {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 24px;
}

.content-wrapper section {
  width: 100% !important;
  max-width: 700px !important;
  float: none !important;
}

/* =========================
   MOBILE
========================= */

@media screen and (max-width: 900px) {
  .wrapper {
    padding: 24px 18px;
  }

  header,
  section {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  header {
    margin-bottom: 32px !important;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-menu {
    flex-wrap: wrap;
  }

  .nav-menu li {
    border-right: none;
  }
}
