/* Blog Page Specific Styles */

/* Active nav link */
.nav-link.active {
  color: #000;
  font-weight: 600;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #000;
}

/* Breadcrumb */
.breadcrumb {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 12px 0;
  font-size: 13px;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #000;
}

.breadcrumb .separator {
  margin: 0 8px;
  color: #999;
}

.breadcrumb .current {
  color: #000;
  font-weight: 500;
}

/* Blog Main Layout */
.blog-main {
  padding: 32px 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Page Header */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #000;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  font-weight: bold;
  color: #000;
  margin-bottom: 12px;
}

.page-header p {
  color: #666;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Featured Blog Post */
.featured-blog {
  background: #fff;
  border: 1px solid #e9ecef;
  margin-bottom: 48px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.featured-blog:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.featured-blog img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.featured-content {
  padding: 32px;
}

.featured-content .blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #666;
  font-family: "Arial", sans-serif;
}

.featured-content .blog-meta span {
  position: relative;
}

.featured-content .blog-meta span:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -12px;
  color: #ccc;
}

.featured-content h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.3;
}

.featured-content h2 a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-content h2 a:hover {
  color: #666;
}

.featured-content p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
  font-family: "Arial", sans-serif;
}

.read-more:hover {
  color: #666;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.blog-item {
  background: #fff;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.blog-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.blog-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #e9ecef;
}

.blog-content-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #666;
  font-family: "Arial", sans-serif;
}

.blog-meta span {
  position: relative;
}

.blog-meta span:not(:last-child)::after {
  content: "•";
  position: absolute;
  right: -10px;
  color: #ccc;
}

.blog-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.4;
  flex-grow: 1;
}

.blog-item h3 a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-item:hover h3 a {
  color: #666;
}

.blog-item p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.read-time {
  font-size: 12px;
  color: #999;
  font-family: "Arial", sans-serif;
}

.blog-arrow {
  color: #ccc;
  font-size: 16px;
  transition: color 0.3s ease;
}

.blog-item:hover .blog-arrow {
  color: #000;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination-btn {
  padding: 10px 16px;
  border: 1px solid #e9ecef;
  background: #fff;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background: #f8f9fa;
  border-color: #000;
}

.pagination-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.pagination-btn.next {
  font-weight: 500;
}

/* Blog Sidebar */
.blog-sidebar {
  position: sticky;
  top: 24px;
}

.sidebar-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  padding: 16px 20px;
  margin: 0;
  border-bottom: 1px solid #e9ecef;
  background: #fff;
}

/* Author Spotlight */
.author-spotlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff;
}

.author-spotlight .sidebar-title {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.author-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-info h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
  color: #fff;
}

.author-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.author-posts {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Popular Blogs */
.popular-blogs {
  padding: 20px;
}

.popular-blog {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.popular-blog:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: "Arial", sans-serif;
}

.popular-content h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
}

.popular-content h4 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.popular-content h4 a:hover {
  color: #000;
}

.popular-views {
  font-size: 11px;
  color: #999;
  font-family: "Arial", sans-serif;
}

/* Topic Tags */
.topic-tags {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tag {
  display: inline-block;
  background: #fff;
  color: #666;
  padding: 6px 12px;
  font-size: 12px;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.topic-tag:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Newsletter */
.newsletter {
  background: #000 !important;
  color: #fff;
}

.newsletter .sidebar-title {
  background: #000;
  color: #fff;
  border-bottom-color: #333;
}

.newsletter p {
  padding: 0 20px 16px 20px;
  margin: 0;
  font-size: 14px;
  color: #ccc;
}

.newsletter-form {
  padding: 0 20px 20px 20px;
}

.newsletter-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #333;
  background: #fff;
  font-size: 14px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.newsletter-form button {
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #000;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.newsletter-form button:hover {
  background: #f0f0f0;
}

/* Recent Comments */
.recent-comments {
  padding: 20px;
}

.comment-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9ecef;
}

.comment-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.comment-author {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  margin-bottom: 4px;
}

.comment-text {
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin-bottom: 4px;
  line-height: 1.4;
}

.comment-post {
  font-size: 11px;
  color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .blog-main {
    padding: 24px 0;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .page-header p {
    font-size: 16px;
  }

  .featured-content {
    padding: 24px;
  }

  .featured-content h2 {
    font-size: 24px;
  }

  .featured-blog img {
    height: 200px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-item img {
    height: 180px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 4px;
  }

  .pagination-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 24px;
  }

  .featured-content {
    padding: 20px;
  }

  .featured-content h2 {
    font-size: 20px;
  }

  .featured-blog img {
    height: 160px;
  }

  .blog-item img {
    height: 160px;
  }

  .blog-content-inner {
    padding: 20px;
  }

  .blog-item h3 {
    font-size: 16px;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
  }

  .topic-tags {
    padding: 16px;
  }
}
.load-more {
  text-align: center;
  margin-top: 20px;
}
.load-more-btn {
  padding: 10px 20px;
  /* background-color: #007bff; */
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 16px;
}
.load-more-btn:hover {
  /* background-color: #0056b3; */
}
