.news-carousel-wrapper {
    position: relative;
    overflow: hidden;
  }

  .news-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
  }

  .news-carousel-item {
    flex: 0 0 calc(33.333% - 13.33px); /* 3 per row with 20px gap */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .news-carousel-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  .news-carousel-caption {
    padding: 1rem;
  }

  .news-carousel-caption h5 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
  }

  .news-carousel-caption p {
    margin: 0;
    color: #555; /* soft gray for visibility */
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .carousel-button {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    border: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .carousel-button svg {
    width: 24px;
    height: 24px;
  }

  .carousel-button.prev {
    left: -25px;
  }

  .carousel-button.next {
    right: -25px;
  }

  @media (max-width: 768px) {
    .news-carousel-item {
      flex: 0 0 100%;
    }
  }


/* Most Popular Section Starts  */
  .thumbnail img {
    width: 100%;
    height: 250px; /* Fixed height */
    object-fit: cover; /* Ensures the image covers the space without distortion */
    }

    /* Specific adjustments for the most popular posts */
    #most-popular-center .item .thumbnail img {
    width: 100%;
    height: 250px; /* Same height for consistency */
    object-fit: cover;
    }

    /* Optional: Adjust for responsiveness */
    @media (max-width: 768px) {
    #most-popular-center .item .thumbnail img {
    height: 200px; /* Smaller height on mobile devices */
    }
    }

    @media (min-width: 768px) {
    #most-popular-center .item .thumbnail img {
    height: 250px; /* Standard height for larger screens */
    }
    }

    /* Most Popular Section Ends  */
