/* Portfolio Page Layout Fixes */

/* Fix overlapping portfolio items */
.portfolioPageSection {
    padding: 80px 0;
}

.shafufly {
    margin-top: 40px;
}

.shaf-item {
    margin-bottom: 40px;
    padding: 15px;
}

.singleFolio {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.singleFolio:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.folioThumb {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.folioThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.folioThumb:hover img {
    transform: scale(1.05);
}

.folioIcon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.folioThumb:hover .folioIcon {
    opacity: 1;
}

.foIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(76, 175, 80, 0.9);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.foIcon:hover {
    background: #4CAF50;
    transform: scale(1.1);
    color: #ffffff;
}

.folioContent {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.folioContent h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.folioContent h4 a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.folioContent h4 a:hover {
    color: #4CAF50;
}

.folioContent p {
    margin: 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}

/* Portfolio filter styling */
.portFolioMixes {
    margin-bottom: 30px;
}

.filterUL {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filterUL li {
    background: #f8f9fa;
    color: #666666;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
}

.filterUL li:hover,
.filterUL li.active {
    background: #4CAF50;
    color: #ffffff;
    border-color: #4CAF50;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .shaf-item {
        margin-bottom: 30px;
    }
    
    .folioThumb {
        height: 220px;
    }
    
    .folioContent {
        padding: 20px 15px;
    }
}

@media (max-width: 767px) {
    .shaf-item {
        margin-bottom: 25px;
        padding: 10px;
    }
    
    .folioThumb {
        height: 200px;
    }
    
    .folioContent {
        padding: 15px;
    }
    
    .folioContent h4 {
        font-size: 16px;
    }
    
    .filterUL {
        gap: 8px;
    }
    
    .filterUL li {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* Ensure equal height columns */
.shafufly {
    display: flex;
    flex-wrap: wrap;
}

.shaf-item {
    display: flex;
}

/* Fix any Bootstrap conflicts */
.row.shafufly {
    margin-left: -15px;
    margin-right: -15px;
}

.shaf-item {
    padding-left: 15px;
    padding-right: 15px;
}
