/* Reset */
body, h1, h2, h3, p, ul {
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  display: grid;
  grid-template-columns: 250px 1fr; /* 250px = sidebar width */
  align-items: center;
  background: #800021;
  color: white;
  padding: 1rem 2rem;
  
  position: sticky;  /* or fixed */
  top: 0;
  z-index: 1000;     /* keeps it above content */
}
.navbar h1 {
  font-size: 1.5rem;
  margin: 0;
  display: flex;
  justify-content: center; /* center within the sidebar column */
  transform: translateX(-6%); /* nudge slightly left to visually align with profile photo */
}
.navbar ul {
  justify-self: end; /* menu items stay on the right */
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}
.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.navbar a:hover {
  text-decoration: underline;
}
.navbar a.active {
  border-bottom: 2px solid #ffcc00;
  padding-bottom: 2px;
}

/* Main layout */
.main {
  display: flex;
  flex: 1;
  min-height: 0; /* Fix for flexbox scrolling */
}


/* Sidebar */
.sidebar {
  width: 250px;
  background: #f4f4f4;
  padding: 1rem;
  border-right: 1px solid #ddd;
  position: fixed;
  top: 4rem;
  height: 100vh;
}
.sidebar img {
  width: 100%;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.sidebar p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.sidebar .centered {
  text-align: center;
}

/* Content */
.content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  margin-left: 300px;
}
.content h2 {
  margin-bottom: 1rem;
  border-bottom: 2px solid #003366;
  padding-bottom: 0.3rem;
}
.content h3 {
  margin-top: 1rem;
  margin-bottom: 1rem; /* or 0 if nothing is set */
}
.content ol {
  margin-left: 1rem;
  margin-bottom: 1rem;
}
ol[reversed] li {
  margin-bottom: 1rem;  /* adjust spacing as needed */
}

/* Lists */
.event-list {
  list-style: none;   /* remove default bullets/numbers */
  padding: 0;
  margin: 1rem;
}
.event-list li {
  position: relative;
  padding-left: 4.5rem; /* space for the mm/yy label */
  margin-bottom: 1.5rem;
}
.event-list li::before {
  content: attr(data-date); /* inject mm/yy from data-date attribute */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: #800021;   /* matches your navbar */
  width: 4rem;      /* fixed width for alignment */
  text-align: right;
}

.event-year {
  display: flex;
  align-items: flex-start;   /* aligns the first li with the year */
}
.event-year .year {
  width: 60px;               /* space for the year */
  font-weight: bold;
}
.event-year .event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}


