/* Client Services — Portal Styles */

.cs-browse-header {
    margin-bottom: 30px;
}

.cs-browse-header h2 {
    margin-bottom: 5px;
}

.cs-browse-nav {
    margin-top: 15px;
}

.cs-browse-nav .btn.active {
    background: #1a7bb9;
    color: #fff;
    border-color: #1a7bb9;
}

.cs-category-section {
    margin-bottom: 40px;
}

.cs-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.cs-service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.cs-service-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.cs-service-image {
    position: relative;
    height: 160px;
    background: #f5f5f5;
    overflow: hidden;
}

.cs-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-service-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
}

.cs-service-image-placeholder .fa {
    font-size: 48px;
    color: #a0aec0;
}

.cs-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}

.cs-type-one_time   { background: rgba(108,117,125,0.85); }
.cs-type-subscription { background: rgba(23,162,184,0.85); }
.cs-status-active   { background: rgba(40,167,69,0.85); }
.cs-status-cancelled { background: rgba(220,53,69,0.85); }

.cs-service-body {
    padding: 16px;
    flex: 1;
}

.cs-service-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.cs-service-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs-service-price {
    font-size: 22px;
    font-weight: 700;
    color: #1a7bb9;
    margin-bottom: 4px;
}

.cs-price-period {
    font-size: 13px;
    font-weight: 400;
    color: #888;
}

.cs-setup-fee {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.cs-trial {
    font-size: 12px;
    color: #28a745;
    margin-top: 4px;
}

.cs-sub-meta {
    margin-top: 8px;
    font-size: 12px;
}

.cs-service-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.cs-service-footer .btn-block {
    font-weight: 600;
}

@media (max-width: 600px) {
    .cs-services-grid {
        grid-template-columns: 1fr;
    }
}
