.posts-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 10px;
}
.post {
display: flex;
flex-direction: row;
background-color: #e8f2f9; margin-bottom: 20px;
align-items: flex-start;
width: 100%;
}
.post-image {
width: 100%;
max-width: 300px;
height: auto;
object-fit: cover;
margin-right: 20px;
}
.post-info {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.post-info h3 {
font-weight: bold;
margin: 10px 0; padding-right: 10px; }
.post-info .post-date {
margin-top: 5px; color: #4583cf; }
.post-info .post-excerpt {
font-size: 0.9em;
color: #4583cf; line-height: 1.4;
height: 2.8em;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
margin-top: 5px; padding-right: 10px; } .pagination {
text-align: center;
padding: 10px 0;
display: flex !important;
justify-content: center !important;
list-style: none !important;
gap: 5px !important; }
.pagination li {
display: inline !important; }
.pagination li a, .pagination li span {
color: #0056b3 !important; background-color: #f8f9fa !important; border: 1px solid #dee2e6 !important;
padding: 5px 10px !important;
text-decoration: none !important;
border-radius: 5px !important;
font-size: 1em !important;
display: inline-block !important;
margin: 0 2px !important; }
.pagination li a:hover {
background-color: #e2e6ea !important; color: #004495 !important; }
.pagination li .current {
background-color: #007bff !important; color: #ffffff !important; border-color: #007bff !important;
}
.pagination li .disabled {
color: #6c757d !important; pointer-events: none !important;
}
@media (max-width: 768px) {
.posts-container {
justify-content: center;
}
.post {
flex-direction: column;
align-items: center;
padding: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.post-image {
width: 100%; max-width: 400px; margin-bottom: 15px; }
.post-info {
width: 100%; padding: 0 15px; }
.post-info .post-date, .post-info .post-excerpt {
margin-top: 10px; }
}