/* Modern Services Detail Page Styles */

:root {
    --service-primary: #f59e0b; /* Fallback, should match main theme */
    --service-primary-rgb: 245, 158, 11;
    --service-bg-light: #f8fafc;
    --service-text-dark: #1e293b;
    --service-text-muted: #64748b;
    --service-border-radius: 16px;
    --service-card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.service-hero-modern {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    overflow: hidden;
    margin-bottom: -60px; /* Overlap effect */
    z-index: 1;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.service-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), #0f172a);
}

.service-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-breadcrumb .breadcrumb-item a:hover {
    color: white;
}

.service-breadcrumb .breadcrumb-item.active {
    color: white;
}

.service-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* Main Content Layout */
.service-content-wrapper {
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.service-main-card {
    background: white;
    border-radius: var(--service-border-radius);
    box-shadow: var(--service-card-shadow);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-featured-image-modern {
    margin: -40px -40px 30px -40px;
    border-radius: var(--service-border-radius) var(--service-border-radius) 0 0;
    overflow: hidden;
    position: relative;
    height: 400px;
}

.service-featured-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-description-modern {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--service-text-dark);
}

.service-description-modern p {
    margin-bottom: 1.5rem;
}

/* Features Grid */
.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature-item-modern {
    background: var(--service-bg-light);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.feature-item-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: rgba(var(--service-primary-rgb), 0.2);
    background: white;
}

.feature-icon-modern {
    min-width: 40px;
    height: 40px;
    background: rgba(var(--service-primary-rgb), 0.1);
    color: var(--service-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Sidebar Widgets */
.sidebar-widget-modern {
    background: white;
    border-radius: var(--service-border-radius);
    box-shadow: var(--service-card-shadow);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--service-bg-light);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--service-primary);
}

.service-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--service-bg-light);
    color: var(--service-text-dark);
}

.service-info-list li:last-child {
    border-bottom: none;
}

.service-info-label {
    color: var(--service-text-muted);
    display: flex;
    align-items: center;
}

.service-info-label i {
    width: 20px;
    margin-right: 10px;
    color: var(--service-primary);
}

.price-display-modern {
    text-align: center;
    background: linear-gradient(135deg, var(--service-primary) 0%, #f97316 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.price-display-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.price-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.cta-button-modern {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--service-text-dark);
    color: white;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.cta-button-modern:hover {
    background: var(--service-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* Related Services */
.related-service-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--service-text-dark);
    margin-bottom: 10px;
    background: var(--service-bg-light);
}

.related-service-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateX(5px);
    color: var(--service-primary);
}

.related-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--service-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .service-hero-modern {
        padding: 100px 0 60px;
    }
    
    .service-main-card {
        padding: 25px;
    }
    
    .service-featured-image-modern {
        margin: -25px -25px 25px -25px;
        height: 250px;
    }
}
