/* ========================================
   BLOGS PAGE STYLES
======================================== */

.text-green{
  color: #7ab644;
}
.carousel-caption{
    padding-top: 100px;
}

@media (max-width: 768px){
    .carousel-caption {
      padding-top: 40px;
      text-align: center;
    }
    .carousel-caption h1 {
        font-size: 32px;
    }
    .carousel-caption p {
        font-size: 16px;
    }
}
/* Blog Filters */
.blog-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.filter-btn {
  padding: 12px 30px;
  background: transparent;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  border-color: #7ab644;
  color: #7ab644;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(122, 182, 68, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, #7ab644 0%, #5a8c32 100%);
  border-color: #7ab644;
  color: white;
  box-shadow: 0 5px 20px rgba(122, 182, 68, 0.3);
}

/* Blog Card */
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #7ab644 0%, #5a8c32 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: #f5f5f5;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.blog-card-date {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  color: #333;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-card-body {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
  color: #7ab644;
}

.blog-card-excerpt {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7ab644;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

.blog-card:hover .read-more-btn i {
  transform: translateX(5px);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state-icon {
  font-size: 80px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 24px;
  color: #666;
  margin-bottom: 10px;
}

.empty-state p {
  color: #999;
  font-size: 16px;
}

/* Pagination */
#pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.pagination {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination .page-item {
  list-style: none;
}

.pagination .page-link {
  padding: 12px 20px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.pagination .page-link:hover {
  border-color: #7ab644;
  color: #7ab644;
  background: rgba(122, 182, 68, 0.05);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #7ab644 0%, #5a8c32 100%);
  border-color: #7ab644;
  color: white;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading Spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-card-image {
    height: 200px;
  }

  .blog-card-body {
    padding: 20px;
  }

  .blog-card-title {
    font-size: 1.25rem;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .blog-filters {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .blog-card-date {
    font-size: 12px;
    padding: 8px 16px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
