.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

}
.projects-container {
    margin-bottom: 5px;
    transition: opacity 0.3s ease;
}
.amount-currency{
    margin-left: 3px;
    font-size: 12px;
}
.TND-prefix{
    margin-left: 3px;
    font-size: 12px;
}
.Pers-prefix{
    font-weight: bold;
    margin-left: 3px;
    font-size: 16px;
}
.project-card {
    display: inline-flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    border: 1px solid #009FE3;
    justify-content: space-between;
    padding: 19px 26px;
}



.project-image {
    width: 100%;
    height: 215px;
    overflow: hidden;
}

/* Responsive pagination styling */
/* Hide mobile-only pagination numbers on desktop */
@media screen and (min-width: 768px) {
    .mobile-only-page,
    a.page-numbers.mobile-only-page {
        display: none !important;
    }
}

/* Show all pagination numbers on mobile but hide arrows */
@media screen and (max-width: 767px) {
    .projects-pagination .page-numbers {
        display: inline-block;
    }
    
    /* Hide pagination arrows on mobile */
    .projects-pagination .page-numbers.prev,
    .projects-pagination .page-numbers.next {
        display: none !important;
    }
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.project-title {
    word-wrap: break-word;
    width: 60%;
    margin: 0px;
    line-height: 22px;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    color: #000000;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    max-height: 54px; /* 2 lines at 27px line-height */
    text-overflow: ellipsis;
}

.project-excerpt {
   display: flex;
   height: 71px;
   align-items: center;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    line-height: 1.5;
}

.project-categories {
    position: absolute;
    right: -26px;
    top: 0;
    width: 40%;
    z-index: 1;
}

.category-tag {
    
    padding: 0px 9px;
    min-width: 128px;
    margin: 0px;
    background: #009FE3;
    border-radius: 0;
    font-size: 18px;
    line-height: 18px;
    font-weight: 900;
    color: #fff;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-progress {
    margin-top: 30px;
    margin-bottom: 20px;
    position: relative;
}

.progress-bar {
    height: 10px;
    background: #fff;
    border: 1.5px solid #009FE3;
    border-radius: 5px;
    overflow: visible;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: #009FE3;
    border-radius: 5px;
    position: relative;
    transition: width 0.3s ease;
}

.progress-indicator {
    position: absolute;
    right: -8px;
    top: -3px;
    display: flex;
    align-items: center;
}

.progress-indicator svg {
    margin-right: 5px;
}

.progress-text {
    position: absolute;
    left: 0px;
    top: -20px;
    font-size: 16px;
    color: #009FE3;
    font-weight: 600;
}

.project-amounts {
    display: flex;
    justify-content: space-between;
}

.amount-row {
    display: inline-flex;
    margin-bottom: 8px;
    flex-direction: column;
}

.amount-label {
    font-size: 14px;
    font-weight: 600;
    color: #1C325D;
}

.amount-value {
    display: flex;
    font-size: 16px;
    font-weight: 700;
    color: #009FE3;
    line-height: 1;
    margin: 0px;
}
.project-header{
    align-items: flex-start;
    position: relative;
    display: flex;
    justify-content: space-between;
    min-height: 50px;
    margin-bottom: 15px;
    overflow: visible;
}
.project-button {
    display: inline-block;
    margin-top: 10px;
    background-color: #FFFFFF;
    font-family: "Roboto", Sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    fill: #009FE3;
    color: #009FE3;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #009FE3;
    border-radius: 9px 9px 9px 9px;
    padding: 10px 20px 7px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-button:hover {
    background-color: #009FE3;
    color: #FFFFFF;
}

/* Carousel Styles */
.projects-carousel {
    position: relative;
    padding: 0px 20px; /* Add padding for the arrows */
    max-width: 1362px; /* Set a max-width for proper centering */
    display: flex;
}

.projects-carousel .project-card {
    margin: 0 10px;
}


.projects-carousel-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
}

.projects-carousel-arrow.prev {
    left: -10px;
}

.projects-carousel-arrow.next {
    right: -10px;
}

.projects-carousel-arrow:hover svg path {
    fill: #009FE3;
}

.projects-carousel-arrow:focus {
    outline: none;
}

/* Hide default slick arrows and dots */
.slick-prev,
.slick-next,
.slick-dots {
    display: none !important;
}

/* Custom pagination navigation */
.projects-carousel-pagination {
  
    margin-top: 30px;
    width: 100%;
 
}

.projects-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.projects-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    background-color: #f7f7f7;
    color: #333;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.projects-pagination .page-numbers.current {
    background-color: #009FE3;
    color: white;
}

.projects-pagination .page-numbers:hover:not(.current) {
    background-color: #e0e0e0;
}

.projects-pagination .prev,
.projects-pagination .next {
    padding: 0;
    width: 35px;
}

.projects-pagination .prev svg,
.projects-pagination .next svg {
    width: 8px;
    height: auto;
}

/* Category Filter Styles */
.projects-filter-container {
    margin-bottom: 30px;
    display: flex;
    margin-left: 40px;
}

.projects-filter-form {
    width: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-family: "Aktiv Grotesk", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1C325D;
    white-space: nowrap;
}

.projects-ajax-loader {
    position: absolute;
    left: calc(100% + 10px);
    font-size: 14px;
    color: #009FE3;
    font-weight: 500;
}

.content-refreshed {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.projects-category-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #009FE3;
    border-radius: 0px;
    font-family: "Aktiv Grotesk", Sans-serif;
    font-size: 16px;
    color: #1C325D;
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2214%22%20height%3D%228%22%20viewBox%3D%220%200%2014%208%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%201L7%207L13%201%22%20stroke%3D%22%23009FE3%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.projects-category-select:focus {
    outline: none;
    border-color: #1C325D;
}

/* Pagination Styles */
.projects-pagination-wrapper {
    display: none!important;
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
    clear: both;
}

.projects-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.projects-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-family: "Aktiv Grotesk", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1C325D;
    text-decoration: none;
    transition: all 0.3s ease;
}

.projects-pagination .page-numbers.current {
    background-color: #009FE3;
    border-color: #009FE3;
    color: white;
}

.projects-pagination .page-numbers:not(.current):hover {
    border-color: #009FE3;
    color: #009FE3;
}

.projects-pagination .page-numbers.prev,
.projects-pagination .page-numbers.next {
    width: auto;
    padding: 0 15px;
}

.projects-pagination .page-numbers.prev svg,
.projects-pagination .page-numbers.next svg {
    width: 12px;
    height: 20px;
}

.projects-pagination .page-numbers.prev:hover svg path,
.projects-pagination .page-numbers.next:hover svg path {
    fill: #009FE3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Adjust carousel on tablets */
    .projects-carousel .project-card {
        margin: 0 8px;
    }
}

@media (max-width: 768px) {
    .project-amounts {
        flex-direction: column;
    }
    /*.project-title{
        width: 100%;
        word-break: normal;
    }*/
    /*.project-header{
        display: block;
    }*/
    /*.project-categories{
        position: relative;
        right: 0px;
        margin-bottom: 10px;
    }*/
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Adjust carousel on mobile */
    .projects-carousel .project-card {
        margin: 0;
    }
    
    .projects-carousel {
        padding: 0px; /* Reduce padding on mobile */
    }
	.project-card{
		padding: 19px 15px;
		margin:0px;
	}
    
    .projects-carousel-arrow.prev {
        left: -25px;
		width:30px;
    }
    
    .projects-carousel-arrow.next {
        right: -25px;
		width:30px;
    }
}
