/* Blog specific styles */

.blog-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 8rem 0 4rem;
  color: white;
  text-align: center;
}

.blog-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.blog-hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.blog-content {
  padding: 4rem 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Featured Article */
.featured-article {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
  transition: transform 0.3s ease;
}

.featured-article:hover {
  transform: translateY(-5px);
}

.featured-article .article-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.featured-article .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-article .article-category {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: #ff6b35;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
}

.featured-article .article-content {
  padding: 2.5rem;
}

.featured-article .article-content h2 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  line-height: 1.3;
}

.featured-article .article-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #666;
}

.featured-article .article-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.featured-article .article-meta span {
  color: #999;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-article .article-meta i {
  color: #667eea;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: fit-content;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card .blog-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.blog-card .blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #667eea;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.blog-card .blog-content h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

.blog-card .blog-content p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-card .blog-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.blog-card .blog-meta span {
  color: #999;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card .blog-meta i {
  color: #667eea;
  width: 14px;
}

.blog-card .blog-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.blog-card .blog-link:hover {
  color: #764ba2;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.page-link:hover:not(.disabled) {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.page-link.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.page-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

.sidebar-widget h3 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

/* Search Form */
.search-form {
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 2px solid #eee;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.search-form input:focus {
  outline: none;
  border-color: #667eea;
}

.search-form button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #667eea;
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-form button:hover {
  background: #764ba2;
}

/* Category List */
.category-list {
  list-style: none;
  padding: 0;
}

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

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.category-list a:hover {
  background: #f8f9fa;
  color: #667eea;
}

.category-list span {
  background: #f0f0f0;
  color: #999;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* Recent Posts */
.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.recent-post img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.recent-content h4 {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.recent-content span {
  color: #999;
  font-size: 0.8rem;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: #f8f9fa;
  color: #666;
  text-decoration: none;
  border-radius: 15px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #667eea;
  color: white;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.newsletter h3 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.newsletter p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.newsletter-form .btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.newsletter-form .btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Navigation active state */
.nav-link.active {
  color: #667eea;
}

.nav-link.active::after {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .blog-sidebar {
    position: static;
    order: -1;
  }

  .sidebar-widget {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 6rem 0 3rem;
  }

  .blog-hero-content h1 {
    font-size: 2.5rem;
  }

  .blog-content {
    padding: 3rem 0;
  }

  .featured-article .article-content {
    padding: 1.5rem;
  }

  .featured-article .article-content h2 {
    font-size: 1.5rem;
  }

  .featured-article .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-widget {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .blog-hero-content h1 {
    font-size: 2rem;
  }

  .featured-article .article-image {
    height: 200px;
  }

  .featured-article .article-content {
    padding: 1rem;
  }

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

  .pagination {
    flex-wrap: wrap;
  }

  .page-link {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {

  .blog-card,
  .sidebar-widget {
    background: #2a2a2a;
    color: #e0e0e0;
  }

  .blog-card h3,
  .sidebar-widget h3 {
    color: #f0f0f0;
  }

  .search-form input {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
  }
}

/* Print styles */
@media print {

  .blog-sidebar,
  .pagination {
    display: none;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-card,
  .featured-article {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}