/* Blog Styles */
.blog-hero {
  text-align: center;
  padding: 60px 20px;
  background-color: #f8f8f8;
  margin-bottom: 40px;
}

.blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto 15px;
  display: flex;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

#blog-search {
  flex-grow: 1;
  padding: 15px 20px;
  font-size: 1.1rem;
  border: none;
  outline: none;
  border-radius: 50px 0 0 50px;
  transition: all 0.3s ease;
}

#blog-search:focus {
  box-shadow: inset 0 0 0 2px #333;
}

#search-button {
  background-color: #333;
  color: white;
  border: none;
  padding: 0 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#search-button:hover {
  background-color: #555;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.popular-tags {
  color: #666;
  font-size: 0.9rem;
  margin-right: 5px;
}

.tag-pill {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-pill:hover {
  background-color: #eee;
  color: #333;
}

.blog-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  padding: 0 20px;
}

.category-btn {
  background: none;
  border: 2px solid #ddd;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background-color: #f1f1f1;
}

.category-btn.active {
  background-color: #333;
  color: white;
  border-color: #333;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.loading {
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
  color: #666;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.blog-post {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.blog-card-clickable:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}
.blog-tag {
  background: #e0e7ff;
  color: #3b3b5c;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: lowercase;
}


.blog-post:hover {
  transform: translateY(-5px);
}

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

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

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

.blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  display: inline-block;
  padding: 4px 12px;
  background-color: #f0f0f0;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: 600;
  color: #555;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #888;
  margin-top: auto;
}

.blog-date {
  font-style: italic;
}

.blog-read-more {
  color: #333;
  background: #f3f4f6;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.blog-read-more:hover {
  background: #e0e7ef;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-read-more:hover {
  color: #555;
  text-decoration: underline;
}

#no-posts-message {
  text-align: center;
  padding: 50px 20px;
  color: #666;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 576px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-hero h1 {
    font-size: 2rem;
  }
  
  .blog-hero p {
    font-size: 1rem;
  }
}

/* Footer Styles */
.footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #999;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 10px;
  color: #ccc;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  margin-top: 20px;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #999;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    margin-bottom: 30px;
  }
}

