/* === General Reset and Fonts === */
body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  color: #111;
  background-color: #fafafa;
  line-height: 1.6;
}

/* === Navigation Bar === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #002c5a; /* HEC Blue */
  color: #fff;
  padding: 1rem 2rem;
}

.site-title {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 1.6rem;
  margin: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* === Layout and Sections === */
.section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* === About Section === */
#about {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.portrait {
  width: 230px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.bio h2 {
  margin-top: 0;
}

/* === Buttons === */
.button {
  display: inline-block;
  background-color: #0055A4;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: #003f7f;
}

/* === Footer === */
footer {
  text-align: center;
  background-color: #002c5a;
  color: #fff;
  padding: 1rem 0;
  margin-top: 3rem;
}

/* === Responsive Design for Mobile === */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    text-align: center;
  }
  #about {
    flex-direction: column;
    align-items: center;
  }
  .portrait {
    width: 180px;
  }
}


/* === Two-column layout with fixed sidebar === */
.layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  gap: 3rem;
}

/* Sidebar stays visible while scrolling */
.sidebar {
  width: 280px;
  position: sticky;
  top: 100px; /* adjust to header height */
  align-self: flex-start;
  text-align: center;
}

.portrait {
  width: 220px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.side-info {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Right content */
.main-content {
  flex: 1;
  min-width: 0;
}

/* Mobile: stack everything */
@media (max-width: 800px) {
  .layout {
    flex-direction: column;
    padding: 1rem;
  }
  .sidebar {
    position: static;
    width: 100%;
  }
  .portrait {
    width: 160px;
  }
}

