/* Portfolio Archive Page */
#module-th_proiecte-portfolio #content-wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.portfolio-page {
    padding: 40px 0 60px;
    background: #fff;
}
.portfolio-header {
    margin-bottom: 40px;
}
.portfolio-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 120%;
    color: #2a1a46;
    margin-bottom: 12px;
}
.portfolio-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
    color: #7C6D96;
    margin-bottom: 0;
}

/* Sidebar */
.portfolio-sidebar {
    position: sticky;
    top: 100px;
    border-style: solid;
    border-width: 2px;
    border-color: #ebe9ef;
    border-radius: 16px;
    overflow: hidden;
}
.portfolio-sidebar-header {
    background-color: transparent;
    background-image: linear-gradient(180deg, #ebe9ef 0%, #FFFFFF00 100%);
    padding: 16px 24px;
}
.portfolio-sidebar-body {
    background-color: transparent;
    background-image: linear-gradient(180deg, #ebe9ef 0%, #FFFFFF00 100%);
    padding: 16px 24px;
}
.portfolio-filter-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #2A1A46;
    margin: 0;
    padding: 0;
}
.portfolio-filter-label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #7C6D96;
    margin-bottom: 20px;
    padding: 0;
}
.portfolio-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.portfolio-filter-list li {
    margin-bottom: 6px;
}
.portfolio-filter-link {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 22.4px;
    color: #2A1A46;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
    cursor: pointer;
}
.portfolio-filter-link:hover {
    color: rgba(41, 180, 214, 1);
}
.portfolio-filter-link.active {
    color: rgba(41, 180, 214, 1);
}
.portfolio-filter-link.active::before {
    content: "\203A";
    font-size: 20px;
    margin-right: 6px;
}

/* Project Cards - 335x260 dimensions */
.project-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 260px;
    text-decoration: none;
    background-color: #A59BB7;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
/* Pseudo-element for hover gradient + border */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 0 0px transparent;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}
.project-card:hover::before {
    background: linear-gradient(180deg, rgba(25, 16, 42, 0) 50%, #3eb449 100%);
    box-shadow: inset 0 0 0 4px rgba(101, 195, 109, 1);
}
.project-card:hover {
    text-decoration: none;
}
.project-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #EBE9EF 0%, #A59BB7 100%);
}
.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(25, 16, 42, 0.00) 50.12%, #19102A 100%);
    border-radius: 16px;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.project-card-text {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 3;
}
.project-card-title {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 140%;
}
.project-card-location {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
}

/* Grid - flexbox equal height */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 0;
}
.portfolio-grid > [class*="col-"] {
    display: flex;
}
.portfolio-grid .project-card {
    width: 100%;
}

/* Empty state */
.portfolio-empty {
    padding: 40px;
    text-align: center;
    color: #7C6D96;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background: #F5F3F8;
    border-radius: 16px;
}

/* Pagination */
.portfolio-pagination {
    margin-top: 40px;
}
.portfolio-pagination .pagination {
    gap: 4px;
}
.portfolio-pagination .page-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2A1A46;
    border-radius: 8px;
    border: 1px solid #E8E4EE;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.portfolio-pagination .page-link:hover {
    background: #F5F3F8;
    border-color: #3B2563;
    text-decoration: none;
}
.portfolio-pagination .page-item.active .page-link {
    background-color: #29B4D6;
    border-color: #29B4D6;
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .portfolio-sidebar {
        margin-bottom: 24px;
        position: static;
    }
    .project-card-title { font-size: 20px; }
}
@media (max-width: 768px) {
    .portfolio-title { font-size: 28px; }
    .portfolio-page { padding: 24px 0 40px; }
    .project-card { min-height: 220px; }
    .project-card-title { font-size: 18px; }
    .project-card-location { font-size: 14px; }
}
@media (max-width: 576px) {
    .portfolio-grid > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .project-card { min-height: 200px; }
}
