/* Blog Listing Styles */
.blogs-section {
  padding: 80px 0;
}

.blog-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.blog-image {
  position: relative;
  overflow: hidden;
}

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

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

.blog-category {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 2;
}

.blog-category a {
  background-color: #4caf50;
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.blog-category a:hover {
  background-color: #388e3c;
}

.blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.blog-meta span {
  margin-right: 15px;
}

.blog-meta i {
  margin-right: 5px;
  color: #4caf50;
}

.blog-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-card h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card h3 a:hover {
  color: #4caf50;
}

.blog-card p {
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.read-more {
  color: #4caf50;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: #388e3c;
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Sidebar Styles */
.blog-sidebar {
  margin-bottom: 30px;
}

.sidebar-widget {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 30px;
}

.sidebar-widget h4 {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4caf50;
  position: relative;
}

.category-list li {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.category-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.category-list a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-list a:hover,
.category-list a.active {
  color: #4caf50;
}

.category-count {
  background-color: #f5f5f5;
  color: #666;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.category-list a:hover .category-count,
.category-list a.active .category-count {
  background-color: #4caf50;
  color: #fff;
}

.recent-posts li {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-post-image {
  width: 80px;
  height: 60px;
  margin-right: 15px;
  overflow: hidden;
  border-radius: 5px;
}

.recent-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent-post-image:hover img {
  transform: scale(1.1);
}

.recent-post-info {
  flex: 1;
}

.recent-post-info h6 {
  margin-bottom: 5px;
  line-height: 1.4;
}

.recent-post-info h6 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.recent-post-info h6 a:hover {
  color: #4caf50;
}

.post-date {
  font-size: 12px;
  color: #888;
}

/* Pagination Styles */
.pagination-container {
  margin-top: 40px;
}

.pagination .page-link {
  color: #4caf50;
  border-color: #e9e9e9;
  margin: 0 3px;
  border-radius: 4px;
}

.pagination .page-item.active .page-link {
  background-color: #4caf50;
  border-color: #4caf50;
}

.pagination .page-link:hover {
  background-color: #f5f5f5;
  color: #388e3c;
}

/* Blog Detail Styles */
.blog-detail-section {
  padding: 80px 0;
}

.blog-title {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.blog-featured-image {
  margin-bottom: 30px;
}

.blog-featured-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-content {
  line-height: 1.8;
  color: #444;
  margin-bottom: 30px;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.blog-content p {
  margin-bottom: 20px;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.blog-content li {
  margin-bottom: 10px;
}

.blog-content blockquote {
  border-left: 4px solid #4caf50;
  padding: 15px 20px;
  background-color: #f9f9f9;
  margin: 20px 0;
  font-style: italic;
}

.blog-tags {
  margin-bottom: 30px;
}

.blog-tags h4 {
  margin-bottom: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background-color: #f5f5f5;
  color: #666;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tag:hover {
  background-color: #4caf50;
  color: #fff;
}

.blog-share {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.blog-share h4 {
  margin-bottom: 15px;
}

.social-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-share a {
  margin-right: 10px;
}

.related-blogs h3 {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #4caf50;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .blog-sidebar {
    margin-top: 50px;
  }
}

@media (max-width: 767px) {
  .blog-title {
    font-size: 28px;
  }

  .blog-meta span {
    display: block;
    margin-bottom: 5px;
  }

  .social-share {
    flex-direction: column;
  }

  .social-share a {
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
  }
}
