@media print {
    @page {
        size: A4;
        margin: 15mm;
    }

    #features .col-lg-3,
    #features .col-md-4,
    #services .col-lg-3,
    #service .col-md-6 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        padding: 10px !important;
        /* Adds spacing between the 2x2 items */
        margin: 0 !important;
    }

    .contact.hero .container,
    .contact.hero .container-md,
    .contact.hero .container-sm {
        max-width: none !important;
    }

    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .portfolio-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        height: 400px !important;
    }

    .portfolio-item.filter-card {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        left: auto !important;
        top: auto !important;
    }

    .portfolio .portfolio-item .portfolio-info {
        opacity: 1;
    }

    .accordion {
        height: unset !important;
    }

    #NSPD2025 {
        display: none;
    }

    .clients-slider,
    .swiper-container,
    .swiper {
        display: block !important;
        overflow: visible !important;
        width: 100% !important;
        height: auto !important;
    }

    .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
    }

    .swiper-slide {
        display: none !important;
    }

    .swiper-slide:nth-child(-n+9) {
        display: block !important;
        width: 100% !important;
        position: static !important;
        transform: none !important;
        visibility: visible !important;
    }

    .swiper-slide a,
    .swiper-slide span,
    .swiper-slide span.out {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        visibility: visible !important;
    }

    .swiper-slide img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        visibility: visible !important;
    }

    .swiper-pagination,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-notification {
        display: none !important;
    }

    .vssc-trigger-btn {
        display: none !important;
    }

    .print-news,
    .print-hightlights,
    .print-portals,
    .print-careers {
        page-break-before: always;
    }

    .back-to-top {
    display: none !important;
    }

    #footer {
    break-before: page !important;
    page-break-before: always !important;
    }
    .marquee-container {
        width: 100% !important;
        overflow: visible !important; /* Allow text to be seen */
        white-space: normal !important; /* Allow text to wrap to next line if too long */
        display: block !important;
        position: static !important;
        background: none !important;
        border: none !important;
        text-align: center; /* Center the text on the paper */
    }
    .marquee-text {
        animation: none !important;    /* Stop the movement */
        transform: none !important;    /* Reset the position to 0,0 */
        padding-left: 0 !important;    /* Remove the 100% offset used for animation */
        display: block !important;     /* Make it a block to occupy full width */
        white-space: normal !important; /* Ensure it wraps if the email is long */
        width: 100% !important;
    }
    .timeline, .timeline__wrap, .timeline__items {
        display: block !important;
        position: relative !important;
        overflow: visible !important;
        height: auto !important;
        width: 100% !important;
        transform: none !important;
    }

    .timeline__item {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        margin-bottom: 10px !important; /* Reduced from 30px to 10px */
        page-break-inside: avoid !important; 
        left: 0 !important;
        top: 0 !important;
    }
    .timeline__content {
        position: relative !important;
        width: 85% !important;
        margin: 0 auto 5px auto !important; /* Reduced bottom margin */
        padding: 5px !important; /* Tightened padding around the content */
        float: none !important;
        color: #000 !important;
        opacity: 0.9 !important; 
    }
    .timeline__content h2 {
        margin-top: 0 !important;
        margin-bottom: 5px !important; /* Reduced gap between date and image */
        font-size: 14pt !important;
    }

    .timeline__content .imgClass {
        display: block !important;
        margin: 0 auto 5px auto !important; /* Center image and reduce gap to text */
        max-height: 200px !important; /* Prevents images from taking over the whole page */
        width: auto !important;
    }
    .timeline img[src*="back_large.jpg"] {
        display: none !important;
    }
   
}

    
    
   

    
