/* Blog Listing */
.blog-listing,
.related-posts {
  .custom-recommended-blog {
    .top-image-outer {
      width: 100%;
      height: 180px;

      a {
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: block;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
    }
    .custom-post-content {
      .custom-post-meta {
        a {
          color: #646464;
          &:hover {
            color: #646464;
          }
        }
      }

      .title {
        a {
          color: #000;
          &:hover {
            color: #000;
          }
        }
      }
    }
  }

  /* Style for the category filter dropdown */
  #categoryFilter {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;

    @media screen and (max-width: 767px) {
      font-size: 14px;
      padding: 8px;
    }
  }

  #categoryFilter:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
  }

  /* Style for the search input */
  #searchInput {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;

    @media screen and (max-width: 767px) {
      font-size: 14px;
      padding: 8px;
    }
  }

  #searchInput:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
  }

  /* Add spacing between the dropdown and search input */
  .row.mb-4 .form-select,
  .row.mb-4 .form-control {
    margin-bottom: 10px;
  }
}
/* Blog Listing */

/* Blog Page Pagination */

.pagination-wrapper {
  text-align: center;
}

.pagination-wrapper ul {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-wrapper ul li {
  margin: 0 5px;

  @media screen and (max-width: 767px) {
    margin: 0 3px;
  }
}

.pagination-wrapper ul li a {
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #007bff;
  transition: background-color 0.3s, color 0.3s;
  display: inline-block;

  @media screen and (max-width: 767px) {
    padding: 8px 10px;
    font-size: 14px;
  }

  @media screen and (max-width: 575px) {
    font-size: 12px;
  }
}

.pagination-wrapper ul li a:hover {
  background-color: #f3ae36;
  color: #fff;
}

.pagination-wrapper ul li > span {
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;

  @media screen and (max-width: 767px) {
    padding: 8px 10px;
    font-size: 14px;
  }

  @media screen and (max-width: 575px) {
    font-size: 12px;
  }

  &:not(.page-numbers.dots) {
    border: 2px solid #d7faff;
    background: #041b29;
    color: #fff;
  }
  &:not(.page-numbers.current) {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #ddd;
  }
}

/* Blog Page Pagination */
