/* Blogs Page Styles */

.breadcrumb {
  background: transparent;
}

/* Blog Header */
.blogs-header {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
}

.blogs-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
}

.blogs-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* Blogs Content Layout */
.blogs-content {
  display: flex;
  gap: 40px;
  margin: 30px 0;
}

.blog-posts {
  flex: 3;
}

.blog-sidebar {
  flex: 1;
}

.blog-post .read-more {
  display: inline-block;
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid #007bff;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.blog-post .read-more:hover {
  background-color: #007bff;
  color: white;
}


/* Featured Post */
.featured-post {
  display: flex;
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.featured-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-post .post-image {
  flex: 1;
  max-width: 400px;
  overflow: hidden;
}

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

.featured-post:hover .post-image img {
  transform: scale(1.05);
}

.featured-post .post-content {
  flex: 2;
  padding: 30px;
}

.featured-post .post-meta {
  margin-bottom: 15px;
}

.featured-post .post-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.featured-post .post-title a {
  color: #1c2e5c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-post .post-title a:hover {
  color: #007bff;
}

.featured-post .post-excerpt {
  font-size: 1.1rem;
  color: #5a5655;
  line-height: 1.6;
  margin-bottom: 20px;
}


/* Posts Grid */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-post {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.blog-post:not(:first-child) {
    margin-bottom: 15px; 
}

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

.blog-post .post-image {
  flex: 1;
  max-width: 300px;
  overflow: hidden;
}

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

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

.blog-post .post-content {
  flex: 2;
  padding: 20px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.post-category {
  color: #007bff;
  font-weight: 600;
}

.post-date {
  color: #888;
}

.blog-post .post-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

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

.blog-post .post-title a:hover {
  color: #007bff;
}

.post-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 0 30px;
  gap: 10px;
}

.pagination a {
  display: inline-block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.pagination .dots {
  padding: 10px 5px;
  color: #888;
}

/* Sidebar */
.blog-sidebar {
  padding: 20px;
  border-left: 1px solid #eee;
}

.sidebar-widget {
  margin-bottom: 40px;
}

.sidebar-widget h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007bff;
  color: #333;
}

/* Search Form */
.sidebar-widget .search-form {
  display: flex;
  margin-bottom: 20px;
}

.sidebar-widget .search-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.sidebar-widget .search-form button {
  padding: 12px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sidebar-widget .search-form button:hover {
  background-color: #0056b3;
}

.authors-list-img {
	max-width: 65px;
	border-radius: 50%;
}

/* Categories List */
.categories-list {
  list-style: none;
  padding: 0;
}

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

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

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

.categories-list a:hover {
  color: #007bff;
}

.categories-list span {
  color: #888;
}

/* Recent Posts */
.recent-posts {
  list-style: none;
  padding: 0;
}

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

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

.recent-post-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
}

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

.recent-post-content h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

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

.recent-post-content h4 a:hover {
  color: #007bff;
}

.recent-post-content .post-date {
  font-size: 0.85rem;
  color: #888;
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
   max-height: 800px;
  overflow-y: auto;
}

.tags-cloud a {
  display: inline-block;
  padding: 8px 15px;
  background-color: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tags-cloud a:hover {
  background-color: #007bff;
  color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
  .blogs-content {
    flex-direction: column;
  }
  
  .blog-sidebar {
    border-left: none;
    border-top: 1px solid #eee;
    padding-top: 40px;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-post {
    flex-direction: column;
  }
  
  .featured-post .post-image {
    max-width: 100%;
    height: 300px;
  }
  
  .featured-post .post-content {
    padding: 20px;
  }
  
  .featured-post .post-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .blogs-header {
    margin: 20px 0;
    padding: 10px;
  }
  
  .blogs-header h1 {
    font-size: 2rem;
  }
  
  .blogs-header p {
    font-size: 1rem;
  }
  
  .featured-post {
    margin-bottom: 30px;
  }
  
  .posts-grid {
    gap: 20px;
  }
  
  .blog-post {
    flex-direction: column;
  }
  
  .blog-post .post-image {
    max-width: 100%;
    height: 250px;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
  
  .pagination a,
  .pagination .dots {
    margin: 5px;
  }
}

@media (max-width: 576px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-post .post-content {
    padding: 15px;
  }
  
  .featured-post .post-title {
    font-size: 1.3rem;
  }
  
  .featured-post .post-image {
    height: 250px;
  }
  
  .blog-post .post-content {
    padding: 15px;
  }
  
  .blog-post .post-title {
    font-size: 1.1rem;
  }
  
  .blog-post .post-image {
    height: 200px;
  }
  
  .sidebar-widget h3 {
    font-size: 1.2rem;
  }
  
  .recent-posts li {
    gap: 10px;
  }
  
  .recent-post-image {
    width: 60px;
    height: 60px;
  }
}