/* ========================================
   TCL Website Print Stylesheet - Simplified
   ======================================== */

@media print {
    @page {
        margin: 1in !important;
        size: A4 !important;
    }
    
    /* Reset for print */
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

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

    /* Headings */
    h1, h2, h3, h4, h5, h6 {
        font-family: "Times New Roman", Times, serif !important;
        font-weight: bold !important;
        color: #000 !important;
        page-break-after: avoid !important;
    }

    h1 { font-size: 18pt !important; margin-bottom: 12pt !important; }
    h2 { font-size: 16pt !important; margin-bottom: 10pt !important; }
    h3 { font-size: 14pt !important; margin-bottom: 8pt !important; }

    /* Links */
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }

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

    a[href^="#"]:after,
    a[href^="javascript:"]:after,
    a[href^="mailto:"]:after {
        content: "" !important;
    }

    /* ========================================
       SHOW ESSENTIAL ELEMENTS
       ======================================== */
    
    /* Headers and footers */
    header,
    .header,
    .site-header,
    .main-header,
    .tcl-header,
    .tcl-top-bar,
    .tcl-gov-header,
    .tcl-main-header,
    .tcl-navigation,
    footer,
    .footer,
    .site-footer,
    .main-footer,
    .tcl-footer,
    .footer-content,
    .footer-links,
    .footer-bottom {
        display: block !important;
        visibility: visible !important;
        position: static !important;
    }

    /* Navigation */
    .tcl-navigation,
    .tcl-nav-list,
    .tcl-nav-item,
    .tcl-nav-link {
        display: block !important;
        visibility: visible !important;
    }

    /* ========================================
       CAROUSEL - SHOW ONLY ACTIVE SLIDE
       ======================================== */
    
    /* Hide all carousel items by default */
    .owl-carousel .owl-item {
        display: none !important;
    }

    /* Show only the active/center slide */
    .owl-carousel .owl-item.active,
    .owl-carousel .owl-item.center,
    .owl-carousel .owl-item:first-child {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        margin: 0 !important;
        page-break-inside: avoid !important;
    }

    /* Show carousel container */
    .owl-carousel,
    .owl-theme,
    .owl-loaded,
    .owl-stage,
    .owl-stage-outer,
    .owl-stage-inner {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Show images in active slide */
    .owl-carousel .owl-item.active img,
    .owl-carousel .owl-item.center img,
    .owl-carousel .owl-item:first-child img,
    .stqc-hero-section img,
    .hero-section img,
    .slider-container img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
        margin: 10pt auto !important;
        page-break-inside: avoid !important;
    }

    /* Show slide content */
    .owl-carousel .owl-item.active .hero-content,
    .owl-carousel .owl-item.center .hero-content,
    .owl-carousel .owl-item:first-child .hero-content,
    .stqc-hero-section .hero-content,
    .hero-section .hero-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #000 !important;
        background: transparent !important;
    }

    /* Override hidden slide images */
    .stqc-slide-image,
    .stqc-slide[style*="background-image"] .stqc-slide-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* ========================================
       NEWS TICKER
       ======================================== */
    
    .news-ticker,
    .tcl-critical-ticker,
    .tcl-ticker-container,
    .tcl-ticker-list,
    .tcl-ticker-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        width: 100% !important;
        background: #f0f0f0 !important;
        border: 1px solid #ccc !important;
        padding: 8pt !important;
        margin: 10pt 0 !important;
        page-break-inside: avoid !important;
    }

    /* ========================================
       VIDEO THUMBNAILS
       ======================================== */
    
    video,
    .video,
    .video-container,
    .video-thumbnail,
    .video-poster {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        max-height: 200pt !important;
        margin: 10pt auto !important;
        page-break-inside: avoid !important;
    }

    /* ========================================
       HIDE NON-ESSENTIAL ELEMENTS
       ======================================== */
    
    /* Carousel controls */
    .owl-nav,
    .owl-dots,
    .owl-prev,
    .owl-next,
    .owl-dot,
    .carousel-control,
    .carousel-indicators {
        display: none !important;
    }

    /* Forms and interactive elements */
    form,
    .form,
    button,
    .btn,
    .button,
    input,
    select,
    textarea,
    .search-box,
    .modal,
    .dropdown {
        display: none !important;
    }

    /* Sidebars */
    .sidebar,
    .widget-area,
    .widget,
    .col-lg-3,
    .col-md-3,
    .col-sm-3 {
        display: none !important;
    }

    /* ========================================
       BASIC STYLING
       ======================================== */
    
    /* Images */
    img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid !important;
        margin: 10pt auto !important;
    }

    /* Tables */
    table {
        border-collapse: collapse !important;
        width: 100% !important;
        margin: 10pt 0 !important;
    }

    th, td {
        border: 1px solid #000 !important;
        padding: 4pt !important;
    }

    th {
        background: #f0f0f0 !important;
        font-weight: bold !important;
    }

    /* Lists */
    ul, ol {
        margin: 8pt 0 !important;
        padding-left: 20pt !important;
    }

    /* Contact page map */
    .map-wrapper,
    .map-container,
    .contact-map {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: 200pt !important;
        border: 1px solid #000 !important;
        margin: 10pt 0 !important;
    }

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