  .top-bar{
    position: sticky;
    top: 0;
    left: 0;
    z-index: 5;
  }

    .blog-card {
    transition: transform 0.3s ease;
  }

  .blog-card:hover {
    transform: scale(1.01);
  }

  .blog-card .image-container {
    position: relative;
    overflow: hidden;
  }

  .blog-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
  }

  .blog-card:hover img {
    transform: scale(1.1);
    filter: brightness(70%);
  }

  .read-more-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
  }

  .blog-card:hover .read-more-overlay {
    opacity: 1;
  }

  .read-more-btn {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    color: #333;
    border: 1px solid #ccc;
  }

  .read-more-btn:hover {
    background-color: #f0f0f0;
    color: #000;
  }

  /* Social media links */
      .footer-social {
        display: flex;
        justify-content: space-around;
        font-size: 2.4em;
        flex-direction: row;
        margin-top: 0.5em;
      }

      .footer-social img {
        width: 40px; /* Adjust size of your SVG icons */
        height: 40px;
        padding: 5%;
        background-color: white;
        border-radius: 100%;
      }
      /* END Social media links */

  .card-title-to-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Horizontal scroll container */
.popular-topics-scroll {
  scroll-behavior: smooth;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.popular-topics-scroll::-webkit-scrollbar {
  height: 8px;
}
.popular-topics-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.popular-topics-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* Topic card style */
#trendingTopicsRow{
    width: 100%;
    display: flex;
    justify-content: center; /* Centers horizontally */
}
.topic-card {
  background-color: #ffffff;
  color: #000000;
  max-width: 200px;
  max-height: 180px;
  overflow: hidden;
  display: block;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  flex-shrink: 0; /* Prevent shrinking in scroll row */
}

/* Image styling */
.topic-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: filter 0.3s ease;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.topic-card:hover .topic-image {
  filter: brightness(70%);
}

/* Text alignment inside the card */
.topic-card .topic-card-body {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Title text */
.topic-title {
  font-size: 14px;
  margin: 0;
  text-align: center;
  word-break: break-word;
}
   
#backToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 99;
  display: none;
  width: 45px;
  height: 45px;
  font-size: 20px;
  text-align: center;
  line-height: 1.5;
  transition: opacity 0.3s ease-in-out;
}
#backToTopBtn:hover {
  opacity: 0.8;
}
#latestArticles{
    width: 100%;
    display: flex;
}
#latestArticles .latest-article-item{
    width: fit-content;
}


