/* Blog Styles */

.bg-blog {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/discuss-image.jpg');
  background-size: cover;
  background-position: center;
}

/* Blog Cards */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-image-container {
  height: 220px;
  overflow: hidden;
}

.blog-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image-container img {
  transform: scale(1.05);
}

.blog-card .card-body {
  padding: 1.5rem;
}

.blog-card .card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #333;
}

.blog-card .post-meta {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #777;
}

.blog-card .card-text {
  color: #555;
  margin-bottom: 1.5rem;
}

.blog-card .read-more {
  font-weight: 600;
  color: white;
  text-decoration: none;
  position: relative;
}

.blog-card .read-more:after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #dd251e;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.blog-card .read-more:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
  position: relative;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  color: #333;
}

.widget-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50px;
  background-color: #dd251e;
}

/* Recent post item */
.recent-post-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-post-image {
  width: 70px;
  height: 70px;
  margin-right: 1rem;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.recent-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-content h6 {
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

.recent-post-content a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.recent-post-content a:hover {
  color: #dd251e;
}

.recent-post-content .post-date {
  font-size: 0.813rem;
  color: #777;
}

/* Search form */
.search-form .form-control {
  height: 50px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.search-form .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  background-color: #dd251e;
  border-color: #dd251e;
}

.search-form .btn:hover {
  background-color: #c02018;
  border-color: #c02018;
}

/* Contact card */
.contact-card {
  border-left: 4px solid #dd251e;
  background-color: #f8f9fa;
}

.contact-card h4 {
  color: #333;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-card p {
  color: #555;
  margin-bottom: 1.5rem;
}

/* Single blog post */
.single-blog-post {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.single-blog-image {
  height: 400px;
  overflow: hidden;
}

.single-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-blog-content {
  padding: 2rem;
}

.single-blog-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.single-blog-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.single-blog-meta .blog-date {
  color: #777;
  font-size: 0.938rem;
}

.blog-content {
  color: #444;
  line-height: 1.8;
  font-size: 1.063rem;
}

/* Blog tags */
.blog-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.blog-tags span {
  display: inline-block;
  background-color: #f5f5f5;
  color: #555;
  padding: 5px 15px;
  border-radius: 30px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.blog-tags span:hover {
  background-color: #dd251e;
  color: #fff;
  cursor: pointer;
}

/* Related posts */
.related-posts {
  margin-top: 3rem;
}

.related-posts h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.related-posts h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50px;
  background-color: #dd251e;
}

/* Share buttons */
.share-buttons h5 {
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.share-buttons h5:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 40px;
  background-color: #dd251e;
}

/* Responsive */
@media (max-width: 767px) {
  .single-blog-image {
    height: 250px;
  }

  .single-blog-content h1 {
    font-size: 1.5rem;
  }

  .blog-sidebar {
    margin-top: 2rem;
  }
}