/* Print Stylesheet */

@media print {

  /* Hide non-essential elements */
  .header,
  .burger,
  #menu-toggle,
  .slider-nav,
  .slider-dots,
  .footer,
  .contact-buttons,
  button,
  nav {
    display: none !important;
  }

  /* Reset colors for print */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }

  /* Ensure readable text */
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  /* Page breaks */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  img,
  table,
  figure {
    page-break-inside: avoid;
  }

  /* Show URLs for links */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }

  /* Don't show URLs for internal links or anchors */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  /* Optimize images for print */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Remove slider container background */
  .slider-container {
    background: white !important;
    height: auto !important;
  }

  .slide {
    position: static !important;
    opacity: 1 !important;
    page-break-inside: avoid;
  }

  /* Hide inactive slides */
  .slide:not(.active) {
    display: none !important;
  }

  /* Proper spacing */
  .content-section,
  .about-section,
  .news-profile,
  .team-profile {
    margin-bottom: 2em;
    page-break-inside: avoid;
  }

  /* Simplify layout */
  .container,
  .about-container,
  .team-container,
  .news-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Table formatting */
  table {
    border-collapse: collapse;
    width: 100%;
  }

  th,
  td {
    border: 1px solid #000;
    padding: 0.5em;
    text-align: left;
  }

  /* Header alternative for print */
  .logo {
    display: block !important;
    text-align: center;
    margin-bottom: 2em;
    border-bottom: 2px solid #000;
    padding-bottom: 1em;
  }

  .logo img {
    max-height: 50px;
  }

  /* Research cards */
  .research-card {
    border: 1px solid #ccc !important;
    padding: 1em !important;
    margin-bottom: 1em;
    page-break-inside: avoid;
  }

  /* Ensure proper widths */
  body,
  .container,
  main {
    width: 100%;
    max-width: 100%;
  }

  /* Title page */
  .hero-section h1 {
    font-size: 24pt;
    text-align: center;
    margin: 2em 0;
  }
}