/* Resume page styling */
#resume-page .resume-content {
  background: var(--bg-color, #fff);
  border-radius: 8px;
  padding: 2.5rem 3rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#resume-page .resume-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

#resume-page .resume-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--primary-color, #007bff);
  padding-bottom: 0.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#resume-page .resume-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  margin-top: 1.2rem;
}

#resume-page .resume-content hr {
  margin: 1.5rem 0;
  opacity: 0.15;
}

#resume-page .resume-content ul {
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

#resume-page .resume-content ul li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

#resume-page .resume-content p {
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

#resume-page .download-section .btn {
  padding: 0.6rem 1.5rem;
  font-weight: 500;
}

/* Print styles — used by WeasyPrint for PDF and browser Ctrl+P */
@media print {
  /* Hide site chrome */
  #profileHeader,
  #profileHeader *,
  footer,
  footer *,
  .download-section,
  #search-content,
  nav,
  .navbar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }

  /* Reset page for clean print */
  *,
  *::before,
  *::after {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 9pt !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  #content {
    padding: 0 !important;
    margin: 0 !important;
  }

  #resume-page {
    padding: 0 !important;
    margin: 0 !important;
  }

  #resume-page .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #resume-page .resume-content {
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  /* Typography — compact for 2 pages */
  #resume-page .resume-content h1 {
    font-size: 16pt !important;
    margin-top: 0 !important;
    margin-bottom: 1pt !important;
  }

  #resume-page .resume-content h1 + p {
    margin-bottom: 4pt !important;
  }

  #resume-page .resume-content h2 {
    font-size: 10.5pt !important;
    color: #000 !important;
    margin-top: 8pt !important;
    margin-bottom: 4pt !important;
    padding-bottom: 2pt !important;
    border-bottom: 1pt solid #007bff !important;
    page-break-after: avoid !important;
  }

  #resume-page .resume-content h3 {
    font-size: 9pt !important;
    color: #000 !important;
    margin-top: 5pt !important;
    margin-bottom: 1pt !important;
    page-break-after: avoid !important;
  }

  #resume-page .resume-content p {
    font-size: 9pt !important;
    line-height: 1.35 !important;
    margin-top: 0 !important;
    margin-bottom: 3pt !important;
  }

  #resume-page .resume-content ul {
    padding-left: 14pt !important;
    margin-top: 1pt !important;
    margin-bottom: 2pt !important;
  }

  #resume-page .resume-content ul li {
    font-size: 9pt !important;
    line-height: 1.35 !important;
    margin-bottom: 1pt !important;
  }

  #resume-page .resume-content hr {
    margin: 4pt 0 !important;
    border-top: 0.5pt solid #ccc !important;
  }

  #resume-page .resume-content strong {
    color: #000 !important;
  }

  a, a:visited {
    color: #000 !important;
    text-decoration: none !important;
  }

  /* Avoid page breaks inside experience blocks */
  #resume-page .resume-content h3 + p,
  #resume-page .resume-content h3 + ul {
    page-break-inside: avoid;
  }

  @page {
    margin: 1.2cm 1.5cm;
    size: A4;
  }
}
