/* Print Styles - Optimized for 2-3 pages maximum */

@media print {
  /* Page setup */
  @page {
    margin: 0.8cm;
    size: auto;
  }

  /* Hide non-essential elements */
  .site-header,
  .site-footer,
  #search-modal,
  #theme-toggle,
  #search-btn,
  .btn,
  .hover-lift {
    display: none !important;
  }

  /* Base typography - balanced */
  body {
    font-size: 9.5pt;
    line-height: 1.4;
    color: #000;
    margin: 0;
    padding: 0;
  }

  /* Links - minimal */
  a {
    text-decoration: none;
    color: #000;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 7pt;
    color: #333;
  }

  /* Headings - give them breathing room */
  h1 {
    font-size: 16pt;
    margin: 0.5em 0 0.3em 0;
    page-break-after: avoid;
  }

  h2 {
    font-size: 12pt;
    margin: 0.4em 0 0.25em 0;
    page-break-after: avoid;
  }

  h3 {
    font-size: 10pt;
    margin: 0.3em 0 0.2em 0;
    page-break-after: avoid;
  }

  p {
    margin: 0.25em 0;
  }

  /* Reduce section padding */
  section {
    padding: 0.3em 0 !important;
    margin: 0 !important;
  }

  /* Hero section - minimal, NO extra space */
  .hero-section {
    min-height: auto !important;
    padding: 0.2em 0 !important;
    margin: 0 0 0.2em 0 !important;
    overflow: visible !important;
  }

  /* Remove hero image containers completely */
  .hero-section > div:first-child,
  .hero-section .position-absolute,
  .hero-section [style*="aspect-ratio"],
  .hero-section .col-lg-6:last-child,
  .hero-section .overflow-hidden {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hero text content - keep minimal */
  .hero-section .container {
    padding: 0 !important;
  }

  .hero-section .row {
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
  }

  .hero-section .col-lg-6 {
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-section h1 {
    font-size: 14pt;
    color: #000 !important;
    margin: 0 0 0.2em 0 !important;
  }

  .hero-section p {
    color: #000 !important;
    font-size: 9pt;
    margin: 0 0 0.2em 0 !important;
  }

  /* REMOVE SPACE before sections */
  section#services,
  section#facilities,
  section#faq,
  section#testimonials,
  section#about,
  section#docent,
  section#contact {
    margin-top: 0 !important;
    padding-top: 0.2em !important;
  }

  /* Remove section text-center padding */
  section .text-center {
    margin: 0 !important;
    padding: 0 !important;
  }

  section .text-center.mb-5,
  section .text-center.mb-4 {
    margin-bottom: 0.2em !important;
  }

  /* Hide ALL images and their containers */
  img,
  .card-img-top,
  .card-img,
  [style*="height: 246px"],
  [style*="aspect-ratio"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Card spacing */
  .card {
    border: 1px solid #999;
    padding: 0.3em;
    margin: 0.3em 0;
    break-inside: avoid;
  }

  /* Remove card image wrapper spacing */
  .card > *:first-child:empty,
  .card > .card-img-top:empty {
    display: none !important;
  }

  /* FAQ cards - more compact */
  #faq .card {
    padding: 0.15em;
    margin: 0.15em 0;
  }

  /* Lists - balanced spacing */
  ul, ol {
    margin: 0.3em 0;
    padding-left: 1.5em;
  }

  li {
    margin: 0.15em 0;
  }

  /* Values list - 3 columns to save maximum space */
  #about ol {
    column-count: 3;
    column-gap: 0.5em;
    font-size: 8pt;
  }

  #about li {
    margin: 0.05em 0;
  }

  /* Blockquote - very compact */
  blockquote {
    margin: 0.3em 0;
    padding: 0.2em 0.3em;
    border-left: 1px solid #000;
    font-size: 8pt;
  }

  .blockquote-footer {
    font-size: 7pt;
  }

  /* Testimonials - compact */
  #testimonials .card {
    font-size: 8pt;
  }

  /* Contact section - minimal */
  #contact {
    background: none !important;
    color: #000 !important;
    padding: 0.2em 0 !important;
    margin: 0 !important;
  }

  #contact h2,
  #contact p {
    color: #000 !important;
  }

  /* Reduce big margins and paddings */
  .mb-5, .mb-4 {
    margin-bottom: 0.4em !important;
  }

  .mb-3 {
    margin-bottom: 0.3em !important;
  }

  .mt-5, .mt-4 {
    margin-top: 0.4em !important;
  }

  .mt-3 {
    margin-top: 0.3em !important;
  }

  .py-5, .py-4 {
    padding-top: 0.4em !important;
    padding-bottom: 0.4em !important;
  }

  .pt-5, .pt-4 {
    padding-top: 0.4em !important;
  }

  .pb-5, .pb-4 {
    padding-bottom: 0.4em !important;
  }
}
