
/* Fix for sidebar positioning and height mismatch issue */

/* Make the service section container use flexbox for better alignment */
.service-details .row {
    display: flex;
    align-items: flex-start;
}

/* Sticky positioning for the sidebar */
.service-left-col.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    min-height: auto;
}

/* Ensure the sidebar content doesn't have unnecessary spacing */
.service-sidebar {
    /* background: #f8f9fa; */
    border-radius: 10px;
    padding: 20px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
}



/* Service ad widget styling */
.widget.pbmit-service-ad {
    margin-top: 30px;
}

.pbmit-widget-ads {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.pbmit-widget-ads .bg-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pbmit-service-ad-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pbmit-service-ads {
    text-align: center;
    color: white;
    padding: 20px;
}

.pbmit-ads-icon i {
    font-size: 40px;
    color: #ffc107;
    margin-bottom: 15px;
}

.pbmit-service-ads span {
    display: block;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.pbmit-ads-call a {
    color: #ffc107;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

/* Right column adjustments */
.service-right-col {
    flex: 1;
    min-height: 100vh; /* This ensures the right column takes full height */
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .service-left-col.sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .service-details .row {
        flex-direction: column;
    }

    .service-right-col {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .service-sidebar {
        padding: 15px;
    }

    .widget.post-list .widget-title {
        font-size: 16px;
        padding: 12px;
        margin: -15px -15px 15px -15px;
    }

    .all-post-list li a {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Additional fixes for better visual hierarchy */
.service-left-col {
    z-index: 10;
}

/* Ensure proper spacing between sections */
.service-details {
    padding: 40px 0;
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Fix for potential overflow issues */
.service-left-col.sidebar {
    overflow: visible;
}

.service-sidebar {
    overflow: visible;
}
