/* ===================== BLOG LIST PAGE ===================== */

/* ---------- Filter head ---------- */
.blog-list__head {
  padding-top: 20px;
  padding-bottom: 0;
}

@media screen and (min-width: 1024px) {
  .blog-list__head {
    padding-top: 24px;
  }
}

@media screen and (min-width: 1920px) {
  .blog-list__head {
    padding-top: 32px;
  }
}

/* Filter tabs — accordion-holder style */
.blog-list__tabs {
  display: flex;
  width: 100%;
  background: #f9f7f7;
  border-top: 1px solid #eee8e3;
  border-bottom: 1px solid #eee8e3;
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.blog-list__tabs::-webkit-scrollbar {
  display: none;
}

@media screen and (min-width: 1920px) {
  .blog-list__tabs {
    margin-bottom: 40px;
  }
}

.blog-list__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 14px 20px;
  border-right: 1px solid #eee8e3;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a321e;
  transition: background 0.3s ease;
  cursor: pointer;
}

@media screen and (min-width: 1024px) {
  .blog-list__tab {
    padding: 19px 32px;
    font-size: 13px;
  }
}

@media screen and (min-width: 1920px) {
  .blog-list__tab {
    padding: 22px 40px;
    font-size: 16px;
  }
}

.blog-list__tab.active,
.blog-list__tab:hover {
  background: #eee8e3;
}

/* ---------- Grid ---------- */
.blog-list__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media screen and (min-width: 1024px) {
  .blog-list__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
  }
}

@media screen and (min-width: 1920px) {
  .blog-list__grid {
    gap: 0 56px;
  }
}

/* ---------- Card ---------- */
.blog-list__card {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 16px;
}

@media screen and (min-width: 1024px) {
  .blog-list__card {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

@media screen and (min-width: 1920px) {
  .blog-list__card {
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* Card image wrapper */
.blog-list__card-img-wrap {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

@media screen and (min-width: 1024px) {
  .blog-list__card-img-wrap {
    width: 165px;
  }
}

@media screen and (min-width: 1440px) {
  .blog-list__card-img-wrap {
    width: 200px;
  }
}

@media screen and (min-width: 1920px) {
  .blog-list__card-img-wrap {
    width: 240px;
  }
}

/* Card image */
.blog-list__card-img {
  overflow: hidden;
  height: 56vw;
  width: 100%;
}

@media screen and (min-width: 1024px) {
  .blog-list__card-img {
    height: 100%;
    min-height: 210px;
  }
}

.blog-list__card-img .lazy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s linear;
  opacity: 1;
}

.blog-list__card:hover .blog-list__card-img .lazy-img {
  transform: scale(1.06);
}

/* Card body */
.blog-list__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* Category tag */
.blog-list__card-cats {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
  color: #6f6763;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media screen and (min-width: 1024px) {
  .blog-list__card-cats {
    margin-bottom: 8px;
    font-size: 12px;
  }
}

@media screen and (min-width: 1920px) {
  .blog-list__card-cats {
    font-size: 14px;
    margin-bottom: 10px;
  }
}

/* Title */
.blog-list__card-title-link {
  display: block;
}

.blog-list__card-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
  color: #4a321e;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

@media screen and (min-width: 1024px) {
  .blog-list__card-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
}

@media screen and (min-width: 1440px) {
  .blog-list__card-title {
    font-size: 20px;
  }
}

@media screen and (min-width: 1920px) {
  .blog-list__card-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
}

.blog-list__card:hover .blog-list__card-title {
  color: #6f6763;
}

/* Description */
.blog-list__card-desc {
  color: #6f6763;
  line-height: 1.65;
  margin-bottom: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card footer */
.blog-list__card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 14px;
  padding-top: 10px;
}

@media screen and (min-width: 1024px) {
  .blog-list__card-foot {
    margin-top: 16px;
    padding-top: 12px;
  }
}

@media screen and (min-width: 1920px) {
  .blog-list__card-foot {
    margin-top: 20px;
    padding-top: 16px;
  }
}

.blog-list__card-date {
  color: #6f6763;
}

.blog-list__card-link {
  display: inline-block;
  color: #4a321e;
  font-size: 12px;
  font-weight: 400;
  border-bottom: 1px solid #4a321e;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.blog-list__card-link:hover {
  color: #ada9a6;
  border-color: #ada9a6;
}

@media screen and (min-width: 1920px) {
  .blog-list__card-link {
    font-size: 16px;
  }
}

/* ---------- Pagination ---------- */
.blog-list__pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 60px;
}

@media screen and (min-width: 1024px) {
  .blog-list__pagination {
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 80px;
  }
}

@media screen and (min-width: 1920px) {
  .blog-list__pagination {
    gap: 28px;
    padding-top: 56px;
    padding-bottom: 100px;
  }
}

.blog-list__count {
  color: #6f6763;
}

.blog-list__more-btn {
  display: block;
  width: 240px;
  padding: 14px;
  background: #4a321e;
  border: 1px solid #4a321e;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  transition: background 0.4s ease, color 0.4s ease;
}

.blog-list__more-btn:hover {
  background: transparent;
  color: #4a321e;
}

@media screen and (min-width: 1920px) {
  .blog-list__more-btn {
    font-size: 16px;
    padding: 16px;
    width: 280px;
  }
}
