/* Blog card */

.home-page-content {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recent-blogs-section {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    overflow: visible;
    padding: 0;
}

.blog-cards-row {
    display: flex;
    flex-direction: row;
    width: max-content;
    max-width: 900px;
    height: auto;
    padding: 50px 50px 50px 150px;
    margin: 0 auto;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.blog-cards-row::-webkit-scrollbar {
    display: none;
}

@media (max-width: 700px) {
    .home-page-content {
        max-width: 500px;
    }

    .recent-blogs-section {
        max-width: 500px;
    }

    .blog-cards-row {
        max-width: 500px;
        padding: 50px;
    }
}

@media (max-width: 450px) {
    .home-page-content {
        max-width: 400px;
    }

    .recent-blogs-section {
        max-width: 400px;
    }

    .blog-cards-row {
        max-width: 400px;
        padding: 50px;
    }
}

/* Common topics carousel */

.common-topics-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 900px;
}

.topics-carousel {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.topics-window {
  overflow: hidden;
  width: 300px;
  height: 100px;
  border: 10px solid var(--color-accent-main);
  border-radius: 10px;
}

#topics-list {
  display: flex;
  flex-direction: row;
  gap: 0;
  margin: 0;
  padding: 0;
  transition: transform 0.3s ease;
  transform: translateX(-10px); /* Account for border width. */
  width: max-content;
}

#topics-list li {
  list-style: none;
  width: 300px;
  height: 100px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#topics-list a {
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: 10px;
}

.scroll-btn {
  background: var(--color-accent-main);
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--color-text-main);
  font-size: 1.2rem;
}

@media (max-width: 700px) {
  .scroll-btn {
    max-width: 10px;
    border-radius: 10px;
    padding: 0.5rem 0;
    display: inline-block;
  }

  .topics-carousel {
    gap: 0.25rem;
  }
}