/* Homepage Slider Styles for Mobile & Tablet */

@media (max-width: 992px) {
    .section-services .services-grid,
    .section-categories .categories-grid,
    .section-why .why-grid,
    .section-blogs .blogs-grid {
        display: none !important; /* Hide original grids on mobile/tablet */
    }

    .blog-cat {
        display: inline-block;
        width: fit-content;
        align-self: flex-start;
        margin-bottom: 8px;
    }

    .home-slider-container {
        position: relative;
        padding: 0 10px;
        margin: 0 -15px; /* Negative margin to let slides bleed to edges */
        overflow: hidden; /* Prevent horizontal scroll from arrows/slides */
    }

    .swiper-home {
        padding: 10px 15px 30px 15px !important;
        overflow: visible !important; /* Allow slides to be seen in the gutter but parent hides them */
    }

    .swiper-home .swiper-slide {
        height: auto;
        display: flex;
        opacity: 0.4;
        transition: opacity 0.3s ease;
    }

    .swiper-home .swiper-slide-active,
    .swiper-home .swiper-slide-next {
        opacity: 1;
    }

    .swiper-home .swiper-slide > div,
    .swiper-home .swiper-slide > a {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    .service-card, .why-item, .category-card, .blog-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .blog-card-img {
        width: 100%;
        display: block;
    }

    .blog-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .service-body, .why-body, .blog-card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Navigation Arrows - Circular & Subtle */
    .swiper-nav-btn {
        width: 32px !important;
        height: 32px !important;
        background: rgba(255,255,255,0.9) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-radius: 50% !important;
        color: var(--clr-primary) !important;
        transition: all 0.3s ease;
        top: 35% !important; /* Move higher to stay on image portion */
        z-index: 10;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .swiper-nav-btn::after {
        font-size: 12px !important;
        font-weight: 900;
    }

    .swiper-nav-btn:hover {
        background: var(--clr-primary) !important;
        color: #fff !important;
    }

    .swiper-button-prev { left: 5px !important; }
    .swiper-button-next { right: 5px !important; }

    /* Specific adjustments for cards in slider */
    .service-card, .category-card, .why-item, .blog-card {
        margin-bottom: 0 !important;
    }

    /* Ensure full text visibility (no truncation) */
    .service-body h3, .service-body p,
    .why-item h3, .why-item p,
    .blog-card-body h3, .blog-card-body p {
        display: block !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        white-space: normal !important;
    }
}

@media (min-width: 993px) {
    .home-slider-container {
        display: none !important; /* Hide sliders on desktop */
    }
}
