.resume-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 30px 100px 30px; /* top and bottom padding to clear header/footer */
  background: white;
}

.resume-page h1 {
  margin: 0;
  font-size: 2.5rem;
}

.resume-page .contact {
  font-size: 1rem;
  font-style: normal;
  color: #666;
  margin-top: 10px;
}

.resume-page h2 {
  margin-top: 1.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #ccc;
  font-size: 1.5rem;
}

.resume-page .job {
  margin-top: 25px;
  margin-bottom: 20px;
}

.resume-page .job h3 {
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.resume-page .job .company {
  margin: 0;
  font-weight: 500;
}

.resume-page .job .job-details {
  margin: 0 0 6px 0;
}

.resume-page .job-highlights li {
  margin-top: 6px;
  margin-bottom: 4px;
  line-height: 1.35;
}

.resume-page ul {
  list-style-type: disc;
  padding-left: 20px;
  /* line-height: 1.6; */
}

.resume-page .skills {
  columns: 2;
  column-gap: 2rem;
}

.resume-page .skills li {
  break-inside: avoid;
  text-align: left;
  margin-bottom: 0.5rem;
}

.print-actions {
    text-align: right;
    margin-bottom: 10px;
}

.resume-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.download-btn:hover {
    background-color: #89a8bf;
}

.resume-page section {
  margin-bottom: 28px;
}

@media print {
  @page {
    size: letter;
    margin: 0.5in;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
  }

  body > header,
  body > footer,
  .print-actions {
    display: none !important;
  }

  .resume-page {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    background: white !important;
  }

  .resume-header {
    text-align: center;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
  }

  .resume-page h1 {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
  }

  .resume-page .contact {
    margin: 4px 0 !important;
    padding: 0 !important;
  }

  .resume-page h2 {
    margin: 18px 0 8px 0 !important;
    padding-bottom: 4px !important;
  }

  .resume-page section {
    margin-bottom: 18px !important;
  }
  
  .resume-page .job {
    break-inside: auto;
    page-break-inside: auto;
  }

  .resume-page .job h3, .resume-page .company, .resume-page .job-details {
    break-after: avoid;
    page-break-after: avoid;
  }

  .resume-page .skills {
    columns: 1;
  }
}

@media (max-width: 768px) {
  .resume-page .skills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .resume-page .skills {
    grid-template-columns: 1fr;
  }
}