/**

 */

.blog-all {
  padding: 3rem 1rem 4rem;
}

.blog-all__wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-all__header {
  margin-bottom: 2rem;
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.blog-all__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.blog-all__subtitle {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #6b7280;
}

.blog-all__layout {
  display: grid;
  grid-template-columns: minmax(0, 65%) minmax(0, 35%);
  gap: 2.5rem;
  align-items: start;
}

/* Category filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.blog-filters__btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem !important;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.blog-filters__btn:hover,
.blog-filters__btn.is-active {
  color: #fff;
  background: #111827;
  border-color: #111827;
}

/* Post card */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.blog-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-card__thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.blog-card__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.blog-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}

.blog-card__title a {
  color: #111827;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: #4b5563;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.blog-card__meta > span:not(:last-child)::after {
  content: "·";
  margin-left: 0.75rem;
  color: #d1d5db;
}

.blog-card__excerpt {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #4b5563;
}

.blog-card__excerpt p {
  margin: 0;
}

.blog-card__more {
  margin: 0;
}

.blog-card__more a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sidebar */
.blog-all__sidebar {
  align-self: start;
}

.blog-all__sidebar-inner {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-sidebar__widget {
  padding: 1.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.blog-sidebar__widget + .blog-sidebar__widget {
  margin-top: 0;
}

/* Search */
.blog-search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-search-form__input {
  width: 100%;
  border: solid 1px #666666;
  padding: 1.5rem 1rem !important;
  transition: all 0.3s;
  border-radius: 100px !important;
}

.blog-search-form__input::placeholder {
  color: #9ca3af;
}

.blog-search-form__input:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.blog-search-form__submit {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: #111827;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.blog-search-form__submit:hover {
  background: #374151;
}

.blog-search-form__submit:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.blog-sidebar__title {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.blog-popular-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-popular-list__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.blog-popular-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-popular-list__item:first-child {
  padding-top: 0;
}

.blog-popular-list__thumb {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}

.blog-popular-list__image {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.blog-popular-list__link {
  font-size: 0.9rem !important;
  font-weight: 600;
  line-height: 1.4 !important;
  color: #111827;
  text-decoration: none;
}

.blog-popular-list__link:hover {
  color: #4b5563;
}

/* Pagination */
.blog-pagination {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  margin: 0 0.15rem;
  padding: 0 0.65rem;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
}

.blog-pagination .page-numbers.current {
  font-weight: 600;
  color: #111827;
  background: #f3f4f6;
}

.blog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-pagination li {
  list-style: none;
}

.blog-empty {
  text-align: center;
  color: #6b7280;
  padding: 3rem 0;
}

/* Single post */
.blog-single {
  padding: 2.5rem 1rem 4rem;
}

.blog-single__wrap {
  max-width: 820px;
  margin: 0 auto;
}

.blog-single__related-wrap {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.blog-single__featured {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.blog-single__featured-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-single__header-content {
  margin-bottom: 2rem;
}

.blog-single__category {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  background: #f3f4f6;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.blog-single__category:hover {
  background: #e5e7eb;
}

.blog-single__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111827;
}

.blog-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  color: #6b7280;
}

.blog-single__author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-single__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.blog-single__author-name {
  font-weight: 600;
  color: #374151;
}

.blog-single__read-time {
  font-weight: 500;
}

.blog-single__content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #374151;
}

.blog-single__content > *:first-child {
  margin-top: 0;
}

.blog-single__content h2,
.blog-single__content h3,
.blog-single__content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111827;
  line-height: 1.35;
}

.blog-single__content p {
  margin-bottom: 1.25rem;
}

.blog-single__content ul,
.blog-single__content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.blog-single__content li {
  margin-bottom: 0.5rem;
}

.blog-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-single__content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #111827;
  background: #f9fafb;
  color: #374151;
}

.blog-single__footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.blog-single__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.blog-single__share-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
}

.blog-single__share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-single__share-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-single__share-link:hover {
  color: #111827;
  background: #f3f4f6;
}

/* Similar posts */
.blog-similar {
  padding-top: 2.5rem;
  border-top: 1px solid #e5e7eb;
}

.blog-similar__title {
  margin: 0 0 1.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.blog-similar__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-similar-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.blog-similar-card:hover {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.blog-similar-card__thumb {
  display: block;
  line-height: 0;
  overflow: hidden;
}

.blog-similar-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.blog-similar-card:hover .blog-similar-card__image {
  transform: scale(1.03);
}

.blog-similar-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.blog-similar-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.blog-similar-card__title a {
  color: #111827;
  text-decoration: none;
}

.blog-similar-card__title a:hover {
  color: #4b5563;
}

.blog-similar-card__excerpt {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6b7280;
}

.blog-similar-card__more {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.blog-similar-card__more:hover {
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .blog-all__layout {
    grid-template-columns: 1fr;
  }

  .blog-all__main {
    order: 1;
  }

  .blog-all__sidebar {
    order: 2;
  }

  .blog-all__sidebar-inner {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card__thumb {
    max-width: 100%;
  }

  .blog-similar__grid {
    grid-template-columns: 1fr;
  }

  .blog-single__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
}
