/**
 * The following styles get applied both on the front of your site
 * and in the editor.
 *
 * Replace them with your own styles or remove the file completely.
 */
.wp-block-hudsonblock-categorysection {
  text-align: center !important;
  background-color: #FBCDB3;
}

.wp-block-hudsonblock-categorysection .categories-container {
  display: grid;
  padding: 0 7.5vw;
  padding-bottom: 3rem;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;
}

.wp-block-hudsonblock-categorysection .categories-item {
  padding: 0;
}

.categories-title {
  padding-top: 3rem;
  padding-bottom: 3rem;
  font-size: 26px;
  font-weight: 400;
}

.wp-block-hudsonblock-categorysection p {
  font-size: 16px;
}

.wp-block-hudsonblock-categorysection .categories-item a {
  font-weight: 500 !important;
}

.load-more {
  display: none;
}

.wp-block-hudsonblock-categorysection .categories-container.small-dev {
  display: none;
}

.wp-block-hudsonblock-categorysection p.categories-item {
  text-align: center;
}

@media(max-width:800px) {
  .big-dev {
    display: none !important;
  }

  .wp-block-hudsonblock-categorysection .categories-container.small-dev {
    grid-template-columns: 1fr;
    display: grid;
  }

  .wp-block-hudsonblock-categorysection .categories-item.small-dev {
    text-align: center;
  }

  .load-more {
    display: block;
    padding-bottom: 1rem;
  }

  .wp-block-hudsonblock-categorysection .hidden-category {
    display: none;
  }
}

/**
 * The following styles get applied both on the front of your site
 * and in the editor.
 *
 * Replace them with your own styles or remove the file completely.
 */
.wp-block-hudsonblock-popularposts .popularposts-container {
  text-align: center;
  padding: 0 35px 0 35px;
}

.wp-block-hudsonblock-popularposts .slides {
  position: relative;
}

.wp-block-hudsonblock-popularposts .slide-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px;
  max-width: 40em;
  margin: auto;
}

.wp-block-hudsonblock-popularposts .slide-item p {
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-block-hudsonblock-popularposts .slide-item a .thumbnail img {
  width: 100%;
  height: 100%;
}

.slick-prev,
.slick-next {
  font-size: 0;
  border-radius: 50%;
  border: none;
  background-color: #FBCDB3;
}

.slick-prev {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%)
}

.slick-next {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%)
}

.thumbnail {
  width: 100%
}

.headline {
  width: 100%;
  font-size: 24px;
  margin-bottom: .5em;
  text-align: left;
}

.abstract {
  width: 100%;
  font-size: 16px;
}

.wp-block-hudsonblock-popularposts h2 {
  font-size: 2em;
  font-weight: 400;
}


@media (max-width:800px) {
  .wp-block-hudsonblock-popularposts .abstract p {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    /* Limits to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.4rem;
    letter-spacing: 0;
    text-align: start;
  }

  .wp-block-hudsonblock-popularposts .headline {
    font-size: 2rem;
    font-weight: bold;
  }

  .wp-block-hudsonblock-popularposts .popularposts-container {
    padding: 2rem 7.5vw !important;
  }

  .wp-block-hudsonblock-popularposts .popularposts-title {
    font-size: 3.4rem;
  }
}


/**
 * The following styles get applied both on the front of your site
 * and in the editor.
 *
 * Replace them with your own styles or remove the file completely.
 */
.wp-block-hudsonblock-blogposts {
  margin-top: 1em;
  text-align: center;
  position: relative;
  padding: 7.5rem 7.5vw;
}

.wp-block-hudsonblock-blogposts .blog-posts-thumbnail {
  display: flex;
}

.blog-posts-container {
  margin: auto;
  /* Reset margin */
  padding: 0;
  /* Reset padding */
  list-style: none;
  /* Remove default list styling */
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.wp-block-hudsonblock-blogposts .blog-posts-container .blog-posts-item {
  padding: 3em !important;
}

.wp-block-hudsonblock-blogposts .blog-posts-item {
  max-height: 400px;
}

.wp-block-hudsonblock-blogposts .blog-posts-excerpt {
  padding-bottom: 2em;
}

.blog-posts-item {
  background-color: #f9f9f9;
  /* Light background */
  display: grid;
  /* Flexbox for inner layout */
  grid-template-columns: 1fr 2fr;
  overflow: hidden;
  /* Prevent overflow */
  gap: 10px;
}


.blog-posts-thumbnail {
  width: 100%;
  /* Full width for thumbnail */
  overflow: hidden;
  /* Crop overflow */
}

.wp-block-hudsonblock-blogposts .blog-posts-thumbnail img {
  width: 100%;
  /* Responsive image */
  height: auto;
  /* Maintain aspect ratio */
  object-fit: contain;

}

.blog-posts-headline,
.blog-posts-category {
  font-size: 24px;
  margin: 0 0 10px;
  /* Margin below headline */
  color: #333;
  /* Dark text color */
}

.blog-posts-category {
  font-size: 20px !important;
  margin-bottom: .5em;
  text-transform: uppercase;
}

.blog-posts-date {
  font-size: 0.9em;
  /* Smaller date size */
  color: #888;
  /* Gray text color */
  margin-bottom: 10px;
  /* Space below date */
  width: 100%;
}

.pagination {
  margin: 4rem 0;
  /* Space around pagination */
  text-align: center;
  /* Center align */
}

.pagination a,
.pagination span {
  display: inline-block;
  /* Inline block for spacing */
  margin: 0 5px;
  /* Space between links */
  padding: 10px 15px;
  /* Padding for clickable area */
  background-color: #f0f0f0;
  /* Light background */
  color: #333;
  /* Dark text */
  border-radius: 5px;
  /* Rounded corners */
  text-decoration: none;
  /* Remove underline */
}

.pagination a:hover {
  background-color: #ddd;
  /* Darker background on hover */
}

.pagination {
  margin: 20px 0;
  /* Space around pagination */
  text-align: center;
  /* Center align */
}

.pagination a,
.pagination span {
  display: inline-block;
  /* Inline block for spacing */
  margin: 0 5px;
  /* Space between links */
  padding: 10px 15px;
  /* Padding for clickable area */
  background-color: #f0f0f0;
  /* Light background */
  color: #333;
  /* Dark text */
  border-radius: 5px;
  /* Rounded corners */
  text-decoration: none;
  /* Remove underline */
}

.pagination a:hover {
  background-color: #ddd;
  /* Darker background on hover */
}

.wp-block-hudsonblock-blogposts .slick-arrow,
.wp-block-hudsonblock-blogposts .prev,
.wp-block-hudsonblock-blogposts .next {
  display: none !important;
}

.wp-block-hudsonblock-blogposts .blog-posts-sub p {
  width: 100%;
  font-size: 16px;
}

.wp-block-hudsonblock-blogposts .blog-posts-date {
  text-align: start;
  margin: 0;
}

.wp-block-hudsonblock-blogposts .blog-posts-item {
  position: relative;
}

.wp-block-hudsonblock-blogposts .blog-posts-sub p {
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-block-hudsonblock-blogposts .blog-posts-date span {
  padding: 1rem 1rem;
  background: #FBCDB3;
  display: inline-block;
  border-radius: 20rem;
  font-family: "assistant", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.025rem;
  color: #222;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 250ms, color 250ms;
  transform: translateX(-2px)
}

.wp-block-hudsonblock-blogposts .r-more {
  position: absolute;
  bottom: 3rem;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
}

.wp-block-hudsonblock-blogposts .blog-posts-headline {
  text-transform: uppercase;
  text-align: start;
  margin-top: 0.5em;
}

.wp-block-hudsonblock-blogposts .pagination {
  font-size: 1.6rem;
}

@media (max-width:500px) {
  .wp-block-hudsonblock-blogposts .blog-posts-headline {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    text-align: center;
  }

  .wp-block-hudsonblock-blogposts .blog-posts-category {
    font-size: 1.8rem !important;
    text-align: center !important;
  }

  .wp-block-hudsonblock-blogposts .blog-posts-excerpt p {
    font-size: 1.4rem !important;
    line-height: 2rem !important;
    letter-spacing: 0;
  }

  .wp-block-hudsonblock-blogposts .blog-posts-item {
    grid-template-columns: 1fr;
    gap: 0.5rem !important;
  }

  .wp-block-hudsonblock-blogposts .blog-posts-item {
    max-height: none;
  }

  .wp-block-hudsonblock-blogposts .blog-posts-date {
    text-align: center !important;
  }

  .wp-block-hudsonblock-blogposts .r-more {
    bottom: 3rem;
    right: 3rem;
    font-size: 1.4rem;
  }

  .wp-block-hudsonblock-blogposts {
    margin-top: 0;
    padding: 3rem 7.5vw;
  }
}

@media (min-width:501px) and (max-width:850px) {
  .wp-block-hudsonblock-blogposts .blog-posts-item {
    grid-template-columns: 1fr;
    gap: 0.5rem !important;
  }

  .wp-block-hudsonblock-blogposts .blog-posts-item {
    max-height: none;
  }

  .wp-block-hudsonblock-blogposts .blog-posts-date {
    text-align: center !important;
  }

  .wp-block-hudsonblock-blogposts .blog-posts-headline {
    text-align: center !important;
  }

  .wp-block-hudsonblock-blogposts .blog-posts-category {
    text-align: center !important;
  }

  .wp-block-hudsonblock-blogposts .r-more {
    bottom: 3rem;
    right: 3rem;
    font-size: 1.4rem;
  }
}