/* Blog Title Section */
.blog-title-section {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 0;
  position: relative;
}

.blog-title-section::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 20px auto 0;
  border-radius: 2px;
}

.blog-category {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  font-weight: 600;
}

.blog-main-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin: 15px 0 20px;
  line-height: 1.3;
  font-weight: 700;
}

.blog-meta {
  display: flex;
  justify-content: center;
  gap: 25px;
  color: #6c757d;
  font-size: 0.95rem;
  margin-top: 15px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-meta i {
  color: var(--primary-color);
  font-size: 1rem;
}

/* Blog Article Content */
.blog-article {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #444;
}

.article-content h2 {
  color: var(--primary-color);
  margin: 2rem 0 1.5rem;
  font-size: 1.8rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Image Styles */
.blog-featured-image {
  margin: 0 0 40px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  max-width: 100%;
}

.blog-featured-image .featured-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  max-height: 500px;
  object-fit: cover;
}

.blog-featured-image:hover .featured-img {
  transform: scale(1.02);
}

/* Image Caption */
.image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
  margin: 10px 0 0;
  padding: 0 20px;
  font-style: italic;
}

/* Blog Layout */
.blog-container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  flex: 1;
  max-width: 800px;
}

.blog-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-title {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* Recent Posts */
.recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.recent-posts a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.recent-posts a:hover {
  color: var(--primary-color);
}

/* Categories */
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.categories-list a {
  display: flex;
  justify-content: space-between;
  color: var(--text-color);
  text-decoration: none;
}

.categories-list a:hover {
  color: var(--primary-color);
}

/* Brands */
.brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.brand-logo {
  background: white;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
}

.brand-logo img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.brand-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .blog-container {
    flex-direction: column;
  }
  
  .blog-sidebar {
    width: 100%;
  }
}

/* Additional styles for the single blog page */
.category-tag {
  background: rgba(255,255,255,0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: inline-block;
}

.related-posts {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.related-posts h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.related-card {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.3s ease;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.related-card:hover {
  transform: translateY(-5px);
}

.related-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-card h4 {
  padding: 20px;
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-article {
    font-size: 1rem;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
}
