.portfolio-grid-widget-5852 {
    font-family: inherit;
}

/* Section Title */
.portfolio-section-title {
    text-align: center;
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: 700;
}

/* Filter Bar */
.portfolio-filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #e5e5e5;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #666;
}

.filter-btn:hover {
    border-color: #333;
    color: #333;
}

.filter-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Grid Layout */
.portfolio-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .portfolio-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .portfolio-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Card Design */
.portfolio-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    border-color: #bbb;
}

/* Image Wrapper */
.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 62.5%; /* 16:10 aspect ratio */
    overflow: hidden;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* Hover Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.overlay-btn {
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.overlay-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Card Content */
.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Category Badges */
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.badge-web {
    background-color: #EEEDFE;
    color: #3C3489;
}

.badge-logo {
    background-color: #E1F5EE;
    color: #085041;
}

.badge-tour {
    background-color: #FAECE7;
    color: #712B13;
}

/* Text Styles */
.project-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.project-description {
    margin: 0;
    font-size: 12px;
    color: #777;
    line-height: 1.6;
}
