.services-grid .category-card {
    text-decoration: none;
}

.service-page-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-top: 30px;
    padding-bottom: 80px;
}

.service-sidebar {
    flex: 1;
    min-width: 250px;
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    align-self: flex-start;
    border: 1px solid var(--border-color);
}

.service-sidebar h3 {
    font-family: var(--font-primary);
    color: var(--secondary-color);
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.service-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-nav li {
    margin-bottom: 8px;
}

.service-nav a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    border-radius: 12px;
    transition: var(--transition);
}

.service-nav a:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
}

.service-nav a.active {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.service-content {
    flex: 3;
    min-width: 300px;
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.service-content h1 {
    font-family: var(--font-primary);
    font-size: 32px;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 20px;
}

.service-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 25px;
}

.service-description-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 25px;
}

.service-description {
    flex: 1;
    min-width: 300px;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
    margin-top: 0;
}

.service-description p {
    margin-bottom: 1.5em;
}

.service-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.service-image-main {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-tabs {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 25px;
    background: #f9fafb;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
}

.service-tab-button {
    border: none;
    outline: none;
    padding: 10px 14px;
    border-radius: 999px;
    background: transparent;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    min-width: 44px;
    height: 44px;
}

.service-tab-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
    filter: brightness(0);
    opacity: 0.5;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.service-tab-text {
    display: none;
}

.service-tab-button.active .service-tab-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.service-tab-button.active {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

.service-tab-button:hover .service-tab-icon {
    opacity: 0.8;
}

.service-tab-button:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.service-tab-button.active:hover {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: #ffffff;
}

.service-tab-panels.single {
    margin-top: 0;
}

.service-tab-panel {
    display: none;
    transition: opacity 0.3s ease-in-out;
}

.service-tab-panel.active {
    display: block;
}

.service-video-wrapper {
    margin-top: 10px;
}

.service-video-player {
    width: 100%;
    max-width: 720px;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    outline: none;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-button {
    width: 100%;
    padding: 18px 20px;
    background-color: #fff;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    transition: background-color 0.2s ease;
}

.accordion-button:hover {
    background-color: #f9f9f9;
}

.accordion-button::after {
    content: '+';
    font-size: 1.5rem;
    color: #007bff;
    transition: transform 0.2s ease, content 0.1s ease;
    font-weight: 400;
}

.accordion-button.active::after {
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fafafa;
}

.accordion-content-inner {
    padding: 20px;
    line-height: 1.6;
}

.service-video-item:not(:last-child) {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.service-video-title {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.page-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-spinner {
    width: 40px; height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

@media (max-width: 768px) {
    .service-page-container {
        flex-direction: column;
        padding-top: 20px;
    }
    
    .service-sidebar {
        align-self: stretch;
    }

    .service-content {
        padding: 25px 20px;
    }
    
    .service-tabs {
        gap: 6px;
        padding: 3px;
    }
    
    .service-tab-button {
        padding: 8px 12px;
        min-width: 40px;
        height: 40px;
    }
    
    .service-tab-icon {
        width: 18px;
        height: 18px;
    }
}