.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
  }
  
  .slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
  }
  
  .slider-container {
    display: flex;
    transition: transform 0.5s ease;
    width: 1920px; /* Mengatur lebar slider container sesuai dengan layar */
    margin: 0 auto; /* Pusatkan slider container */
  }
  
  .slider-item {
    width: 640px; /* Mengatur lebar setiap slider item sesuai dengan layar */
  }
  
  .news-item {
    flex: 0 0 25%;
    margin-bottom: 20px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
  }
  
  .news-image {
    position: relative;
    overflow: hidden;
  }
  
  .news-image img {
    width: 100%;
    height: auto;
  }
  
  .news-details {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .news-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
  }
  
  .news-details p {
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  .news-details .description {
    display: none;
  }
  
  .news-item:hover .description {
    display: block;
  }
  
  .news-details .date,
  .news-details .category {
    margin-bottom: 10px;
  }
  
  .news-details a {
    display: inline-block;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    margin-top: 10px;
  }
  
  .news-details a:hover {
    color: #ff9a4d;
  }
  
  .prev,
  .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #fff;
    background-color: rgba(243, 148, 25, 0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
  }
  
  .prev {
    left: 10px;
  }
  
  .next {
    right: 10px;
  }