.portfolio-section {
    padding: 5rem 0;
    background: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    transition: all .3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.portfolio-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .5rem;
    padding: 1rem;
    background: #f8f9fa;
}

.portfolio-image {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: .5rem;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-label {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: .25rem .75rem;
    border-radius: .25rem;
    font-size: .875rem;
    font-weight: 600;
    z-index: 2;
}

.portfolio-label.success { background: #28a745; }

.portfolio-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #495057;
}

.portfolio-placeholder.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.portfolio-placeholder i {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.portfolio-placeholder p {
    font-size: .875rem;
    font-weight: 600;
    margin: 0;
}

.portfolio-divider {
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.portfolio-content { padding: 1.5rem; }

.portfolio-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 .75rem 0;
    color: var(--text-color);
}

.portfolio-content p {
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* بدل style inline */
.portfolio-more { margin-top: 3rem; }

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-comparison {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .portfolio-divider {
        transform: rotate(90deg);
        padding: .5rem 0;
    }
}

/* متغيّرات احتياطية لو مش متعرفة في الثيم */
:root{
    --text-color:#111; --text-light:#555;
    --primary-color:#0d6efd;
}
