@import url("variables.css");

.tags h2 {
  color: #000;
  font-size: 1.5rem;
  line-height: 1.8rem;
  margin-top: 50px;
}

.themes-wrapper .tag {
  border: solid 1px var(--border-color);
  background-color: #fff;
}

.themes-wrapper .tag:hover {
  border-color: var(--primary-bg-color);
  color: var(--primary-bg-color);
}

.themes-wrapper,
.tags-wrapper {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.tags-wrapper .tag:not(.active-tag) {
  background-color: #f0f0f0;
}

.tags-wrapper .tag:hover {
  background-color: var(--active-color);
}

.news-content .active-tag {
  background-color: var(--active-color);
  color: #000;
  text-transform: none;
}

.div-cols {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
}

.left-col {
  align-self: flex-start;
  min-width: 350px;
  flex-basis: 350px;
  max-width: 350px;
}

.right-col {
  width: 100%;
}

.div-cols .img {
  min-width: 50px;
  flex-basis: 50px;
  max-width: 50px;
}

.div-cols .content {
  width: 100%;
}

.div-cols .ctitle {
  font-size: 1.1rem;
}

.search-div .div-cols {
  margin-top: 30px;
}

.search-div .search-cat {
  margin: 10px;
  font-size: 0.9rem;
  ;
}

.search-div .search-cat a {
  display: inline-block;
  padding: 0.5rem 0;
}

.search-div .div-cols .content a,
.search-div .div-cols .content a:hover {
  color: #444;
}

.search-div .news-date {
  float: right;
}

/*Swipper*/
.swiper-wrapper {
  margin-left: -25%;
}

/*News*/
.more-news-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0px 40px;
}

.news-list .model-image {
  max-width: 100%;
  max-height: 400px;
}

.more-news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.one-news,
.search-div .one-news:first-child,
.one-news.news-more-item:first-child,
.one-news.news-more-item:last-child {
  flex-basis: calc(33% - 20px);
  text-decoration: none;
  color: #000;
  margin-bottom: 20px;
  flex-direction: column;
}

.one-news {
  display: flex;
}

.news-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}

.cover-div {
  flex: 1;
}

.one-news h3 {
  flex: 1;
}

.one-news img {
  /*width: 100%;*/
}

.search-div .one-news img {
  max-height: 240px;
}

.one-news:first-child {
  flex-basis: 100%;
  display: flex;
  gap: 20px;
  flex-direction: row;
}

/*.one-news:first-child h3,
.one-news:last-child h3 {
  font-size: 1.5rem;
  line-height: 2.3rem;
  font-weight: 700;
  margin-top: 0;
}*/

.one-news h3,
.one-news h3 a,
.one-news.news-more-item:first-child h3,
.one-news.news-more-item:last-child h3 {
  font-size: 1.3rem;
  line-height: 1.8rem;
  font-weight: 400;
  color: #000000;
  margin: 15px 0 10px;
}

.news-more-item.one-news:first-child .news-meta-data,
.news-more-item.one-news:first-child h3 {
  padding-left: 20px;
}

.one-news:first-child .news-meta-data,
.one-news:first-child h3,
.one-news:last-child .news-meta-data,
.one-news:last-child h3 {
  padding-left: 0;
}

.news-meta-data {
  margin: 0 0 15px;
  font-size: 0.9rem;
  line-height: 1.4rem;
  font-weight: 300;
}

.news-meta-data .news-tag {
  font-size: 80%;
}

.one-news:hover {
  color: #000;
}

.one-news .button {
  background-color: var(--active-color);
  color: #000;
}

.one-news .button:hover {
  background-color: var(--primary-bg-color);
  color: #fff;
}

.news-date {
  margin-right: 20px;
}

/*One News page*/
.other-news {
  flex-basis: 30%;
}

.news-content {
  margin-bottom: 15px;
}

.news-content .tags-wrapper {
  margin-top: 30px;
}

.one-news-page .container {
  display: flex;
  flex: 30px;
}

.news-content {
  flex-basis: 70%;
}

.news-content.wide {
  flex-basis: 100%;
}

.news-content img {
  width: 100%;
  margin: 20px 0;
}

.news-content .visual-editor img {
  height: auto;
}

.news-content .model-image {
  margin-top: 0;
  height: auto;
}

.other-news .news-wrapper .news-list {
  background-color: #fff;
  padding: 20px 20px 20px 0;
  height: 425px;
  display: block;
}

.other-news .news-wrapper {
  margin-left: 25px;
}

.other-news .news-wrapper .one-news {
  display: block;
}

.news-wrapper .one-news-day {
  left: calc(50% - 40px);
}

.action-panel {
  display: flex;
  justify-content: space-between;
}

.action-panel .social-icons svg path {
  fill: var(--primary-bg-color);
}

.swiper-gallery {
  height: auto;
  padding-bottom: 30px;
}

.social-icon .copy {
  height: 26px;
  margin: 0;
}

.swiper-slide a {
  position: relative;
  display: block;
}

.news-content .action-panel .social-icon {
  padding-left: 0;
  background-repeat: no-repeat;
  background-position: 5px center;
  margin-right: 0;
}

.news-content .action-panel span {
  font-size: 0.9rem;
  font-weight: 300;
  padding-left: 0;
}

.news-content .action-panel {
  margin: 10px 0 20px;
}

.other-news .news-wrapper>.button {
  margin: 40px auto;
  text-align: center;
  display: block;
  width: fit-content;
}

.cover-note {
  margin-top: -15px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: gray;
  font-style: italic;
}

.dp-div {
  position: relative;
}

.dp-div #ui-datepicker-div {
  top: 100% !important;
  left: 0 !important;
  z-index: 2 !important;
}

@media screen and (max-width: 991px) {
  .swiper-wrapper {
    margin: 0 auto;
    width: 100%;
  }

  .slider-wrapper .swiper-gallery {
    width: auto;
  }

  .news-list {
    padding: 0;
    margin-top: 20px;
    flex-direction: column;
  }

  .news-list .model-image {
    max-width: 100%;
  }

  .one-news .cover-div {
    text-align: center;
  }

  .one-news img.model-image {
    max-height: 240px;
  }

  .one-news h3,
  .one-news.news-more-item:first-child h3,
  .one-news.news-more-item:last-child h3 {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .one-news:first-child,
  .one-news:last-child {
    flex-direction: column;
  }

  .one-news .news-meta-data,
  .news-more-item.one-news:first-child .news-meta-data,
  .one-news h3,
  .news-more-item.one-news:first-child h3 {
    padding-left: 0;
  }

  .news-meta-data {
    display: flex;
    justify-content: space-between;
  }

  .one-news-page .container {
    flex-direction: column;
  }

  .more-news-list {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  .h1-cols h1 {
    margin: 0 !important;
    padding: 0 !important;
  }

  .justify-content-sm-center {
    justify-content: center;
  }

  .div-cols {
    flex-direction: column;
  }
}

@media screen and (max-width: 440px) {}