/* Service Details Page Styles */

/* Fix body overflow for service pages */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Prevent all elements from causing horizontal scroll */
* {
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

.container, .container-fluid {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

/* Fix top bar text color for service pages - Force white color with maximum specificity */
html body .site-header .top-bar .contact-info a,
html body .site-header .top-bar .contact-info a:link,
html body .site-header .top-bar .contact-info a:visited,
html body .site-header .top-bar .contact-info a[href^="tel:"],
html body .site-header .top-bar .contact-info a[href^="mailto:"] {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: normal !important;
}

html body .site-header .top-bar .contact-info a:hover,
html body .site-header .top-bar .contact-info a:focus,
html body .site-header .top-bar .contact-info a:active {
    color: #FF6B00 !important;
    text-decoration: none !important;
}

/* Also fix social links with maximum specificity */
html body .site-header .top-bar .social-links a,
html body .site-header .top-bar .social-links a:link,
html body .site-header .top-bar .social-links a:visited {
    color: #ffffff !important;
}

html body .site-header .top-bar .social-links a:hover,
html body .site-header .top-bar .social-links a:focus,
html body .site-header .top-bar .social-links a:active {
    color: #FF6B00 !important;
}

/* Alternative approach - target all top bar links */
.top-bar a[href^="tel:"],
.top-bar a[href^="mailto:"] {
    color: white !important;
}

.top-bar * {
    color: white !important;
}

.top-bar .fa-phone-alt,
.top-bar .fa-envelope {
    color: white !important;
}

/* Fixed Page Header Section */
.page-header {
    height: 35vh;
    min-height: 350px;
    max-height: 400px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100vw;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white) !important;
    width: 100%;
}

.page-header-content * {
    color: var(--white) !important;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: var(--white) !important;
    opacity: 1;
    transform: translateY(0);
}

.breadcrumb {
    display: inline-flex;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 12px 30px;
    border-radius: 50px;
    margin: 0;
}

.breadcrumb-item {
    color: rgba(255,255,255,0.9) !important;
}

.breadcrumb-item a {
    color: var(--white) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color) !important;
}

.breadcrumb-item.active {
    color: var(--white) !important;
}

/* Fixed Service Details Section */
.service-details {
    position: relative;
    padding: 80px 0;
    background: var(--light-bg);
    width: 100%;
    overflow-x: hidden;
}

/* Fixed Featured Image - Full Height */
.featured-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    height: 500px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.6s ease;
    display: block;
}

.featured-image:hover img {
    transform: scale(1.05);
}

/* Fixed Service Content */
.service-content {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.content-block {
    margin-bottom: 40px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.content-block h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.description {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
}

.description p {
    margin-bottom: 20px;
}

.description ul,
.description ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.description li {
    margin-bottom: 8px;
}

.description h1,
.description h2,
.description h3,
.description h4 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.description blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    background: #f8f9fa;
    margin: 25px 0;
    font-style: italic;
}



/* Responsive Adjustments */

/* Fixed Sidebar Styles */
.service-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.contact-widget {
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.widget-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    color: var(--white);
}

.contact-widget p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-buttons .btn {
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
    text-decoration: none;
}

.btn-outline-primary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-primary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .input-group {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
}

.contact-form .input-group-text {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 50px;
}

.contact-form .form-control {
    background: transparent;
    border: none;
    height: 50px;
    color: var(--white);
    padding: 12px 20px;
}

.contact-form .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.contact-form textarea.form-control {
    height: 120px;
    resize: none;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Contact Info Widget */
.contact-info-widget {
    padding: 30px;
    background: var(--white);
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-info .info-item:hover {
    background: var(--light-bg);
}

.contact-info .info-item i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 12px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.contact-info .info-item:hover i {
    transform: rotateY(180deg);
}

.contact-info .info {
    flex: 1;
}

.contact-info .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 5px;
}

.contact-info a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .page-header {
        height: 30vh;
        min-height: 300px;
        max-height: 350px;
    }
    
    .featured-image {
        height: 450px;
    }
}

@media (max-width: 991.98px) {
    .service-details {
        margin-top: -60px;
        padding: 80px 0;
    }
    
    .service-sidebar {
        margin-top: 40px;
        position: static;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        height: 25vh;
        min-height: 250px;
        max-height: 300px;
    }
    
    .page-header-content * {
        color: var(--white) !important;
    }
    
    .page-title {
        font-size: 2.5rem;
        color: var(--white) !important;
    }
    
    .breadcrumb-item,
    .breadcrumb-item a {
        color: var(--white) !important;
    }
    
    .featured-image img {
        height: 350px;
    }
    
    .service-content {
        padding: 30px;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        min-height: 220px;
        height: 20vh;
        max-height: 280px;
    }
    
    .page-header-content * {
        color: var(--white) !important;
    }
    
    .page-title {
        font-size: 2rem;
        color: var(--white) !important;
    }
    
    .breadcrumb-item,
    .breadcrumb-item a {
        color: var(--white) !important;
    }
    
    .featured-image img {
        height: 300px;
    }
    
    .content-block h2 {
        font-size: 1.8rem;
    }
    
    .service-content {
        padding: 25px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}