/**
 * Single Service Page Styles
 * Modern Design for Service Detail Page
 */

/* ===== Hide Default Page Title/Banner ===== */
.single-services .rs-breadcrumbs,
.single-services .rs-breadcrumbs-inner,
.single-services [data-elementor-type="header"] + .rs-breadcrumbs,
body.single-services .elementor-location-header ~ .rs-breadcrumbs,
body.single-services #rs-breadcrumbs,
body.single-services .breadcrumbs-single,
body.single-services [data-id="10514"],
body.single-services .elementor-element[data-id="10514"] {
    display: none !important;
}

/* ===== Variables ===== */
:root {
    --service-primary: #ff5e14;
    --service-secondary: #1a1a2e;
    --service-text: #666666;
    --service-heading: #1a1a2e;
    --service-light-bg: #f8f9fa;
    --service-border: #e9ecef;
    --service-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --service-radius: 12px;
}

/* ===== Page Container ===== */
.single-service-page {
    background: #fff;
}

/* ===== Hero Section ===== */
.service-hero-section {
    background: linear-gradient(135deg, var(--service-secondary) 0%, #2d2d44 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.service-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 100px;
    opacity: 0.5;
}

.service-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.service-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.service-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-breadcrumb a:hover {
    color: var(--service-primary);
}

.service-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
}

.service-breadcrumb .current {
    color: var(--service-primary);
}

.service-hero-text .service-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-hero-text .service-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 500px;
}

.service-hero-image {
    position: relative;
    border-radius: var(--service-radius);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.service-hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--service-primary);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

.service-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Main Content Section ===== */
.service-main-content {
    padding: 80px 0;
}

.service-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
}

/* Content Area */
.service-content-area {
    background: #fff;
}

.service-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--service-text);
}

.service-description h2,
.service-description h3,
.service-description h4 {
    color: var(--service-heading);
    margin-top: 30px;
    margin-bottom: 15px;
}

.service-description h2 {
    font-size: 28px;
}

.service-description h3 {
    font-size: 24px;
}

.service-description h4 {
    font-size: 20px;
}

.service-description p {
    margin-bottom: 20px;
}

.service-description ul,
.service-description ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.service-description li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.service-description img {
    border-radius: var(--service-radius);
    margin: 20px 0;
}

/* ===== Sidebar ===== */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--service-light-bg);
    border-radius: var(--service-radius);
    padding: 30px;
}

.sidebar-widget .widget-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--service-heading);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--service-primary);
}

/* Services List Widget */
.services-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-menu li {
    margin-bottom: 5px;
}

.services-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    color: var(--service-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.services-menu li a:hover,
.services-menu li.current a {
    background: var(--service-primary);
    color: #fff;
    transform: translateX(5px);
}

.services-menu li a svg {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.services-menu li a:hover svg,
.services-menu li.current a svg {
    opacity: 1;
    transform: translateX(0);
}

/* Contact CTA Widget */
.contact-cta-widget {
    background: linear-gradient(135deg, var(--service-primary) 0%, #ff7a3d 100%);
    text-align: center;
    color: #fff;
}

.contact-cta-widget .cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-cta-widget .cta-icon svg {
    stroke: #fff;
}

.contact-cta-widget h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-cta-widget p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.contact-cta-widget .cta-button {
    display: inline-block;
    padding: 14px 35px;
    background: #fff;
    color: var(--service-primary);
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-cta-widget .cta-button:hover {
    background: var(--service-secondary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Download Widget */
.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list li {
    margin-bottom: 10px;
}

.download-list li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    color: var(--service-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--service-border);
}

.download-list li a:hover {
    border-color: var(--service-primary);
    color: var(--service-primary);
}

.download-list li a svg {
    flex-shrink: 0;
}

/* ===== Related Services Section ===== */
.related-services-section {
    background: var(--service-light-bg);
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--service-heading);
    margin-bottom: 15px;
}

.section-header .section-subtitle {
    font-size: 16px;
    color: var(--service-text);
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-service-item {
    background: #fff;
    border-radius: var(--service-radius);
    overflow: hidden;
    box-shadow: var(--service-shadow);
    transition: all 0.3s ease;
}

.related-service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.related-service-item .service-image {
    position: relative;
    overflow: hidden;
}

.related-service-item .service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-service-item:hover .service-image img {
    transform: scale(1.1);
}

.related-service-item .service-content {
    padding: 25px;
}

.related-service-item .service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.related-service-item .service-title a {
    color: var(--service-heading);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-service-item .service-title a:hover {
    color: var(--service-primary);
}

.related-service-item .service-excerpt {
    font-size: 14px;
    color: var(--service-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.related-service-item .read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--service-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.related-service-item .read-more-link:hover {
    gap: 12px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1199px) {
    .service-content-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .service-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-hero-text .service-title {
        font-size: 36px;
    }
    
    .service-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        order: -1;
    }
    
    .related-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .service-hero-section {
        padding: 60px 0;
    }
    
    .service-hero-text .service-title {
        font-size: 28px;
    }
    
    .service-main-content {
        padding: 50px 0;
    }
    
    .related-services-section {
        padding: 50px 0;
    }
    
    .related-services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header .section-title {
        font-size: 28px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

/* ===== Footer Spacing ===== */
.single-service-page {
    padding-bottom: 80px;
}

body.single-services .site-content,
body.single-services #content,
body.single-services .content-area,
body.single-services main {
    margin-bottom: 80px;
}
