/* Tastevia — Blog & Article (Figma 101:1323) */

.blog-hero {
  padding: 64px 0 48px;
  text-align: center;
}

.blog-hero__title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 20px;
}

.blog-hero__desc {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 28px;
  color: var(--color-muted);
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
  padding: 10px 10px 10px 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.blog-search input {
  flex: 1;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.02em;
  background: transparent;
  min-width: 0;
}

.blog-search input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.blog-search .btn {
  flex-shrink: 0;
  padding: 18px 44px;
}

.blog-layout {
  padding: 56px 0 80px;
}

.blog-layout__grid {
  display: grid;
  grid-template-columns: 840fr 400fr;
  gap: 40px;
  align-items: start;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.blog-card__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 400 / 300;
  background: #f3f3f3;
}

.blog-card__media > a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.35;
  margin: 0 0 16px;
}

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

.blog-card__title a:hover {
  opacity: 0.75;
}

.blog-card__excerpt {
  font-size: 16px;
  line-height: 28px;
  color: var(--color-muted);
  margin: 0 0 24px;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.blog-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-card__author {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.blog-card__author a {
  color: inherit;
  text-decoration: none;
}

.blog-card__author a:hover {
  opacity: 0.7;
}

.blog-card__date {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-aside h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}

.tasty-recipe {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  text-decoration: none;
  color: inherit;
}

.tasty-recipe__media {
  width: 180px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f3f3;
}

.tasty-recipe__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tasty-recipe__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 28px;
  margin: 8px 0 12px;
}

.tasty-recipe__author {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  margin: 0;
}

.blog-promo {
  margin-top: 40px;
  border-radius: var(--radius-card);
  background: radial-gradient(circle at 50% 40%, #2f6b4f 0%, var(--color-promo) 70%);
  color: #fff;
  text-align: center;
  padding: 36px 24px 28px;
  min-height: 434px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.blog-promo__title {
  font-family: var(--font-logo);
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  max-width: 12ch;
}

.blog-promo__img {
  width: 280px;
  max-width: 90%;
  height: auto;
  object-fit: contain;
}

.blog-promo__url {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Pagination (Figma-style numbered controls) */
.tastevia-pagination {
  padding: 16px 0 64px;
}

.tastevia-pagination .navigation.pagination {
  margin: 0;
}

.tastevia-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.tastevia-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--color-cyan, #e7fafe);
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.tastevia-pagination a.page-numbers:hover {
  background: #d4f3f9;
  color: #000;
}

.tastevia-pagination .page-numbers.current {
  background: #000;
  color: #fff;
}

.tastevia-pagination .page-numbers.prev,
.tastevia-pagination .page-numbers.next {
  min-width: auto;
  padding: 0 22px;
  background: #fff;
  border: 1px solid #000;
}

.tastevia-pagination a.page-numbers.prev:hover,
.tastevia-pagination a.page-numbers.next:hover {
  background: #000;
  color: #fff;
}

.tastevia-pagination .page-numbers.dots {
  min-width: auto;
  padding: 0 4px;
  background: transparent;
  border: 0;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .blog-layout__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .blog-card {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }

  .blog-aside h2 {
    font-size: 28px;
  }
}

@media (max-width: 700px) {
  .blog-hero {
    padding: 40px 0 32px;
  }

  .blog-hero__title {
    font-size: clamp(32px, 9vw, 44px);
    margin-bottom: 14px;
  }

  .blog-hero__desc {
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.65;
  }

  .blog-search {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    gap: 10px;
  }

  .blog-search input {
    text-align: center;
    padding: 8px;
  }

  .blog-search .btn {
    width: 100%;
    min-height: 52px;
  }

  .blog-layout {
    padding: 32px 0 56px;
  }

  .blog-list {
    gap: 28px;
  }

  .blog-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-card__media {
    border-radius: 18px;
  }

  .blog-card__title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .blog-card__excerpt {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 16px;
  }

  .blog-card__meta {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .blog-card__date {
    padding-left: 0;
    border-left: 0;
    width: 100%;
    margin-left: 54px;
  }

  .tasty-recipe {
    gap: 14px;
    margin-bottom: 18px;
  }

  .tasty-recipe__media {
    width: 110px;
    height: 88px;
    border-radius: 14px;
    flex-shrink: 0;
  }

  .tasty-recipe__title {
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 8px;
  }

  .blog-promo {
    margin-top: 28px;
    min-height: 0;
    padding: 28px 20px 24px;
    border-radius: 24px;
  }

  .blog-promo__title {
    font-size: 22px;
    max-width: none;
  }

  .blog-promo__img {
    width: min(220px, 75%);
    margin: 16px 0;
  }
}
