/* Dynamic Services Tabs Styles */
.services-tabs-section {
    padding: 80px 0;
    background-color: #f8fafc;
    /* Slate-50 */
    /* Slate-50 */
    position: relative;
    /* overflow: hidden; Removed to allow sticky tabs to work */
}

/* Tabs Navigation */
.services-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.service-tab-btn {
    background: white;
    border: 2px solid #e2e8f0;
    /* Slate-200 */
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    /* Slate-500 */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    outline: none;
}

.service-tab-btn i {
    font-size: 1.2rem;
    color: #cbd5e1;
    /* Slate-300 */
    transition: color 0.3s ease;
}

.service-tab-btn:hover {
    border-color: #94a3b8;
    /* Slate-400 */
    color: #475569;
    /* Slate-600 */
    transform: translateY(-2px);
}

.service-tab-btn.active {
    background: #1a73e8;
    /* Primary Blue */
    border-color: #1a73e8;
    color: white;
    box-shadow: 0 10px 25px rgba(26, 115, 232, 0.25);
    transform: scale(1.05);
}

.service-tab-btn.active i {
    color: white;
}

/* Content Area */
.services-content-wrapper {
    position: relative;
    min-height: 400px;
    /* Adjust based on content */
}

.service-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.service-tab-content.active {
    display: flex;
    /* Or grid */
    opacity: 1;
    transform: translateY(0);
    position: relative;
    /* Restores flow for height */
}

/* 2-Column Layout */
.service-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: white;
    border-radius: 24px;
    padding: 20px;
    /* Inner padding */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    /* Glassmorphism hint */
}

/* Image Side */
.service-image-container {
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-layout:hover .service-image-container img {
    transform: scale(1.05);
}

/* Text Side */
.service-text-content {
    padding: 20px 20px 20px 0;
    /* Padding Right 0 for RTL layout visual balance? */
}

.service-text-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    /* Slate-800 */
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.service-text-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    /* RTL alignment */
    width: 60px;
    height: 4px;
    background: #1a73e8;
    /* Primary Blue */
    border-radius: 2px;
}

.service-text-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #64748b;
    /* Slate-500 */
    margin-bottom: 30px;
}

/* Features List */
.service-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    display: grid;
    grid-template-columns: 1fr;
    /* Stacked */
    gap: 12px;
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    /* Slate-600 */
    font-weight: 500;
}

.service-features-list li i {
    color: #10b981;
    /* Success Green */
    background: rgba(16, 185, 129, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* CTA Button */
.service-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a73e8;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.service-cta-btn:hover {
    background: #0d5bba;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .services-tabs-nav {
        position: sticky;
        top: 80px;
        /* 70px navbar + 10px gap */
        z-index: 900;
        /* Below navbar (1001) but above content */
        background: rgba(248, 250, 252, 0.95);
        /* Match section bg with slight transparency */
        padding: 15px 0;
        margin-bottom: 30px;
        backdrop-filter: blur(5px);
        border-radius: 0 0 20px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .service-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 15px;
    }

    .service-image-container {
        height: 250px;
    }

    .service-text-content {
        padding: 10px;
        text-align: center;
    }

    .service-text-content h3::after {
        right: 50%;
        transform: translateX(50%);
    }

    .service-features-list {
        justify-content: center;
        text-align: right;
        display: inline-block;
        width: 100%;
        max-width: 400px;
    }

    .service-features-list li {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .services-tabs-nav {
        gap: 10px;
        /* Keep sticky styles from 992px query */
    }

    .service-tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        flex: 1 1 40%;
        justify-content: center;
    }

    .service-text-content h3 {
        font-size: 1.6rem;
    }
}