.news-item{
    border: 1px solid #ddd; 
    border-radius: 10px; 
    overflow: hidden; 
    background: #fff; 
    transition: transform 0.3s;
}

.page-title{
    text-align:center; 
    margin-bottom: 40px;
}
.news-grid{
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
}
.news-thumbnail{
    overflow: hidden;
}
.news-thumbnail img{
    width:100%; 
    height:auto; 
    display:block;
}
.news-content{
    padding: 15px;
}
/* Removed duplicate styles - using the more specific styles below */

/* News Listing Page Styles */

.page-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.8rem;
    font-weight: 800;
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* News Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
    margin-top: 50px !important;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .news-grid {
        gap: 25px;
        display: block;
    }
    .news-grid .news-card {
        height: 380px;
        margin: 30px 0px;
    }
    
    .page-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 1700px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}
@media (min-width: 1701px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* News Item Card */
.news-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.news-item:hover::before {
    opacity: 1;
}

/* News Thumbnail */
.news-thumbnail {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.news-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover .news-thumbnail::after {
    opacity: 1;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-item:hover .news-thumbnail img {
    transform: scale(1.08);
}

.news-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

/* News Content */
.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.news-item .news-content h2 {
    margin: 0 0 18px 0;
    font-size: 20px;
    line-height: 1.2;
    color: var(--dark-gray);
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 2.4em !important; /* Ensure exactly 2 lines */
    max-height: 2.4em !important;
}

.news-content h2 a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.news-content h2 a:hover {
    text-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.news-item .news-content p {
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-weight: 500;
    margin: 0;
    height: 4.8em !important; /* Ensure exactly 3 lines (3 * 1.6 * 1em) */
    max-height: 4.8em !important;
}
.activity-date, .news-date {
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.5rem;
    padding-top: 0;
}
/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary-red);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    background: #fff;
    padding: 6px 12px; 
    border-radius: 5px; 
    text-align: center;
    border:1px solid var(--primary-red);
    margin-top: 0.5rem;

}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.read-more-btn:hover::before {
    left: 100%;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(142, 143, 144, 0.4);
}

.read-more-btn:active {
    transform: translateY(0);
}

/* Pagination Styles */
.news-pagination {
    text-align: center;
    margin-top: 3rem;
    padding:  0;
}

.news-pagination a,
.news-pagination span {
    display: inline-block;
    margin: 0 8px;
    padding: 12px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    color: #5a6c7d;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-pagination a:hover {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.news-pagination .current {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.news-pagination .prev,
.news-pagination .next {
    font-weight: 700;
    padding: 12px 20px;
}

.news-pagination .prev:hover,
.news-pagination .next:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Loading State */
.news-item.loading {
    opacity: 0.7;
    pointer-events: none;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 0.4; }
    100% { opacity: 0.7; }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .news-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .read-more-btn {
        display: none;
    }
    
}
.news_user_role{
    display: inline-flex;
    align-items: center;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    align-self: flex-start;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    background: var(--primary-red);
    padding: 2px 14px;
    border-radius: 5px;
    text-align: center;
    margin: 10px 0px;
}

/* Search Results Specific Styles */
.post-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(214, 54, 56, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.search-title {
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--dark-gray);
    text-align: center;
}

.search-form-container {
    margin: 0 auto 30px;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.1);
}

.search-field {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.search-submit {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 50px 50px 0;
}

.search-submit:hover {
    background: #b82c2e;
    transform: scale(1.05);
}

.search-submit i {
    font-size: 18px;
}

.search-count {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
    text-align: center;
}

.search-no-results,
.search-no-query {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon,
.no-query-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.search-no-results h2,
.search-no-query h2 {
    margin-bottom: 10px;
    color: #333;
}

.search-no-results p,
.search-no-query p {
    color: #666;
}

/* Search Form and Count Container */
.search-form-count-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 30px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Search Form Styling */
.search-form-container {
    margin: 0;
    flex: 1;
}

/* Search Count Styling */
.search-count {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* RTL Support for Arabic */
[dir="rtl"] .search-form-count-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .search-count {
    text-align: right;
}

[dir="rtl"] .search-form-container {
    text-align: left;
}


.search-input-wrapper {
    display: flex;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
    background: white;
    width: 100%;
}

.search-field {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.search-field:focus {
    outline: none;
}

.search-submit {
    padding: 15px 30px;
    background: var(--primary-red);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-submit:hover {
    background: #c82333;
    transform: scale(1.05);
}

.search-submit i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .search-form-container {
        margin: 0 20px 30px;
    }
    
    .search-field {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .search-submit {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Responsive Search Form */
@media (max-width: 768px) {
    .search-title {
        font-size: 1.5rem;
    }
    
    .search-field {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .search-submit {
        padding: 12px 20px;
    }
}
.news-grid .news-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}
.news-grid .news-card {
    height: 395px;
}
.news-grid .news-date {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--primary-red);
    border-radius: 8px;
    padding: 8px 12px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
[dir="rtl"] .news-grid .news-date {
    right: 12px;
    left: unset;
}
.news-grid .news-date:before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.news-grid .news-card > a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.news-list .news-grid .news-card .news-content .news-badge {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--primary-red);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    vertical-align: middle;
}

.news-grid .news-card .news-badge-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: inline-block;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f1623' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41 11 3H4v7l9.59 9.59a2 2 0 0 0 2.82 0l4.18-4.18a2 2 0 0 0 0-2.82Z'/%3E%3Cpath d='M7 7h.01'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.news-grid .news-card .news-badge-text {
    display: inline-block;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 13px;
}

.news-grid .news-card .news-content {
    padding-top: 0.9rem;
}

.news-grid .news-card .news-content .news-content-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.news-grid .news-card .news-content .news-content-footer .read-more-link {
    margin-left: auto;
    margin-top: 0 !important;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

[dir="rtl"] .news-grid .news-card .news-content .news-content-footer .read-more-link {
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 768px) {
    .news-list .news-grid .news-card .news-content .news-badge {
        margin: 0;
        font-size: 0.72rem;
    }
    .news-grid .news-card .news-content .news-content-footer {
        gap: 0.5rem;
    }
}
/* Filters Section Styling - Redesigned Modern Look */
.filters-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.filters-section:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.filters-section .filters-form {
    margin-top: 1rem;
}

.filters-section .filters-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}



/* Action Buttons */
.filters-section .action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}


.filters-section .calendar-btn,
.filters-section .entities-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    white-space: nowrap;
}



.filters-section .calendar-btn {
    background: white;
    color: #374151;
    border: 2px solid #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-section .calendar-btn:hover {
    background: #f9fafb;
    border-color: #C41E32;
    color: #C41E32;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 50, 0.15);
}
.filters-section .entities-btn {
    background: linear-gradient(135deg, #C41E32 0%, #a01828 100%);
    color: white;
    border: 2px solid var(--primary-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
/* .filters-section .entities-btn:hover {
    background: #f9fafb;
    border-color: #C41E32;
    color: #C41E32;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 50, 0.15);
} */

.filters-section .calendar-btn:active,
 .filters-section .entities-btn:active{
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-section .calendar-btn svg {
    flex-shrink: 0;
}

/* Projects Page */
.projects-page {
    margin-bottom: 3rem;
}

.projects-page__header {
    margin-bottom: 1.5rem;
}

.projects-page__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 1rem 1.5rem;
    margin: 2rem 0 0;
}

.projects-partner-cta {
    flex: 0 0 auto;
    margin-inline-start: auto;
}

.projects-partner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    border: 2px solid var(--primary-red);
    background: linear-gradient(135deg, #C41E32 0%, #a01828 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(143, 22, 35, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.projects-partner-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(143, 22, 35, 0.3);
    filter: brightness(1.03);
}

.projects-partner-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(143, 22, 35, 0.2);
}

.projects-partner-btn__icon {
    flex-shrink: 0;
}

.projects-page__toolbar .projects-filters {
    margin-top: 0;
    flex: 0 1 320px;
}

.projects-page__partner-label {
    flex: 0 1 auto;
}

.projects-page__description {
    max-width: 860px;
    margin: 0 auto 1.5rem;
    text-align: center;
    color: var(--dark-gray);
}

.projects-filters {
    display: block;
    margin: 2rem 0 0;
    padding-bottom: 0px;
}

.projects-filter-form {
    max-width: 320px;
}

.projects-filter-select {
    width: 100%;
    min-height: 44px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #dedede;
    background: #fff;
    color: var(--dark-gray);
    border-radius: 10px;
    padding: 0.55rem 2.2rem 0.55rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: right 10px center;
    background-size: 14px 14px;
    background-repeat: no-repeat;
}

.projects-filter-select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(143, 22, 35, 0.14);
}

.projects-filter-submit {
    margin-top: 0.6rem;
    border: 1px solid var(--primary-red);
    background: var(--primary-red);
    color: #fff;
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
}

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

.projects-card {
    height: 100%;
}

.projects-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.projects-card__image-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.projects-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projects-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: auto;
}

.projects-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    border: 1px solid rgba(143, 22, 35, 0.2);
    background: rgba(143, 22, 35, 0.08);
    color: var(--primary-red);
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
}

.projects-card__title {
    margin: 0;
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.1rem;
}

.projects-card__read-more {
    margin-top: 0.15rem;
    align-self: flex-start;
}

.projects-empty-state {
    text-align: center;
    color: #666;
    margin: 2rem 0;
}

.projects-pagination ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.projects-pagination li {
    margin: 0;
}

[dir="rtl"] .projects-partner-btn__icon {
    transform: scaleX(-1);
}

[dir="rtl"] .projects-filters {
    text-align: right;
}

[dir="rtl"] .projects-filter-select {
    padding: 0.55rem 0.9rem 0.55rem 2.2rem;
    background-position: left 10px center;
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .projects-card__read-more {
    align-self: flex-end;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .projects-filters {
        margin-top: 0.8rem;
    }

    .projects-filter-form {
        max-width: 100%;
    }

    .projects-page__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-page__toolbar .projects-filters {
        flex-basis: auto;
    }

    .projects-partner-cta {
        margin-inline-start: 0;
    }

    .projects-partner-btn {
        width: 100%;
        justify-content: center;
    }
}