/* Blog page specific styles */
.blog-page .site-header {
  top: 30px;
}

.blog-heading {
  background: var(--pale);
  padding: 190px 0 49px;
  text-align: center;
}

.blog-heading h1 {
  font-family: Sans, Yekan, Tahoma, sans-serif;
  font-size: 2.875rem;
  line-height: 1.6;
  color: var(--green);
}

.blog-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 10px;
}

.blog-section {
  padding-block: 48px 80px;
}

.blog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.blog-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 20px;
  flex: 1;
  max-width: 520px;
  box-shadow: 0 4px 20px #153b2308;
  transition: border-color .2s, box-shadow .2s;
}

.blog-search-box:focus-within {
  border-color: var(--leaf);
  box-shadow: 0 6px 25px #153b2318;
}

.blog-search-box svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}

.blog-search-box input {
  border: 0;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
}

.blog-count {
  font-size: 0.9rem;
  color: var(--leaf);
  font-weight: 700;
  white-space: nowrap;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 25px #153b2306;
  transition: transform .2s, box-shadow .2s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px #153b2315;
}

.blog-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f8f2;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

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

.blog-date {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #ffffffea;
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 2px 10px #00000015;
}

.blog-card-content {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-content h2 {
  font-family: Sans, Yekan, Tahoma, sans-serif;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 12px;
  transition: color .2s;
}

.blog-card:hover .blog-card-content h2 {
  color: var(--leaf);
}

.blog-card-content p {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 18px;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--leaf);
  margin-top: auto;
  transition: color .2s, gap .2s;
}

.blog-read-more:hover {
  color: var(--green);
  gap: 12px;
}

.blog-empty {
  text-align: center;
  padding: 60px 20px;
  font-size: 1.1rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .blog-heading {
    padding-top: 172px;
    padding-bottom: 40px;
  }
  .blog-heading h1 {
    font-size: 2.4rem;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .blog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-search-box {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .blog-page .site-header {
    top: 16px;
  }
  .blog-heading {
    padding-top: 140px;
    padding-bottom: 34px;
  }
  .blog-heading h1 {
    font-size: 1.875rem;
  }
  .blog-subtitle {
    font-size: 0.95rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .blog-card-content {
    padding: 18px 16px;
  }
}
