.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 50px 15px 20px 15px;
}

.post-item {
     display: flex;
    flex-direction: column;
    background-color: #f7f4ed;
    border-radius: 10px;
    padding: 15px;
    transition: box-shadow 0.3s ease;
    height: 100%;
}

.post-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.post-image img {
    border-radius: 10px;
    width: 100%;
    height: 211px !important;
    object-fit: cover;
    border-radius: 10px;
    
}


.post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}


/*.meta-icon-calendar {*/
/*    background-image: url('');*/
/*}*/

/*.meta-icon-admin {*/
/*    background-image: url('');*/
/*}*/

.meta-date, .meta-author {
    font-size: 14px;
    color: #555;
}

.meta-separator {
    margin: 0 5px;
}

h4.post-title {
     font-size: 18px !important;
    line-height: 1.4;
    margin: 10px 0;
    min-height: 76px !important;   /* Adjust according to your design */
}

.post-excerpt {
 
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
    min-height: 56px !important;
  
   
}

.post-content{
    display:flex;
    flex-direction:column;
    flex:1;
}


a.post-button:visited {
    color: #fff;
}
.post-button {
   margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 127px;
    min-height: 42px;
    padding: 3px 9px;
    background: #160066;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: .3s;
    font-size:16px;
}

.post-button:hover {
   background-color: #D58E00;
    color: #fff; 
   border: 1px solid #D58E00;  
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.pagination .page-numbers {
    font-size: 17px;
    display: inline-block;
    margin: 0 5px;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid #0000002b;
    color: #000;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

a.next.page-numbers {
    color: #fff;
    background-color:#160066;
}

a.next.page-numbers:hover {
    color: #fff;
    background-color: #d58e00;
}

.pagination .page-numbers:hover {
    background-color: #0B2D4E;
    color:#fff;
}

.pagination .current {
    background-color: #24af5a;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pagination {
        margin-bottom: 30px;
    }
	.post-excerpt {
    text-align: justify; }
	
	.post-button {
    width: 127px;
		margin: auto;}
	h4.post-title {
    min-height: 40px !important;
}
}

@media (max-width: 480px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
    .pagination {
        margin-bottom: 30px;
    }
	.post-excerpt {
    text-align: justify; }
	
	
}

@media (max-width: 768px) {
    .post-grid {
        margin: 30px 10px;
        grid-template-columns: repeat(1, 1fr);
    }
    .pagination {
        margin-bottom: 30px;
    }
	
	.post-excerpt {
    text-align: justify; }
	
	.related-posts h3 
	{
		text-align:center;
	}
	.related-posts h4 {
  
 margin-top: 15px; !important}

}

/* related blog grid css */
	
	.related-posts {
  margin: 40px 0;
}

.related-posts h3 {
  font-size: 22px;
  margin-bottom: 20px;
	margin-top:10px;
}
.related-posts h4 {
  
    margin-top: 15px; !important
}


.blog-swiper {
    padding: 20px 5px 50px;
}

.blog-swiper .swiper-slide {
    height: auto;
}

.blog-swiper .post-item {
    height: 100%;
}

.blog-swiper .swiper-button-next,
.blog-swiper .swiper-button-prev {
    color: #160066;
}

.blog-swiper .swiper-pagination-bullet-active {
    background: #160066;
}

.swiper-button-next, .swiper-button-prev{
    display:none !important;
}