/* ==========================================================================
   News Page Styles
   ========================================================================== */

.news-item {
  display: flex;
  flex-direction: column;
  border-radius: 0.9375rem;
  border: solid 0.0625rem rgba(112, 112, 112, 0.3);
  background-color: var(--bs-white);
  overflow: hidden;
}
.news-item-image {
  width: 100%;
  height: 15.625rem;
  overflow: hidden;
  background-color: #f7f8f8;

  img {
    width: 100%;
    height: 15.625rem;
    object-fit: cover;
    object-position: center;
    transition: var(--bs-transition-slow);
  }
}
.news-item:hover {
  .news-item-image {
    img {
      transform: scale(1.1);
    }
  }
}
.news-item-content {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.news-item-date {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem;
  border-left: 0.1875rem solid var(--bs-secondary);
  font-size: 1rem;
  font-weight: 400;
  color: var(--bs-body-color);
}
.news-item-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bs-body-color);
  transition: var(--bs-transition-slow);
}
.news-item:hover .news-item-title {
  color: var(--bs-primary);
}

.alm-listing .news-item {
  width: calc(33.333% - 1.875rem);
  margin: 0.9375rem;
  float: left;
  display: inline;
}

/* Desktop - 3 columns */
@media screen and (min-width: 1201px) {
  .alm-listing .news-item {
    width: calc(33.333% - 1.875rem);
    margin: 0.9375rem;
  }
}

/* Tablet - 2 columns */
@media screen and (max-width: 1200px) and (min-width: 769px) {
  .alm-listing .news-item {
    width: calc(50% - 1.875rem);
    margin: 0.9375rem;
  }
}

/* Mobile - 1 column */
@media screen and (max-width: 768px) {
  .ajax-load-more-wrap .alm-listing .news-item {
    width: 100%;
    margin: 0.9375rem 0;
  }
}

.news-featured-image {
  border-radius: 1.25rem;
  box-shadow: 0 0 1.875rem 0 rgba(0, 0, 0, 0.07);
  background-color: var(--bs-white);
  overflow: hidden;
  img {
    width: 100%;
    height: auto;
  }
}
.news-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  @media (max-width: 768px) {
    flex-direction: column-reverse;
    align-items: center;
  }
}
.news-title {
  font-size: 3.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bs-body-color);
  @media (max-width: 1024px) {
    font-size: 2.25rem;
  }
  @media (max-width: 768px) {
    text-align: center;
    font-size: 1.5rem;
  }
}
.publish-date {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--bs-body-color);
  position: relative;
  @media (max-width: 768px) {
    flex-direction: column-reverse;
    align-items: center;
    font-size: 0.875rem;
  }
  &::before {
    content: "";
    border-radius: 0.1875rem;
    width: 0.1875rem;
    background-color: var(--bs-secondary);
    align-self: stretch;
    @media (max-width: 768px) {
      height: 0.1875rem;
      width: 1.25rem;
      align-self: center;
    }
  }
}
.news-content {
  margin-top: 3.125rem;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--bs-body-color);
  @media (max-width: 768px) {
    font-size: 1.125rem;
    line-height: 1.67;
    margin-top: 1.25rem;
    text-align: center;
  }
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4,
.news-content h5,
.news-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--bs-primary);
}

.news-content h1 {
  font-size: 2rem;
}
.news-content h2 {
  font-size: 1.75rem;
}
.news-content h3 {
  font-size: 1.5rem;
}
.news-content h4 {
  font-size: 1.25rem;
}

.news-content p {
  margin-bottom: 1.5rem;
}

.news-content ul,
.news-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.news-content li {
  margin-bottom: 0.5rem;
}

.news-content blockquote {
  border-left: 0.25rem solid var(--bs-primary);
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--bs-body-color);
  opacity: 0.8;
}

.news-content a {
  color: var(--bs-secondary-dark);
}
.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 2.5rem;
  margin: 2rem auto;
  box-shadow: var(--bs-box-shadow);
  text-align: center;
  display: flex;
}

.news-content .wp-caption {
  margin: 2rem 0;
}

.news-content .wp-caption img {
  margin: 0;
}

.news-content .wp-caption-text {
  font-size: 0.9rem;
  color: var(--bs-body-color);
  opacity: 0.7;
  padding: 0.5rem;
  text-align: center;
  background: var(--bs-light);
  border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
}
