/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%; /* ensures the body can fill the viewport height */
}

/* Typography */
body {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fdfdfd;
  display: flex;
  flex-direction: column;
}

/* Applies to all links on your site */
a:link,
a:visited {
  color: #003775;     /* lighter than Oxford blue */
  text-decoration: none;
}

a:hover,
a:focus {
  color: #000e1f;      /* Slightly darker blue */
  text-decoration: underline; /* Optional: show underline on hover/focus */
}

/* Container */
.wrapper {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.site-header {
  background-color: #002147; /* Oxford blue */
  color: #fff;
  padding: 10px;
}

.site-header .wrapper {
  display: flex;  /* Enables flexbox */
  justify-content: space-between;  /* Pushes elements to opposite ends */
  align-items: center;  /* Vertically aligns elements */
}

.site-header a {
  color: #fff;
  text-decoration: none;
}
.site-header a:hover {
  text-decoration: underline;
}

.site-title {
  font-size: 24px;
  text-decoration: none;
  color: #fff;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav a {
  margin-left: 15px;
}

.site-nav .page-link {
  margin-right: 15px;
  text-decoration: none;
  color: #ddd;
}

.site-nav .page-link:hover {
  color: #fff;
}

/* Main content */
.page-content {
  padding: 30px 0;
}

.page-content h1,
.page-content h2 {
  margin-bottom: 15px;
  color: #424242;
}

.page-content p {
  margin-bottom: 15px;
}

/* Footer */
.site-footer {
  background-color: #f4f4f4;
  border-top: 1px solid #ddd;
  padding: 15px 0;
  text-align: center;
  font-size: 14px;
  color: #777;
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between; /* or flex-start, or space-around, etc. */
  gap: 20px;              /* ensures at least 20px between items */
}

/* Remove default paragraph spacing if you like */
.footer-line p {
  margin: 0;
}

.social-links {
  display: flex;
  justify-content: center;  /* Centers the icons horizontally */
  gap: 10px;  /* Adds spacing between icons */
  margin-top: 10px;
}

.social-links a.social-button {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}
.social-links a.social-button:hover {
  transform: scale(1.1);
}

.profile-photo {
  width: 140pt;
  height: 140pt;
  border-radius: 50%;
  object-fit: cover;
}


/* Main Layout */
.main-container {
  display: flex;
  align-items: flex-start;
  flex: 1; /* This tells the container to take up remaining vertical space */
  gap: 30px;
  margin: 20px auto;
  max-width: 900px;
  padding: 0 15px;    /* <-- Adds horizontal padding so text isn’t flush */
}

/* Left Block (Profile Section) */
aside {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Profile Photo */
aside img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

.plain-link,
.plain-link:visited,
.plain-link:active {
  color: inherit;         /* Inherit the colour from the parent element */
  text-decoration: none;  /* Remove the underline */
}

.plain-link:hover,
.plain-link:focus {
  text-decoration: underline; /* Optional: show underline on hover */
}

/* Social Icons */
.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/* Right Block (Bio and Links) */
.bio-content p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.8;
}

.publication-entry {
  margin: 0 0 1.5em 0;
}

/* Mobile Optimization */
@media (max-width: 600px) {
  .main-container {
      flex-direction: column;
      align-items: center;
      padding: 0 15px;    /* <-- Adds horizontal padding so text isn’t flush */
  }

  .profile-photo {
    width: 100pt; /* adjust to your preferred smaller size */
    /* height: 100pt; */
  }

  aside {
      width: 100%;
  }

  .bio-content {
      width: 100%;
      padding: 0 20px;
  }

  .site-header .wrapper {
      flex-direction: column;
      text-align: center;
  }

  .site-nav {
      margin-top: 10px;
      justify-content: center;
  }

  .social-links {
      justify-content: center;
  }
}
