/* Search Section */
.search-section {
    background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 123, 255, 0.7)), url('search-background.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 100px 0;
    font-size: 25px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adds shadow to the text */
    margin-bottom: 25px;
}

.search-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Category Box */
.category-box {
    height: 100%; /* Set a fixed height for all boxes */
    overflow: hidden; /* Hide overflow content */
}

/* Card Styles */
.card-body {
    background-color: #fff;
    padding: 20px;
    border-top: 3px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
    flex-grow: 1; /* Ensures the card body takes up the remaining space */
}

.card-title {
    font-size: 1.25rem;
    color: #007bff;
}

.card-text {
    color: #333;
}

.category-card-wrapper {
    margin-bottom: 15px; /* Gap between rows of cards */
}

/* Row Styles */
.row.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.row.no-gutters .col-md-4 {
    padding-right: 0;
    padding-left: 0;
}

.row.gutter-md-3 .col-md-4 {
    padding: 0 15px; /* Gap between cards */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .search-section {
        padding: 15px; /* Adjust padding for smaller screens */
        padding-top: 60px; /* Adds space between the menu and heading */
    }

    .search-section h1 {
        font-size: 20px;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adds shadow to the text */
        margin-bottom: 25px;
    }

    .banner-form {
        padding: 10px; /* Reduced padding */
        max-width: 95%; /* Ensure it fits within the container */
        max-height: 400px; /* Set a max-height to reduce form height */
        overflow-y: auto; /* Enable scrolling if content overflows */
        font-size: 0.9rem; /* Smaller font size to reduce height */
    }
}

@media (min-width: 992px) { /* Desktop view */
    #search-row {
        display: flex;
        flex-wrap: nowrap; /* Prevent wrapping */
        align-items: center; /* Center vertically */
        justify-content: space-between; /* Space out items */
    }

    #search-row .form-group {
        margin-right: 15px; /* Space between inputs */
    }

    #search-row .form-group:last-child {
        margin-right: 0; /* Remove margin from the last item */
    }

    #search-row .col-lg-3 {
        flex: 1; /* Allow columns to grow evenly */
        min-width: 0; /* Prevent overflow */
    }
}

@media (max-width: 991px) {
    #search-row {
        display: block; /* Stack vertically on mobile */
    }
    
    #search-row .form-group {
        margin-right: 0; /* Reset margins on mobile */
    }

    #search-row .btn {
        width: 100%; /* Full width button on mobile */
    }
}

/* Listing Image Service */
.heading-background {
    background-image: url('img/Delivery.png');
    background-size: cover; /* Use cover for larger screens */
    background-position: center; /* Center the image */
    height: 100px; /* Default height for larger screens */
    width: 100%; /* Full width */
    display: flex; /* Use flexbox for centering text */
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
}

.text-dark {
    color: black; /* Adjust as needed */
    text-align: center; /* Center text */
}

/* Media query for mobile view */
@media (max-width: 768px) {
    .heading-background {
        background-image: url('img/Delivery.png'); /* Retain image */
        background-size: contain; /* Show the full image */
        background-repeat: no-repeat; /* Prevent tiling */
        height: auto; /* Allow height to adjust */
        padding: 20px 0; /* Adjust padding for mobile */
        flex-direction: column; /* Stack text vertically if needed */
    }
}

@media (max-width: 767.98px) {
    .testimonial-slider .card {
        margin-bottom: 1rem; /* Space between cards in slider */
    }
}

/* Listing icon */
.lazy {
    width: 75px; 
    height: 75px;
}


/* bordered-card */
.bordered-card {
   border: 2px solid #ccc; border-radius: 10px; padding: 20px;
}

/* bordered-card */
.itemkk {
   box-shadow: 0 0 5px 2px #282a2d;
}

/* Name-Mobile */
.itemmobile {
  color:black; font-size:30px; font-weight:bold; text-shadow: 2px 1px 15px blue;
}

/* Name-Desktop */
.itempc {
  color:black; font-weight:bold;  text-shadow: 2px 1px 15px blue;
}


 .blog-card {
            position: relative;
            perspective: 1000px; /* Add perspective to the card */
        }

        .blog-card .content {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 5px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s;
        }

        .blog-card:hover .content {
            transform: translateY(-10px) rotateY(5deg); /* 3D effect on hover */
        }

        .blog-card img {
            width: 100%; /* Make the image responsive */
            height: 200px; /* Set a fixed height */
            object-fit: cover; /* Maintain aspect ratio */
            border-top-left-radius: 5px;
            border-top-right-radius: 5px;
        }

        .content {
            padding: 15px;
        }
        
        .pagination {
    margin: 20px 0;
}

.pagination .page-link {
    border: 1px solid #007bff;
    color: #007bff;
    transition: background-color 0.3s, color 0.3s;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    color: white;
}

.pagination .page-link:hover {
    background-color: #0056b3;
    color: white;
}

