/* Custom project styles. */

.news {
  background: #f3ffff url('../images/blog/bg-page.svg') center top -150px
    no-repeat;
  background-size: contain;
  padding-top: 96px;
}

.news-search {
  background: #f3ffff url('../images/blog/bg-page.svg') center top -150px
    no-repeat;
  background-size: contain;
  padding-top: 32px;
}
@media only screen and (max-width: 578px) {
  .news, .news-search {
    padding-top: 24px;
  }
}
.search__nothing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
  width: 100%;
  max-width: 690px;
  margin: 0 auto;
  text-align: center;
}
.search__nothing-bg {
  background: #f3ffff url('../images/blog/nothing.svg') center no-repeat;
  width: 209px;
  height: 211px;
  margin-bottom: 32px;
}

.search__nothing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 32px;
  padding: 0 24px;
  background-color: #005aa3;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 300ms;
}

.search__nothing-link:hover {
  background-color: #004a87;
  color: #fff;
}
.search__reset-link {
  display: block;
  font-weight: 500;
  color: #005AA3;
  transition: 300ms;
  padding: 12px 0;
  margin-top: 12px;
}
.search__reset-link:hover {
  color: #02030c;
}
.news__container {
  max-width: 1200px;
  margin: 0 auto;
}
@media screen and (max-width: 1200px) {
  .news__container {
    padding: 0 16px;
  }
}
.news__featured {
  margin-bottom: 32px;
}

.news__featured-title {
  margin: 0 0 16px;
}

.news-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  overflow: hidden;
}

.news-featured-card__media {
  display: block;
  height: 378px;
  max-width: 588px;
  width: 100%;
}

.news-featured-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
}

.news-featured-card__label {
  margin-bottom: 16px;
  text-transform: uppercase;
}

.news-featured-card__title {
  margin: 0 0 16px;
}

.news-featured-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-featured-card__excerpt {
  margin-bottom: 20px;
}

.news-featured-card__excerpt p {
  margin: 0;
}

.news-featured-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 24px;
}

.news-featured-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-featured-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 20px;
  text-decoration: none;
  background-color: #005aa3;
  color: #fff;
  border-radius: 8px;
  gap: 8px;
  transition: 300ms;
}
.news-featured-card__button:hover {
  color: #fff;
  background-color: #004a87;
}

.news__wrapper {
  display: grid;
  grid-template-columns: 894fr 282fr;
  gap: 24px;
}
@media only screen and (max-width: 576px) {
  .news__wrapper {
    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
  }
}
.news__main {
  min-width: 0;
}
.news__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-pagination {
  margin-top: 32px;
}

.news-pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  margin-bottom: 64px;
}

.news-pagination__list .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 48px;
  height: 43px;
  border: 1px solid #d8eaf3;
  border-radius: 8px;
  font-size: 16px;
  line-height: 21px;
  padding: 11px 0;
  text-align: center;
  color: #02030c;
  text-decoration: none;
  transition: 300ms;
}
.news-pagination__list .page-numbers:hover {
  background-color: #e8f1f7;
}
.news-pagination__list .page-numbers.dots:hover {
  background-color: transparent;
}
.news-pagination__list .page-numbers.current {
  color: #fff;
  background-color: #005aa3;
}
@media only screen and (max-width: 992px) {
  .news__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media only screen and (max-width: 768px) {
  .news__list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
  }
}
.news__subscribe-mobile {
  display: none;
}
@media only screen and (max-width: 576px) {
  .news__subscribe-mobile {
    display: block;
  }
  .news__subscribe-pc {
    display: none;
  }
}
.news-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #D8EAF3;
}

.news-card__media {
  display: block;
  height: 160px;
  width: calc(100% + 2px);
  margin: -1px -1px 0;
  flex-shrink: 0;
}

.news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.news-card__category {
  margin-bottom: 8px;
  text-transform: uppercase;
  text-decoration: none;
  color: #005aa3;
  font-size: 12px;
  line-height: 21px;
  font-weight: 600;
}

.news-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 24px;
}

.news-card__title a {
  color: #032435;
  text-decoration: none;
  transition: 300ms;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
}
.news-card__title a:hover {
  color: #005AA3;
}
.news-card__excerpt {
  margin-bottom: 8px;
}

.news-card__excerpt p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #02030C;
}

.news-card__date {
  margin-top: auto;
  color: #5B6E8A;
  font-size: 14px;
  line-height: 20px;
}

.news__sidebar {
}

@media (max-width: 767px) {
  .news-featured-card {
    grid-template-columns: 1fr;
  }

  .news-featured-card__media {
    min-height: 220px;
    max-width: 100%;
  }

  .news-featured-card__content {
    padding: 24px;
  }
}

/* SEARCH */
.news__search-form {
  display: flex;
  margin-bottom: 26px;
}
.news__search-submit {
  width: 48px;
  background-color: #005aa3;
  outline: none;
  border: none;
  border-radius: 0 8px 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 300ms;
}
.news__search-submit:hover {
 background-color: #004a87;
}
.news__sidebar .news__search-input {
  border-left: 1px solid #d8eaf3;
  border-top: 1px solid #d8eaf3;
  border-bottom: 1px solid #d8eaf3;
  border-radius: 8px 0 0 8px !important;
}
.news__search-input,
.news__search-input:focus {
  outline: none !important;
}
.news__search-input:focus {
  border-color: #005aa3 !important;
}
.news__search-input:hover {
  border-color: #005aa3 !important;
}

/* SORT */
.news__sort {
  border: 1px solid #d8eaf3;
  border-radius: 20px;
  padding: 32px 24px;
  margin-bottom: 20px;
}
.news__sort-label {
  color: #032435;
  font-weight: 600;
  line-height: 24px;
  font-size: 18px;
  margin-bottom: 20px;
}
.news__sort-select {
  border: 1px solid #d8eaf3;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: 0;
  cursor: pointer;
}
.news__sort-select:focus,
.news__sort-select:hover,
.news__sort-select:focus-visible,
.news__sort-select:active {
  border-color: #005aa3 !important;
  outline: none;
  box-shadow: none;
}

.news__sort-select::-ms-expand {
  display: none;
}
.news__sort-wrapper {
  position: relative;
}
.news__sort-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 16px;
  pointer-events: none;
}

/* CATEGORIES */
.news__categories {
  border: 1px solid #d8eaf3;
  border-radius: 20px;
  padding: 32px 24px;
  margin-bottom: 20px;
}
.categories__title {
  color: #032435;
  font-weight: 600;
  line-height: 24px;
  font-size: 18px;
  margin-bottom: 20px;
}
.news__categories-list {
  display: flex;
  flex-direction: column;
}
.news__category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 45px;
  font-weight: 500;
  position: relative;
  color: #02030c;
}
.news__category-link.is-active::before {
  content: '';
  height: 45px;
  width: 2px;
  position: absolute;
  left: -25px;
  background-color: #005aa3;
}
.news__category-link.is-active {
  color: #2f5ea8;
  font-weight: 600;
}
.news__category-count {
  display: inline-block;
  background-color: #e8f1f7;
  color: #000;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  min-width: 34px;
  height: 20px;
  border-radius: 12px;
  transition: 300ms;
}
.news__category-link:hover .news__category-count {
  background-color: #004a87;
  color: #fff;
}

/* SEARCH RESULTS */
.news-search__h1 {
  font-size: 34px;
  line-height: 48px;
  margin: 32px 0 8px;
  color: #02030c;
}
.news-search__query {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 21px;
  color: #02030c;
  font-weight: 500;
}
.news-search__query span {
  color: #005aa3;
}
.news-search__count {
  margin: 0 0 16px;
  font-size: 14px;
  color: #496894;
}

/* SINGLE POST */
.news__single {
  background-color: #f3ffff;
}
.news__container-single {
  max-width: 996px;
  margin: 0 auto;
}
@media screen and (max-width: 1200px) {
  .news__container-single {
    padding: 0 16px;
  }
}
.news-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 14px;
  color: #667085;
  padding-top: 32px;
}

.news-breadcrumbs__link {
  color: #005aa3;
  text-decoration: none;
  transition: color 300ms;
}
.news-breadcrumbs__link:hover {
  color: #667085;
}

.news-breadcrumbs__sep {
  color: #667085;
}

.news-breadcrumbs__current {
  color: #5B6E8A;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 400px;
}

.news-single__category {
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
  text-decoration: none;
  color: #005aa3;
  font-size: 16px;
  line-height: 21px;
  font-weight: 600;
  transition: opacity 300ms;
}
.news-single__category:hover {
  opacity: 0.8;
}

.news-single__title {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.2;
  color: #032435;
}

.news-single__date {
  margin-bottom: 24px;
  font-size: 14px;
  color: #667085;
}

.news-single__wrapper {
  display: grid;
  grid-template-columns: 690px 282px;
  gap: 24px;
  margin-bottom: 64px;
}

.news-single__main {
  min-width: 0;
}

.news-single__content {
  margin-bottom: 48px;
}
.news-single__content a {
  color: #005aa3;
  text-decoration: underline;
}

.news-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Previous / Next nav */
.news-single__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #d8eaf3;
  padding-top: 32px;
  padding-bottom: 64px;
}
@media only screen and (max-width: 768px) {
  .news-single__nav {
    padding-bottom: 32px;
  }
}
.news-single__nav-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  max-width: 306px;
}

.news-single__nav-item--next {
  align-items: flex-end;
  text-align: right;
}

.news-single__nav-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  max-width: 178px;
  width: auto;
  padding: 8px 24px;
  border: 1px solid #005aa3;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #005aa3;
  white-space: nowrap;
  transition:
    background-color 300ms,
    color 300ms;
}
.news-single__nav-label-next {
  justify-content: flex-end;
}

@media only screen and (max-width: 480px) {
  .news-single__nav-label {
    width: auto;
    padding: 8px 16px 8px 8px;
  }
  .news-single__nav-label svg {
    flex-shrink: 0;
  }
}

.news-single__nav-item:hover .news-single__nav-label {
  background-color: #005aa3;
  color: #fff;
}

.news-single__nav-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: #032435;
}
@media only screen and (max-width: 728px) {
  .news-single__nav-title {
    display: none;
  }
}

/* Sidebar */
.news-single__sidebar {
  min-width: 0;
}

.news-single__related {
  border: 1px solid #d8eaf3;
  border-radius: 20px;
  padding: 24px;
}

.news-single__related-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: #032435;
}

/* Related card */
.news-related-card {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #d8eaf3;
}
.news-related-card:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.news-related-card__media {
  width: 70px;
  height: 58px;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.news-related-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms;
}
.news-related-card__media:hover img {
  transform: scale(1.04);
}

.news-related-card__title {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}
.news-related-card__title a {
  color: #032435;
  text-decoration: none;
  transition: color 300ms;
}
.news-related-card__title a:hover {
  color: #005aa3;
}

.news-related-card__date {
  font-size: 13px;
  color: #667085;
}

/* Responsive */
@media (max-width: 1024px) {
  .news-single__wrapper {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  .news-single__wrapper {
    grid-template-columns: 1fr;
  }

  .news-single__sidebar {
    order: -1;
  }

  .news-single__related {
    position: static;
  }

  .news-single__title {
    font-size: 26px;
  }
}

/* @media (max-width: 480px) {
  .news-single__nav {
    flex-direction: column;
  }

  .news-single__nav-item--next {
    text-align: left;
  }
} */

/* SUBSCRIBE BLOCK */
.subscribe {
  position: relative;
  border: 1px solid #d8eaf3;
  border-radius: 20px;
  padding: 32px 24px;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
}

.subscribe__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 24px;
  color: #032435;
  margin: 0 0 16px;
}

.subscribe p {
  font-size: 16px;
  line-height: 21px;
  color: #032435;
  margin: 0 0 32px;
}

.subscribe form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.subscribe input[type='email'] {
  height: 44px;
  width: 100%;
  border: 1px solid #d8eaf3;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.75);
  padding: 0 15px;
  font-size: 16px;
  line-height: 21px;
  color: #02030c;
  outline: none;
  transition: border-color 300ms;
  box-sizing: border-box;
}

.subscribe input[type='email']::placeholder {
  color: #8397a0;
}
.subscribe input[type='email']:focus {
  outline: none !important;
}
.subscribe input[type='email']:focus {
  border-color: #005aa3 !important;
}
.subscribe input[type='email']:hover {
  border-color: #005aa3 !important;
}


.subscribe button {
  height: 44px;
  width: 100%;
  background-color: #005aa3;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 300ms;
}

.subscribe button:hover {
  background-color: #004a87;
}

/* Success state */
.subscribe__success {
  display: none;
  position: absolute;
  inset: 0;
  background-color: #eaf9ee;
  border-radius: 20px;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 24px 32px 16px;
}
.subscribe__success.active {
  display: flex;
}
.subscribe.active .subscribe__success {
  display: flex;
}

.subscribe__success-top {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.subscribe__success-top svg {
  flex-shrink: 0;
}

.subscribe__thanks {
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
  color: #02030c;
}

.subscribe__success p {
  font-size: 14px;
  line-height: 20px;
  color: #02030c;
  margin: 0;
  width: 100%;
}
