.resume-page {
  background-color: var(--background-light);
  color: var(--text-main);
  font-family: system-ui, sans-serif;
  line-height: 1.4;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1064px;
}

.resume-page h1,
.resume-page h2,
.resume-page h3,
.resume-page h4,
.resume-page h5,
.resume-page h6 {
  color: var(--purple);
  margin-top: 0;
  text-wrap: balance;
}

.resume-page h1 { margin-bottom: 0.5rem; }
.resume-page h2 { margin-bottom: 0.4rem; }
.resume-page h3 { margin-bottom: 0.3rem; }
.resume-page h4 { margin-bottom: 0.2rem; }

.resume-page .contact-line {
  font-weight: 500;
  font-size: 1rem;
}

.resume-page header a {
  color: var(--green);
  text-decoration: none;
}

.resume-page header a:hover {
  text-decoration: underline;
}

.resume-page .experience h3 {
  margin-bottom: 0rem;
}

.resume-page h2 + h3 {
  margin-top: 0.3rem;
}

.resume-page p,
.resume-page ul {
  margin: 0;
}

.resume-page li strong {
  color: var(--purple);
}

.resume-page li:last-child {
  margin-bottom: 0.75rem;
}

.resume-page header,
.resume-page footer,
.resume-page nav,
.resume-page section {
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow:
    4px 4px 8px rgba(0, 0, 0, 0.15),
    4px 4px 10px rgba(54, 15, 90, 0.2);
  background-color: var(--card-bg);
  padding: 20px;
  margin: 20px 0;
}

.resume-page header {
  text-align: center;
}

.resume-page .dates {
  font-size: 0.9rem;
  color: var(--purple);
  margin-bottom: 5px;
}

.education h3 {
  margin-top: 16px;
  margin-bottom: 0px;
}

.education a {
  margin-top: 2px;
}

/* .resume-nav h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
} */

.resume-nav ul {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
}

.resume-nav li {
    margin-bottom: 0.25rem;
}

.resume-nav a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.resume-nav a:hover {
    background-color: #0066cc;
    color: #ffffff;
}

.back-to-top-link {
    text-align: center;
    margin: 1rem 0;
}

.back-to-top-link a {
    display: inline-block;
    padding: 0.25rem 1.5rem .5rem 1.5rem;
    background-color: #0066cc;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-to-top-link a::before {
    content: "↑ ";
    font-size: 1.2em;
    margin-right: 0.5rem;
}

.back-to-top-link a:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}

.back-to-top-link a:active {
    transform: translateY(0);
}

.print-note {
    background-color: #f0f8ff;
    border-left: 4px solid #0066cc;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #333;
}

@media print {
    .print-note {
        display: none;
    }
}

@media print {
    .resume-nav,
    .back-to-top-link {
        display: none !important;
    }
}