/* CORE LAYOUT */
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
/*  font-weight: 400; */
  src: url('https://fonts.gstatic.com/s/albertsans/v4/i7dZIFdwYjGaAMFtZd_QA3xXSKZqhr-TenSHq5PPq4f3.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Merriweather';
  font-style: normal;
/* font-weight: 400; */
  src: url('https://fonts.gstatic.com/s/merriweather/v33/u-4D0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiScCmDxhtNOKl8yDr3icaFF31.woff2') format('woff2');
  font-display: swap;
}

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

html,
body {
  font-family: "Albert Sans", sans-serif;
  height: 100%;
  font-size: 15px;
}

.page {
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  flex-shrink: 0;
}

.bottom {
  display: flex;
}

.column {
  padding: 20px;
  box-sizing: border-box;
}

.left {
  flex-basis: 70%;
  background-color: #fff;
  padding-top: clamp(5px, 3vw, 20px);
  padding-right: clamp(5px, 10vw, 200px);
  padding-bottom: clamp(5px, 3vw, 20px);
  padding-left: clamp(20px, 5vw, 60px);
}

.right {
  flex-basis: 30%;
  background-color: #f0f0f0;
  padding: 20px;
}

@media (max-width: 768px) {
  .top,
  .bottom {
    flex-direction: column;
  }

  .left,
  .right {
    flex: 1 1 100%;
  }
}

/* DETAILED STYLING */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;   /* ensures a perfect circle */
  float: left;          /* pushes the image to the left */
  margin-right: 30px;   /* space between image and text */
  margin-top: 14px;      /* optional: align better with heading baseline */
}

.left h1 {
  font-family: "Merriweather";
  font-size: 3.7rem;
  font-weight: bold;
}

h2 {
  font-family: "Merriweather";
  text-transform: uppercase;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* SOCIALS */
.socials {
  font-size: 1rem;
}

.socials ul {
  display: flex;
  flex-direction: column;
}

.socials li {
  list-style: none;
  padding-bottom: 10px;
}

.socials a {
  color: black;
  text-decoration: none;
}

.socials a:hover{
  color: #8B0000;
}

/* WORK EXPERIENCE */

/* HEADER */
.work,
.education,
.skills {
  color: #3f3f3f;
}

.work h2,
.education h2,
.skills h2 {
  line-height: 1.2;
  margin-top: 40px;
  margin-bottom: 5px;
}

.skills h3 {
  color: black;
  padding: 0;
  margin: 0;
  margin-top: 24px;
}

.work-list .institution,
.education-list .institution {
  list-style: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: black;
  border-bottom: 1px solid #b3b3b3;
  padding-bottom: 2px;   /* tighter underline gap */
  margin-top: 35px;
  margin-bottom: 6px;    /* space before year */
}

.work-list .year,
.education-list .year {
  list-style: none;
  font-size: 1rem;
  color: #595959;
  font-weight: 500;
  margin-bottom: 6px;
}

.achievements {
  list-style: disc;
  text-align: justify;
  padding-left: 35px;
  line-height: 1.3;
  margin-top: 10px;
  list-style-position: outside;
}

.achievements li {
  color: black;
  margin-bottom: 5px;
}

/* institution */
.work-list li a,
.work-list li a:visited
{
  color: black;
  text-decoration-line: underline;
  text-decoration-color: black;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;  
}

.work-list li a:hover {
  color:#8B0000;
}

.heading {
  font-weight: bold;
}

/* EDUCATION */
/* Outer education list */
.education-list {
  list-style: none;
  margin: 0 0 1.5rem 0; /* more breathing room between institutions */
  padding: 0;
}

/* Institution name */
.education-list .institution {
  font-size: 1.2rem;
  font-weight: 700;
  color: black;
  border-bottom: 1px solid #b3b3b3;
  padding-bottom: 2px;   /* tighter underline gap */
  margin-bottom: 6px;    /* space before year */
}

/* Year */
.education-list .year {
  font-size: 1rem;
  color: #595959;
  font-weight: 500;
  margin-bottom: 6px;
}

/* Enrollment details */
.education-enr {
  list-style: none;
  margin: 4px 0 0 0;
  padding-left: 15px;    /* indent for hierarchy */
  border-left: 2px dashed #e0e0e0;
}

.education-enr li {
  font-size: 1rem;
  color: black;
  margin-top: 3px;
}

.education-enr li a {
  color: black;
  text-decoration-line: underline;
  text-decoration-color: black;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
}

.education-enr li a:hover {
  color:#8B0000;
}

/* SKILLS */

.skills .skillset {
  color: black;
  margin-top: 0px;
  font-weight: bold;
  font-size: 1.2rem;
  /* border: 2px solid red; */
}

/* enumerated skills */
.skills li {
  font-size: 1rem;
  font-weight: lighter;
  color: black;
  list-style: none;
  padding-left: 15px;
  border-left: 2px dashed #ddd;
  margin-top: 10px;
  margin-bottom: 10px;
}

.blurb {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 5px;
  padding: 5px;
}

.mypic {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.mydesc {
  text-align: justify;
}

/* SCREEN-ONLY LAYOUT */
@media screen {
  .noweb {
    display: none;
  }
}

/* PRINTING LAYOUT */
@media print {
  body {
    transform: scale(1);
    transform-origin: top left;
    margin-top: 0.0cm;
    margin-bottom: 0.0cm;
    margin-left: 0.2cm;
    margin-right: 0.2cm;
  }

  .avatar {
    width: 101px;
    height: 101px;
    border-radius: 50%;   /* ensures a perfect circle */
    float: left;          /* pushes the image to the left */
    margin-right: 40px;   /* space between image and text */
    margin-top: 14px;      /* optional: align better with heading baseline */
  }

  /* Hide print button */
  .socials .noprint {
    display: none !important;
  }

  /* Set up correct 2 column flow */
  .bottom {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }

  .column.left {
    flex: 1;
    min-width: 70%;
    overflow: visible;
    padding-top: 0px !important;
    padding-right: 20px !important;
    padding-bottom: 10px !important;
    padding-left: 20px !important;
  }
  
  .column.right {
    flex: 1;
    min-width: 0;
    overflow: visible;
    background-color: white;
    padding-top: 0px !important;
    padding-right: 15px !important;
    padding-bottom: 10px !important;
    padding-left: 15px !important;
  }

  @page {
    margin: 1cm;
  }

  .socials {
    margin: 0;
    padding: 0;
  }

  .socials ul {
    gap: 0px;
    display: flex;
    flex-direction: row;
  }

  .socials li {
    padding-bottom: 2px;
    margin-right: 2em;
    display: inline-flex;
  }


  .socials a {
    text-decoration: none !important;
  }

  .work-list {
    margin-top: 10px !important;
  }
  .skills h2,
  .work h2 {
    margin-top: 8px;
    margin-bottom: 0px;
  }

  .education h2 {
    margin-top: 25px !important;
    margin-bottom: 0px;
  }

  .education-list {
    margin: 0;
    padding: 0;
  }

  .work-list li,
  .education-list li {
    margin-top: 5px !important;
    padding: 0;
  }

  .work-list .institution {
    margin-top: 25px !important;
  }

  .education-list .institution {
    margin-top: 10px !important;
    padding-bottom: 0px;   /* tighter underline gap */
    margin-bottom: 0px;    /* space before year */
    line-height: normal;
  }

  .education-enr li a {
    color: black;
    text-decoration: underline !important;
  }

  .page-break {
    display: block;
    break-before: page; /* modern */
    page-break-before: always;  /* legacy */
  }

  .skillset {
    margin-top: 10px !important;
  }

  .work-list,
  .education-list,
  .skillset,
  .achievements,
  .education-enr {
    break-inside: avoid;
    page-break-inside: avoid;;
  }

  .page,
  .top,
  .bottom,
  .work,
  .skills,
  .education {
    overflow: visible !important;
  }

}
