.ts-system-selector {
    --ts-primary: #0d6efd;
    --ts-primary-light: #479bff;
    --ts-primary-dark: #0a58ca;
    --ts-accent: #e2a93b;
    --ts-light: #f7fafc;
    --ts-card-bg: #ffffff;
    --ts-text: #2d3748;
    --ts-text-light: #718096;
}

html {
    scroll-behavior: smooth;
}

.ts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
    background-color: var(--ts-light);
    min-height: 100vh;
}

.ts-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

    .ts-header h3 {
        color: var(--ts-primary);
        font-weight: 700;
        font-size: 2rem;
        margin-bottom: 1rem;
        letter-spacing: -0.5px;
        padding-top: 2rem;
    }

    .ts-header p {
        color: var(--ts-text-light);
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }

    .ts-header h3:after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: var(--ts-accent);
        border-radius: 2px;
    }

.ts-systems-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
    gap: 1rem;
    padding: 1rem;
    margin: 0 auto;
    /*  max-width: 1000px; */
    justify-content: center;
}

.ts-system-card {
    background: var(--ts-card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #edf2f7;
    border-top: 4px solid var(--ts-primary);
    overflow: hidden;
    /*  position: relative; */
    max-width: 400px;
}

    /*  .ts-systems-container {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
                gap: 2rem;
                padding: 1rem;
                margin: 0 auto;
                max-width: 1000px;
                justify-content: center;
            }

            .ts-system-card {
                width: 100%;
                max-width: 360px;
            } */
    .ts-system-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
        border-color: #e2e8f0;
        border-top-color: var(--ts-accent); /* Change border color on hover */
    }

.ts-card-body {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ts-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--ts-primary), var(--ts-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 6px 12px rgba(26, 54, 93, 0.2);
}

.ts-card-title {
    color: var(--ts-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    position: relative;
}

    .ts-card-title:after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: var(--ts-accent);
    }

.ts-card-btn {
    background: linear-gradient(135deg, var(--ts-primary), var(--ts-primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    min-width: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px rgba(26, 54, 93, 0.1);
    margin-top: auto;
}

    .ts-card-btn:hover {
        background: linear-gradient(135deg, var(--ts-primary-light), var(--ts-primary));
        transform: translateY(-3px);
        box-shadow: 0 8px 12px rgba(26, 54, 93, 0.15);
    }

    .ts-card-btn i {
        margin-left: 0.75rem;
        transition: transform 0.3s ease;
    }

    .ts-card-btn:hover i {
        transform: translateX(5px);
    }

.ts-help-text {
    text-align: center;
    color: var(--ts-text-light);
    margin-top: 3rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

    .ts-help-text a {
        color: var(--ts-primary);
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
        border-bottom: 1px dotted var(--ts-primary);
    }

        .ts-help-text a:hover {
            color: var(--ts-primary-light);
            border-bottom-style: solid;
        }

/* Responsive adjustments */
/*media (max-width: 768px) {
                .ts-container

            {
                padding: 2rem 1rem;
            }

            .ts-header h2 {
                font-size: 1.75rem;
            }

            .ts-systems-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
                padding: 0.5rem;
            }

            .ts-system-card {
                max-width: 350px;
                margin: 0 auto;
            }

            } */
.ts-portals-container {
    display: flex;
    flex-wrap: wrap; /* allows wrapping if needed */
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.ts-portal-form {
    display: inline-flex;
}

.ts-card-btn {
    min-width: unset; /* remove fixed min-width */
    padding: 0.5rem 1rem;
}

.no-portals-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
}

.no-portals-icon {
    color: red;
    font-size: 1rem;
}

.ts-portals-container {
    min-height: auto;
}