/* Projects Page Specific Styles */
.projects-page-hero {
    height: 30vh;
    min-height: 250px;
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.7)), url('../assets/images/projects_hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
}

.projects-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

/* Sidebar Filter */
.filter-sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: fit-content;
}

.filter-sidebar h3 {
    font-size: 1.2rem;
    color: #0a192f;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.filter-group select, .filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* View Controls */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.view-modes button {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 5px;
    transition: 0.3s;
}

.view-modes button.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Grid & List Views */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.projects-list .project-card {
    flex-direction: row;
    height: 250px;
}

.project-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.projects-list .project-thumb {
    width: 350px;
    height: 100%;
    flex-shrink: 0;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-card:hover .project-thumb img {
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #007bff;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.project-body h4 {
    font-size: 1.25rem;
    color: #0a192f;
    margin-bottom: 10px;
}

.project-loc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-price {
    font-size: 1.2rem;
    color: #007bff;
    font-weight: 700;
    margin-bottom: 15px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a, .pagination span {
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.pagination a:hover, .pagination span.current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

@media (max-width: 991px) {
    .projects-layout {
        grid-template-columns: 1fr;
    }
    .projects-list .project-card {
        flex-direction: column;
        height: auto;
    }
    .projects-list .project-thumb {
        width: 100%;
        height: 220px;
    }
}
