/* Blog Page Specific Styles */
.blog-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.blog-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.blog-post {
  background-color: var(--white-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-post-img {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.blog-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post:hover .blog-post-img img {
  transform: scale(1.05);
}

.blog-post-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0047ab, #32cd32);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.blog-post-icon {
  font-size: 48px;
}

.blog-post-content {
  padding: 30px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--gray-color);
  font-size: 0.9rem;
}

.blog-post-meta span {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.blog-post-meta i {
  margin-right: 5px;
}

.blog-post-title {
  margin-bottom: 15px;
}

.blog-post-title a {
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.blog-post-title a:hover {
  color: var(--primary-color);
}

.blog-post-excerpt {
  margin-bottom: 20px;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-widget h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.search-form {
  display: flex;
}

.search-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 1rem;
}

.search-form button {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  padding: 0 20px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--dark-color);
}

.category-list a:hover {
  color: var(--primary-color);
}

.recent-post {
  display: flex;
  margin-bottom: 15px;
}

.recent-post:last-child {
  margin-bottom: 0;
}

.recent-post-img {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.recent-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0047ab, #32cd32);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.recent-post-icon {
  font-size: 24px;
}

.recent-post-info h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.recent-post-info a {
  color: var(--dark-color);
}

.recent-post-info a:hover {
  color: var(--primary-color);
}

.recent-post-date {
  color: var(--gray-color);
  font-size: 0.8rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 5px 15px;
  background-color: var(--light-color);
  border-radius: 5px;
  color: var(--dark-color);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.pagination a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 5px;
  background-color: var(--light-color);
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
  background-color: var(--primary-color);
  color: var(--white-color);
}

@media (max-width: 992px) {
  .blog-content {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}
