/* ═══════════════════════════════════════════════════════════
   AL-HIKMAT SCHOOLS – Print Stylesheet
   Included via media="print" in head.php
   ═══════════════════════════════════════════════════════════ */

@media print {
  /* ── Reset for print ─────────────────────────────────── */
  *,
  *::before,
  *::after {
    box-sizing: border-box !important;
    color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  /* ── Hide non-print elements ─────────────────────────── */
  .topbar,
  .header,
  .hamburger,
  .mobile-menu,
  .mobile-menu-overlay,
  .marquee-bar,
  .hero-swiper,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination,
  .cta-band,
  footer,
  #backToTop,
  .news-filter,
  .news-search,
  .btn-apply,
  .btn-pink,
  .btn-green,
  .btn-gold,
  .btn-outline-pink,
  .btn-white,
  .btn-download,
  .gallery-overlay,
  .sidebar-widget .btn-gold,
  .footer,
  nav,
  .breadcrumb,
  .about-cta,
  .stats-section,
  .pagination,
  .cta-btns {
    display: none !important;
  }

  /* ── Page setup ──────────────────────────────────────── */
  @page {
    margin: 20mm 15mm;
    size: A4 portrait;
  }

  body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 11pt;
    line-height: 1.6;
    color: #000 !important;
    background: #fff !important;
  }

  /* ── Page banner ─────────────────────────────────────── */
  .page-banner {
    background: #0a3622 !important;
    padding: 20px !important;
    page-break-after: avoid;
  }
  .page-banner h1 {
    font-size: 20pt !important;
    color: #fff !important;
  }
  .page-banner .pb-label,
  .page-banner .pb-sub {
    display: none;
  }

  /* ── Print header (school name + logo) ──────────────── */
  body::before {
    content: 'AL-HIKMAT SCHOOLS – Excellence Exemplified | Agege, Lagos, Nigeria';
    display: block;
    text-align: center;
    font-size: 9pt;
    color: #555;
    border-bottom: 2px solid #0a3622;
    padding-bottom: 8px;
    margin-bottom: 16px;
    font-family: Arial, sans-serif;
  }

  /* ── Print footer ────────────────────────────────────── */
  body::after {
    content: 'www.alhikmatschools.com | info@alhikmatschools.com | 08056671389 | Page ' counter(page);
    display: block;
    text-align: center;
    font-size: 8pt;
    color: #888;
    border-top: 1px solid #ccc;
    padding-top: 8px;
    margin-top: 20px;
    font-family: Arial, sans-serif;
  }

  /* ── Content layout ──────────────────────────────────── */
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .inner-section {
    padding: 16px 0 !important;
  }

  .sidebar-layout {
    display: block !important;
  }

  .sidebar {
    display: none !important;
  }

  /* ── Typography ──────────────────────────────────────── */
  h1, h2, h3, h4, h5, h6 {
    font-family: Arial, sans-serif;
    page-break-after: avoid;
    color: #0a3622 !important;
  }

  h2.section-title {
    font-size: 16pt !important;
    border-bottom: 1px solid #ccc;
    padding-bottom: 6px;
    margin-bottom: 12px;
  }

  p, li {
    orphans: 3;
    widows: 3;
  }

  /* ── Tables ──────────────────────────────────────────── */
  .styled-table,
  .admin-table,
  .info-table,
  .fee-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 10pt !important;
  }

  .styled-table th,
  .styled-table td,
  .admin-table th,
  .admin-table td {
    border: 1px solid #ccc !important;
    padding: 6px 8px !important;
    color: #000 !important;
  }

  .styled-table thead tr {
    background: #0a3622 !important;
    color: #fff !important;
  }

  /* ── Timetable ───────────────────────────────────────── */
  .timetable-table {
    font-size: 8pt !important;
  }

  /* ── Links ───────────────────────────────────────────── */
  a[href]::after {
    content: none;
  }

  a {
    color: #0a3622 !important;
    text-decoration: none !important;
  }

  /* ── Images ──────────────────────────────────────────── */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .about-img-accent,
  .school-card-bg,
  .activity-card-bg {
    display: none !important;
  }

  /* ── Page breaks ─────────────────────────────────────── */
  .panel,
  .news-card,
  .event-card,
  .feature-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* ── Section labels ─────────────────────────────────── */
  .section-label {
    font-size: 8pt !important;
    color: #888 !important;
  }

  /* ── Booklist / Download pages ───────────────────────── */
  .books-table {
    font-size: 9pt !important;
  }

  /* ── Calendar ────────────────────────────────────────── */
  .events-mini-cal {
    display: none !important;
  }

  .tl-item {
    page-break-inside: avoid;
  }

  /* ── Grid adjustments ────────────────────────────────── */
  .features-grid,
  .news-grid,
  .fac-grid,
  .vm-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .feature-card,
  .fac-item,
  .vm-card {
    border: 1px solid #ddd !important;
    padding: 10px !important;
    box-shadow: none !important;
  }

  /* ── Admission card ──────────────────────────────────── */
  .admission-card {
    background: #f5f5f5 !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
    padding: 14px !important;
  }

  .admission-card .ac-title,
  .admission-card .ac-sub {
    color: #000 !important;
  }

  .info-table td {
    color: #000 !important;
    border-bottom: 1px solid #eee !important;
  }
}
