/* Blog page styling */
.blog-page {
  padding: 40px 0 60px;
}

.blog-page h1 {
  color: #535353;
  margin-bottom: 40px;
}

.blog-listing {
  margin-bottom: 40px;
}

.blog-listing .item {
  width: 31.33%;
  margin: 0 1% 30px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.blog-listing .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.blog-listing .image {
  height: 200px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  position: relative;
}

.blog-listing .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-listing .item:hover .image img {
  transform: scale(1.05);
}

.blog-listing .title {
  padding: 15px 15px 10px;
  line-height: 1.3;
}

.blog-listing .title a {
  font-size: 18px;
  font-weight: 700;
  color: #535353;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-listing .title a:hover {
  color: #038FFF;
  text-decoration: none;
}

.blog-listing .excerpt {
  padding: 0 15px 10px;
  font-size: 14px;
  color: #777;
  line-height: 1.5;
}

.blog-listing .meta {
  padding: 0 15px 15px;
  color: #999;
  font-size: 13px;
}

.blog-listing .buttons {
  padding: 0 15px 20px;
}

.blog-listing .btn {
  font-size: 14px;
  padding: 10px 20px;
  width: 100%;
  display: block;
}

/* Pagination styling */
.pagination-container {
  text-align: center;
  margin-top: 20px;
}

.pagination {
  display: inline-block;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pagination .page-numbers {
  display: inline-block;
  padding: 10px 15px;
  text-decoration: none;
  background: #fff;
  color: #535353;
  border-right: 1px solid #eee;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination .page-numbers:last-child {
  border-right: none;
}

.pagination .page-numbers.current {
  background: #038FFF;
  color: white;
}

.pagination .page-numbers:hover:not(.current) {
  background: #f8f8f8;
  color: #038FFF;
}

.pagination .prev, .pagination .next {
  font-weight: 700;
}

.no-posts {
  text-align: center;
  padding: 50px 0;
  font-size: 18px;
  color: #777;
}

/* Responsive styling */
@media (max-width: 991px) {
  .blog-listing .item {
    width: 48%;
    margin: 0 1% 30px;
  }
}

@media (max-width: 767px) {
  .blog-listing .item {
    width: 100%;
    margin: 0 0 30px;
  }

  .blog-page h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
}
