/* Base styles */
:root {
  --main-text-color: #333;
  --link-color: #3078b4;
  --link-hover-color: #1d5689;
  --heading-color: #444;
  --body-bg: #fff;
  --max-width: 1000px;
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.4;
  color: var(--main-text-color);
  background-color: var(--body-bg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  flex: 1 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  margin-top: 1.0em;
  margin-bottom: 0.5em;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-top: 20px;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

p {
  margin-bottom: 0.8em;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover, a:focus {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* Profile section */
/* Remove or comment out the profile-container and profile-content styles */

.site-logo {
  max-width: 48px;
  margin: 10px 0 -16px 0;
}

/* Navigation */
header {
  background-color: var(--body-bg);
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex: none;
  padding: 0 20px;
}

.navbar-brand h1 {
  margin: 0;
  font-size: 1.8rem;
  border: none;
  padding: 0;
}

.navbar-brand h1 a {
  color: var(--heading-color);
  text-decoration: none;
}

.navbar-brand h1 a:hover {
  color: var(--link-color);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-item {
  margin: 0;
}

.nav-link {
  color: var(--main-text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--link-color);
  text-decoration: none;
}

.nav-link.active {
  color: var(--link-color);
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--link-color);
}

/* Lists */
ul, ol {
  padding-left: 25px;
  margin-bottom: 20px;
}

ul p {
  margin-bottom: unset;
  margin-top: unset;
}

ol p {
  margin-bottom: unset;
  margin-top: unset;
}

/* Bibliography styles */
.bibliography {
  margin-top: 1em;
  margin-bottom: 2em;
}

.bibliography ul {
  list-style-type: none;
  padding-left: 0;
}

.bibliography li {
  margin-bottom: 16px;
  padding-left: 20px;
  text-indent: -20px;
}

.bibliography a {
  color: var(--link-color);
  text-decoration: none;
}

.bibliography a:hover, .bibliography a:focus {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.bibliography em {
  font-style: italic;
}

/* Footer */
footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  font-size: 0.9em;
  text-align: center;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
  }
  
  .profile-image img,
  .profile-image .content img {
    max-width: 180px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  body {
    font-size: 16px;
  }
  
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .navbar-brand h1 {
    font-size: 1.5rem;
  }
  
  .navbar-nav {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .nav-link.active::after {
    bottom: -5px;
  }
}

/* Add these styles to create a sticky footer */
html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  flex: 1 0 auto;
}

footer {
  margin-top: 4px;
  padding: 4px 0;
  border-top: 1px solid #eee;
  font-size: 0.7em;
  text-align: center;
  flex-shrink: 0;
}

/* Remove the duplicate main, .main-content rule if it's not matching anything */