.filter-btn.active {
  background-color: #0e024d;
  color: white;
}
.article-card {
  min-height: 250px;
}
.article-card img {
  max-height: 200px;
  width: 100%;
  object-fit: cover;
}

/* Add to your CSS file */
.pagination {
  margin-top: 2rem;
}

.page-item.active .page-link {
  background-color: #6c757d;
  border-color: #6c757d;
}

.page-link {
  color: #6c757d;
}
.filters {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.category-filter,
.sort-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-group-sm .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Add to your CSS file */
.category-filter {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
}

.category-badge {
  background: #eee;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8em;
  margin-right: 10px;
}

.article-meta {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 5px;
}
div.article-list a{
    text-decoration: none;
    color: black;
    margin: 0.5rem 1rem;
}
div.article-list a:hover{
    background-color: rgb(247, 247, 242);
    text-decoration: none;
    color: black;
    box-shadow: 1px 2px 4px ;
}
.article-item {
  text-align: right;
  width: 300px;
  height: auto; 
  border: 1px ridge gray;
  /* margin: 1rem; */
}

.article-item p{
    padding: 5px;
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ... at end */
}


h2{
    color: black;
    font-size: 1.3rem;
    padding: 10px;
    text-align: justify;
    /* width: 200px;             Set fixed width */
      
}

@media (max-width: 400px) {

  /*div{*/
  /*  overflow: hidden;*/
  /*}*/
  
  div.filters, div.sort-filter{
    padding: 0.2rem !important;
    height: auto !important;
    display: flex;
    flex-wrap: wrap;
  }
  h2{
    font-size: 1.2rem;
  }
  p{
    font-size: 1rem;
  }
  
  div.article-item{
    width: 250px;
    margin-bottom: 0.5rem;
  }
  div.article-list a{
    margin: 0;
  }
  div.article-list{
   flex-direction: column;
  }
}