body {
  background: #0d0d0d;
}

.header__holder {
  position: relative;
  z-index: 1;
  background-color: #0d0d0d;
}

.header__holder::after {
  content: "";
  background-image: url("./../images/news/header-overlay.png");
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  display: block;
}

.news-hero {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  border-radius: 0 0 25px 25px;
  height: 30vh;
  max-height: 478px;
  overflow: hidden;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 48px;
}

.news-hero__mask {
  background: #f24534;
  background: linear-gradient(
    0deg,
    rgba(242, 69, 52, 0.64) 0%,
    rgba(140, 40, 30, 0) 100%
  );
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  opacity: 0.86;
}

.news-hero img {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -2;
}

.news-hero__title {
  font: 700 48px/0.9 var(--font-secondary);
  color: var(--color-primary);
  margin: 0 0 12px;
}

.news-hero__desc p {
  font: 400 18px/1.2 var(--font-primary);
  color: var(--color-white);
}

@media only screen and (min-width: 991px) {
  .news-hero {
    border-radius: 0 0 50px 50px;
    margin-bottom: 96px;
    height: fit-content;
    padding-bottom: 30px;
  }

  .news-hero__title {
    font-size: 96px;
    margin-bottom: 24px;
  }
}
.news-featured {
  padding-bottom: 56px;
}

.news-featured__card {
  display: flex;
  flex-flow: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 20px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.news-featured__card::after {
  content: "";
  display: block;
  z-index: -1;
  background: #ffffff;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(153, 153, 153, 0.5) 100%
  );
  opacity: 0.08;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.news-featured__image {
  flex: 0 0 42%;
  overflow: hidden;
}

.news-featured__image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.news-featured__content {
  padding: 0 20px 20px 20px;
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  justify-content: center;
}
.news-featured__content h2 {
  font: 700 32px/0.9 var(--font-secondary);
}
.news-featured__content h2 .title-first {
  color: #fff;
}

.news-featured__content h2 .title-rest {
  color: #de3b2b;
}

.news-featured__content p {
  font: 400 18px/1.2 var(--font-primary);
  color: var(--color-white);
  margin-bottom: 16px;
}

.news-featured__content .btn-read {
  font: 400 14px/1.2 var(--font-primary);
  color: var(--color-white);
  padding: 8px;
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  text-align: center;
}

.news-featured .news-meta .news-featured__date {
  font: 400 16px/1.2 var(--font-primary);
  color: var(--color-white);
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.news-featured__meta {
  margin-bottom: 12px;
}
.news-featured__meta-holder {
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.news-featured__meta-holder .tag {
  padding: 2px 12px;
  border-radius: 78px;
  color: #fff;
  font: 400 16px/1.2 var(--font-primary);
}
.news-featured__meta-holder .tag.category {
  background-color: #de3b2b;
}
.news-featured__meta-holder .tag.tag-item {
  border: 1px solid #f24534;
}

@media only screen and (min-width: 991px) {
  .news-featured__card {
    gap: 40px;
  }
  .news-featured__image img {
    height: 100%;
  }
  .news-featured__content {
    padding: 40px 40px 40px 0;
  }
  .news-featured__content p {
    font-size: 20px;
    margin-bottom: 32px;
  }
  .news-featured__meta {
    margin-bottom: 24px;
  }
  .news-featured__meta-holder {
    gap: 24px;
  }

  .news-featured__content .btn-read {
    max-width: 335px;
    font-size: 16px;
  }
}

.news-search {
  padding: 28px 0;
  background: rgba(255, 255, 255, 0.08);
}
.news-search__title {
  margin-bottom: 12px;
}
.news-search__title-holder {
  margin-bottom: 32px;
}

.news-search__title h2 {
  font: 700 32px/0.9 var(--font-secondary);
  color: var(--color-white);
  margin: 0 0 12px;
}

.news-search__title p {
  font: 400 18px/1.2 var(--font-primary);
  color: var(--color-white);
}

#news-search {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  background: #ffffff;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(153, 153, 153, 0.15) 100%
    ),
    #ffffff;
  font: 400 18px/1.2 var(--font-primary);
  font-style: italic;
  margin-bottom: 20px;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.news-filters button {
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid #444;
  background: transparent;
  cursor: pointer;
}

.news-search__sort-filter {
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.news-search__sort-filter span {
  font: 400 18px/1.2 var(--font-primary);
  color: var(--color-white);
}

#news-sort:focus {
  outline: none;
}

#news-sort {
  font: 600 18px/1.2 var(--font-primary);
  color: var(--color-white);
  background: transparent;
  border: 0;
}

#news-sort svg {
  transition: all 500ms ease;
}

#news-sort.open svg {
  transform: rotate(180deg);
}

@media only screen and (min-width: 991px) {
  .news-search__title h2 {
    font-size: 48px;
  }
  .news-featured {
    padding-bottom: 112px;
  }
  .news-search {
    padding: 56px 0;
  }
  .news-search__title-holder {
    margin-bottom: 64px;
  }
  .news-search__title {
    margin-bottom: 24px;
  }
  .news-search__title h2 {
    font-size: 64px;
    margin-bottom: 24px;
  }
  .news-search__title p {
    font-size: 20px;
  }

  #news-search {
    padding: 14px 40px;
    font-size: 20px;
    margin-bottom: 40px;
  }

  .news-search__sort-filter span {
    font-size: 20px;
  }
  #news-sort {
    font-size: 20px;
  }
}

.news-filters__tags,
.news-filters__categories {
  display: flex;
  flex-flow: row wrap;
  column-gap: 12px;
  row-gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-white);
  width: 100%;
  margin-bottom: 16px;
}
.news-filters__tags {
  border-bottom: 0;
}
.news-filters__tags a,
.news-filters__categories a {
  font: 400 18px/1.2 var(--font-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary);
  border-radius: 78px;
  min-width: 104px;
  padding: 5px 12px;
  text-align: center;
  text-decoration: none;
}
.news-filters__tags a {
  padding: 2px 18px;
}

.news-filters__tags a.active,
.news-filters__categories a.active {
  background: var(--color-primary);
}

@media only screen and (min-width: 991px) {
  .news-filters__categories {
    padding-bottom: 32px;
    margin-bottom: 32px;
    column-gap: 56px;
    row-gap: 20px;
  }

  .news-filters__tags {
    column-gap: 30px;
    row-gap: 20px;
  }
}

.news-grid {
  padding: 30px 0 40px;
}

.news-grid__wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
#news .news-card {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  justify-content: flex-start;
}

#news .news-card .news-card__content,
#news .news-card .news-card__image {
  width: 100%;
}
#news .news-card .news-card__content {
  flex: 1;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: flex-start;
}
.news-card {
  position: relative;
  border-radius: 50px;
  overflow: hidden;
}

.news-card .news-meta {
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 100%;
  margin-bottom: 16px;
}

.news-grid .news-card::after {
  content: "";
  display: block;
  z-index: -1;
  background: #ffffff;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(153, 153, 153, 0.5) 100%
  );
  opacity: 0.08;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.news-card__image {
  position: relative;
  display: block;
  z-index: 1;
}
.news-card__image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.news-card__gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: #000000;
  background: linear-gradient(
    -90deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(123, 123, 123, 0.8) 48%,
    rgba(255, 255, 255, 0) 100%
  );
}
.news-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 8px;
  padding: 15px 16px 0 0;
  z-index: 2;
}

.news-card__category {
  background: var(--color-primary);
  color: #fff;
  padding: 2px 10px;
  font: 400 16px/1.2 var(--font-primary);
  border-radius: 78px;
}

.news-card__tag {
  background: transparent;
  color: #fff;
  padding: 2px 10px;
  font: 400 16px/1.2 var(--font-primary);
  border-radius: 78px;
  border: 1px solid var(--color-primary);
}

.news-featured__content .news-meta {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.news-meta span {
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font: 400 14px/1.2 var(--font-primary);
  color: var(--color-white);
}
.news-card__overlay {
  display: flex;
  flex-flow: column;
  align-items: flex-end;
  justify-content: flex-start;
}
.news-card__content {
  padding: 16px 32px 36px;
}
.news-card__content h3 {
  font: 700 32px/0.9 var(--font-secondary);
  color: var(--color-primary);
  margin: 0 0 9px;
}

.news-card__content h3 span {
  font: 700 32px/0.9 var(--font-secondary);
}

.news-card__content h3 .news-title-first {
  color: var(--color-white);
}

.news-card__content p {
  font: 400 18px/1.2 var(--font-primary);
  color: var(--color-white);
}

.news-card__content .btn-read {
  width: 100%;
  font: 500 16px/1.2 var(--font-primary);
  color: var(--color-white);
  text-align: center;
  margin: 24px auto 0;
  align-self: flex-end;
}

@media only screen and (min-width: 768px) {
  .news-featured__card {
    display: flex;
    flex-flow: row;
  }
}

@media only screen and (min-width: 991px) {
  .news-grid {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .news-card__content h3 {
    font-size: 40px;
  }
  .news-meta span {
    font-size: 16px;
  }
}

.btn-read {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #ff3c2f;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
}

.news-trends {
  padding: 70px 0 40px;
  background: #202020;
  background: linear-gradient(
    180deg,
    rgba(32, 32, 32, 0.42) 0%,
    rgba(32, 32, 32, 0) 100%
  );
  clip-path: polygon(0 0, 100% 7%, 100% 100%, 0% 100%);
}

.news-trends__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.trend-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #1d1d1d;
  background: linear-gradient(
    360deg,
    rgba(29, 29, 29, 1) 0%,
    rgba(29, 29, 29, 1) 46%,
    rgba(29, 29, 29, 1) 100%
  );
}

.trend-card .img-link {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
}

.trend-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.trend-card .img-link .img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1d1d1d;
  background: linear-gradient(
    180deg,
    rgba(29, 29, 29, 0) 0%,
    rgba(29, 29, 29, 0.32) 55%,
    rgba(29, 29, 29, 1) 100%
  );
  z-index: 2;
}

.trend-card .news-card__content {
  position: relative;
  padding-top: 220px;
  color: #fff;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  width: 100%;
}
.trend-card .news-card__content a:has(.btn-read) {
  display: block;
  margin: auto auto 0;
  align-self: flex-start;
  width: 100%;
}

@media only screen and (min-width: 991px) {
  .news-trends {
    padding: 110px 0 80px;
  }
}
@media (max-width: 1024px) {
  .news-grid__wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-featured__card {
    grid-template-columns: 1fr;
  }

  .news-trends__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .news-grid__wrapper {
    grid-template-columns: 1fr;
  }

  .news-hero__title {
    font-size: 34px;
  }
}

.news-pagination {
  display: flex;
  flex-flow: row;

  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 40px;
}

.news-pagination > .page-numbers {
  list-style-type: none;
  padding: 0;

  gap: 12px;
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  bottom: 0;
  width: fit-content;
  border: 0;
}
.page-numbers {
  font: 400 20px/1.2 var(--font-primary);
  color: var(--color-white);
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-white);
  border-radius: 8px;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

.page-numbers.current {
  border-color: #f24534;
  background: #f24534;
}

#news-results {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 25px;
}

@media only screen and (min-width: 991px) {
  #news-results {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
  .news-pagination {
    padding-bottom: 80px;
  }
}

.news-trends__header h2 {
  font: 700 48px/0.6 var(--font-secondary);
  color: var(--color-primary);
  margin: 0 0 12px;
}
.news-trends__header p {
  font: 400 18px/1.2 var(--font-primary);
  color: var(--color-white);
}
.news-trends .news-card {
  position: relative;
}
.news-trends .news-card a {
  display: flex;
  flex-flow: row;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  padding-top: 233px;
  backdrop-filter: blur(12px); /* Standard syntax */
  -webkit-backdrop-filter: blur(12px);
}
.news-trends .news-card img {
  width: 1000%;
  height: 305px;
  overflow: hidden;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
@media only screen and (min-width: 991px) {
  .news-trends__header h2 {
    font-size: 64px;
    margin-bottom: 24px;
  }
  .news-trends__header p {
    font-size: 20px;
  }
}

.red-newsletter__inner {
  background-color: #de3b2b;
  padding: 24px;
  border-radius: 50px;
}
.red-newsletter__content {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.red-newsletter__content h2 {
  font-size: 700 48px/0.9 var(--font-secondary);
  color: var(--color-white);
  margin: 0;
}

.red-newsletter__content p {
  font: 400 18px/1.2 var(--font-primary);
  color: var(--color-white);
}

.red-newsletter__content input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.27);
  height: 52px;
  font: 400 20px/1.2 var(--font-primary);
  font-style: italic;
  color: var(--color-white);
  font-style: italic;
  padding-left: 20px;
  border-radius: 14px;
  border: 0;
}
.red-newsletter__content input:focus {
  outline: none;
}
.red-newsletter__content input::placeholder {
  font: 400 20px/1.2 var(--font-primary);
  font-style: italic;
  color: var(--color-white);
}
.subscribe-newsletter {
  font: 500 16px/1.2 var(--font-primary);
  color: #de3b2b;
  width: 235px;
  height: 36px;
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: center;
  margin: auto;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
}

@media only screen and (min-width: 991px) {
  .red-newsletter__inner {
    padding: 40px;
  }
  .red-newsletter__content {
    gap: 24px;
    margin-bottom: 32px;
  }

  .red-newsletter__content h2 {
    font-size: 64px;
  }
  .red-newsletter__content p {
    font-size: 20px;
  }
}

/* Sort custom select */

.custom-select {
  position: relative;
  width: fit-content;
  padding-right: 30px;
  cursor: pointer;
}

.custom-select__selected {
  background: transparent;
  color: #fff;
}
.custom-select__arrow {
  position: absolute;
  right: 0;
  top: 8px;
}
.custom-select__options {
  position: absolute;
  top: 100%;
  left: 0;
  width: fit-content;
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  display: none;
  z-index: 20;
}

.custom-select.open .custom-select__options {
  display: block;
}

.custom-select__options div {
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-body);
  transition: all 300ms ease;
}

.custom-select__options div:hover {
  background: #f5f5f5;
  font-weight: 700;
}

.custom-select__options .active {
  font-weight: bold;
}
