.nav-link:hover,
.nav-link.active {
  color: #f97316 !important;
}

/* Main Content Area */
.blog-listing {
  padding: 60px 0;
  background: #f9fafb;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #dc2626 0%, #f97316 100%);
  border-image-slice: 1;
}

/* Categories */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 1rem;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem;
  background: #f9fafb;
  border-radius: 10px;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-list a:hover,
.category-list a.active {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #dc2626;
  padding-left: 1.2rem;
}

.category-list a i {
  color: #f97316;
  margin-right: 0.8rem;
}

.category-count {
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  color: white;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Recent Posts */
.recent-post {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

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

.recent-post-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-post-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.recent-post-content h4 a {
  color: #1f2937;
  text-decoration: none;
  transition: all 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.recent-post-date {
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  align-items: center;
}

.recent-post-date i {
  margin-right: 0.4rem;
  color: #f97316;
}

/* Blog Cards */
.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.blog-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

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

.blog-card-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.blog-card-meta-item {
  display: flex;
  align-items: center;
}

.blog-card-meta-item i {
  margin-right: 0.4rem;
  color: #f97316;
}

.blog-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

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

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

.blog-card-excerpt {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
}

.read-more {
  color: #dc2626;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #f97316;
  gap: 0.5rem;
}

.read-more i {
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

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

.blog-card-views {
  color: #6b7280;
  font-size: 0.9rem;
}

.blog-card-views i {
  color: #f97316;
  margin-right: 0.4rem;
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pagination {
  gap: 0.5rem;
}

.pagination .page-item .page-link {
  border: 2px solid #e5e7eb;
  color: #4b5563;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f97316;
  color: #dc2626;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  border-color: transparent;
  color: white;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.5;
}

/* Search Widget */
.search-widget {
  position: relative;
}

.search-widget input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-widget input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
}

.search-widget button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-widget button:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Tags */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tag {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #4b5563;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.tag:hover {
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  color: white;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
  padding: 3rem 0 1.5rem;
}

footer h6 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #f97316;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.7rem;
}

footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

footer ul li a:hover {
  color: #f97316;
  padding-left: 5px;
}

.social-links a {
  display: inline-flex;
  width: 45px;
  height: 45px;
  background: rgba(249, 115, 22, 0.2);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  margin-right: 0.7rem;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 991px) {
  .page-header h1 {
    font-size: 2.2rem;
  }

  .sidebar {
    position: relative;
    top: 0;
    margin-top: 3rem;
  }

  .navbar-collapse {
    background: rgba(31, 41, 55, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  .page-header h1 {
    font-size: 1.8rem;
  }

  .blog-card h3 {
    font-size: 1.3rem;
  }

  .blog-card-content {
    padding: 1.5rem;
  }
}
