/* Blog Post Detail Styles */
.blog-post-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.back-link {
  margin-bottom: 2rem;
}

.back-link a {
  color: #555;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s;
}

.back-link a:hover {
  color: #e05c41;
}

.blog-post {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.blog-post-header {
  padding: 2rem 2rem 1rem;
}

.blog-post-header h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.3;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #777;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.tag {
  background-color: #f0f0f0;
  color: #555;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
}

.featured-image {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px;
}

.blog-post-content {
  padding: 0 2rem 2rem;
  line-height: 1.7;
  color: #444;
}

.blog-post-content h2 {
  margin: 2rem 0 1rem;
  color: #333;
  font-size: 1.6rem;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.blog-post-content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.related-posts {
  margin-top: 3rem;
}

.related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.related-card:hover {
  transform: translateY(-5px);
}

.related-image {
  height: 150px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-content {
  padding: 15px;
  flex: 1;
}

.related-content h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-content span {
  font-size: 0.8rem;
  color: #777;
}

@media (max-width: 768px) {
  .blog-post-header h1 {
    font-size: 1.8rem;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .blog-post-header,
  .blog-post-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .blog-post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}
.related-posts {
    margin-top: 30px;
    padding: 20px;
    /* background-color: #f7f7f7; */
    /* border: 1px solid #ddd; */
    border-radius: 4px;
}

.related-posts h2 {
    /* font-family: 'Georgia', serif; */
    font-size: 2rem;
    text-transform: uppercase;
    color: #4A90E2;
    margin-bottom: 15px;
    letter-spacing: 1px;
    position: relative;
}

.related-posts h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #4A90E2, #50E3C2);
    display: block;
    margin-top: 10px;
    border-radius: 2px;
}

.related-posts ul {
    list-style: none;
    padding: 0;
}

.related-posts ul li {
    margin-bottom: 10px;
}

.related-posts ul li a {
    text-decoration: none;
    color: #007acc;
    transition: color 0.3s;
}

.related-posts ul li a:hover {
    color: #005b99;
}

thead.bg-primary th {
    color: #000 !important;
}