body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Prevent horizontal scroll */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Default desktop layout */
.container {
  display: flex;
  height: 100vh;
}

/* Style hyperlinks */
a {
  color: black;              /* make text black */
  text-decoration: underline;/* keep underline */
}

a:hover {
  color: black;
  text-decoration: underline;
}

.sidebar {
  width: 25%;
  background-color: #f0f0f0;
  padding: 20px;
  position: fixed;          /* fixed only on desktop */
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
}

/* Profile photo */
.profile-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin-bottom: -15px;
  display: block;
  flex-shrink: 0;
  clip-path: circle(40% at center);
}

.sidebar-name {
  text-align: center;
  margin-top: 10px;
  width: 100%;          
}

/* Inner text block inside sidebar */
.sidebar-text {
  max-width: 220px;
  text-align: left;
}

.sidebar-text h2,
.sidebar-text p {
  margin: 5px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.content {
  margin-left: 25%;
  width: 75%;
  padding: 40px;
  overflow-y: auto;
  box-sizing: border-box;
  border-left: 1px solid #ccc;
  padding-left: 40px;
}

/* Narrow text block inside right content */
.content-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive layout: stack columns when window is narrow */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 30px;
    overflow-y: visible;
    box-sizing: border-box;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
  }

    .photo-name {
    display: flex;
    flex-direction: column; /* stack photo + name */
    align-items: center;
    flex-shrink: 0;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
    clip-path: circle(40% at center);
    margin-bottom: 5px;
  }

  .sidebar-name {
    text-align: center;
    margin: 0;
	width: 100%;
  }

  .sidebar-text {
    max-width: 75%;
    text-align: left;
  }

  .content {
    margin-left: 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border-left: none;
    padding-left: 30px;
  }

  .content-text {
    max-width: 90%;
    margin: 0 auto;
  }
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 10px;
  font-weight: bold;
  background: #eee;
  border: none;
  cursor: pointer;
}

.accordion-content {
  display: none;
  padding: 10px;
  border-left: 2px solid #ccc;
}

.accordion-item.active .accordion-content {
  display: block;
}

.hidden {
  display: none;
}

.show-more {
  margin-top: 10px;
  background: none;
  border: 1px solid #ccc;
  padding: 5px 10px;
  cursor: pointer;
}
