.projects-container {
    display: flex;
    gap: 2rem;
    direction: rtl;
}

.sidebar {
    flex-shrink: 0;
}

.projects-wrapper {
    width: 100%;
}

.projects-grid {
	margin: auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    flex-grow: 1;
    min-height: 670px;
}

.project-card {
    position: relative;
    height: 330px;
    width: 100%;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-overlay {
    width: 100%;
    height: 100%;
    text-align: center;
    position: absolute;
    bottom: -150px;
    transition: all 0.5s ease;
    opacity: 0;
    /* במקום display: none */
    display: flex;
    /* תמיד יהיה flex */
    align-items: flex-end;
    justify-content: space-between;
    padding: 5px 20px;
    pointer-events: none;
    /* מאפשר קליקים דרך האוברליי */
}

h2.project-title {
    font-family: "אטלס", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    transition: transform 0.5s ease;
    /* אנימציה לכותרת */
    transform: translateY(20px);
    /* התחלתי מוזז למטה */
}

.project-icon {
    object-fit: contain;
    height: 24px;
    width: 24px;
    margin-bottom: 14px;
    transition: transform 0.5s ease;
    /* אנימציה לאייקון */
    transform: translateY(20px);
    /* התחלתי מוזז למטה */
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top, #042636f5, #04263678, #0000ff00);
    bottom: 0;
    opacity: 1;
}

.project-card:hover .project-title,
.project-card:hover .project-icon {
    transform: translateY(0);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-link {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

.project-card .project-image img {
    height: 330px;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;

}

ul.category-filter {
	width:100%;
    list-style: none;
    gap: 25px;   
    display: flex;
    text-orientation: mixed;   
}
ul.category-filter a{
	color: #fff;
    text-decoration: none;
	 font-size: 16px;
}
@media (min-width: 768px) {
   ul.category-filter {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
	   font-size: 16px;
   	 	text-align: center;
    }
	ul.category-filter a{      
	   font-size: 20px;
    }
}

.category-filter li {
    margin-bottom: 0.5rem;
}


ul.category-filter a.active {
    color: #FAA81A;
}

.load-more-container {
    display: flex;
    text-align: center;
    margin-top: 4rem;
	margin-bottom: 5rem;
    justify-content: flex-end;
}

.load-more-button {
    display: flex;
    flex-direction: row-reverse;
    gap: 15px;
    font-family: "אטלס", Sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    border: none;
    align-items: center;
    cursor: pointer;
}

.load-more-button:hover , .load-more-button:focus{
    background-color: unset !important;
	outline: unset !important;
}

.button-icon {
    position: relative;
    width: 50px;
    height: 50px;
}

.arrow-icon {
    transition: opacity 0.3s ease;
}
.loader {
    display: none;
    width: 30px;
    height: 30px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    position: absolute;
    bottom: 10px;
	right: 11px;
    animation: spin 1s linear infinite
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.load-more-button.loading .arrow-icon {
    opacity: 0;
}

.load-more-button.loading .loader {
    display: block;
}

@media (max-width: 768px) {
    .projects-grid {
        width: 88vw;
        grid-template-columns: repeat(2, 1fr);
    }
    .project-card {
        height: 200px;
        width: 45vw;
    }

    .projects-container {
        flex-direction: column;
    }   

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .projects-grid {
/*         grid-template-columns: 1fr; */
    }
}
.projects-wrapper {
    position: relative;
}

.loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color:#0526377d;
    z-index: 10;
    transition: opacity 0.3s ease;
    pointer-events: none; /* מאפשר ללחוץ על הלינקים מתחת ל-overlay */
}