/* Common styles for News and NewsDetail */
.news-item, .news-detail-item {
    display: flex;
    flex-direction: column;
    margin: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
  }
  
  .news-content, .news-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
    flex-grow: 1;
  }
  
  .news-title, .news-detail-title {
    margin: 10px 0;
  }
  
  .news-description, .news-detail-description {
    text-align: justify;
  }
  
  .news-btn, .news-detail-btn, #prevBtn, #nextBtn {
    display: inline-block;
    padding: 10px 20px;
    background-color: green;
    color: #ffffff;
    font-family: "Arial", sans-serif;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
  }
  
  .news-btn:hover, .news-detail-btn:hover, #prevBtn:hover, #nextBtn:hover {
    background-color: yellow;
    color: black;
  }

  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .pagination button {
    margin: 5px; /* Adjust this margin as needed */
  }
  
  
  /* Media queries for responsiveness */
  @media (min-width: 768px) {
    .news-item, .news-detail-item {
      flex-direction: row;
    }
  
    .news-image, .news-detail-image {
      max-width: 300px;
      height: 150px;
    }
  
    .news-content, .news-detail-content {
      margin-left: 20px;
      margin-top: 0; /* Adjust margin-top for horizontal layout */
    }
  }
  
  @media (min-width: 992px) {
    .news-item, .news-detail-item {
      width: 60%;
      margin: 20px auto;
    }
  
    .news-detail-image {
      max-width: 550px;
      height: auto;
    }
  }
  