.section_project {
    padding: 60px 0;
}

.category_project {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.col_3 {
    grid-column: span 3;
}

.item_category_project {
    cursor: pointer;
    padding: .75rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: .25rem;
}

.item_category_project.active,
.item_category_project:hover {
    background-color: var(--color-blue);
    color: #fff;
}

.item_category_project h3 {
    margin: 0;
    font-size: 1.1rem;
    white-space: nowrap;
}

.projects_list {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.projects_list.active {
    display: grid;
}

.project_item {
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background-color: #fff;
}

.project_item .img-wrapper {
    width: 100%;
    padding-top: 75%;
    position: relative;
    overflow: hidden;
}

.project_item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project_item h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.view_more {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-blue);
    color: var(--color-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view_more:hover {
    background-color: var(--color-active);
    color: #fff;
}

/* DETAIL */
.project-detail {
    padding: 60px 0;
}

.detail_image {
    width: 100%;
    margin: 1.5rem 0;
}

.detail_image img {
    display: block;
    width: 100%;
    object-fit: cover;
}

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

    .project-detail {
        padding: 30px 0;
    }
}

@media (max-width: 576px) {
    .projects_list {
        grid-template-columns: 1fr;
    }

    .item_category_project {
        padding: 0.8rem 1rem;
    }

    .item_category_project h3 {
        font-size: 1rem;
    }
}