.custom-recent-posts-block {
  margin: auto;
}

.custom-recent-posts-block .block-title {
  margin-bottom: 0;
  padding-bottom: 10px;
  
  font-size: 35px;
  
  position: relative;
  
  display: inline-block;
  
  padding-left: 0;
  padding-right: 0;
  font-weight: bold;
}

.custom-recent-posts-block .block-subtitle {
  
  color: black;
  font-size: 16px;
  margin-top: 5px;
  margin-bottom: 0;
}


.custom-recent-posts-block .block-header .block-title::after {
  content: "";
  display: block;
  height: 2px;
  background-color: #007cba;
  position: absolute;
  bottom: 0;
  
  left: 0;
  right: 0;
}


.custom-recent-posts-block .block-header.align-left .block-title::after,
.custom-recent-posts-block .block-header.align-right .block-title::after {
  width: 100%;
  
}


.custom-recent-posts-block .block-header.align-left .block-title::after {
  left: 0;
  right: auto;
}


.custom-recent-posts-block .block-header.align-right .block-title::after {
  right: 0;
  left: auto;
}


.posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-list-item .post-title {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.post-list-item .post-title a {
  text-decoration: none;
  color: #333;
}

.post-list-item .post-title a:hover {
  color: #007cba;
}

.post-meta {
  font-size: 13px;
  color: #666;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.post-price {
  font-weight: bold;
}


.posts-grid {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

.post-grid-item {
  border: 1px solid #eee;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-grid-item .post-thumbnail {
  
  overflow: hidden;
  padding: 12px;
}

.post-grid-item .post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: scale-down;
  border-radius: 18px;
}

.post-grid-item .post-content {
  padding: 0 12px;
}

.post-content {
  text-align: center;
}

.post-content ins {
  text-decoration: none;
}

.post-grid-item .post-title {
  margin: 0 0 0 0;
  font-size: 14px;
}

.post-grid-item .post-title a {
  color: black;
}

.post-grid-item .post-author,
.post-grid-item .post-price {
  font-size: 24px;
  margin-bottom: 5px;
  color: #0044ca;
}

.post-grid-item .post-price del {
  font-size: 14px;
  color: #a0a0a0;
}


.posts-cards {
  display: grid;
  gap: 25px;
}

.post-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.post-card .card-image {
  height: auto;
  overflow: hidden;
}

.post-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card .card-content {
  padding: 15px;
}

.post-card .card-title {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.post-card .card-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.post-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #888;
}

.card-price {
  color: #e74c3c;
  font-weight: bold;
}


@media (max-width: 768px) {

  .posts-grid,
  .posts-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .columns-1 .posts-grid,
  .columns-1 .posts-cards {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .posts-grid, .posts-cards {
    padding:0 20px;
  }
  .post-meta {
    flex-direction: column;
    gap: 5px;
  }
}

.post-button button {
  background-color: transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  fill: #ffffff;
  color: #ffffff;
  background-image: linear-gradient(90deg, #feb31a 0, #fc5302 50%);
  border-radius: 12px 12px 12px 12px;
  padding: 6px;
  margin: 0 12px;
  width: -webkit-fill-available;
  border: none;
}

.post-button {
  text-align: center;
  margin-bottom: 20px;
}

@media (min-width: 576px) {
  .custom-recent-posts-block {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .custom-recent-posts-block {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .custom-recent-posts-block {
    max-width: 960px;
  }

  .post-grid-item .post-author,
  .post-grid-item .post-price {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {

  .custom-recent-posts-block,
  .nav-container {
    max-width: 1140px;
  }
}

@media (min-width: 1200px) {

  .custom-recent-posts-block,
  .nav-container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {

  .custom-recent-posts-block,
  .nav-container {
    max-width: 1320px;
  }
}


.widget-pagination {
  margin: 40px 0;
  
  text-align: center;
}


.widget-pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  
}

.widget-pagination ul li {
  margin: 0;
}


.widget-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  line-height: 1;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  font-weight: 500;
}


.widget-pagination a.page-numbers:hover {
  color: #388E3C;
}


.widget-pagination .page-numbers.current {
  background-color: #388E3C;
  border-radius: 50px;
  color: #fff;
  font-weight: bold;
  cursor: default;
}


.widget-pagination .next,
.widget-pagination .prev {
  font-size: 20px;
  font-family: monospace, sans-serif;
}

.product-title2 {
  font-size: 13px;
  text-align: center;
  color: #333333;
  font-weight: bold;
  padding: 0 12px;
}


.product-empty-state {
  padding: 60px 20px;
  text-align: center;
  background: #fdfdfd;
  border: 1px dashed #e0e0e0;
  
  border-radius: 8px;
  margin: 20px 0;
}


.empty-icon {
  color: #bdbdbd;
  
  margin-bottom: 20px;
  display: inline-block;
}


.empty-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}


.empty-text {
  font-size: 14px;
  color: #888;
  margin-bottom: 30px;
}