/* General styles */
header {
  background-color: var(--qvac-black);
  padding: 31px 0;
}

header::before {
  display: none;
}

main {
  background-color: var(--qvac-white);
  padding-top: 94px;
}

.btn-dark {
  width: fit-content;
  background-color: var(--qvac-dark);
  color: var(--qvac-green);
}

.btn-dark:hover {
  background-color: var(--qvac-gray);
}

.btn-outline-dark {
  font-family: 'Inconsolata', sans-serif;
  border: 2px solid var(--qvac-black);
}

.btn-outline-dark:hover {
  border-color: var(--qvac-black);
  background-color: var(--qvac-black);
  color: var(--qvac-white);
}

.news h1 {
  font-size: 75px;
  line-height: 78px;
  text-align: left;
  color: var(--qvac-black);
  margin: 0;
}

.news .load-more {
  display: flex;
  margin: 90px auto 0;
}

.news .loading-message,
.news .no-posts-message {
  display: none;
  margin-bottom: 49px;
  font-size: 15px;
}

.news section {
  color: var(--qvac-black);
}

.news section .container {
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 60px;
}

@media only screen and (max-width: 991.98px) {
  .news section .container {
    padding-top: 43px;
    padding-bottom: 100px;
    max-width: calc(100% - 27px);
  }
}

/* Article options styles */
.article-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 73px 0 67px;
  width: 100%;
}

.article-options .category-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-left: 16px;
  border-radius: 8px;
}

.article-options .category-filter .category-label {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  font-family: 'Inconsolata', sans-serif;
  font-size: 15px;
  line-height: 16px;
  color: var(--qvac-black);
  margin-right: 4px;
}

.article-options .category-filter .category-select {
  border: none;
  background: transparent;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 14px;
  min-width: 100px;
  height: 100%;
  font-family: 'Inconsolata', sans-serif;
  font-size: 15px;
  line-height: 16px;
  color: var(--qvac-green);
  background-color: var(--qvac-black);
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  padding: 0 16px;
  padding-right: 32px;
  box-sizing: border-box;
}

.article-options .category-filter .dropdown {
  position: relative;
  transform: translateX(-30px);
  pointer-events: none;
}

.article-options .search-filter {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 5px;
  background-color: transparent;
  width: 406px;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid #292929;
  border-radius: 8px;
}

.article-options .search-filter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.article-options .search-filter-icon img {
  position: relative;
  top: 1px;
  width: 12px;
  height: 12px;
}

.article-options .search-filter .search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  margin-left: 10px;
}

.article-options .search-input {
  width: 100%;
  height: 100%;
  border: none;
  font-family: 'Inconsolata', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  color: var(--qvac-black);
  background-color: transparent;
  outline: none !important;
}

.article-options ::placeholder {
  font-size: 14px;
  line-height: 16px;
  color: #292929;
  opacity: 1;
}

.article-options ::-ms-input-placeholder {
  font-size: 12px;
  color: var(--qvac-gray);
  letter-spacing: 0.96px;
}

/* Article list styles */
.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.article-list .article-item {
  position: relative;
}

.article-list .article-item .article-image {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.article-list .article-item .article-image::before {
  display: block;
  content: "";
  width: 100%;
  padding-top: 56.9106%;
  background-color: #d9d9d9;
}

.article-list .article-item .img-article {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: calc(100% + 1px);
  object-fit: cover;
  z-index: 1;
}

.article-list .article-item .article-content {
  margin-top: 20px;
}

.article-list .article-item .article-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  line-height: 14px;
  color: #30504B;
  padding: 0 8px;
}

.article-list .article-item .article-title {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  font-size: 26px;
  line-height: 36px;
  margin-bottom: 8px;
}

.article-list .article-item .article-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.article-list .article-item .article-preview p {
  font-size: 18px;
  line-height: 1.5;
  color: #606060;
  margin: 0;
  text-transform: none;
}

.article-list .article-item .article-preview .article-date {
  display: none;
}

.article-list .article-item:first-child {
  display: flex;
  gap: 48px;
  grid-column: 1 / span 3;
  margin-bottom: 38px;
}

.article-list .article-item:first-child .article-image {
  width: 652px;
  max-width: 50vw;
}

.article-list .article-item:first-child .article-image::before {
  padding-top: 56.25%;
}

.article-list .article-item:first-child .article-content {
  margin-top: 0;
  width: 100%;
}

.article-list .article-item:first-child .article-info {
  padding: 0;
  margin-bottom: 20px;
}

.article-list .article-item:first-child .article-title {
  -webkit-line-clamp: 3;
  margin-bottom: 20px;
  font-size: 36px;
  line-height: 40px;
}

.article-list .article-item:first-child .article-preview {
  -webkit-line-clamp: 5;
  margin-bottom: 26px;
}

.article-list .article-item:not(:first-child) {
  padding-top: 36px;
}

.article-list .article-item:not(:first-child) .article-info {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  width: 100%;
}

.article-list .article-item:not(:first-child) .article-preview .article-date {
  display: none;
}

.article-list .article-item .btn.btn-outline-light {
  width: fit-content;
  min-width: 224px;
}

.article-list .article-item:not(:first-child) .btn.btn-outline-light {
  min-width: 134px;
}

@media (max-width: 1199.98px) {
  .article-list .article-item:not(:first-child) .article-info {
    font-size: 10px;
    letter-spacing: 2px;
    padding: 0 4px;
    width: calc(100% - 8px);
  }
}

@media (max-width: 991.98px) {

  /* General styles */
  header {
    padding: 22px 0;
  }

  main {
    padding-top: 84px;
  }

  .news .container {
    padding: 57px 0 60px;
  }

  .news h1 {
    font-size: 45px;
    line-height: 50px;
  }

  .news .load-more {
    margin: 57px auto 0;
  }

  /* Article options styles */
  .article-options {
    margin: 48px 0 34px;
  }

  .article-options .category-filter {
    height: 44px;
    padding-left: 0;
  }

  .article-options .category-filter:not(.active) {
    padding-left: 16px;
    padding-right: 16px;
    justify-content: center;
    background-color: var(--qvac-black);
    color: var(--qvac-green);
  }

  .article-options .category-filter:not(.active) .category-label {
    background-color: var(--qvac-black);
    color: var(--qvac-green);
    margin-right: 0;
  }

  .article-options .search-filter {
    width: 280px;
  }

  /* Article list styles */
  .article-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 57px;
  }

  .article-list .article-item {
    width: 100%;
  }

  .article-list .article-item:first-child {
    display: flex;
    flex-direction: column;
    grid-column: 1 / span 2;
    gap: 20px;
    max-width: 100%;
    margin-bottom: 0;
  }

  .article-list .article-item:first-child .article-image {
    margin-left: -13.5px;
    margin-right: -13.5px;
    width: calc(100% + 27px);
    max-width: unset;
  }

  .article-list .article-item:first-child .article-image:after {
    border-width: 0 70px 73px 0;
  }

  .article-list .article-item:first-child .article-title {
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 32px;
  }

  .article-list .article-item .article-preview {
    margin-bottom: 20px;
  }

  .article-list .article-item:first-child .article-preview {
    margin-bottom: 20px;
  }

  .article-list .article-item .article-preview p {
    line-height: 1.3;
  }

  .article-list .article-item .article-info {
    padding: 0;
  }
}

@media (max-width: 887.98px) {
  .latest-news .article-list {
    margin-right: -12px;
    margin-left: -12px;
    padding: 0 12px 8px;
  }
}

@media (max-width: 767.98px) {

  /* Article options styles */
  .article-options .category-filter .category-label img,
  .article-options .search-filter img {
    cursor: pointer;
  }

  .article-options .search-filter {
    width: auto;
  }

  .article-options .search-filter img {
    width: 19px;
  }

  .article-options .category-filter:not(.active) .dropdown,
  .article-options .category-filter:not(.active) .category-label>div,
  .article-options .category-filter:not(.active) .category-select,
  .article-options .search-filter:not(.active) .search-input-wrapper {
    display: none;
  }

  .article-options .search-filter:not(.active) {
    background-color: transparent;
  }

  /* Article list styles */
  .article-list {
    grid-template-columns: repeat(1, 1fr);
  }

  .article-list .article-item:first-child {
    grid-column: 1 / span 1;
  }
}

@media (max-width: 575.98px) {

  /* Article list styles */
  .article-list .article-item:first-child .article-image:after {
    border-width: 0 45px 48px 0;
  }
}