/* Admin-created blog posts on blog.html */
.dp-custom-blogs-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.dp-custom-blogs-heading {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9394a1;
  margin-bottom: 16px;
}

.dp-custom-blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.dp-blog-card {
  display: flex;
  flex-direction: column;
  background: #fafafa;
  border: 1px solid #ececf0;
  border-radius: 16px;
  overflow: hidden;
  color: #292e4c;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dp-blog-card:hover {
  border-color: #017eff;
  box-shadow: 0 8px 24px rgba(1, 126, 255, 0.1);
  transform: translateY(-2px);
}

.dp-blog-card__image {
  aspect-ratio: 16 / 9;
  background: #e8eef5 center / cover no-repeat;
}

.dp-blog-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.dp-blog-card__date {
  font-size: 12px;
  color: #9394a1;
}

.dp-blog-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.dp-blog-card__excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(41, 46, 76, 0.72);
}

.dp-blog-card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: #017eff;
}

/* Single post page */
.dp-blog-post-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.dp-blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #017eff;
  margin-bottom: 24px;
}

.dp-blog-post-back:hover {
  text-decoration: underline;
}

.dp-blog-post-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #e8eef5;
  margin-bottom: 28px;
  overflow: hidden;
}

.dp-blog-post-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dp-blog-post-page h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #292e4c;
}

.dp-blog-post-meta {
  font-size: 14px;
  color: #9394a1;
  margin-bottom: 28px;
}

.dp-blog-post-content {
  font-size: 17px;
  line-height: 1.7;
  color: #292e4c;
}

.dp-blog-post-content p {
  margin-bottom: 1.1em;
}

.dp-blog-post-content p:last-child {
  margin-bottom: 0;
}

.dp-blog-post-empty {
  text-align: center;
  padding: 80px 20px;
  color: #9394a1;
}

.dp-blog-post-empty h1 {
  color: #292e4c;
  margin-bottom: 12px;
}

@media (max-width: 743.98px) {
  .dp-custom-blogs-section {
    padding: 0 16px;
    margin-bottom: 28px;
  }

  .dp-custom-blogs-grid {
    grid-template-columns: 1fr;
  }
}
