/* Reset and base styles */
html,
body,
div,
span,
h1,
h2,
h3,
p,
a,
ul,
li {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

body {
  line-height: 1;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(
      50% 45% at 50% 50%,
      rgba(25, 24, 24, 0.478) 0%,
      rgba(20, 19, 19, 0.58) 100%
    ),
    url("assets/images/bg.jpg?v=fb278c9c") center / cover no-repeat,
    #0f0e0f;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Inter", sans-serif;
  color: #f5f5f5;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 1rem;
}

.main {
  text-align: center;
  max-width: 57rem;
  padding: 6rem;
}

/* Centered "hunter / maclennan" text */
.static-title {
  text-transform: uppercase;
  color: #ff5a5f;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.375rem;
  font-size: 0.875em;
  line-height: 1.75;
  font-weight: 400;
  text-decoration: none;
  display: inline-block;
  transition: color 0.375s ease;
  margin-bottom: 1.5rem;
}

.static-title:hover {
  color: #087e8b;
}

.style2 {
  margin-bottom: 1.5rem;
}

.style3 {
  color: #f5f5f5;
  font-family: "Inter", sans-serif;
  font-size: 1em;
  line-height: 2;
  font-weight: 200;
  margin-bottom: 2rem;
}

/* Citation buttons (specific to the research page) */
.citation-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin: 1.25rem 0;
}

.citation-button {
  display: block;
  width: 100%;
  max-width: 60rem;
  padding: 1rem 1.5rem;
  text-transform: none;
  font-family: "Inter", sans-serif;
  font-size: 0.875em;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  color: #f5f5f5;
  text-decoration: none;
  transition: border-color 0.375s ease, color 0.375s ease;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  margin: 0.5rem auto;
  background-color: transparent;
  line-height: 1.6;
}

.citation-button:hover {
  border-color: #087e8b;
  color: #087e8b;
}

/* Underscore for "Hunter Maclennan" */
.citation-button em {
  font-style: normal;
  text-decoration: underline;
}

.icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  list-style-type: none;
}

.icons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 100%;
  border: solid 2px transparent;
  transition: transform 0.375s ease, border-color 0.375s ease;
}

.icons li a:hover {
  border-color: #087e8b;
  transform: scale(1.1125);
}

.icons li a svg {
  fill: #ff5a5f;
  transition: fill 0.375s ease;
}

.icons li a:hover svg {
  fill: #087e8b;
}

/* Styles for other pages (e.g., buttons, icons, etc.) */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  margin: 1.25rem 0;
  list-style-type: none;
}

.buttons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17rem;
  height: 2.25rem;
  padding: 0 1.125rem;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.15rem;
  font-size: 0.875em;
  font-weight: 400;
  border-radius: 2.5rem;
  border: solid 2px #f5f5f5;
  color: #f5f5f5;
  text-decoration: none;
  transition: transform 0.375s ease, color 0.375s ease,
    border-color 0.375s ease;
}

.buttons li a:hover {
  border-color: #087e8b;
  color: #087e8b;
  transform: scale(1.06);
}

.top-icons ul {
  display: flex;
  gap: 1rem;
  list-style-type: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.top-icons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: solid 2px #f5f5f5;
  color: #f5f5f5;
  text-decoration: none;
  transition: transform 0.375s ease, color 0.375s ease,
    border-color 0.375s ease;
}

.top-icons li a:hover {
  border-color: #087e8b;
  color: #087e8b;
  transform: scale(1.1125);
}

.top-icons li a i {
  font-size: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main {
    padding: 3rem;
  }

  .top-icons ul {
    gap: 0.75rem;
  }

  .top-icons li a {
    width: 2rem;
    height: 2rem;
  }

  .top-icons li a i {
    font-size: 1rem;
  }

  .static-title {
    font-size: 0.75em;
  }
}

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

/* Sidebar */
.sidebar {
  position: fixed; /* Lock the sidebar to the viewport */
  top: 0; /* Position at the top */
  left: 0; /* Position at the left */
  width: 200px; /* Initial width for the sidebar */
  height: 100vh; /* Full height of the viewport */
  background-color: #0f0e0f;
  padding: 1rem;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto; /* Allow scrolling if content exceeds the height */
  transition: width 0.3s ease; /* Smooth transition for expanding/collapsing */
}

/* Sidebar toggle button */
.sidebar-toggle {
  position: absolute;
  top: 1rem;
  right: 0.5rem; /* Reduced right padding to align better */
  background: none;
  border: none;
  color: #f5f5f5;
  font-size: 1.2rem; /* Slightly larger for a clean look */
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 0.25rem; /* Reduced padding */
  border-radius: 50%; /* Circular shape for a modern look */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; /* Smaller fixed size */
  height: 1.5rem; /* Smaller fixed size */
}

.sidebar-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
  color: #087e8b;
}

.sidebar.collapsed {
  width: 30px; /* Even smaller collapsed width */
}

.sidebar.collapsed .sidebar-toggle {
  right: 0.25rem; /* Adjust position for collapsed state */
}

.sidebar.collapsed .static-title,
.sidebar.collapsed .citation {
  display: none; /* Hide content when collapsed */
}

.static-title {
  text-transform: uppercase;
  color: #ff5a5f;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.375rem;
  font-size: 0.875em;
  line-height: 1.75;
  font-weight: 400;
  text-decoration: none;
  display: block;
  transition: color 0.375s ease;
}

.static-title:hover {
  color: #087e8b;
}

/* Citation link */
.citation {
  margin-top: 1rem;
}

.citation a {
  font-size: 0.875em;
  text-transform: capitalize;
  color: #f5f5f5;
  font-family: "Inter", sans-serif;
  font-weight: 200;
  text-decoration: none;
  transition: color 0.375s ease;
  display: block;
  text-align: left;
}

.citation a:hover {
  color: #087e8b;
}

/* PDF Viewer */
.pdf-viewer {
  position: fixed; /* Lock the PDF viewer to the viewport */
  top: 0; /* Position at the top */
  left: 200px; /* Start after the sidebar (sidebar width is 200px) */
  width: calc(100% - 200px); /* Span the remaining width */
  height: 100vh; /* Full height of the viewport */
  overflow: hidden; /* Prevent scrolling */
  transition: left 0.3s ease, width 0.3s ease; /* Smooth transition for expanding/collapsing */
}

.sidebar.collapsed + .pdf-viewer {
  left: 30px; /* Adjust PDF viewer position when sidebar is collapsed */
  width: calc(100% - 30px); /* Adjust PDF viewer width when sidebar is collapsed */
}

.pdf-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    width: 150px; /* Reduce sidebar width on smaller screens */
  }

  .pdf-viewer {
    left: 150px; /* Adjust PDF viewer position to match the new sidebar width */
    width: calc(100% - 150px); /* Adjust PDF viewer width */
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 100px; /* Further reduce sidebar width on very small screens */
  }

  .pdf-viewer {
    left: 100px; /* Adjust PDF viewer position to match the new sidebar width */
    width: calc(100% - 100px); /* Adjust PDF viewer width */
  }
}