body {
  margin: 0;
  padding: 0;
  background: rgba(
    0,
    0,
    0,
    0.811
  ); /* light grey background to highlight the "page" */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.page {
  width: 794px; /* A4 width in pixels at 96dpi */
  min-height: 1123px; /* A4 height in pixels at 96dpi */
  background: white;
  padding: 40px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.name {
  text-align: center;
  font-family: "Times New Roman", serif;
  font-weight: bold;
}

.links {
  color: black;
  text-decoration: underline;
}

.Links {
  text-align: center;
}

p {
  margin-top: 4px;
  margin-bottom: 4px;
}

.Edu-p,
.Tech-p,
.Pro-p,
.Others-p {
  font-family: "Times New Roman", serif;
  font-variant: small-caps;
  border-bottom: 1px solid black;
  font-weight: normal;
  font-size: medium;
  margin-bottom: 6px;
}

.edu-entry,
.pro-entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  margin-left: 12px;
}

.edu-left,
.pro-left {
  max-width: 70%;
}

.edu-right {
  text-align: right;
  font-style: italic;
  white-space: nowrap;
  font-size: smaller;
}

.Institution,
.Project-name {
  font-weight: bold;
  font-size: small;
  margin-top: 1px;
}

.In-Edu {
  font-style: italic;
  font-size: smaller;
}

.content {
  font-size: small;
}

.project-link {
  font-size: small;
}

.custom-dash-list {
  list-style-type: none;
  padding-left: 0;
}
.custom-dash-list li::before {
  content: "– "; /* en dash */
  color: black;
}

@media (max-width: 768px) {
  .page {
    width: 100%;
    min-height: auto;
    padding: 20px;
    box-shadow: none;
    border-radius: 0;
  }

  .edu-entry,
  .pro-entry {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: 12px;
    margin-bottom: 12px;
    flex-wrap: nowrap; /* Prevent wrapping unless absolutely needed */
  }

  .edu-left,
  .pro-left {
    max-width: 70%; /* Prevents overflow but keeps content wide */
    flex-grow: 1;
  }

  .edu-right {
    max-width: 30%;
    text-align: right;
    font-size: x-small;
    margin-left: 8px;
    white-space: nowrap; /* Keeps date/location on one line */
    flex-shrink: 0;
  }

  .name {
    font-size: 20px;
  }

  .content {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 4px;
    text-align: justify;
  }

  .Links,
  .project-link,
  .content,
  .Institution,
  .Project-name {
    font-size: 14px;
  }

  .project-link {
    margin-top: 4px;
    display: block;
    font-size: x-small;
  }

  .content{
    font-size: x-small;
  }
  .Edu-p,
  .Tech-p,
  .Pro-p,
  .Others-p {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .custom-dash-list li {
    margin-bottom: 6px;
  }
  .In-Edu{
    font-size: x-small;
  }
}
