.ecpg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.ecpg-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}
.ecpg-card-image {
    width: 100%;
    height: 288px; /* Fixed height */
    background-size: cover;
    background-position: top center;
    
}

.ecpg-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ecpg-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}
.ecpg-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}
.ecpg-title a {
    color: inherit;
    text-decoration: none;
}
.ecpg-rating {
    display: flex;
    gap: 2px;
    flex-shrink: 0; /* Prevents stars from wrapping */
}
.ecpg-rating i svg {
    width: 18px;
    height: 18px;
}
.ecpg-rating .filled { color: #f59e0b; }
.ecpg-rating .empty { color: #d1d5db; }

.ecpg-excerpt {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}
.ecpg-meta {
    display: flex;
  
    gap: 16px;
    align-items: center;
    margin-top: auto; /* Pushes meta to the bottom */
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
        justify-content: space-between;
}
.ecpg-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}
.ecpg-icon {
    width: 16px;
    height: 16px;
    color:#00953B;
}
.ecpg-meta-right span{
     color:#00953B;
}

@media (max-width: 1023px) {
    .ecpg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    
    .ecpg-meta {
    display: none;
}
    
    .ecpg-card-content {
    padding: 15px;
   
}
    .ecpg-grid { 
        grid-template-columns: 2fr;
        gap: 10px; 
        
    }
    
    .ecpg-title-wrap {
    gap: 12px;
    margin-bottom: 4px;
    flex-direction: column;
}

.ecpg-meta {
    
    gap: 10px;
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
    justify-content: space-between;
    flex-direction: column;
}

.ecpg-excerpt {
    font-size: 13px;
    line-height: 20px;
    margin-bottom: 0;
}

.ecpg-title {
    font-size: 16px;
   
}

.ecpg-card-image {
  
    height: 170px;
   
    background-position: center center;
}
}




