/* FILTERS */
.filters {
	padding-top: var(--space-laptop-padding);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.fa-select {
    position: relative;
    min-width: 200px;
}

.fa-select::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
    color: #848484
}

.filters__select {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: none;
    font-size: 15px;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.fa-input {
    position: relative;
}

.fa-input::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #848484;
    pointer-events: none;
}

.filters__search-input {
    width: 100%;
    padding: 10px 35px;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
    border: none;
    outline: none;
}

/* PROJECTS */
.projects {
    margin-bottom: 20px;
}

/* PROJECT LIST */
.projects__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.projects__item {
    width: 100%;
}

/* PROJECT CARD */
.project-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.project-card__img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.project-card__info {
    padding: 10px;
}

.project-card__category {
    display: inline-flex;
    padding: 4px 10px;
    background: rgba(69, 164, 251, 0.25);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-color);
}

.project-card__name {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.project-card__details-item {
    display: flex;
    margin-bottom: 20px;
}

.project-card__details-title {
    font-weight: bold;
    margin-right: 8px;
    font-size: 14px;
}

.project-card__details-value {
    margin: 0;
    color: #636363;
    font-size: 15px;
}

/* LINKS */
.project-card__links {
    display: flex;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.project-card__link-wrapper {
    display: flex;
    align-items: center;
}

.project-card__icon {
    font-size: 16px;
    margin-right: 6px;
    color: var(--primary-color);
}

.project-card__icon-font {
    font-size: 20px;
}

.project-card__link {
    position: relative;
    color: #383838;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.project-card__link:hover {
    color: #3F9CFB;
    opacity: 0.8;
}

.project-card__link:active {
    opacity: 0.6;
}


/* LAPTOP ( ≤ 1366px ) → 3-column */
@media (max-width: 1366px) {
    .projects__list {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* CARD MODIFIER */
@media (min-width: 1025px) {
    .project-card--carousel {
        width: calc((100% - 3 * 24px) / 4);
        min-width: auto;
    }
}
@media (max-width: 1024px) {
	.filters {
		padding-top: var(--space-laptop-padding);
	}
    .projects__list {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ------------ TABLET (2.1 card) ------------ */
@media (max-width: 1024px) and (min-width: 641px) {
	.filters {
		padding-top: var(--space-tablet-padding);
	}
	
    .project-card--carousel {
        min-width: calc((100% - 24px) / 2.1);
    }
}

/* MOBILE ( ≤ 768px ) → 1-column */
@media (max-width: 720px) {
	.filters {
		padding-top: var(--space-mobile-padding);
	}
	
    .main-content {
        justify-content: center;
    }
    
    .filters {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .filters__select,
    .filters__search-input {
        min-width: 100%;
    }


    .projects__list {
        grid-template-columns: repeat(1, 1fr);
    }
    .projects__item {
        width: 100%;
    }
}

/* ------------ MOBILE (1.1 card) ------------ */
@media (max-width: 640px) {
    .project-card--carousel {
        min-width: 85%;
    }
}
