/* Blog Layout Styles */
.blog-container {
  width: 100%;
  overflow-x: hidden;
}

/* Typography Styles */
.prose h2 {
  color: #1E3A8A;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  line-height: 1.3;
}

.prose h3 {
  color: #1E3A8A;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.prose p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.prose ul {
  margin-bottom: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: #3B82F6;
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

.prose blockquote {
  border-left: 4px solid #3B82F6;
  background-color: #F0F9FF;
  padding: 1rem 1.5rem;
  font-style: italic;
  margin: 1.5rem 0;
}

.prose img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin: 2rem 0;
}

/* Fix for line-clamp compatibility across browsers */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.8em; /* Fallback for non-webkit browsers */
  /* Mozilla support */
  display: -moz-box;
  -moz-line-clamp: 2;
  -moz-box-orient: vertical;
  /* Standard support (future-proofing) */
  display: box;
  line-clamp: 2;
  box-orient: vertical;
}

@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
}

/* Blog Content Cards */
.blog-card {
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Author Box */
.author-avatar {
  transition: all 0.3s ease;
}

.author-avatar:hover {
  transform: scale(1.05);
}

/* Category Badges */
.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #EFF6FF;
  color: #1E3A8A;
  transition: all 0.2s;
}

.category-badge:hover {
  background-color: #DBEAFE;
}

/* Blog Header Animation */
.blog-header {
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
