@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

.ps-cb5e59e7-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    width: 100%;
    color: #1a1a24;
}

.ps-cb5e59e7-sidebar {
    width: 280px;
    flex: 0 0 280px;
    background: #fafafa;
    padding: 0;
    border-radius: 0;
    align-self: flex-start;
    border-style: solid;
    border-width: 0;
    border-color: transparent;
}

.ps-cb5e59e7-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ps-cb5e59e7-sidebar h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a24;
    letter-spacing: -0.2px;
    text-transform: none;
}

.ps-cb5e59e7-clear-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    padding: 0;
}

.ps-cb5e59e7-clear-btn:hover {
    color: #1a1a24;
}

.ps-cb5e59e7-btn-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Search Bar - icon on the right, like the reference design */
.ps-cb5e59e7-search-container {
    position: relative;
    margin-bottom: 28px;
}

.ps-cb5e59e7-search-input {
    width: 100%;
    padding: 12px 42px 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a24;
    background-color: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.ps-cb5e59e7-search-input::placeholder {
    color: #94a3b8;
}

.ps-cb5e59e7-search-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.ps-cb5e59e7-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.25s ease;
}

.ps-cb5e59e7-search-container:focus-within .ps-cb5e59e7-search-icon {
    color: #3b82f6;
}

.ps-cb5e59e7-search-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Sidebar filter groups */
.ps-cb5e59e7-filter-group {
    margin-bottom: 24px;
}

.ps-cb5e59e7-filter-group h4 {
    margin: 0 0 14px 0;
    padding: 0;
    border: none;
    font-size: 17px;
    text-transform: none;
    letter-spacing: -0.2px;
    color: #1a1a24;
    font-weight: 700;
}

/* Filter Labels & Checkboxes */
.ps-cb5e59e7-filter-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    user-select: none;
    position: relative;
    transition: color 0.2s ease;
}

.ps-cb5e59e7-filter-label:hover {
    color: #1a1a24;
}

.ps-cb5e59e7-filter-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.ps-cb5e59e7-custom-box {
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border-style: solid;
    border-width: 1.5px;
    border-color: #cbd5e1;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.ps-cb5e59e7-filter-label:hover .ps-cb5e59e7-custom-box {
    border-color: #94a3b8;
}

.ps-cb5e59e7-filter-checkbox:checked ~ .ps-cb5e59e7-custom-box {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.ps-cb5e59e7-custom-box:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border-style: solid;
    border-color: #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ps-cb5e59e7-filter-checkbox:checked ~ .ps-cb5e59e7-custom-box:after {
    display: block;
}

/* Industry dropdown select */
.ps-cb5e59e7-select-wrapper {
    position: relative;
}

.ps-cb5e59e7-industry-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 40px 12px 16px;
    border-style: solid;
    border-width: 1px;
    border-color: #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    color: #1a1a24;
    background-color: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.25s ease;
}

.ps-cb5e59e7-industry-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.ps-cb5e59e7-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.ps-cb5e59e7-select-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Main Grid Layout */
.ps-cb5e59e7-main {
    flex: 1;
    min-width: 300px;
}

.ps-cb5e59e7-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

/* Portfolio Cards */
.ps-cb5e59e7-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    padding: 0px;
    box-sizing: border-box;
    border-style: solid;
    border-width: 1px;
    border-color: #f1f2f4;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.015);
}

.ps-cb5e59e7-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ps-cb5e59e7-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.ps-cb5e59e7-card-media {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 0;
}

.ps-cb5e59e7-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ps-cb5e59e7-img-secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Hover double image effect */
.ps-cb5e59e7-card:hover .ps-cb5e59e7-img-primary {
    opacity: 0;
}

.ps-cb5e59e7-card:hover .ps-cb5e59e7-img-secondary {
    opacity: 1;
    transform: scale(1.03);
}

.ps-cb5e59e7-card-content {
    padding: 20px;
}

.ps-cb5e59e7-card-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a24;
    letter-spacing: -0.3px;
    transition: color 0.2s ease;
}

.ps-cb5e59e7-card-desc {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    font-weight: 400;
}

/* Responsiveness overrides */
@media (max-width: 768px) {
    .ps-cb5e59e7-sidebar {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    .ps-cb5e59e7-grid {
        grid-template-columns: 1fr !important;
    }
}