.archive #qodef-page-inner,
.blog #qodef-page-inner {
  padding: 0 100px 40px 100px;
  width: 100%;
}

body.archive,
body.blog {
  background-color: #F5F5F5;
}

.custom-blog-wrap .blog-page-title {
  color: #000;
  font-size: 44px;
  font-weight: 600;
  text-align: center;
  font-family: "Inter" !important;
}

.neobeat-archive-description {
  max-width: 720px;
  margin: -8px auto 28px;
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
  color: #555;
  font-family: "Inter", sans-serif;
}

.neobeat-archive-description p:last-child {
  margin-bottom: 0;
}

.custom-blog-wrap,
.custom-blog-wrap h1,
.custom-blog-wrap h2,
.custom-blog-wrap h3,
.custom-blog-wrap h4,
.custom-blog-wrap h5,
.custom-blog-wrap h6,
.custom-blog-wrap p,
.custom-blog-wrap a,
.custom-blog-wrap div {
  font-family: "Inter" !important;
}

.blog-filter-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(10px, 1.302vw, 25px);
  margin-bottom: clamp(20px, 2.292vw, 44px);
}

.blog-filter-wrapper .search-wrap {
  position: relative;
  flex: 1;
}

.blog-filter-wrapper #blog-search {
  width: 100%;
  padding: 15px 40px 15px 15px;
  color: #333;
  border: 1px solid #8E8E93;
  border-radius: 12px;
  outline: none;
  transition: 0.4s;
  font-size: 18px;
  margin: 0;
}

.blog-filter-wrapper #blog-search::placeholder {
  color: #999;
}

.blog-filter-wrapper #blog-search:focus {
  background: #fff;
  border-color: #bbb;
}

.search-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 28px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  pointer-events: none;
}

.blog-filter-wrapper #blog-category {
  padding: 5px;
  color: #00000099;
  border: 1px solid #8E8E93;
  border-radius: 12px;
  font-size: 18px;
  height: 56px;
  background: transparent;
  min-width: 200px;
}

.blog-filter-wrapper #blog-category:focus {
  background-color: #fff;
  border-color: #bbb;
}

#blog-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(15px, 2.083vw, 40px);
  position: relative;
}

#blog-results.is-loading {
  min-height: 220px;
}

#blog-results .custom-blog-loader {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  border-radius: 12px;
}

#blog-results.is-loading .custom-blog-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

#blog-results.is-loading .custom-blog-loader::after {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 3px solid #d0d0d0;
  border-top-color: #1a1a1a;
  animation: customBlogSpin 0.9s linear infinite;
}

@keyframes customBlogSpin {
  to {
    transform: rotate(360deg);
  }
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.blog-card .blog-img,
.blog-card .blog-img img {
  width: 100%;
  height: 256px;
  object-fit: cover;
}

.blog-card .blog-content {
  padding: clamp(15px, 1.042vw, 20px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-footer {
  margin-top: auto;
}

.blog-card .blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.blog-card .blog-tags span {
  font-size: 14px;
  color: #000;
  background: #7676801F;
  padding: 5px 10px;
  border-radius: 8px;
}

.blog-card .blog-content h3 {
  font-size: 18px;
  margin: 0;
  margin-bottom: 0;
}

.blog-card .blog-content h3 a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card .blog-content h3 a:hover {
  color: #333;
}

.blog-card .blog-content p {
  font-size: 14px;
  color: #666666;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  margin-bottom: 15px;
}

.blog-actions {
  margin-top: 20px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 500;
  background: #1a1a1a;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.25s;
}

.blog-read-more:hover {
  background: #333;
  color: #fff;
}

.blog-card .blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12px;
}

.blog-author-name-date {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-author-name-date span {
  font-size: 12px;
  color: #000;
  font-weight: 500;
  line-height: normal;
}

.blog-author-name-date .update-span {
  color: #666666;
  font-weight: 400;
  margin-top: 3px;
}

.blog-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-card .blog-meta .meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card .blog-meta .blog-author-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #D9D9D9;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.blog-card .blog-meta .blog-author-img img.author-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.blog-card .blog-meta .blog-author-img svg.author-icon {
  width: 100%;
  height: 100%;
  padding: 4px;
  box-sizing: border-box;
}

.blog-card .blog-meta .blog-share,
.blog-card .blog-meta .share-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

#load-more-btn {
  display: block;
  margin: 40px auto 0;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 500;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.4s;
}

#load-more-btn:hover {
  background: #333;
}

#load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.taxonomy-pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.taxonomy-pagination .page-numbers {
  margin: 0;
}

.taxonomy-pagination .page-numbers + .page-numbers {
  margin-left: 10px;
}

.taxonomy-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: 0.2s;
}

.taxonomy-pagination a.page-numbers:hover {
  border-color: #cfcfcf;
  background: #f7f7f7;
}

.taxonomy-pagination .page-numbers.current {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.taxonomy-pagination .page-numbers.prev,
.taxonomy-pagination .page-numbers.next {
  min-width: auto;
  padding: 0 18px;
}

.taxonomy-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  min-width: auto;
  padding: 0 6px;
}

.taxonomy-pagination .page-numbers.dots:hover {
  background: transparent;
}

.custom-blog-wrap .no-posts {
  grid-column: 1 / -1;
  text-align: center;
}

@media (max-width: 1366px) {
  #blog-results {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  #blog-results {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 600px) {

  .archive #qodef-page-inner,
  .blog #qodef-page-inner {
    padding: 20px 15px 20px 15px;
    width: 100%;
  }

  .blog-filter-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-filter-wrapper .search-wrap {
    max-width: none;
  }

  #blog-results {
    grid-template-columns: 1fr;
  }

  .search-wrap::after {
    right: 10px;
    top: 23px;
  }

  .blog-filter-wrapper #blog-search {
    padding: 10px 40px 10px 10px;
    border-radius: 8px;
    font-size: 16px;
  }

  .blog-filter-wrapper #blog-category {
    min-width: 0;
    height: 46px;
    border-radius: 8px;
    font-size: 16px;
  }
}