/* Legacy category button - keeping for backward compatibility */
.category-btn {
  background-color: #CEE8BD;
  color: #6D9852;
  border: none;
  font-size: 14px;
  padding: 4px 16px;
  border-radius: 15px;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.article-title {
  font-weight: 900 !important;
  color: #000 !important;
  font-size: 24px !important;
  line-height: 1.0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  font-size: 14px;
  color: #5D5D5D;
}

.pagination .page-link {
  border-color: #0c61f2;
  border-radius: unset !important;
}

.page-link-nxt-btn {
  border-radius: 4px;
  background: #377FFE;
  color: #ffffff;
}

.page-link-nxt-btn:hover {
  background: #0c61f2;
  color: #ffffff;
}

/* New card-based article styling */
.article-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  /* height: 100%; */
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
  min-height: 400px;
  max-height: 450px;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #c0c0c0;
}

.article-card .card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  height: 100%;
  background: white;
  min-height: 400px;
  max-height: 450px;
}

.article-card:hover .card {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #c0c0c0;
}

.article-image-wrapper {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.article-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.3s ease;
  display: block;
}

.article-card:hover .article-thumbnail {
  transform: scale(1.02);
}

.article-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: auto;
  /* min-height: 200px; */
}

.article-card a {
  color: inherit;
  text-decoration: none;
}

.article-card a:hover {
  color: inherit;
  text-decoration: none;
}

/* Article Content */
.article-excerpt {
  font-size: 18px !important;
  /* font-weight: 700 !important; */
  line-height: 1.4 !important;
  /* flex-grow: 1; */
  margin-bottom: 16px !important;
  margin-top: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  /* color: #666 !important; */
}

/* Category Tags - Refined Style */
.category-tag {
  background-color: #e8f5e8;
  color: #2e7d32;
  border: none;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 16px;
  display: inline-block;
  text-transform: capitalize;
  margin-bottom: 12px;
  text-align: left;
}

/* Author Meta */
.article-meta {
  margin-top: auto;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d0d0d0;
  flex-shrink: 0;
  margin-right: 8px;
}

.author-text {
  font-size: 12px;
  color: #999;
  font-weight: 500;
  text-align: left;
}

/* Article Title - Ensure left alignment */
.article-title {
  font-weight: 900 !important;
  color: #000 !important;
  font-size: 24px !important;
  line-height: 1.0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  margin-bottom: 12px;
}

/* Card body - Ensure left alignment */
.article-card .card-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  height: auto;
  text-align: left;
  align-items: flex-start;
}

/* Ensure all content inside card body is left-aligned */
.article-card .card-body > div {
  width: 100%;
  text-align: left;
}

/* Category tag container */
.article-card .card-body > div:first-child {
  margin-bottom: 8px;
}

/* Article title container */
.article-card .card-body h3 {
  width: 100%;
  margin-bottom: 12px;
}

/* Article excerpt container */
.article-card .card-body p {
  width: 100%;
  margin-bottom: 16px;
}

/* Article meta container */
.article-card .card-body .article-meta {
  width: 100%;
  margin-top: auto;
}

/* Section Title */
.section-title {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* Category Filter Bubbles - Updated Design */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 3rem;
  align-items: center;
}

.category-filter-btn {
  background-color: #f8f9fa;
  color: #6c757d;
  border: 1px solid #e9ecef;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.category-filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.category-filter-btn:hover::before {
  left: 100%;
}

.category-filter-btn:hover {
  background-color: #4285f4;
  color: white;
  border-color: #4285f4;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.category-filter-btn.active {
  background-color: #4285f4;
  color: white;
  border-color: #4285f4;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.category-filter-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

/* Results Count */
.results-count {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Pagination */
.pagination .page-link {
  border-color: #4285f4;
  border-radius: 8px !important;
  margin: 0 4px;
  color: #4285f4;
  font-weight: 500;
}

.pagination .page-item.active .page-link {
  background-color: #4285f4;
  border-color: #4285f4;
}

.page-link-nxt-btn {
  border-radius: 8px;
  background: #4285f4;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-link-nxt-btn:hover {
  background: #3367d6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* EV Section Styles */
.ev-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(158deg, #012152 28%, #003695 95%);
  color: white;
}

.ev-title {
  font-size: 48px;
  font-weight: 600;
}

.ev-subtitle {
  margin-bottom: 40px;
}

.ev-card {
  background-color: #012152;
  padding: 20px;
  font-size: 18px;
  border-radius: 10px;
  font-weight: 700;
  color: white;
  transition: all 0.3s ease-in-out;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ev-card:hover {
  background-color: #043b8d;
  transform: translateY(-5px);
}

.breadcrumb-item {
  font-size: 18px;
  color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-title {
    font-size: 36px;
    text-align: center;
  }
  
  .category-filters {
    justify-content: center;
    gap: 8px;
  }
  
  .category-filter-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
  
  .article-card {
    margin-bottom: 1.5rem;
  }
  
  .article-thumbnail {
    height: 180px;
  }
  
  .article-card .card-body {
    padding: 16px;
    min-height: 180px;
  }
  
  .article-title {
    font-size: 18px;
    min-height: 48px;
  }
  
  .article-excerpt {
    font-size: 13px;
    /* font-weight: 700 !important; */
  }
  
  .pagination {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 28px;
  }
  
  .category-filters {
    gap: 6px;
  }
  
  .category-filter-btn {
    font-size: 13px;
    padding: 8px 16px;
  }
  
  .article-card {
    margin-bottom: 1rem;
  }
  
  .article-thumbnail {
    height: 160px;
  }
  
  .article-card .card-body {
    padding: 14px;
    min-height: 160px;
  }
  
  .article-title {
    font-size: 16px;
    min-height: 40px;
  }
  
  .article-excerpt {
    font-size: 12px;
    /* font-weight: 700 !important; */
  }
  
  .author-text {
    font-size: 11px;
  }
}