.blog-page {
  background: hsl(40, 20%, 97%);
}
.blog-page__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .blog-page__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}
.blog-page__main {
  min-width: 0;
}

.blog-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.blog-filters__btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1.5px solid hsl(40, 15%, 88%);
  background: #ffffff;
  color: hsl(150, 10%, 38%);
  cursor: pointer;
  transition: all 0.2s ease;
}
.blog-filters__btn:hover, .blog-filters__btn.is-active {
  background: hsl(152, 42%, 24%);
  border-color: hsl(152, 42%, 24%);
  color: #ffffff;
}

.blog-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid hsl(40, 15%, 88%);
  background: #ffffff;
  margin-bottom: 32px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.blog-hero-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}
@media (max-width: 700px) {
  .blog-hero-card {
    grid-template-columns: 1fr;
  }
}
.blog-hero-card__img {
  display: block;
  overflow: hidden;
  min-height: 300px;
}
.blog-hero-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-hero-card:hover .blog-hero-card__img img {
  transform: scale(1.04);
}
.blog-hero-card__body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
@media (max-width: 700px) {
  .blog-hero-card__body {
    padding: 28px 24px;
  }
}
.blog-hero-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: hsl(150, 5%, 56%);
}
.blog-hero-card__cat {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(71.4, 132.6, 99.96, 0.1);
  color: hsl(148, 30%, 40%);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.blog-hero-card__title {
  font-family: "Cormorant Garamond", "Cormorant Garamond Fallback", Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: hsl(150, 20%, 12%);
}
.blog-hero-card__title a {
  color: inherit;
}
.blog-hero-card__title a:hover {
  color: hsl(148, 30%, 40%);
}
.blog-hero-card__excerpt {
  font-size: 0.9375rem;
  color: hsl(150, 10%, 38%);
  line-height: 1.6;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 600px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid hsl(40, 15%, 88%);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.blog-card:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
}
.blog-card__img {
  display: block;
  height: 200px;
  overflow: hidden;
  background: hsl(40, 20%, 97%);
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(150, 5%, 56%);
}
.blog-card:hover .blog-card__img img {
  transform: scale(1.04);
}
.blog-card__body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-card__cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(148, 30%, 40%);
}
.blog-card__title {
  font-family: "Cormorant Garamond", "Cormorant Garamond Fallback", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: hsl(150, 20%, 12%);
}
.blog-card__title a {
  color: inherit;
}
.blog-card__title a:hover {
  color: hsl(148, 30%, 40%);
}
.blog-card__excerpt {
  font-size: 0.875rem;
  color: hsl(150, 10%, 38%);
  line-height: 1.55;
  flex: 1;
}
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid hsl(40, 15%, 88%);
}
.blog-card__date {
  font-size: 0.75rem;
  color: hsl(150, 5%, 56%);
}
.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(148, 30%, 40%);
  transition: color 0.2s ease;
}
.blog-card__link:hover {
  color: hsl(152, 42%, 24%);
}
.blog-card__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.blog-sidebar {
  position: sticky;
  top: 96px;
}
@media (max-width: 960px) {
  .blog-sidebar {
    position: static;
  }
}
.blog-sidebar__widget {
  margin-bottom: 32px;
}
.blog-sidebar__heading {
  font-family: "DM Sans", "DM Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(150, 20%, 12%);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid hsl(40, 15%, 88%);
}
.blog-sidebar__cta {
  background: hsl(152, 42%, 24%);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
}
.blog-sidebar__cta > span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(38, 75%, 55%);
  margin-bottom: 10px;
}
.blog-sidebar__cta p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin-bottom: 20px;
}
.blog-sidebar__cta .btn {
  width: 100%;
  justify-content: center;
}

.sidebar-cat-list {
  list-style: none;
}
.sidebar-cat-list li {
  border-bottom: 1px solid hsl(40, 15%, 88%);
}
.sidebar-cat-list li:last-child {
  border-bottom: none;
}
.sidebar-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9rem;
  color: hsl(150, 10%, 38%);
  transition: color 0.2s ease;
}
.sidebar-cat-list a:hover {
  color: hsl(152, 42%, 24%);
}
.sidebar-cat-list a span {
  font-size: 0.75rem;
  color: hsl(150, 5%, 56%);
  background: hsl(40, 20%, 97%);
  padding: 2px 8px;
  border-radius: 100px;
}

.sidebar-recent-list {
  list-style: none;
}
.sidebar-recent-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid hsl(40, 15%, 88%);
}
.sidebar-recent-list li:last-child {
  border-bottom: none;
}
.sidebar-recent-list__thumb {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: hsl(40, 20%, 97%);
}
.sidebar-recent-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-recent-list__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(150, 20%, 12%);
  line-height: 1.35;
  transition: color 0.2s ease;
}
.sidebar-recent-list__title:hover {
  color: hsl(148, 30%, 40%);
}
.sidebar-recent-list__date {
  display: block;
  font-size: 0.75rem;
  color: hsl(150, 5%, 56%);
  margin-top: 4px;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
}
.blog-pagination a, .blog-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid hsl(40, 15%, 88%);
  color: hsl(150, 10%, 38%);
  background: #ffffff;
  transition: all 0.2s ease;
}
.blog-pagination a:hover {
  border-color: hsl(152, 42%, 24%);
  color: hsl(152, 42%, 24%);
}
.blog-pagination .current {
  background: hsl(152, 42%, 24%);
  border-color: hsl(152, 42%, 24%);
  color: #ffffff;
}
.blog-pagination .prev, .blog-pagination .next {
  padding: 0 16px;
  gap: 6px;
}

.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: hsl(150, 5%, 56%);
}
.blog-empty svg {
  margin: 0 auto 16px;
}
.blog-empty p {
  font-size: 1rem;
  color: hsl(150, 10%, 38%);
}
