/* Print-friendly styles */
@media print {
    /* Reset and basic styles */
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-family: "Times New Roman", serif;
        font-size: 12pt;
        line-height: 1.4;
        margin: 0;
        padding: 0;
    }
    
    /* Hide non-essential elements */
    .main-header,
    .nav-toggle,
    .social-links,
    .btn,
    .filter-controls,
    .search-group,
    .enquiry-btn,
    .login-btn,
    .main-footer .social-links,
    .notification,
    .hero-buttons,
    .course-card .btn,
    video,
    iframe,
    .lazy {
        display: none !important;
    }
    
    /* Page structure */
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0 1cm;
    }
    
    /* Headers and titles */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
        margin-top: 1em;
        margin-bottom: 0.5em;
    }
    
    h1 {
        font-size: 24pt;
        border-bottom: 2pt solid black;
        padding-bottom: 0.5em;
    }
    
    h2 {
        font-size: 18pt;
        margin-top: 1.5em;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    /* Page breaks */
    .page-header,
    .section,
    .course-card {
        page-break-inside: avoid;
        margin-bottom: 1em;
    }
    
    /* Content formatting */
    p {
        margin-bottom: 0.5em;
        orphans: 3;
        widows: 3;
    }
    
    /* Lists */
    ul, ol {
        margin-left: 1em;
    }
    
    li {
        margin-bottom: 0.25em;
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
        border: 1pt solid #ccc;
        margin: 0.5em 0;
    }
    
    /* Cards and content blocks */
    .card,
    .course-card {
        border: 1pt solid #ccc !important;
        padding: 1em !important;
        margin-bottom: 1em !important;
        background: white !important;
        box-shadow: none !important;
    }
    
    /* Course information */
    .course-details {
        border-top: 1pt solid #ccc;
        padding-top: 0.5em;
        margin-top: 0.5em;
    }
    
    .detail-item {
        display: inline-block;
        margin-right: 1em;
        margin-bottom: 0.25em;
    }
    
    .course-faculty {
        font-weight: bold;
        margin-top: 0.5em;
    }
    
    .course-features .feature {
        display: inline-block;
        margin-right: 0.5em;
        padding: 0.2em 0.5em;
        border: 1pt solid #ccc;
        font-size: 10pt;
    }
    
    /* Contact information */
    .contact-info p {
        margin-bottom: 0.25em;
    }
    
    /* Footer - simplified */
    .main-footer {
        border-top: 2pt solid black;
        padding-top: 1em;
        margin-top: 2em;
    }
    
    .footer-content {
        display: block !important;
    }
    
    .footer-section {
        margin-bottom: 1em;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 12pt;
        margin-bottom: 0.5em;
    }
    
    .footer-section ul {
        list-style: none;
        margin-left: 0;
    }
    
    .footer-section ul li {
        margin-bottom: 0.25em;
    }
    
    .footer-section ul li a {
        text-decoration: none;
        color: black !important;
    }
    
    .footer-section ul li a:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666 !important;
    }
    
    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
        margin-bottom: 1em;
    }
    
    th, td {
        border: 1pt solid black;
        padding: 0.5em;
        text-align: left;
    }
    
    th {
        background: #f0f0f0 !important;
        font-weight: bold;
    }
    
    /* Links */
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666 !important;
    }
    
    /* Utility classes for print */
    .print-only {
        display: block !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    .avoid-break {
        page-break-inside: avoid;
    }
    
    /* Print header */
    .print-header {
        display: block !important;
        text-align: center;
        border-bottom: 2pt solid black;
        padding-bottom: 1em;
        margin-bottom: 2em;
    }
    
    .print-header h1 {
        margin: 0;
        font-size: 20pt;
    }
    
    .print-header p {
        margin: 0.5em 0 0 0;
        font-size: 12pt;
    }
    
    /* Print footer */
    .print-footer {
        display: block !important;
        position: fixed;
        bottom: 1cm;
        left: 1cm;
        right: 1cm;
        text-align: center;
        font-size: 10pt;
        border-top: 1pt solid black;
        padding-top: 0.5em;
    }
}

/* Print button styles for screen */
@media screen {
    .print-btn {
        position: fixed;
        top: 20px;
        right: 20px;
        background: #3498db;
        color: white;
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1rem;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        transition: background 0.3s ease;
    }
    
    .print-btn:hover {
        background: #2980b9;
    }
    
    .print-btn i {
        margin-right: 0.5rem;
    }
    
    .print-only {
        display: none;
    }
}