
.articles-container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
}

.article-block {
  position: relative;
  margin-bottom: 30px;
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid var(--border-color-soft);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.article-block:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.article-block img {
  width: 100%;
  border-radius: var(--radius-md);
}

.article-block .article-title {
  word-break: break-word;
  font-size: 14px;
  font-family: font-8;
  margin-top: 16px;
  color: var(--text-muted);
}

.article-block .article-published-datetime {
  margin-top: 16px;
}

.article-block .article-published-datetime i {
  font-size: 16px;
  margin-right: 4px;
  color: #fd2626;
}

.article-block .article-published-datetime span {
  font-size: 14px;
  font-family: 'font-5';
  color: var(--text-muted);
}

.article-block .article-read-more-button {
  margin-top: 20px;
  margin-bottom: 10px;
}

.article-block .article-read-more-button a {
  text-decoration: none;
  text-align: center;
  padding: 7px 11px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--text-onbg);
  font-family: 'font-8';
  transition: border-color 0.2s ease, color 0.2s ease;
}

.article-block .article-read-more-button a:hover {
  border-color: var(--border-hover);
  color: var(--text-strong);
}

.articles-controls {
  margin-top: 24px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media only screen and (min-width: 600px) {
  .article-block {
    width: 100%;
  }
  .articles-container {
    flex-direction: column;
  }
}

@media only screen and (min-width: 700px) {
  .article-block {
    width: 48%;
  }
  .articles-container {
    flex-direction: row;
  }
}

@media only screen and (min-width: 1200px) {
  .article-block {
    width: 32%;
  }
  .articles-container {
    flex-direction: row;
  }
}

/* pagination style */

.articles-controls .pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  flex-wrap: wrap;
}

.articles-controls .pagination li.pagination-previous {
  margin-right: 0px;
}

.articles-controls .pagination li {
  display: inline-block;
  margin-bottom: 10px;
  float: left;
}

.articles-controls .pagination li + li {
  padding-left: 10px;
}

.articles-controls .pagination li.active.current > span,
.articles-controls .pagination li.disabled.pagination-previous > span,
.articles-controls .pagination li.disabled.pagination-next > span,
.articles-controls .pagination li a,
.articles-controls .pagination .dots > span {
  background: transparent none repeat scroll 0 0;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  color: #5b5b5b;
  display: block;
  font-size: 14px;
  height: 40px;
  line-height: 38px;
  padding: 0;
  text-align: center;
  width: 40px;
  font-weight: 400;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.articles-controls .pagination li a span,
.articles-controls .pagination li.active.current > span span {
  background: none !important;
  border: none;
  padding: 0px;
}

.articles-controls .pagination li > a span,
.articles-controls .pagination li > span span {
  display: block;
}

.articles-controls .pagination li.active.current > span,
.articles-controls .pagination li > a:hover {
  background-color: #4b4b4b;
  border-color: #4b4b4b;
  color: #fff;
}

.articles-filter-form {
  display: flex;
  flex-wrap: wrap;
}

.articles-filter-submit-button {
  position: relative;
}

.articles-filter-submit-button input {
  font-family: font-8;
  padding: 10px 16px;
  border: 1px solid #fd2626;
  border-radius: var(--radius-md);
  position: relative;
  background-color: #fd2626;
  color: #fff;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.articles-filter-submit-button input:hover {
  opacity: 0.88;
}

.articles-filter-form .category-select,
.articles-filter-form .items-to-view-select {
  margin-bottom: 10px;
}

.articles-filter {
  margin-bottom: 20px;
}

.articles-filter-form .cstm-option-item:hover,
.articles-filter-form .cstm-option-item.cstm-active-option {
  background-color: #4b4b4b;
}

.articles-filter-form > div:not(:last-child) {
  margin-right: 30px;
}

.articles-filter-form .cstm-options-container {
  width: unset;
}
