/* ==========================================================================
   1. SERVICE DIRECTORY GRID VIEW (MAIN PAGE)
   ========================================================================== */
.psdm-card {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    border-radius: 12px !important;
    overflow: hidden;
}

.psdm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.125) !important;
}

.psdm-container .page-numbers {
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 50px;
    border: 1px solid #0d6efd;
    text-decoration: none;
    color: #0d6efd;
    font-weight: 500;
    transition: all 0.2s ease;
}

.psdm-container .page-numbers.current, 
.psdm-container .page-numbers:hover {
    background-color: #0d6efd;
    color: #fff !important;
}

.object-fit-cover {
    object-fit: cover;
}

/* ==========================================================================
   2. DETAILED SINGLE VIEW - FULL WIDTH BREAKOUT OVERRIDES
   ========================================================================== */

/* Strip down every possible theme wrapper, container, entry box, or column */
.single-psdm_service entry,
.single-psdm_service article,
.single-psdm_service main,
.single-psdm_service #primary,
.single-psdm_service #content,
.single-psdm_service .site-content,
.single-psdm_service .content-area,
.single-psdm_service .container,
.single-psdm_service .wrapper,
.single-psdm_service .entry-content,
.single-psdm_service .post-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Force our custom isolated layout container to run edge-to-edge smoothly */
.single-psdm_service .psdm-isolated-layout {
    width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding-top: 3rem !important;
    padding-bottom: 5rem !important;
    background-color: #f8f9fa !important; /* Premium off-white backdrop background */
    display: block !important;
    clear: both !important;
}

/* Restructure the inner bootstrap grids to expand with elegant luxury gaps */
.single-psdm_service .psdm-isolated-layout .container,
.single-psdm_service .psdm-isolated-layout .container-fluid {
    max-width: 94% !important;
    width: 94% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
}