@media print {
  /* Reset default browser margins */
  @page {
    margin: 10mm;
  }
  /* Ensure images do not appear with undesired borders or background */
  .rounded-circle {
    border: none !important;
    background: none !important; /* Removes background color */
    box-shadow: none !important; /* Remove any box-shadow */
  }

  /* If there are pre-set styles or tokens affecting elements */
  img {
    outline: none !important;
  }
  .timeline > li .timeline-image {
    border: none !important; /* Removes the border */
    background-color: transparent !important; /* Ensures the background is transparent */
  }
  /* General Page Adjustments */
  body, .container, .page-section {
    margin: 0;
    padding: 0;
    width: auto;
  }
  
  footer, nav, .footer {
    display: none;
  }
  
  /* Improve alignment and spacing for print */
  .row, .col-lg-12, .col-md-4, .col-lg-8 {
    margin: 0;
    padding: 0;
  }

  .masthead {
    font-size: 12pt;
    margin-bottom: 10mm; /* Reduce spacing */
  }

  h2.section-heading, h3.section-subheading {
    font-size: 14pt;
    margin: 1em 0 0.5em; /* Adjust margins */
  }

  p, li {
    font-size: 10pt;
    margin: 0 0 1em; /* Control spacing after paragraphs */
    line-height: 1.4; /* Improve readability */
  }

  img {
    max-width: 100px;
    max-height: 80px;
    margin-bottom: 5mm;
  }

  /* Timeline specific styles */
  .timeline {
    display: table !important;
    width: 100%;
    border-collapse: collapse;
  }

  .timeline > li {
    display: table-row !important;
    page-break-inside: avoid;
  }

  .timeline-image {
    display: table-cell !important;
    vertical-align: middle;
    text-align: center;
    border: none !important;
    background-color: transparent !important;
    width: 100px; /* Set width for image cell, can be adjusted */
  }

  .timeline-panel {
    display: table-cell !important;
    vertical-align: top;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
  }

  .timeline-heading {
    font-weight: bold;
    margin: 0;
  }

  .timeline-body {
    margin: 0;
  }

  .timeline-image img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 50%;
  }
  
  /* .timeline li {
    list-style: none;
    page-break-inside: avoid; 
    margin-bottom: 10mm;
  }

  .timeline-image, .timeline-panel {
    width: 100% !important;
    text-align: center;
    box-sizing: border-box;
    border: none;
  }

  
  .timeline-panel, .timeline-body {
    page-break-inside: avoid;
  } */

  /* Hide insignificant content for PDF */
  .social-buttons, .quicklinks{
    display: none;
  }

  /* Improve print visibility */
  .text-muted {
    color: #000 !important;
  }

  /* Adjust table and list discarding */
  .list-inline, .list-inline-item, .clients {
    display: inline-block;
    margin: 0;
  }

  /* Handle Navbar adjustments */
  .navbar {
    display: none;
  }
}