/**
 * Blog-specific styles for Effcon International website
 */

/* Blog header section */
.blog-header {
  background-color: #1565c0;
  padding: 6rem 0 2rem;
  color: white;
  position: relative;
}

.blog-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Category filter */
.category-filter {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-top: -30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.category-filter a {
  margin: 0 0.5rem;
  color: #1565c0;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.category-filter a:hover {
  background-color: #e3f2fd;
}

.category-filter a.active {
  background-color: #1565c0;
  color: white;
}

/* Blog card styles */
.blog-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

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

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

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

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

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

.blog-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1565c0;
}

.blog-card-meta {
  margin-bottom: 1rem;
  color: #757575;
  font-size: 0.9rem;
}

.blog-card-excerpt {
  margin-bottom: 1rem;
  flex-grow: 1;
}

.blog-card-category {
  background-color: #e3f2fd;
  color: #1565c0;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Empty state */
.empty-message {
  padding: 3rem;
  text-align: center;
  background-color: #f5f5f5;
  border-radius: 8px;
  margin: 2rem 0;
}

/* Post styles */
.post-header {
  background-color: #1565c0;
  padding: 6rem 0 2rem;
  color: white;
  position: relative;
}

.post-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.post-header .breadcrumb {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.8);
}

.post-header .breadcrumb:before {
  color: rgba(255, 255, 255, 0.5);
}

.post-header .breadcrumb:last-child {
  color: white;
}

.post-meta {
  margin: 2rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.post-meta-item {
  margin-right: 1.5rem;
  color: #757575;
  display: inline-flex;
  align-items: center;
}

.post-meta-item i {
  margin-right: 0.5rem;
}

.post-category {
  background-color: #e3f2fd;
  color: #1565c0;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
}

.post-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin: 1rem 0 2rem;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  color: #1565c0;
}

.post-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #1565c0;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.post-content ul li {
  list-style-type: disc;
  margin-bottom: 0.5rem;
}

.post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem auto;
  display: block;
}

.post-content blockquote {
  border-left: 5px solid #1565c0;
  padding: 1rem 2rem;
  margin: 2rem 0;
  background-color: #f5f5f5;
  font-style: italic;
}

/* Related posts */
.related-posts {
  background-color: #f5f5f5;
  padding: 3rem 0;
  margin-top: 3rem;
}

.related-post-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all 0.3s ease;
}

.related-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.related-post-image {
  height: 150px;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-content {
  padding: 1rem;
}

.related-post-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1565c0;
}

/* CTA Section */
.cta-section {
  background-color: #1565c0;
  color: white;
  padding: 4rem 0;
  margin-top: 3rem;
}

/* Responsive adjustments */
@media only screen and (max-width: 992px) {
  .category-filter {
    text-align: center;
    padding: 0.5rem;
  }
  
  .category-filter a {
    margin: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    display: inline-block;
  }
  
  .blog-card-image {
    height: 180px;
  }
  
  .blog-header h1,
  .post-header h1 {
    font-size: 2rem;
  }
}

@media only screen and (max-width: 600px) {
  .blog-header,
  .post-header {
    padding: 5rem 0 1.5rem;
  }
  
  .blog-card-image {
    height: 150px;
  }
  
  .post-meta {
    flex-direction: column;
  }
  
  .post-meta-item {
    margin-bottom: 0.5rem;
  }
  
  .post-content {
    font-size: 1rem;
  }
  
  .post-content h2 {
    font-size: 1.5rem;
  }
  
  .post-content h3 {
    font-size: 1.3rem;
  }
}