/* ------------------------------ 매거진(blog) ------------------------------ */

/* 목록 */
.archive-blog .blog-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 210px;
  margin: 0 auto 30px;
  border-bottom: 1px solid var(--primary-color5);
}
.archive-blog .blog-search input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  font-size: 13px;
  color: var(--primary-color4);
  background: transparent;
}
.archive-blog .blog-search input::placeholder {
  color: var(--primary-color4);
  font-weight: 500;
}
.archive-blog .blog-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.blog-tabs {
  margin-bottom: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-tabs::-webkit-scrollbar {
  display: none;
}
.blog-tabs ul {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  width: max-content;
  min-width: 100%;
  padding: 0 2px;
}
.blog-tabs li a {
  display: block;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--primary-color5);
  background: #eee;
  border-radius: 50px;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.blog-tabs li.active a,
.blog-tabs li a:hover {
  color: var(--white);
  background: var(--primary-color4);
}

.blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px 20px;
}
.blog-card__link {
  display: block;
}
.blog-card__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #d9d9d9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.blog-card__thumb img {
  transition: transform 0.5s ease;
}
.blog-card__link:hover .blog-card__thumb img {
  transform: scale(1.05);
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
}
.blog-card__cat {
  font-size: 12px;
  color: var(--primary-color5);
}
.blog-card__title {
  margin: 0;
  font-size: 16px;
  color: var(--primary-color4);
}
.blog-card__date {
  font-size: 11px;
  color: #999;
}
.archive-blog .pagination svg {
  display: block;
}
.archive-blog .pagination .page-numbers.prev,
.archive-blog .pagination .page-numbers.next {
  width: 36px;
}

/* 상세 */
.blog-single__inner {
  max-width: 1100px;
}
.blog-single {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-bottom: 80px;
}
.blog-single__main {
  min-width: 0;
}
.blog-single__header {
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}
.blog-single__cat {
  display: block;
  font-size: 12px;
  color: var(--primary-color5);
}
.blog-single__title {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color4);
}
.blog-single__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 36px;
  border-radius: 12px;
  background: #d9d9d9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.blog-single__content {
  font-size: 14px;
  line-height: 1.9;
  color: var(--primary-color4);
}
.blog-single__content p {
  font-size: 14px;
  color: var(--primary-color4);
  margin-bottom: 1.2em;
}
.blog-single__content h2,
.blog-single__content h3 {
  margin: 1.8em 0 0.8em;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-color4);
}
.blog-single__content img {
  height: auto;
  border-radius: 12px;
  margin: 1.5em 0;
}
.blog-single__meta {
  margin-top: 50px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 12px;
  color: var(--primary-color5);
}
.blog-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 0;
}
.blog-single__tags a {
  display: block;
  padding: 7px 16px;
  font-size: 12px;
  color: var(--primary-color5);
  background: #f1f1f1;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.blog-single__tags a:hover {
  color: var(--white);
  background: var(--primary-color2);
}
.blog-single__back {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}
.blog-single__back .btn-w {
  min-width: 120px;
  padding: 9px 24px;
  font-size: 12px;
  text-align: center;
}

/* 관련 게시물 */
.blog-aside__tit {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color4);
}
.blog-aside__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.blog-aside__item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.blog-aside__thumb {
  flex: 0 0 80px;
  height: 52px;
  overflow: hidden;
  border-radius: 8px;
  background: #d9d9d9;
}
.blog-aside__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.blog-aside__cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color4);
}
.blog-aside__tit-sm {
  font-size: 11px;
  color: var(--primary-color5);
}
.blog-aside__more {
  display: block;
  width: 100%;
  padding: 9px 0;
  font-size: 12px;
  text-align: center;
}

@media screen and (min-width: 600px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 992px) {
  .blog-tabs ul {
    justify-content: center;
  }
  .archive-blog .inner.mw-1000 {
    max-width: 1000px;
  }
  .blog-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 22px;
  }
  .blog-card__title {
    font-size: 17px;
  }
  .blog-single {
    flex-direction: row;
    gap: 40px;
  }
  .blog-single__main {
    flex: 1;
  }
  .blog-single__aside {
    flex: 0 0 330px;
  }
  .blog-single__title {
    font-size: 22px;
  }
}
