/* ========== NCADEMI PRINT STYLESHEET ========== */
/* This stylesheet is specifically designed to create a clean print experience */
/* by hiding most website elements and focusing on content only */

@media print {
  /* Hide all navigation elements */
  .site-header,
  .header-inner,
  .top-bar,
  .logo-container,
  .search-bar,
  .nav-bar-wrapper,
  .main-nav,
  .footer-content,
  .footer-middle-row,
  .footer-disclaimer-row,
  .site-footer {
    display: none !important;
  }

  /* Hide interactive elements */
  .ncademi-newsletter,
  .newsletter-container,
  .newsletter-text,
  .newsletter-form-wrapper,
  .ncademi-featured,
  .featured-wrapper,
  .featured-card,
  .latest-blog-post,
  .blog-post-image,
  .blog-post-content,
  .comment-respond,
  .comment-list,
  .wp-block-simpletoc-toc,
  .simpletoc-title,
  .simpletoc-list {
    display: none !important;
  }

  /* Hide buttons and forms */
  .wp-block-button,
  .view-more,
  .view-more-outline,
  button,
  input[type="submit"],
  input[type="button"],
  input[type="text"],
  input[type="email"],
  input[type="url"],
  form {
    display: none !important;
  }

  /* Hide social media and external links */
  .social-links,
  .share-buttons,
  .social-media,
  a[href*="facebook"],
  a[href*="twitter"],
  a[href*="linkedin"],
  a[href*="youtube"],
  a[href*="instagram"] {
    display: none !important;
  }

  /* Hide decorative elements */
  .hero-banner,
  .hero-image-container,
  .hero-image,
  .hero-text-box,
  .welcome-message,
  .welcome-inner,
  .svg-bracket,
  .welcome-text {
    display: none !important;
  }

  /* Hide breadcrumbs */
  .breadcrumb {
    display: none !important;
  }

  /* Hide images that are decorative */
  img[alt*="logo"],
  img[alt*="banner"],
  img[alt*="hero"],
  img[alt*="decoration"],
  .featured-card-image img,
  .blog-post-image img {
    display: none !important;
  }

  /* Hide callout blocks and plugins */
  .ncademi-callout,
  .wp-block-callout,
  .callout {
    display: none !important;
  }

  /* Hide sidebar content */
  .sidebar,
  .widget,
  .widget-area {
    display: none !important;
  }

  /* Hide comments section */
  .comments,
  .comment-respond,
  .comment-list,
  .comment-form {
    display: none !important;
  }

  /* Hide search functionality */
  .search-form,
  .search-results,
  .search-result {
    display: none !important;
  }

  /* Hide pagination */
  .pagination,
  .nav-links,
  .page-numbers {
    display: none !important;
  }

  /* Hide related posts */
  .related-posts,
  .related-content {
    display: none !important;
  }

  /* Hide share buttons */
  .share-buttons,
  .social-share,
  .sharing {
    display: none !important;
  }

  /* Hide newsletter signup */
  .newsletter,
  .email-signup,
  .subscription {
    display: none !important;
  }

  /* Show only the contact section from footer */
  .site-footer {
    display: block !important;
    background: #fff !important;
    border-top: 2px solid #025191 !important;
    margin-top: 2em !important;
    padding: 1em 0 !important;
  }

  .footer-content {
    display: block !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Show only the first footer column (Contact Us) */
  .footer-col:first-child {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer-col:not(:first-child) {
    display: none !important;
  }

  .contact-list {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .contact-list h2 {
    color: #005190 !important;
    font-size: 16pt !important;
    font-weight: bold !important;
    margin: 0 0 0.5em 0 !important;
    padding: 0 !important;
  }

  .contact-list li {
    display: block !important;
    margin: 0.3em 0 !important;
    padding: 0 !important;
    color: #000 !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  .contact-list a {
    color: #000 !important;
    text-decoration: none !important;
  }

  .contact-list i {
    display: none !important;
  }

  /* Hide all other footer elements */
  .footer-middle-row,
  .footer-disclaimer-row,
  .footer-logos,
  .disclaimer-logo-left,
  .disclaimer-logo-right,
  .disclaimer-text {
    display: none !important;
  }

  /* Hide mobile-specific elements */
  .mobile-menu,
  .hamburger,
  .menu-toggle {
    display: none !important;
  }

  /* Hide accessibility elements that are screen-reader only */
  .sr-only {
    display: none !important;
  }

  /* Hide any elements with print-hidden class */
  .print-hidden,
  .no-print {
    display: none !important;
  }

  /* Hide Download PDF links */
  a[href*="download"],
  a[href*="pdf"],
  .download-pdf,
  .pdf-download,
  a[title*="Download PDF"],
  a[title*="PDF"] {
    display: none !important;
  }

  /* Basic print styling for content that should remain */
  body {
    font-family: "Times New Roman", serif !important;
    font-size: 12pt !important;
    line-height: 1.4 !important;
    color: #000 !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0.5in !important;
  }

  .site-main {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #005190 !important;
    page-break-after: avoid !important;
    margin-top: 1em !important;
    margin-bottom: 0.5em !important;
  }

  p {
    margin-bottom: 1em !important;
    orphans: 3 !important;
    widows: 3 !important;
  }

  a {
    color: #025181 !important;
    text-decoration: underline !important;
  }

  a[href]:after {
    content: " (" attr(href) ")" !important;
    font-size: 0.8em !important;
    color: #666 !important;
  }

  /* Hide URLs for internal links */
  a[href^="/"]:after,
  a[href^="#"]:after {
    content: "" !important;
  }

  /* Page breaks */
  .page-break {
    page-break-before: always !important;
  }

  .no-page-break {
    page-break-inside: avoid !important;
  }

  /* Ensure content fits on page */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hide any remaining interactive elements */
  [onclick],
  [onmouseover],
  [onmouseout],
  [onfocus],
  [onblur] {
    display: none !important;
  }

  /* Additional WordPress-specific elements to hide */
  .wp-block-group,
  .wp-block-columns,
  .wp-block-media-text,
  .wp-block-cover,
  .wp-block-gallery,
  .wp-block-embed,
  .wp-block-video,
  .wp-block-audio {
    display: none !important;
  }

  /* Hide WordPress admin bar if visible */
  #wpadminbar {
    display: none !important;
  }

  /* Hide any remaining WordPress blocks that are decorative */
  .wp-block-separator,
  .wp-block-spacer,
  .wp-block-quote,
  .wp-block-pullquote {
    display: none !important;
  }

  /* Ensure only main content is visible */
  .entry-content,
  .post-content,
  .page-content {
    display: block !important;
  }

  /* Style the main content area for print */
  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .entry-content h4,
  .entry-content h5,
  .entry-content h6 {
    color: #005190 !important;
    font-weight: bold !important;
  }

  .entry-content p {
    margin-bottom: 1em !important;
    text-align: left !important;
  }

  .entry-content ul,
  .entry-content ol {
    margin-left: 1.5em !important;
    margin-bottom: 1em !important;
  }

  .entry-content li {
    margin-bottom: 0.5em !important;
  }

  /* Add disclaimer text at the bottom of print */
  body::after {
    content: "The contents of this website were developed under a cooperative agreement with the U.S. Department of Education, Office of Special Education Programs (Award No. H327Z240007). However, those contents do not necessarily represent the policy of the Department of Education, and you should not assume endorsement by the Federal Government. Project Officer: Rebecca Sheffield, Ph.D.\A\AThis work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International license.";
    display: block !important;
    margin-top: 2em !important;
    padding-top: 1em !important;
    border-top: 1px solid #ccc !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    color: #000 !important;
    text-align: left !important;
    page-break-inside: avoid !important;
  }
}
