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 */
    }
}

/* ======================CSS for No Results================================ */
.author {
    padding-bottom: 10px;
    justify-content: center !important;
    text-align: center;
    margin: 15% auto 20% auto;
    max-width: 50%;
}
.author h1 {
    text-align: center;
    margin: 10px 40px;
    font-size: 30px;
}
.author p {
    text-align: center;
    margin: 0 10px;
    margin-bottom: 10px;
}
.return-btn {
    padding: 10px 20px;
    border: 2px solid;
    margin: auto;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}
.drbtn {
    margin-bottom: 15px;
    text-align: center;
}
.return-btn:hover {
    color: var(--light-color);
}
/* For devices smaller than 990px */
@media (max-width: 990px) {
    .author {
        max-width: 80%;
    }
}

/* For devices smaller than 600px */
@media (max-width: 600px) {
    .author {
        max-width: 100%;
    }
    
    .author h1 {
    font-size: 25px;
}
}

/* ======================CSS for No Keyword================================ */
    .search-box {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin: 12% auto 15% auto;
}

.search-box h1 {
    margin-bottom: 18px;
}

.search-form {
    display: inline-block;
    width: 100%;
    max-width: 700px;
}

.search-input {
    padding: 12px 14px;
    width: 100%;
    max-width: 500px;
    border: 2px solid var(--light-color-alt);
    outline: none;
    box-sizing: border-box;
}

.search-button {
    padding: 10px 18px;
    margin-top: 25px;
    border: none;
    background-color: var(--secondary-background-color);
    
    cursor: pointer;
}