/* Service Details Page Fixes */
.vl-service-details-area {
    position: relative;
    z-index: 1;
    padding-bottom: 100px;
}

.vl-service-details-content {
    background: #ffffff;
    padding: 0;
    position: relative;
    z-index: 2;
}

.service-details-thumb {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.service-details-thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-description {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0;
    margin: 20px 0;
}

.service-detailed-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 30px 0 15px 0;
    line-height: 1.3;
}

.service-detailed-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #007bff;
    margin: 25px 0 12px 0;
    line-height: 1.4;
}

.service-detailed-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 15px;
    text-align: justify;
}

.service-detailed-content ul {
    margin: 15px 0 20px 0;
    padding-left: 0;
    list-style: none;
}

.service-detailed-content ul li {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.service-detailed-content ul li::before {
    content: "✓";
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.service-detailed-content ul li strong {
    color: #2c3e50;
    font-weight: 600;
}

.service-info-box {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
    z-index: 2;
}

.service-info-box h4 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.service-gallery {
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.service-gallery h4 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.service-cta {
    background: #007bff !important;
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0 60px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    clear: both;
}

.service-cta h3 {
    color: white !important;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-cta p {
    color: white;
    font-size: 16px;
    margin-bottom: 25px;
}

.vl-service-sidebar {
    position: relative;
    z-index: 2;
}

.widget {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.widget-contact {
    background: #007bff !important;
    color: white;
}

.widget-contact h4 {
    color: white !important;
}

.widget-contact p {
    color: white;
}

.widget-contact a {
    color: white;
    text-decoration: none;
}

.widget-contact a:hover {
    color: #e0e0e0;
}

/* Fix overlapping issues - Remove all background elements */
.vl-inner-banner-bg {
    background: #161A40 !important;
    background-color: #161A40 !important;
    background-image: none !important;
    position: relative !important;
    z-index: 1 !important;
    padding-top: 140px !important;
    padding-bottom: 100px !important;
    min-height: 400px !important;
    overflow: hidden !important;
}

/* Don't apply background to all children, only specific ones */
.vl-inner-banner-bg .container,
.vl-inner-banner-bg .row,
.vl-inner-banner-bg .col-lg-12 {
    background: transparent !important;
}

/* Remove all pseudo elements that might contain background images */
.vl-inner-banner-bg::before,
.vl-inner-banner-bg::after,
.vl-inner-banner-bg *::before,
.vl-inner-banner-bg *::after,
section.vl-inner-banner-bg::before,
section.vl-inner-banner-bg::after {
    display: none !important;
    background: none !important;
    background-image: none !important;
    content: none !important;
    visibility: hidden !important;
}

/* Remove any child elements with backgrounds */
.vl-inner-banner-bg img,
.vl-inner-banner-bg .bg-image,
.vl-inner-banner-bg .background,
.vl-inner-banner-bg [class*="bg-"],
.vl-inner-banner-bg [style*="background"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.vl-inner-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px 0;
}

.vl-inner-banner-content .title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 20px;
    line-height: 1.2;
    word-wrap: break-word;
}

.vl-breadcrumb {
    margin-top: 20px;
}

.vl-breadcrumb .breadcrumb {
    justify-content: center;
    background: transparent;
    padding: 0;
    margin: 0;
}

.vl-breadcrumb .breadcrumb-item {
    font-size: 16px;
}

.vl-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.vl-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}

.vl-breadcrumb .breadcrumb-item.active {
    color: #fff;
}

.vl-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: rgba(255, 255, 255, 0.6);
    margin: 0 8px;
}

.container {
    position: relative;
    z-index: 2;
}

/* Footer fix */
footer {
    position: relative;
    z-index: 10;
    margin-top: 50px;
}

/* Main content wrapper */
main {
    position: relative;
    z-index: 1;
}

/* Service details section specific */
.vl-service-details-area .container {
    margin-bottom: 50px;
}

.vl-service-details-content .service-cta:last-child {
    margin-bottom: 80px;
}

/* Responsive fixes */
@media (max-width: 991px) {
    .vl-inner-banner-bg {
        padding-top: 120px !important;
        padding-bottom: 80px !important;
        min-height: 350px !important;
    }
    
    .vl-inner-banner-content .title {
        font-size: 2rem;
    }
    
    .service-detailed-content h3 {
        font-size: 22px;
    }
    
    .service-detailed-content h4 {
        font-size: 18px;
    }
    
    .service-detailed-content p {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .vl-inner-banner-bg {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
        min-height: 300px !important;
    }
    
    .vl-inner-banner-content .title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }
    
    .vl-breadcrumb .breadcrumb-item {
        font-size: 14px;
    }
    
    .service-detailed-content h3 {
        font-size: 20px;
    }
    
    .service-detailed-content h4 {
        font-size: 16px;
    }
    
    .service-detailed-content p {
        font-size: 14px;
    }
    
    .service-info-box {
        padding: 20px;
    }
    
    .service-cta {
        padding: 25px;
    }
    
    .service-cta h3 {
        font-size: 20px;
    }
    
    .widget {
        padding: 20px;
    }
}