@media print {
    /* Forcefully hide the map container */
    #map, #map * {
        display: none !important;
    }

    /* Other print styles remain unchanged */
    #content, #page {
        width: 100%;
        margin: 0;
        float: none;
    }

    @page {
        margin: 2cm;
    }

    body {
        font: 13pt Georgia, "Times New Roman", Times, serif;
        line-height: 1.3;
        background: #fff !important;
        color: #000;
    }
    
     /* Position the links div at the bottom */
    .row.links {
        margin-top: auto; /* Push it to the bottom */
        writing-mode: vertical-rl; /* Make the content vertical */
        text-align: center; /* Center the text */
        transform: rotate(180deg); /* Rotate it to make it read top to bottom */
    }

    /* Reset any unwanted margins/padding */
    .row.links * {
        margin: 0 !important;
        padding: 0 !important;
    }

    h1 {
        font-size: 24pt;
    }

    h2, h3, h4 {
        font-size: 18pt;
        margin-top: 15px;
    }

    a {
        page-break-inside: avoid;
    }

    blockquote {
        page-break-inside: avoid;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    img {
        display: none !important;
        visibility: hidden !important;
        page-break-inside: avoid;
        page-break-after: avoid;
    }

    .image-container, .post-thumbnail, .wp-post-image, .entry-content img {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    span {
        display: none !important;
    }

    .row {
        display: block !important;
        width: 100% !important;
    }

    .carouselRow {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .owl-carousel {
        display: block !important;
        width: 100% !important;
    }

    .owl-item {
        display: block !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    /* Make sure the carousel elements show correctly in print */
    .owl-stage-outer, .owl-stage {
        display: block !important;
        width: 100% !important;
    }

    /* Hide non-essential elements for printing */
   #header-widgets, nav, aside.mashsb-container,
.sidebar, .mashshare-top, .mashshare-bottom,
.content-ads, .make-comment, .author-bio,
.heading, .related-posts, #decomments-form-add-comment,
#breadcrumbs, .post-byline, .meta-single,
.site-title img, .post-tags, .readability {
    display: none !important;
}

#footer * {
    display: block !important;
    visibility: visible !important;
}

#footer {
    page-break-before: auto !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
}


    /* Show the footer */
    #footer {
    display: block !important;  
    visibility: visible !important;
    width: 100% !important;
    height: auto !important;
    text-align: center !important;
    position: fixed !important; /* Keep it at the bottom */
    bottom: 0 !important;
    left: 0 !important;
    background: #fff !important;
    padding: 10px !important;
    border-top: 1px solid #000 !important;
}

    /* Custom messages before and after content */
    .entry:after {
        content: "\ Alle Rechte vorbehalten. (c) 2014 - 2016 TechBrain - techbrain.de";
        color: #999 !important;
        font-size: 1em;
        padding-top: 30px;
    }

    #header:before {
        content: "\ Vielen herzlichen Dank für das Ausdrucken unseres Artikels. Wir hoffen, dass auch andere Artikel von uns Ihr Interesse wecken können.";
        color: #777 !important;
        font-size: 1em;
        padding-top: 30px;
        text-align: center !important;
    }

    /* Define important elements */
    p, address, li, dt, dd, blockquote {
        font-size: 100%;
    }

    /* Code font style */
    code, pre { font-family: "Courier New", Courier, mono }

    ul, ol {
        list-style: square;
        margin-left: 18pt;
        margin-bottom: 20pt;
    }

    li {
        line-height: 1.6em;
    }

    /* Hide unnecessary embedded videos */
    .entry iframe, ins {
        display: none;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        line-height: 0pt !important;
        white-space: nowrap;
    }
    
    .container.loadMoreButton {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    label[for="topicFilter"],  
    label[for="sortFilter"],  
    .form-control.form-control-lg.filterControl {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    .card.featured.item {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: none !important;
    }
    
    .card.homeNewsItems.hvr-underline-from-center {
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        width: auto !important;
        line-height: 1 !important;
        margin-bottom: 0 !important;  /* Remove bottom spacing */
    }
    
    .card.mt-2.homeNewsItems {
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        width: auto !important;
        line-height: 1 !important;
        margin-bottom: 0 !important;  /* Remove bottom spacing */
    }
    
     object[name="Greater Manchester Combined Authority Map Location"] {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    
}
