/* 
---------------------------------------------
Technology Section Styles
--------------------------------------------- 
*/

.technology.ts-container {
    padding-bottom: 20px;
    /* max-width: 1200px; */
    /* margin-left: 12%;
    margin-right: 12%; */
    font-family: 'Satoshi-Medium', sans-serif;
    background-color: #fff;
}

.ts-wrapper {
    display: flex;
    gap: 40px;
    height: 530px;
    /* Fixed height for the carousel effect */
    position: relative;
    overflow: visible;
    padding: 20px;
    /* Hide overflow for the whole area if needed, or just content col */
}

/* --- Navigation Column (Left / Top) --- */
.ts-nav-column {
    width: 280px;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(200deg, transparent, rgba(160, 197, 255, 0.2), transparent);
    border: 1px solid rgba(147, 197, 253, 0.5);
    border-radius: 16px;
    padding-right: 16px;
    padding-left: 16px;
    height: 100%;
    overflow-y: hidden;
    /* Allow scrolling if list is long */
    scrollbar-width: none;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.1);
    /* Firefox */
}

.ts-nav-column::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.ts-nav-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
}

.ts-nav-item {
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: white; */
    color: #4b5563;
    border: 1px solid transparent;
}

/* ... */

.ts-nav-item:hover {
    background-color: rgba(120, 187, 255, 0.2);
}

.ts-nav-item.active {
    background: linear-gradient(135deg, #0076B9, #129beb);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
    transform: scale(1.02);
}

.ts-nav-text {
    font-size: 16px;
    font-weight: 400;
}

.ts-nav-badge {
    font-size: 13px;
    background-color: rgba(0, 71, 164, 0.097);
    padding: 2px 8px;
    border-radius: 4px;
    color: #6b7280;
}

.ts-nav-item.active .ts-nav-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* --- Content Column (Right) --- */
.ts-content-column {
    flex-grow: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
    /* Mask top/bottom */
    /* Enhance the "fade" feel at edges with mask */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.ts-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* No defined height, it grows with content */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth cubic bezier */
    display: flex;
    flex-direction: column;
    gap: 32px;
    /* Space between sections */
    padding: 200px 0;
    /* Huge padding to allow first/last items to center */
}

.ts-content-section {
    width: 100%;
    transition: all 0.5s ease;
    opacity: 0.3;
    filter: blur(4px);
    transform: scale(0.95);
    pointer-events: none;
    /* Prevent clicking blurred items */
}

.ts-content-section.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    pointer-events: auto;
}

.ts-content-section.adjacent {
    opacity: 0.6;
    filter: blur(2px);
    transform: scale(0.98);
}

.ts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    padding: 10px;
}

.ts-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    gap: 12px;
    cursor: default;
    transition: all 0.3s ease;
}

/* .ts-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: #bfdbfe;
} */

.ts-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

}

.ts-card-label {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    text-align: left;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .ts-wrapper {
        flex-direction: column;
        height: auto;
        overflow: visible;
        padding: 0px;
    }

    .ts-nav-column {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-left: 0;
        padding-bottom: 16px;
        padding-top: 16px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .ts-nav-column::-webkit-scrollbar {
        display: none;
    }

    .ts-nav-track {
        flex-direction: row;
        width: max-content;
        gap: 12px;
        padding: 0 20px;
    }

    .ts-nav-item {
        min-width: auto;
        flex-shrink: 0;
        white-space: normal;
        gap: 8px;
    }

    /* Content Area */
    .ts-content-column {
        height: auto;
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .ts-content-wrapper {
        position: relative;
        padding: 0;
        transform: none !important;
        /* Disable JS transform */
        gap: 40px;
    }

    .ts-content-section {
        opacity: 1;
        filter: none;
        transform: none;
        pointer-events: auto;
        display: none;
        /* Hide non-active in mobile tab view */
    }

    .ts-content-section.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .ts-nav-item {
        padding: 10px 16px;
        gap: 8px;
    }

    .ts-nav-text {
        font-size: 14px;
    }

    .ts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ts-wrapper {
        padding: 0;
        /* Hide overflow for the whole area if needed, or just content col */
    }
}