/* =============================================================================
   BLOG CARDS (.blog_card) - Bootstrap-compatible
   ============================================================================= */

.blog_card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.blog_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Card image wrapper with position relative for absolute positioning of badges */
.card-image-wrapper {
  position: relative;
  overflow: hidden;
}

/* Card image */
.blog_card .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  display: block;
}

/* Read time badge - positioned in top-left corner of image */
.read-time-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(31, 31, 31, 0.85);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.read-time-badge i {
  font-size: 0.85rem;
}

/* Share button - positioned in top-right corner of image */
.share-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #1f60c2;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.share-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn:focus-visible {
  outline: 2px solid #1f60c2;
  outline-offset: 2px;
}

/* Card body - flex column to push tags to bottom */
.blog_card .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

/* Card title */
.blog_card .card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1f1f1f;
  margin: 0;
  line-height: 1.4;
}

/* Card text (description) */
.blog_card .card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.blog_card .card-text.text-muted {
  font-size: 0.85rem;
  color: #6c757d !important;
}

/* Tags container */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tags-container .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  background-color: rgba(31, 96, 194, 0.1) !important;
  color: #1f60c2 !important;
  font-weight: 500;
  border-radius: 0.25rem;
}

/* Animation for filtered cards */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth transitions for blog cards */
.blog_card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
