@media print {
  /* Reset all margins, paddings, and box-sizing to ensure consistent layout across browsers */
  * {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Hide sidebar */
  #sideNav {
    display: none !important;
  }

  /* Body and HTML */
  body, html {
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 10pt !important;
    line-height: 1.1 !important;
    color: black !important;
    background: none !important;
    margin: 0 !important; /* Ensure no margins */
    padding: 0 !important; /* Ensure no padding */
    width: 100% !important; /* Full width */
  }

  /* Section spacing */
  .resume-section {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Remove extra space in lists and icons */
  ul, li, .fa-li {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Skills section adjustments */
  #skills ul, #skills li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  #skills .fa-ul {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Remove any unnecessary padding around progress bars */
  .progress-container, .progress {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Interests section adjustments */
  #interests p {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Awards section adjustments */
  #awards ul, #awards li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  /* Specific for award icons */
  #awards .fa-li {
    margin-left: 0 !important;
  }

  /* Reset for all containers and rows */
  .container-fluid, .resume-section, .container, .row, .col-md, .col-lg, .col-sm, .d-flex {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    float: none !important;
  }

  /* Ensure full reset of formatting for headings */
  h1, h2, h3, h4, h5, h6 {
    font-weight: bold !important;
    font-size: 10pt !important;
    color: black !important;
    background: none !important;
    margin-top: 0 !important; /* Remove top margin */
    margin-bottom: 5px !important; /* Minimal bottom margin */
  }

  /* Text elements reset */
  p, li, a, span, div {
    font-size: 10pt !important;
    color: black !important;
    text-align: left !important;
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Prevent page breaks inside important elements */
  h1, h2, h3, p, li, img, .resume-item {
    page-break-inside: avoid !important;
  }

  /* Footer content for each page */
  @page {
    margin: 1.5cm !important;

    @bottom-right {
      content: "Dorina Ababii | https://resume.ababii.ch | Page " counter(page) " of " counter(pages);
      font-size: 10pt !important;
      font-family: Helvetica, Arial, sans-serif !important;
      color: black !important;
    }
  }

  /* Ensure that links are printed as plain text */
  a[href]:after {
    content: " (" attr(href) ")";
    color: black !important;
  }

  /* Hide interactive elements */
  nav, .nav-item, .navbar-toggler, button, .list-social-icons, .slideshow, form, input, textarea, select, video, iframe {
    display: none !important;
  }
}
