/**
 * Blog Articles Section Styles
 *
 * Styles for the blog articles grid section with pagination.
 *
 * @package PhilFred
 */

/* Article Card */
.article {
  min-height: 28.3125rem;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
  -webkit-box-shadow: inset 0.5rem 0.5rem 0.75rem 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset 0.5rem 0.5rem 0.75rem 0 rgba(0, 0, 0, 0.25);
  -webkit-transition: -webkit-transform 0.5s ease 0s;
  transition: -webkit-transform 0.5s ease 0s;
  transition: transform 0.5s ease 0s;
  transition: transform 0.5s ease 0s, -webkit-transform 0.5s ease 0s;
  color: #fff;
}

@media (any-hover: hover) {
  .article:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
  }
}

.article__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  -webkit-column-gap: 1.5rem;
  -moz-column-gap: 1.5rem;
  column-gap: 1.5rem;
  row-gap: 96px;
}

@media (max-width: 1440px) {
  .article__wrapper {
    row-gap: calc(24px + 72 * (100vw - 390px) / 1050);
  }
}

.article__back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.article__back::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), color-stop(72%, rgba(25, 25, 25, 0.72)), color-stop(83%, rgba(27, 27, 27, 0.92)), to(rgb(29, 29, 29)));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(25, 25, 25, 0.72) 72%, rgba(27, 27, 27, 0.92) 83%, rgb(29, 29, 29) 100%);
}

.article__info {
  position: relative;
  z-index: 2;
  padding: 1rem;
}

.article__title {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 109%;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.article__subtitle {
  font-size: 0.9375rem;
  line-height: 127%;
  color: rgba(255, 255, 255, 0.99);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Blog Hero Articles Section */
.blog-hero-articles {
  padding-top: 64px;
  padding-bottom: 48px;
}

@media (max-width: 1440px) {
  .blog-hero-articles {
    padding-top: calc(70px + -6 * (100vw - 390px) / 1050);
  }
}

@media (max-width: 1440px) {
  .blog-hero-articles {
    padding-bottom: calc(82px + -34 * (100vw - 390px) / 1050);
  }
}

.blog-hero-articles__header {
  margin-bottom: 1rem;
}

.blog-hero-articles__label {
  font-family: "Roboto Condensed", sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 127%;
  color: #fff;
}

@media (max-width: 1440px) {
  .blog-hero-articles__label {
    font-size: calc(20px + 2 * (100vw - 390px) / 1050);
  }
}

.blog-hero-articles__footer {
  text-align: center;
  margin-top: 80px;
}

@media (max-width: 1440px) {
  .blog-hero-articles__footer {
    margin-top: calc(50px + 30 * (100vw - 390px) / 1050);
  }
}

.blog-hero-articles__button svg {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

/* Blog Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.blog-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-pagination__link:hover {
  border-color: #e5193a;
  color: #e5193a;
}

.blog-pagination__link--current {
  background: #e5193a;
  border-color: #e5193a;
  color: #fff;
}

.blog-pagination__link--arrow {
  font-size: 1.25rem;
}
