section .container {
    margin-top: 8%;
    margin-bottom: 15px;
}
.error-data-message, .loading-data-message {
    margin-top: 32%;
    margin-bottom: 27%;
}
.pagination {
    text-align: center;
    padding-top: 25px;
}
.pagination li{
    display: inline-block;
    margin: 5px;
  }
  .active {
    color: var(--light-color);
  }
  .disable, .dots, .page-item a {
    display: inline-block;
    padding: 8px 20px; /* Same padding for all buttons */
    font-size: 14px;
    border-radius: 5px;
    background-color:var(--secondary-background-color);
  }
 .page-item {
   transition: 0.3s ease;
 }
 .page-item:hover {
    color: var(--light-color);
     transform: translateY(-2px); /* Up effect */
 }
 .previous-page:hover{
    transform: translateX(-5px);
  }
  .previous-page, .next-page{
    transition: 0.3s ease;
  }
  .next-page:hover{
    transform: translateX(5px);
  }
  @media screen and (min-width: 700px) {
    section .container {
      margin-top: 3.5%;
    }
  }
  
  .article-title,
.article-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-title {
    -webkit-line-clamp: 2; /* For PC, limit title to 2 lines */
}

.article-description {
    -webkit-line-clamp: 3; /* For PC, limit description to 3 lines */
}

@media (max-width: 768px) { /* For mobile screens */
    .article-title {
        -webkit-line-clamp: 3; /* For mobile, limit title to 3 lines */
    }

    .article-description {
        -webkit-line-clamp: 4; /* For mobile, limit description to 4 lines */
    }
}