.card-div img:not(article img) {
  border-radius: 5px;
  -webkit-box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
  box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.mag-description {
  font-size: 0.8rem;
  color: var(--text-color);
}
.category-swiper {
  padding: 10px 0;
  border-top: solid 1px #f3f3f3;
}
.category-swiper a {
  margin-left: 10px;
  background-color: var(--primary-color2);
  padding: 5px 10px;
  border-radius: 20px;
  color: var(--primary-color);
  border: solid 1px var(--primary-color);
  font-weight: bold;
  font-size: 0.9rem;
}
.category-swiper .active {
  background-color: var(--primary-color);
  color: var(--primary-color2);
}
.category-swiper .swiper-slide {
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
}
.search-div {
  position: relative;
  margin: auto 0;
}
.search-div input {
  padding-left: 50px;
}
.search-div button {
  border: none;
  border-radius: 5px 0 0 5px;
  background: none;
  position: absolute;
  left: 0;
  margin: 0px 12px;
  height: 100%;
  width: 45px;
  color: #fff;
  background-color: var(--primary-color);
}
.card-div .search-div button {
  margin: 0px;
}
.search-div i {
  padding: 5px;
}
.mag-detail {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-color);
  margin-top: 10px;
}
.news-div {
  position: relative;
  text-align: justify;
  border-radius: 5px;
}

.news-div h2 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
  margin-top: 10px;
  color: #000;
}
.special-div::after {
  position: absolute;
  top: -10px;
  right: 40px;
  -webkit-box-shadow: rgb(0 0 0 / 18%) 0 2px 5px;
  box-shadow: rgb(0 0 0 / 18%) 0 2px 5px;
  content: "خبر ویژه";
  padding: 0 5px;
  border-radius: 5px;
  background-color: #00000063;
  font-weight: 400;
  color: #fff;
  font-size: 0.8rem;
}
.card-img .special-div::after {
  top: 20px;
  right: 20px;
}
.breadcrumbs {
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  list-style: none;
  font-size: 0.8rem;
  font-weight: bold;
}
.breadcrumbs a {
  color: var(--primary-color);
}
.breadcrumbs a::after {
  content: ">";
  margin: 0 5px;
  color: var(--secondary-color);
}
img {
  max-width: 100% !important;
  height: auto;
}
.card-img {
  position: relative;
  border-radius: 5px;
  padding: 0;
  -webkit-box-shadow: 0 4px 10px rgb(0 0 0 / 10%);
  box-shadow: 0 4px 10px rgb(0 0 0 / 10%);
  overflow: hidden;
}
.card-img > div {
  position: relative;
}
.sticky-div {
  position: sticky;
  top: 24px;
}
.title-div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 20px;
  border-radius: 5px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.63);
  background: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(rgba(0, 0, 0, 0.63)),
    to(rgba(255, 255, 255, 0))
  );
  background: -o-linear-gradient(
    bottom,
    rgba(0, 0, 0, 0.63) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.63) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  color: var(--primary-color2);
}
.title-div h1 {
  font-size: large;
}
.title-div > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  font-size: small;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
article a,
article a:hover {
  color: var(--secondary-color);
}
article h2 {
  margin-bottom: 20px !important;
}
h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
  margin-top: 10px;
  color: #000;
}
.news-swiper span {
  font-size: 0.8rem;
  text-align: justify;
  color: var(--text-color);
}
.related-news {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  margin: 20px 0;
}
.related-news img {
  width: 100px !important;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}
.related-news h3 {
  margin: 0;
  margin-bottom: 5px;
}
@media (max-width: 992px) {
  .search-div {
    margin: 5px 0;
  }
  .title-div {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px;
  }
  .sticky-div {
    position: unset;
  }
}
@media screen and (max-width: 360px) {
  .title-div h1 {
    font-size: 0.9rem;
  }
  .related-news h3 {
    font-size: 0.9rem;
  }
}
