/**
 * Services Content Type Styles
 * /css/content-types/services.css
 */

/* ========================================
   Services Header
   ======================================== */
.services-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #4338ca 100%);
    position: relative;
    overflow: hidden;
}

.services-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.services-header .page-title {
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.services-header .page-subtitle {
    position: relative;
    z-index: 1;
}

/* ========================================
   Service Card
   ======================================== */
.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), #4338ca);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Service Icon */
.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #4338ca 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 1.75rem;
    color: #fff;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Service Image */
.service-image {
    margin: -2rem -2rem 1.5rem -2rem;
    height: 180px;
    overflow: hidden;
}

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

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Service Content */
.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.service-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.service-link:hover {
    gap: 0.75rem;
}

.service-link i {
    transition: transform 0.2s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ========================================
   Service Detail Page
   ======================================== */
.service-detail .service-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #4338ca 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail .service-icon-large i {
    font-size: 2rem;
    color: #fff;
}

.service-detail .service-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-detail .service-lead {
    font-size: 1.1rem;
}

.service-detail .service-featured-image img {
    width: 100%;
}

.service-detail .service-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.service-detail .service-content h2,
.service-detail .service-content h3,
.service-detail .service-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-detail .service-content p {
    margin-bottom: 1.25rem;
}

.service-detail .service-content ul,
.service-detail .service-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.service-detail .service-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Features List */
.service-features .features-list {
    display: grid;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.feature-item i {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* ========================================
   Service Sidebar
   ======================================== */
.service-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #4338ca 100%);
    color: #fff;
}

.cta-widget h5 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.cta-widget p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.cta-widget .btn-primary {
    background: #fff;
    color: var(--bs-primary);
    border: none;
}

.cta-widget .btn-primary:hover {
    background: #f1f5f9;
}

/* Info Widget */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li i {
    color: var(--bs-primary);
    width: 20px;
    text-align: center;
}

/* Related Widget */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    border-bottom: 1px solid #f1f5f9;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-list li a:hover {
    color: var(--bs-primary);
    padding-left: 0.5rem;
}

.related-list li a i {
    color: var(--bs-primary);
    opacity: 0.7;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991.98px) {
    .service-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-detail .service-title {
        font-size: 1.75rem;
    }
}
