*{
    direction: rtl;
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
.post-project{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
}
.post-project-card{
    background-color: #DCEDF7;
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.post-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* کانتینر تصویر برای کنترل اندازه */
.image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
}

.img-project-cart{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

/* اطمینان از لود شدن صحیح تصاویر */
.img-project-cart[src*="placeholder.jpg"] {
    object-fit: contain;
    padding: 20px;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-project-card:hover .image-overlay {
    opacity: 1;
}

.post-project-card:hover .img-project-cart {
    transform: scale(1.08);
}

.title-project-cart{
    margin: 0px;
    font-size: 1.2rem;
}
.title-project-cart h6 {
    margin: 0;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    min-height: 2.8em;
    display: flex;
    align-items: center;
}
.post-cart-button{
    border:0px;
    background-color: #05537A;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.post-cart-button:hover {
    background-color: #033953;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(5, 83, 122, 0.3);
}
.deatales-project-cart{
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}
.deatales-project-cart h6 {
    margin: 0;
    font-weight: normal;
    line-height: 1.6;
    min-height: 4.5em;
    display: flex;
    align-items: center;
}
.second-part-post-cart{
    width: 100%;
    gap: 15px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    flex-grow: 1;
}
.load-more-container {
    text-align: center;
    margin-top: 30px;
    width: 100%;
}
.load-more-button {
    background-color: #05537A;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}
.load-more-button:hover {
    background-color: #033953;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(5, 83, 122, 0.3);
}
.load-more-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* اطمینان از یکسان بودن ارتفاع کارت‌ها */
.post-project-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 500px;
}

.image-container {
    flex-shrink: 0;
    height: 250px;
}

.second-part-post-cart {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* استایل برای تصاویر با نسبت‌های مختلف */
.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-project-card:hover .image-container::before {
    opacity: 1;
}

/* ریسپانسیو برای تبلت */
@media (min-width: 768px) and (max-width: 1023px) {
    .post-project-card {
        max-width: calc(50% - 20px);
        min-height: 480px;
    }
    
    .image-container {
        height: 200px;
    }
}

/* ریسپانسیو برای دسکتاپ */
@media (min-width: 1024px) {
    .post-project-card {
        max-width: calc(33.333% - 20px);
        min-height: 500px;
    }
    
    .image-container {
        height: 250px;
    }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 767px) {
    .post-project-card {
        max-width: 100%;
        min-height: 450px;
    }
    
    .post-project {
        gap: 15px;
    }
    
    .image-container {
        height: 200px;
    }
    
    .title-project-cart h6 {
        min-height: auto;
    }
    
    .deatales-project-cart h6 {
        min-height: auto;
    }
}

/* انیمیشن برای لود پست‌های جدید */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-project-card {
    animation: fadeInUp 0.5s ease-out;
}

/* استایل برای زمانی که تصویر لود نمی‌شود */
.img-project-cart:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    z-index: -1;
}

/* اطمینان از نمایش یکسان همه تصاویر */
.image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    font-family: 'object-fit: cover;'; /* برای پشتیبانی از مرورگرهای قدیمی */
}