
.blog-card {
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(50, 30, 90, 0.12) !important;
}

.blog-image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f4f1fb;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-card .card-body {
  padding: 24px;
}

.blog-card .badge {
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
}

.blog-card .card-title {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
  color: #211638;
  margin-bottom: 12px;
}

.blog-card .card-text {
  font-size: 15px;
  line-height: 1.7;
}

.blog-card .btn-outline-primary {
  color: #6534c7;
  border-color: #6534c7;
  border-radius: 6px;
  padding: 8px 14px;
}

.blog-card .btn-outline-primary:hover {
  background: #6534c7;
  color: #ffffff;
  border-color: #6534c7;
}


.blog-detail-section {
  background: #f8faf9;
}

.blog-detail-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
}

.blog-detail-image {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.blog-detail-content {
  padding: 32px;
}

.blog-category {
  background: #f0eaff;
  color: #6934c5;
  padding: 9px 14px;
  border-radius: 30px;
  font-weight: 500;
}

.blog-detail-title {
  color: #24183b;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #777;
  font-size: 14px;
}

.blog-detail-content p,
.blog-detail-content li {
  color: #5d5b65;
  font-size: 16px;
  line-height: 1.85;
}

.blog-detail-content h3 {
  color: #24183b;
  font-size: 23px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 14px;
}

/* Sticky right sidebar */
.related-blogs-sticky {
  position: sticky;
  top: 24px; 
}

.related-title {
  color: #24183b;
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.related-blog-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 12px;
  background: #ffffff;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #f0edf5;
  transition: border-color 0.25s ease,
              transform 0.25s ease;
}

.related-blog-card:hover {
  border-color: #b69be8;
  transform: translateY(-2px);
}

.related-blog-card img {
  width: 105px;
  min-width: 105px;
  height: 105px;
  object-fit: cover;
  border-radius: 10px;
}

.related-blog-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.related-blog-content span {
  color: #703bc8;
  background: #f3edff;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.related-blog-content h6 {
  color: #24183b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
}

.related-blog-content small {
  color: #703bc8;
  font-size: 12px;
}

/* Responsive layout */
@media (max-width: 991.98px) {
  .related-blogs-sticky {
    position: static;
  }

  .blog-detail-image {
    height: 320px;
  }

  .blog-detail-content {
    padding: 24px;
  }
}

@media (max-width: 575.98px) {
  .blog-detail-image {
    height: 230px;
  }

  .blog-detail-content {
    padding: 20px;
  }

  .related-blog-card img {
    width: 85px;
    min-width: 85px;
    height: 90px;
  }
}
