            @media (max-width: 576px) {
                .deletePagination {
                    max-width: 100%;
                    width: 100%;
                    padding-left: 0;
                    padding-right: 0;
                    overflow-x: auto;
                }

                .pagination {
                    font-size: 0.85rem;
                    flex-wrap: nowrap;
                    width: 100%;
                    min-width: 340px;
                    overflow-x: auto;
                    display: flex;
                }
            }

                .premium-swiper {
            padding-bottom: 50px !important;
        }

        .premium-swiper .swiper-slide {
            transition: transform 0.3s ease;
        }

        .premium-swiper .swiper-slide-active {
            transform: scale(1.02);
        }

        .premium-swiper .swiper-pagination {
            bottom: 10px !important;
        }

        .premium-swiper .swiper-pagination-bullet {
            background: #007bff;
            opacity: 0.5;
        }

        .premium-swiper .swiper-pagination-bullet-active {
            opacity: 1;
            background: #0056b3;
        }

        .premium-swiper .swiper-button-next,
        .premium-swiper .swiper-button-prev {
            color: #007bff;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            width: 35px;
            height: 35px;
            margin-top: -17px;
        }

        .premium-swiper .swiper-button-next:after,
        .premium-swiper .swiper-button-prev:after {
            font-size: 14px;
            font-weight: bold;
        }

        @media (max-width: 576px) {

            .premium-swiper .swiper-button-next,
            .premium-swiper .swiper-button-prev {
                width: 30px;
                height: 30px;
                margin-top: -15px;
            }

            .premium-swiper .swiper-button-next:after,
            .premium-swiper .swiper-button-prev:after {
                font-size: 12px;
            }
        }

          body {
            overflow-y: scroll;
        }

        .data {
            z-index: -1;
            margin: 50px 0 50px 0;
        }

        /* Ensure clamping works and text doesn't overlap */
        .line-clamp2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Card layout fixes to avoid text spilling and overlapping */
        .card.box-shadow-medium.border-radius-medium.card-hover {
            display: flex;
            flex-direction: column;
            height: 100%;
            min-height: 0;
            /* allow flex children to shrink properly */
            overflow: hidden;
            position: relative;
            background: #fff;
            padding: 0;
            /* body will handle padding */
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
            border-radius: 12px;
            transition: transform 0.18s ease, box-shadow 0.18s ease;
            align-items: stretch;
        }


        @media (max-width: 676px) {


            .card.box-shadow-medium.border-radius-medium.card-hover {
                padding: 0;
                width: 250px;

            }

            .ads-mobile {

                width: 250px
            }

            .categories-block {
                margin-top: 8vh;
            }


            .ads-new-cards .col-lg-3,
            .ads-new-cards .col-lg-3>div {
                display: flex;
                justify-content: center;
            }


        }


        .card.box-shadow-medium.border-radius-medium.card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
        }

        .card.box-shadow-medium.border-radius-medium.card-hover .card-body {
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            color: #222;
            flex: 1 1 auto;
            /* allow body to grow and push footer to bottom */
            min-height: 0;
            /* important for flex children to be able to shrink on small screens */
        }

        .card.box-shadow-medium.border-radius-medium.card-hover .card-title {
            font-weight: 700;
            margin: 0;
            line-height: 1.25;
            font-size: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: break-word;
        }

        .card.box-shadow-medium.border-radius-medium.card-hover .card-text {
            margin: 0;
            font-size: 0.95rem;
            color: #444;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: break-word;
        }

        /* image area keeps aspect ratio and won't stretch card content */
        .card.box-shadow-medium.border-radius-medium.card-hover .card-img-top {
            width: 100%;
            height: 160px;
            /* adjust as needed */
            object-fit: cover;
            display: block;
            flex-shrink: 0;
            /* prevent image from collapsing when available space is small */
        }

        /* price/footer should stick to the bottom and not overlap */
        .card.box-shadow-medium.border-radius-medium.card-hover .card-footer {
            background: transparent;
            border-top: 0;
            padding: 8px 12px;
            flex-shrink: 0;
        }

        .card.box-shadow-medium.border-radius-medium.card-hover .price-footer {
            margin-top: auto;
            padding-top: 6px;
        }

        /* Unified card grid spacing & stretching */
        .ads-new-cards { 
            row-gap: 1rem; /* vertical gap */
        }
        .ads-new-cards > [class*="col-"] { 
            display: flex; /* allow card to stretch */
        }
        .ads-new-cards .card { 
            width: 100%;
            display: flex;
            flex-direction: column;
        }

        /* Swiper specific: make slides show full card and avoid vertical cropping of footer */
        .premium-swiper .swiper-slide {
            display: flex;
            /* align to top so card footer is not pushed outside the visible area */
            align-items: flex-start;
            justify-content: center;
        }

        .premium-swiper .card {
            /* allow card to size naturally so footer is visible */
            height: auto;
            display: flex;
            flex-direction: column;
        }

        /* If markup sets a large inline min-height on the container, ensure slides can expand vertically */
        .premium-swiper {
            min-height: 0 !important;
        }


        .no-focus:focus {
            background-color: transparent !important;
            border-color: transparent !important;
            box-shadow: none !important;
        }
