:root {
  --news-item-width: 1fr;
  --news-list-cols: 3;
  --news-accesnt: #3e4d31;
  --links-color: #3b82f6;
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1200px;
    }
}

.container-news {
  max-width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
}

.news-item__content a {
  color: var(--links-color);
}

/* CONTENT */
.news-item__content h1,
.news-item__content h2,
.news-item__content h3,
.news-item__content h4,
.news-item__content h5,
.news-item__content h6
{
  line-height: normal !important;
  margin-bottom: 1rem;
}

.news-item__content p {
  margin-bottom: 10px;
}

.news-item__content figure {
  margin-bottom: 1rem;
}

.news-item__content figure:has(iframe),
.news-item__content figure:has(video)
 {
  position: relative;
}

.news-item__content figure iframe,
.news-item__content figure video
{
  position: absolute;
  top: 0;
  left: 0;
}

/* END CONTENT */

.news-list {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (var(--news-item-width))[var(--news-list-cols)];
  grid-template-columns: repeat(var(--news-list-cols), var(--news-item-width));
  gap: 1rem;
}

.news-item {
  display: block;
}

.news-list .news-item {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  transition: background-color 0.3s;
}

@media (min-width: 992px) {
  .news-list .news-item:hover {
    background-color: #f5f5f5;
  }
}
.news-list .news-item__banner {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.news-list .news-item__title {
  font-size: 1.2rem;
  line-height: 1.3;
}

.news-item__banner img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.news-item__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: color 0.4s;
  padding: 0 10px;
}

.news-view {
  padding-bottom: 2rem;
}

.news-item__preview {
  padding: 0 10px 10px;
}

.news-list .news-item:hover .news-item__title {
  color: var(--news-accesnt);
}

.news-view .news-item__title {
  padding: 0;
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 2rem;
}

/* .news-view .news-item__banner {
  height: 400px;
} */

.news-view .container-news {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
}

.news-view__sidebar {
  min-width: 290px;
}

.news-view__sidebar-title {
  margin-bottom: 1rem;
}

.news-view__sidebar-products {
  display: flex;
  flex-direction: column;
  gap: 1rem;  
}

.news-tags-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.news-tags__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--news-accesnt);
  border-radius: 50px;
}

.news-tags__item a {
  color: inherit;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  transition: 0.5s;
}

.news-tags__item:hover,
.news-tags__item.active {
  background-color: var(--news-accesnt);
  color: #ffffff;
}

.news-tags__item:hover {
  cursor: pointer;
}

.news-search form {
  position: relative;
  gap: 0.5rem;
}

.news-search form label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0.5rem;
}

.news-search form label svg {
  width: 1rem;
}

.news-search form input {
  width: 100%;
  border: 1px solid #dddddd;
  border-radius: 7px;
  padding: 0.5rem 2rem;
}

.news-search form button {
  padding: 0.5rem 1rem;
}
.news-search form button::before {
  display: none;
}

.news-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.news-empty__icon {
  color: var(--news-accesnt);
  opacity: 0.2;
}

.news-empty__icon svg {
  width: 5rem;
}

@media (max-width: 960px) {
  :root {
      --news-list-cols: 2;
  }
  
  /* .news-view .news-item__banner {
    height: 40vw;
  } */

  .news-view .container-news {
    flex-direction: column;
  }

  .news-view__sidebar-products {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 2;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
      --news-list-cols: 1;
  }

  .news-view .news-item__title {
    font-size: 1.75rem;
  }

  .news-item__banner {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .news-view__sidebar {
    min-width: auto;
  }
  .news-view__sidebar-products {
    -ms-grid-columns: (1fr)[1];
    grid-template-columns: repeat(1, 1fr);
  }
}