/**
 * Service Template Styles
 *
 * @package Top_System_CPT_Manager
 */

/* ============================================
   CSS Variables (Theme Colors)
   ============================================ */
:root {
    --ts-primary: #0A192F;
    --ts-accent: #019d76;
    --ts-accent-light: #26D8AB;
    --ts-background: #F9FAFB;
    --ts-foreground: #1F2937;
    --ts-white: #ffffff;
    --ts-gray-50: #f9fafb;
    --ts-gray-100: #f3f4f6;
    --ts-gray-200: #e5e7eb;
    --ts-gray-600: #4b5563;
    --ts-gray-700: #374151;
    --ts-gray-800: #1f2937;
    --ts-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --ts-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --ts-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --ts-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --ts-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ============================================
   Full Width Overrides (Force full-width regardless of theme)
   ============================================ */
body.ts-service-page {
    overflow-x: hidden;
}

body.ts-service-page #content,
body.ts-service-page .content-area,
body.ts-service-page .site-content,
body.ts-service-page .entry-content,
body.ts-service-page .post-content,
body.ts-service-page main,
body.ts-service-page article,
body.ts-service-page .container,
body.ts-service-page .wrapper,
body.ts-service-page .site-main,
body.ts-service-page .page-content,
body.ts-service-page .hentry {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

/* Hide sidebar on service pages (but NOT the footer) */
body.ts-service-page #secondary,
body.ts-service-page .sidebar:not(.footer-widget-area),
body.ts-service-page aside.sidebar:not(.footer-widget-area) {
    display: none !important;
}

/* Ensure footer is visible */
body.ts-service-page footer,
body.ts-service-page .site-footer,
body.ts-service-page #colophon,
body.ts-service-page .footer-widget-area,
body.ts-service-page .ast-footer-overlay-wrap {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
}

/* Fix footer animation elements for Astra footer builder */
body.ts-service-page .site-footer [style*="opacity: 0"],
body.ts-service-page #colophon [style*="opacity: 0"] {
    opacity: 1 !important;
    transform: none !important;
}

/* Remove any theme-specific content wrappers padding */
body.ts-service-page .site-content>.container,
body.ts-service-page .site-main>.container,
body.ts-service-page #primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.ts-service-page .elementor-section.elementor-section-boxed>.elementor-container {
    max-width: 100% !important;
}

body.ts-service-page .alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ============================================
   Base Wrapper
   ============================================ */
.ts-service-wrapper {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Removed hardcoded direction - now controlled by HTML dir attribute */
    line-height: 1.6;
    color: var(--ts-foreground);
    background-color: var(--ts-background);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow-x: hidden;
}

.ts-service-wrapper * {
    box-sizing: border-box;
}

/* Direction-specific text alignment */
[dir="rtl"] .ts-service-wrapper {
    text-align: right;
}

[dir="ltr"] .ts-service-wrapper {
    text-align: left;
}

/* ============================================
   Container
   ============================================ */
.ts-sv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .ts-sv-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .ts-sv-container {
        padding: 0 2rem;
    }
}

/* Wide containers */
.ts-sv-container--wide {
    max-width: 1400px;
}

.ts-sv-container--narrow {
    max-width: 1000px;
}

/* ============================================
   Section Base
   ============================================ */
.ts-sv-section {
    padding: 4rem 0;
    position: relative;
}

@media (min-width: 768px) {
    .ts-sv-section {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .ts-sv-section {
        padding: 6rem 0;
    }
}

.ts-sv-section--alt {
    background-color: var(--ts-gray-50);
}

.ts-sv-section__title {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 1rem;
    text-align: center;
}

.ts-sv-section__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--ts-gray-600);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Hero Section (Split Layout)
   ============================================ */
.ts-sv-hero {
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    background-color: var(--ts-primary);
    isolation: isolate;
}

.ts-sv-hero__particle-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    opacity: 0.42;
    mix-blend-mode: screen;
}

@media (min-width: 1024px) {
    .ts-sv-hero {
        min-height: auto;
        flex-direction: row;
    }
}

/* Hero Content Side */
.ts-sv-hero__content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 1.5rem 3rem;
    background-color: transparent;
}

.ts-sv-hero__content > * {
    position: relative;
    z-index: 8;
}

@media (min-width: 640px) {
    .ts-sv-hero__content {
        padding: 5rem 2rem 3rem;
    }
}

@media (min-width: 768px) {
    .ts-sv-hero__content {
        padding: 5rem 3rem 3rem;
    }
}

@media (min-width: 1024px) {
    .ts-sv-hero__content {
        width: 50%;
        padding: 5rem 4rem 3rem;
    }
}

@media (min-width: 1280px) {
    .ts-sv-hero__content {
        padding: 5rem 6rem 3rem;
    }
}

/* Hero Image Side */
.ts-sv-hero__image-side {
    display: flex;
    position: relative;
    width: 100%;
    background-color: transparent;
    order: -1;
    justify-content: center;
    padding: 5rem 1.5rem 3rem;
    min-height: 300px;
}

@media (min-width: 1024px) {
    .ts-sv-hero__image-side {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5rem 3rem 3rem;
        width: 50%;
        order: 0;
        min-height: auto;
    }
}

.ts-sv-hero__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1.5rem;
    position: relative;
    z-index: 7;
    /* Feathered edge effect - blends image into background */
    mask-image: radial-gradient(circle, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
}

/* Diagonal Divider */
.ts-sv-hero__divider {
    display: none;
}

@media (min-width: 1024px) {
    .ts-sv-hero__divider {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 1px;
        z-index: 3;
    }
}

.ts-sv-hero__divider svg {
    height: 100%;
    width: auto;
}

/* Hero Icon/Badge */
.ts-sv-hero__badge {
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Hero Title */
.ts-sv-hero__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--ts-white);
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .ts-sv-hero__title {
        margin-bottom: 0.75rem;
    }
}

/* Hero Subtitle */
.ts-sv-hero__subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.875rem);
    font-weight: 500;
    color: #019d76;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.375;
    white-space: pre-line;
}

@media (min-width: 768px) {
    .ts-sv-hero__subtitle {
        margin-bottom: 3rem;
    }
}

/* Hero Bullet Points */
.ts-sv-hero__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .ts-sv-hero__bullets {
        margin-bottom: 3rem;
        gap: 1rem;
    }
}

.ts-sv-hero__bullet {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .ts-sv-hero__bullet {
        gap: 1rem;
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .ts-sv-hero__bullet {
        font-size: 1.25rem;
    }
}

/* HTML structure: text first, checkmark second */
/* Both RTL and LTR: reverse to put checkmark first in flex order */
/* In RTL, first item appears on right; in LTR, first item appears on left */
[dir="rtl"] .ts-sv-hero__bullet,
[dir="ltr"] .ts-sv-hero__bullet {
    flex-direction: row-reverse;
}

.ts-sv-hero__bullet-text {
    flex: 1;
}

.ts-sv-hero__bullet-check {
    flex-shrink: 0;
    color: var(--ts-accent);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .ts-sv-hero__bullet-check {
        font-size: 1.25rem;
    }
}

.ts-sv-hero__bullet-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(1, 157, 118, 0.2);
    border-radius: 50%;
    color: var(--ts-accent-light);
}

/* Hero CTAs */
.ts-sv-hero__ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .ts-sv-hero__ctas {
        flex-direction: row;
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    .ts-sv-hero__ctas {
        margin-bottom: 2.5rem;
    }
}

/* Trust Badges */
.ts-sv-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 1024px) {
    .ts-sv-trust-badges {
        justify-content: flex-start;
    }
}

.ts-sv-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.ts-sv-trust-badge svg {
    width: 1rem;
    height: 1rem;
    color: var(--ts-accent-light);
}

/* ============================================
   Buttons
   ============================================ */
.ts-sv-btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.ts-sv-btn--primary {
    background-color: var(--ts-accent);
    color: var(--ts-white);
    box-shadow: 0 4px 20px rgba(1, 157, 118, 0.3);
}

.ts-sv-btn--primary:hover {
    background-color: var(--ts-accent-light);
    color: var(--ts-white) !important;
    box-shadow: 0 6px 30px rgba(1, 157, 118, 0.4);
    transform: translateY(-2px);
}

.ts-sv-btn--secondary {
    background-color: transparent;
    color: var(--ts-white);
    border-color: rgba(255, 255, 255, 0.7);
}

.ts-sv-btn--secondary:hover {
    border-color: var(--ts-accent);
    background-color: rgba(1, 157, 118, 0.1);
    color: var(--ts-white) !important;
}

.ts-sv-btn--accent {
    background-color: var(--ts-accent);
    color: var(--ts-white);
}

.ts-sv-btn--accent:hover {
    background-color: var(--ts-accent-light);
    color: var(--ts-white) !important;
    transform: translateY(-2px);
}

.ts-sv-btn--outline {
    background-color: transparent;
    color: var(--ts-accent);
    border-color: var(--ts-accent);
}

.ts-sv-btn--outline:hover {
    background-color: var(--ts-accent);
    color: var(--ts-white);
}

/* ============================================
   Who Needs This (Target Audiences)
   ============================================ */
.ts-sv-audiences {
    background-color: var(--ts-background);
}

.ts-sv-audiences__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Base card width for mobile */
.ts-sv-audience-card {
    flex: 0 0 100%;
    width: 100%;
}

@media (min-width: 640px) {
    .ts-sv-audiences__grid {
        gap: 2rem;
    }

    .ts-sv-audience-card {
        /* 2 columns with 2rem gap: (100% - 2rem)/2 = 50% - 1rem */
        flex: 0 0 calc(50% - 1rem);
        width: calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .ts-sv-audience-card {
        /* 4 columns with 2rem gap: (100% - 3*2rem)/4 = 25% - 1.5rem */
        flex: 0 0 calc(25% - 1.5rem);
        width: calc(25% - 1.5rem);
    }
}

.ts-sv-audience-card {
    background-color: var(--ts-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--ts-shadow-lg);
    border: 1px solid var(--ts-gray-100);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .ts-sv-audience-card {
        padding: 2rem;
    }
}

.ts-sv-audience-card:hover {
    transform: scale(1.05);
    box-shadow: var(--ts-shadow-2xl);
    border-color: rgba(1, 157, 118, 0.3);
}

.ts-sv-audience-card__icon-wrapper {
    text-align: center;
    margin-bottom: 1rem;
}

.ts-sv-audience-card__icon {
    font-size: 3.5rem;
    display: inline-block;
}

@media (min-width: 768px) {
    .ts-sv-audience-card__icon {
        font-size: 4rem;
    }
}

.ts-sv-audience-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 0.75rem;
}

.ts-sv-audience-card__description {
    font-size: 0.9375rem;
    color: var(--ts-gray-600);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.ts-sv-audience-card__features {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.ts-sv-audience-card__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--ts-gray-600);
    margin-bottom: 0.625rem;
    line-height: 1.6;
}

/* HTML structure: text first, dot second */
/* Both RTL and LTR: reverse to put dot first in flex order */
/* In RTL, first item appears on right; in LTR, first item appears on left */
[dir="rtl"] .ts-sv-audience-card__feature,
[dir="ltr"] .ts-sv-audience-card__feature {
    flex-direction: row-reverse;
}

.ts-sv-audience-card__feature-text {
    flex: 1;
}

.ts-sv-audience-card__feature-dot {
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ts-accent);
    margin-top: 0.125rem;
}

/* ============================================
   What We Offer (Service Offerings)
   ============================================ */
.ts-sv-offerings {
    background-color: var(--ts-gray-50);
}

.ts-sv-offerings__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .ts-sv-offerings__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.ts-sv-offering-card {
    background-color: var(--ts-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--ts-shadow-lg);
    border: 1px solid var(--ts-gray-100);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .ts-sv-offering-card {
        padding: 2.5rem;
    }
}

.ts-sv-offering-card:hover {
    box-shadow: var(--ts-shadow-2xl);
    border-color: rgba(1, 157, 118, 0.3);
}

.ts-sv-offering-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ts-sv-offering-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* RTL: icon appears first (on right), title second (on left) */
[dir="rtl"] .ts-sv-offering-card__header {
    justify-content: flex-start;
}

[dir="rtl"] .ts-sv-offering-card__icon {
    order: 1;
}

[dir="rtl"] .ts-sv-offering-card__title {
    order: 2;
}

/* LTR: icon appears first (on left), title second (on right) */
[dir="ltr"] .ts-sv-offering-card__header {
    justify-content: flex-start;
}

[dir="ltr"] .ts-sv-offering-card__icon {
    order: 1;
}

[dir="ltr"] .ts-sv-offering-card__title {
    order: 2;
}

.ts-sv-offering-card__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.ts-sv-offering-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ts-gray-800);
    margin: 0;
}

/* RTL: title text aligned to right */
[dir="rtl"] .ts-sv-offering-card__title {
    text-align: right;
}

/* LTR: title text aligned to left */
[dir="ltr"] .ts-sv-offering-card__title {
    text-align: left;
}

.ts-sv-offering-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
}

.ts-sv-offering-card__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--ts-gray-700);
    line-height: 1.6;
}

/* HTML structure: text first, SVG checkmark second */
/* Both RTL and LTR: reverse to put SVG first in flex order */
/* In RTL, first item appears on right; in LTR, first item appears on left */
[dir="rtl"] .ts-sv-offering-card__feature,
[dir="ltr"] .ts-sv-offering-card__feature {
    flex-direction: row-reverse;
}

.ts-sv-offering-card__feature-text {
    flex: 1;
}

.ts-sv-offering-card__feature-svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--ts-accent);
    margin-top: 0.125rem;
}

.ts-sv-offering-card__feature-icon {
    flex-shrink: 0;
    color: var(--ts-accent);
    font-size: 0.5rem;
    margin-top: 0.4rem;
    line-height: 1;
}

.ts-sv-offering-card__example {
    margin-top: auto;
    padding: 1rem;
    background: linear-gradient(to bottom right, rgba(1, 157, 118, 0.08), rgba(59, 130, 246, 0.08));
    border-radius: 0.5rem;
}

/* RTL: Example box border on right */
[dir="rtl"] .ts-sv-offering-card__example {
    border-right: 3px solid var(--ts-accent);
}

/* LTR: Example box border on left */
[dir="ltr"] .ts-sv-offering-card__example {
    border-left: 3px solid var(--ts-accent);
}

.ts-sv-offering-card__example-inner {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    flex-direction: row-reverse;
}

.ts-sv-offering-card__example-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.ts-sv-offering-card__example-content {
    flex: 1;
}

@media (min-width: 768px) {
    .ts-sv-offering-card__example {
        padding: 1.25rem;
    }

    /* Example styles moved global */

    .ts-sv-offering-card__example-label {
        display: inline;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--ts-gray-800);
        margin-left: 0.25rem;
    }

    .ts-sv-offering-card__example-text {
        display: inline;
        font-size: 0.9375rem;
        color: var(--ts-gray-700);
        line-height: 1.7;
        margin: 0;
    }
}

.ts-sv-offering-card__example strong {
    display: inline;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ts-gray-800);
    margin-left: 0.25rem;
}

.ts-sv-offering-card__example p {
    display: inline;
    font-size: 0.9375rem;
    color: var(--ts-gray-700);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Process Timeline
   ============================================ */
.ts-sv-process {
    background-color: var(--ts-background);
}

.ts-sv-process__timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem auto 0;
    position: relative;
}

@media (min-width: 1024px) {
    .ts-sv-process__timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        max-width: none;
    }
}

.ts-sv-process__phase {
    position: relative;
    margin-bottom: 0;
}

/* Remove continuous connecting line - each phase is independent */

.ts-sv-process__card {
    position: relative;
    background-color: var(--ts-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--ts-shadow-lg);
    border: 2px solid var(--ts-gray-100);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .ts-sv-process__card {
        padding: 2rem;
    }
}

.ts-sv-process__card:hover {
    box-shadow: var(--ts-shadow-2xl);
    border-color: rgba(1, 157, 118, 0.5);
}

.ts-sv-process__number {
    position: absolute;
    top: -0.75rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--ts-accent) 0%, rgba(1, 157, 118, 0.8) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ts-white);
    border: 4px solid var(--ts-white);
    box-shadow: var(--ts-shadow-md);
    z-index: 2;
}

/* RTL: Process number on right */
[dir="rtl"] .ts-sv-process__number {
    right: -0.75rem;
}

/* LTR: Process number on left */
[dir="ltr"] .ts-sv-process__number {
    left: -0.75rem;
}

@media (min-width: 768px) {
    .ts-sv-process__number {
        top: -1rem;
        width: 4rem;
        height: 4rem;
        font-size: 1.5rem;
    }

    /* RTL: Process number on right (larger screens) */
    [dir="rtl"] .ts-sv-process__number {
        right: -1rem;
    }

    /* LTR: Process number on left (larger screens) */
    [dir="ltr"] .ts-sv-process__number {
        left: -1rem;
    }
}

.ts-sv-process__icon {
    position: absolute;
    left: -0.75rem;
    top: -0.75rem;
    width: 3rem;
    height: 3rem;
    background-color: rgba(1, 157, 118, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid rgba(1, 157, 118, 0.3);
    z-index: 2;
}

@media (min-width: 768px) {
    .ts-sv-process__icon {
        left: -1rem;
        top: -1rem;
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
    }
}

.ts-sv-process__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 0.75rem;
}

/* RTL: Process title padding on right */
[dir="rtl"] .ts-sv-process__title {
    padding-right: 2rem;
}

/* LTR: Process title padding on left */
[dir="ltr"] .ts-sv-process__title {
    padding-left: 2rem;
}

@media (min-width: 768px) {
    .ts-sv-process__title {
        font-size: 1.5rem;
    }
}

.ts-sv-process__tasks-wrapper {
    margin-top: 1rem;
}

.ts-sv-process__tasks {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* RTL: Tasks border and padding on right */
[dir="rtl"] .ts-sv-process__tasks {
    border-right: 2px solid rgba(1, 157, 118, 0.2);
    padding-right: 1rem;
}

/* LTR: Tasks border and padding on left */
[dir="ltr"] .ts-sv-process__tasks {
    border-left: 2px solid rgba(1, 157, 118, 0.2);
    padding-left: 1rem;
}

.ts-sv-process__task {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--ts-gray-600);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    position: relative;
}

/* HTML structure: branch (absolute), SVG checkmark, text */
/* Both RTL and LTR: keep natural order (SVG first in flex) */
/* In RTL, first item appears on right; in LTR, first item appears on left */
[dir="rtl"] .ts-sv-process__task,
[dir="ltr"] .ts-sv-process__task {
    flex-direction: row;
}

.ts-sv-process__task-text {
    flex: 1;
}

.ts-sv-process__task-svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--ts-accent);
    margin-top: 0.125rem;
}

/* Tree branch indicator */
.ts-sv-process__task-branch {
    position: absolute;
    right: -18px;
    top: 12px;
    width: 16px;
    height: 2px;
    background-color: rgba(1, 157, 118, 0.3);
}

[dir="ltr"] .ts-sv-process__task-branch {
    left: -18px;
    right: auto;
}

.ts-sv-process__task-icon {
    color: var(--ts-accent);
    margin-left: 0.5rem;
    font-family: monospace;
}

.ts-sv-process__summary {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(1, 157, 118, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 1rem;
    border: 2px solid rgba(1, 157, 118, 0.3);
    text-align: center;
}

@media (min-width: 768px) {
    .ts-sv-process__summary {
        padding: 2rem;
    }
}

.ts-sv-process__summary p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ts-gray-800);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   Pricing Tiers
   ============================================ */
.ts-sv-pricing {
    background: linear-gradient(135deg, rgb(239, 246, 255) 0%, rgba(1, 157, 118, 0.05) 100%);
}

.ts-sv-pricing__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.ts-sv-pricing__grid .ts-sv-pricing-card {
    flex: 0 0 100%;
    width: 100%;
}

@media (min-width: 768px) {
    .ts-sv-pricing__grid {
        gap: 2rem;
    }

    .ts-sv-pricing__grid .ts-sv-pricing-card {
        /* 2 columns: (100% - 2rem gap) / 2 */
        flex: 0 0 calc(50% - 1rem);
        width: calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .ts-sv-pricing__grid .ts-sv-pricing-card {
        /* 3 columns: (100% - 2 * 2rem gap) / 3 = (100% - 4rem) / 3 */
        flex: 0 0 calc((100% - 4rem) / 3);
        width: calc((100% - 4rem) / 3);
    }
}

.ts-sv-pricing-card {
    position: relative;
    background-color: var(--ts-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--ts-shadow-lg);
    border: 2px solid var(--ts-gray-200);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .ts-sv-pricing-card {
        padding: 2rem;
    }
}

.ts-sv-pricing-card:hover {
    box-shadow: var(--ts-shadow-2xl);
}

.ts-sv-pricing-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.ts-sv-pricing-card--highlighted {
    border-color: var(--ts-accent);
    box-shadow: 0 20px 50px rgba(1, 157, 118, 0.2);
}

.ts-sv-pricing-card__badge {
    position: absolute;
    right: 50%;
    top: -1rem;
    transform: translateX(50%);
    background: linear-gradient(135deg, var(--ts-accent) 0%, rgba(1, 157, 118, 0.8) 100%);
    color: var(--ts-white);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--ts-shadow-md);
    white-space: nowrap;
}

.ts-sv-pricing-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.ts-sv-pricing-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 0.5rem;
    text-align: center;
}

.ts-sv-pricing-card__price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ts-accent);
    margin-bottom: 0.5rem;
    text-align: center;
}

.ts-sv-pricing-card__delivery {
    font-size: 0.875rem;
    color: var(--ts-gray-600);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ts-gray-200);
    text-align: center;
}

.ts-sv-pricing-card__subtitle {
    font-size: 0.9375rem;
    color: var(--ts-gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.ts-sv-pricing-card__features-wrapper {
    flex: 1;
    margin-bottom: 1.5rem;
}

.ts-sv-pricing-card__features-label {
    font-weight: 600;
    color: var(--ts-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

/* RTL: Features label aligned right */
[dir="rtl"] .ts-sv-pricing-card__features-label {
    text-align: right;
}

/* LTR: Features label aligned left */
[dir="ltr"] .ts-sv-pricing-card__features-label {
    text-align: left;
}

.ts-sv-pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

/* RTL: Features list aligned right */
[dir="rtl"] .ts-sv-pricing-card__features {
    text-align: right;
}

/* LTR: Features list aligned left */
[dir="ltr"] .ts-sv-pricing-card__features {
    text-align: left;
}

.ts-sv-pricing-card__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--ts-gray-700);
}

/* HTML structure: SVG checkmark first, text second */
/* Both RTL and LTR: keep natural order (SVG first in flex) */
/* In RTL, first item appears on right; in LTR, first item appears on left */
[dir="rtl"] .ts-sv-pricing-card__feature,
[dir="ltr"] .ts-sv-pricing-card__feature {
    flex-direction: row;
}

.ts-sv-pricing-card__feature svg,
.ts-sv-pricing-card__feature-svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    color: var(--ts-accent);
}

.ts-sv-pricing-card__feature-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    color: var(--ts-accent);
}

/* Enterprise Tier (Full Width) */
.ts-sv-pricing-card--enterprise {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--ts-primary) 0%, #051120 100%);
    border-color: rgba(1, 157, 118, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.ts-sv-pricing-card--enterprise::before,
.ts-sv-pricing-card--enterprise::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    z-index: 0;
}

.ts-sv-pricing-card--enterprise::before {
    background-color: var(--ts-accent);
    top: -100px;
    right: -100px;
}

.ts-sv-pricing-card--enterprise::after {
    background-color: #3b82f6;
    bottom: -100px;
    left: -100px;
}

.ts-sv-pricing-card--enterprise>* {
    position: relative;
    z-index: 1;
}

.ts-sv-pricing-card--enterprise .ts-sv-pricing-card__name,
.ts-sv-pricing-card--enterprise .ts-sv-pricing-card__price,
.ts-sv-pricing-card--enterprise .ts-sv-pricing-card__subtitle,
.ts-sv-pricing-card--enterprise .ts-sv-pricing-card__feature {
    color: var(--ts-white);
}

.ts-sv-pricing-card--enterprise .ts-sv-pricing-card__delivery {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Pricing Note */
.ts-sv-pricing__note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(1, 157, 118, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 1rem;
    border: 2px solid rgba(1, 157, 118, 0.2);
}

@media (min-width: 768px) {
    .ts-sv-pricing__note {
        padding: 2rem;
    }
}

.ts-sv-pricing__note-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 0.75rem;
}

.ts-sv-pricing__note-content {
    font-size: 0.9375rem;
    color: var(--ts-gray-600);
    line-height: 1.7;
}

/* ============================================
   Related Case Study
   ============================================ */
.ts-sv-case-study {
    background-color: var(--ts-background);
}

.ts-sv-case-study__card {
    background-color: var(--ts-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--ts-shadow-2xl);
    border: 2px solid var(--ts-gray-100);
    transition: all 0.3s ease;
    margin-top: 3rem;
}

.ts-sv-case-study__card:hover {
    border-color: rgba(1, 157, 118, 0.3);
}

.ts-sv-case-study__header {
    height: 12rem;
    background: linear-gradient(135deg, rgba(1, 157, 118, 0.2) 0%, rgba(59, 130, 246, 0.2) 50%, rgba(168, 85, 247, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .ts-sv-case-study__header {
        height: 16rem;
    }
}

.ts-sv-case-study__header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-sv-case-study__header-icon {
    font-size: 5rem;
}

.ts-sv-case-study__content {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .ts-sv-case-study__content {
        padding: 2rem;
    }
}

.ts-sv-case-study__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 1rem;
}

.ts-sv-case-study__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ts-gray-200);
}

.ts-sv-case-study__meta-item {
    font-size: 0.875rem;
    color: var(--ts-gray-600);
}

.ts-sv-case-study__meta-item strong {
    color: var(--ts-gray-800);
    font-weight: 600;
}

.ts-sv-case-study__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .ts-sv-case-study__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ts-sv-case-study__subheading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ts-gray-800);
    margin-bottom: 1rem;
}

.ts-sv-case-study__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ts-sv-case-study__list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--ts-gray-700);
}

.ts-sv-case-study__list-item svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.ts-sv-case-study__list-item--challenge svg {
    color: #ef4444;
}

.ts-sv-case-study__list-item--solution svg {
    color: var(--ts-accent);
}

.ts-sv-case-study__results {
    background: linear-gradient(135deg, rgba(1, 157, 118, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 0.75rem;
    border: 2px solid rgba(1, 157, 118, 0.2);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ts-sv-case-study__results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .ts-sv-case-study__results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ts-sv-case-study__result-item {
    text-align: center;
}

.ts-sv-case-study__result-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.ts-sv-case-study__result-metric {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ts-accent);
    display: block;
    margin-bottom: 0.25rem;
}

.ts-sv-case-study__result-description {
    font-size: 0.875rem;
    color: var(--ts-gray-600);
}

/* ============================================
   FAQ Section
   ============================================ */
.ts-sv-faq {
    background-color: var(--ts-gray-50);
}

.ts-sv-faq__list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.ts-sv-faq__item {
    background-color: var(--ts-white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--ts-shadow-md);
    border: 1px solid var(--ts-gray-100);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.ts-sv-faq__item:hover {
    box-shadow: var(--ts-shadow-lg);
}

.ts-sv-faq__question-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* RTL: FAQ question aligned right */
[dir="rtl"] .ts-sv-faq__question-btn {
    text-align: right;
}

/* LTR: FAQ question aligned left */
[dir="ltr"] .ts-sv-faq__question-btn {
    text-align: left;
}

.ts-sv-faq__question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ts-gray-800);
    margin: 0;
}

.ts-sv-faq__icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--ts-accent);
    transition: transform 0.3s ease;
}

.ts-sv-faq__item--open .ts-sv-faq__icon {
    transform: rotate(180deg);
}

.ts-sv-faq__answer-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.ts-sv-faq__item--open .ts-sv-faq__answer-wrapper {
    max-height: 1000px;
    opacity: 1;
}

.ts-sv-faq__answer {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--ts-gray-600);
    line-height: 1.7;
    white-space: pre-line;
}

.ts-sv-faq__cta {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(1, 157, 118, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 1rem;
    border: 2px solid rgba(1, 157, 118, 0.2);
    text-align: center;
}

@media (min-width: 768px) {
    .ts-sv-faq__cta {
        padding: 2rem;
    }
}

.ts-sv-faq__cta-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ts-gray-800);
    margin-bottom: 1rem;
}

/* ============================================
   Final CTA Section
   ============================================ */
.ts-sv-final-cta {
    position: relative;
    background: linear-gradient(135deg, var(--ts-primary) 0%, #051120 100%);
    padding: 5rem 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ts-sv-final-cta {
        padding: 7rem 0;
    }
}

@media (min-width: 1024px) {
    .ts-sv-final-cta {
        padding: 8rem 0;
    }
}

/* Decorative Elements */
.ts-sv-final-cta::before,
.ts-sv-final-cta::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

.ts-sv-final-cta::before {
    background-color: var(--ts-accent);
    top: -200px;
    right: -200px;
}

.ts-sv-final-cta::after {
    background-color: #3b82f6;
    bottom: -200px;
    left: -200px;
}

.ts-sv-final-cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ts-sv-final-cta__icon-box {
    display: inline-block;
    padding: 1rem;
    background-color: rgba(1, 157, 118, 0.2);
    border-radius: 1rem;
    border: 2px solid rgba(1, 157, 118, 0.3);
    margin-bottom: 1.5rem;
}

.ts-sv-final-cta__icon {
    font-size: 3rem;
}

.ts-sv-final-cta__title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--ts-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.ts-sv-final-cta__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.ts-sv-final-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

/* ============================================
   Animations
   ============================================ */
.ts-animate {
    opacity: 0;
    transform: translateY(20px);
}

.ts-animate.ts-animated {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

/* Animation Types */
.ts-animate[data-animation="fadeInUp"].ts-animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

.ts-animate[data-animation="scaleIn"].ts-animated {
    animation: scaleIn 0.6s ease-out forwards;
}

.ts-animate[data-animation="slideInRight"].ts-animated {
    animation: slideInRight 0.6s ease-out forwards;
}

.ts-animate[data-animation="slideInLeft"].ts-animated {
    animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse Animation for CTAs */
@keyframes pulse-subtle {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(1, 157, 118, 0.3);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 30px rgba(1, 157, 118, 0.5);
    }
}

.ts-sv-btn--primary {
    animation: pulse-subtle 2s ease-in-out infinite;
}

.ts-sv-btn--primary:hover {
    animation: none;
}

/* Full width button */
.ts-sv-btn--full {
    width: 100%;
    display: block;
}

/* Enterprise grid layout */
.ts-sv-pricing-card__enterprise-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .ts-sv-pricing-card__enterprise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.ts-sv-pricing-card__enterprise-info {
    text-align: center;
}

@media (min-width: 768px) {
    [dir="rtl"] .ts-sv-pricing-card__enterprise-info {
        text-align: right;
    }

    [dir="ltr"] .ts-sv-pricing-card__enterprise-info {
        text-align: left;
    }
}

/* RTL: Enterprise features aligned right */
[dir="rtl"] .ts-sv-pricing-card__enterprise-features {
    text-align: right;
}

/* LTR: Enterprise features aligned left */
[dir="ltr"] .ts-sv-pricing-card__enterprise-features {
    text-align: left;
}

.ts-sv-btn--enterprise {
    width: 100%;
    display: block;
}

@media (min-width: 768px) {
    .ts-sv-btn--enterprise {
        width: auto;
        display: inline-block;
    }
}

.ts-sv-pricing-card--enterprise .ts-sv-pricing-card__features-label {
    color: var(--ts-white);
}

/* Case Study CTA */
.ts-sv-case-study__cta {
    text-align: center;
    margin-top: 2rem;
}

/* Enterprise features - these inherit from parent .ts-sv-pricing-card__enterprise-features */
/* Already handled by [dir] selectors above, no need for additional rules */
