﻿.ArticleView {
  display: none !important;
}

.image-gallery-wrapper li:nth-child(5) a::after {
  content: "نمایش همه" !important;
  position: absolute;
  color: white;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  left: 0;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 40px;
  /* 200% */
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(3px);
  z-index: 2;
}

body:not(.rtl) .image-gallery-wrapper li:nth-child(5) a::after {
  content: "All Images";
}

.image-gallery-wrapper li:nth-child(n + 6) {
  display: none;
}

.image-gallery-wrapper li:nth-child(5) a::before {
  content: url("../assets/icons/chevron.svg");
  position: absolute;
  top: 42%;
  left: 25%;
  --icon: 18px;
  filter: brightness(0) invert(1);
  /* تمام رنگ‌ها سفید میشن */
  z-index: 5;
}

.image-gallery-wrapper .ImagesItem {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 16px;
  row-gap: 32px;
}

.news_Inner_Wrapper:has(.ImagesItem > li:only-child) .news_Inner_Galler_Header,
.news_Inner_Wrapper:has(.ImagesItem > li:only-child) .gallery-image-container {
  display: none !important;
}

/* First image: full-width across all 4 columns */
.image-gallery-wrapper .gallery:first-child {
  grid-column: 1 / -1;
  height: unset !important;
  overflow: hidden;
}

/* Other images: perfect squares */

.image-gallery-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-gallery-wrapper li a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-gallery-wrapper li {
  height: unset !important;
}

/* GALLERY DETAIL */
@media (max-width: 900px) {
  .gallery-detail-wrapper .print-share {
    gap: 32px !important;
  }

  .gallery-detail-wrapper .title-box {
    padding: 24px 16px 52px 24px !important;
  }

  .gallery-detail-wrapper .row {
    padding-inline: 0 !important;
  }

  .gallery-detail-wrapper .gallery-detail-content {
    padding-inline: 0 !important;
  }

  .job-offer-detail .header {
    height: 200px !important;
  }
}

.gallery-detail-wrapper .categ a {
  border-radius: 8px;
  padding: 4px 30px;
  display: flex;
  background: var(--Gray-G99, #f2f2f2);
}

.gallery-detail-wrapper .image-wrapper img {
  width: auto;
  height: auto;
  object-fit: cover;
  margin-inline: auto;
}

.gallery-detail-wrapper .image-wrapper {
  width: 100%;
}

@media (max-width: 900px) {
  .gallery-detail-wrapper .image-wrapper img {
    width: 300px !important;
  }

  .gallery-detail-wrapper .image-gallery-wrapper {
    padding: 0 !important;
    box-shadow: none !important;
  }

  .gallery-detail-wrapper .gallery-image-container {
  }

  .gallery-detail-wrapper .gallery-image-container .top-image {
    width: 100%;
    height: 226px;
    border-radius: 12px;
    overflow: hidden;
  }

  .gallery-detail-wrapper .gallery-image-container .top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-detail-wrapper .image-gallery-wrapper .ImagesItem {
    display: flex !important;
    gap: 16px;
    height: auto;
    width: 100%;
    overflow-x: scroll !important;
    scroll-snap-type: x mandatory;
  }

  .gallery-detail-wrapper .image-gallery-wrapper li {
    display: flex;
    width: 148px !important;
    flex-shrink: 0;
    scroll-snap-align: start;
    height: 102px !important;
  }

  .gallery-detail-wrapper .image-gallery-wrapper li:nth-child(1) {
    display: none;
  }

  .gallery-detail-wrapper .image-gallery-wrapper li:nth-child(5) a::before {
    display: none !important;
  }

  .gallery-detail-wrapper .image-gallery-wrapper li:nth-child(5) a::after {
    display: none !important;
  }

  .gallery-detail-wrapper .image-gallery-wrapper li:nth-child(n + 6) {
    display: inline !important;
  }

  .gallery-wrapper {
    grid-template-columns: repeat(1, minmax(100%, 1fr)) !important;
  }

  .gallery-wrapper .each-box {
    width: 100% !important;
  }
}

.gallery-detail-wrapper .image-gallery-wrapper li {
  border-radius: 8px;
  overflow: hidden;
  height: 128px;
  width: 100%;
  position: relative;
}

.gallery-detail-wrapper .image-gallery-wrapper li:nth-child(5) a::after {
  content: "";
  position: absolute;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--Gray-G00, #121212);
  opacity: 0.7;

  z-index: 2;
}

.gallery-detail-wrapper .image-gallery-wrapper li:nth-child(n + 6) {
  display: none;
}

.gallery-detail-wrapper .image-gallery-wrapper .ImagesItem {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
  row-gap: 56px;
  padding: 0;
}

.gallery-detail-wrapper .gallery-image-container .more-button {
  bottom: 14px;
  left: 76px;
  z-index: 10;
}

/* First image: full-width across all 4 columns */
.gallery-detail-wrapper .image-gallery-wrapper .gallery:first-child {
  grid-column: 1 / -1;
  height: 556px;
  border-radius: 8px;
  overflow: hidden;
}

/* Other images: perfect squares */

.gallery-detail-wrapper .image-gallery-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-detail-wrapper .image-gallery-wrapper li a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-image-container video {
  height: max-content;
}

.gallery-image-container iframe {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 0;
}

.gallery-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 40px;
  column-gap: 16px;
  width: 100%;
  justify-items: start;
  transition: all 300ms;
}

@media (max-width: 1200px) {
  .gallery-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-wrapper .each-box {
  width: 100%;
  border-radius: 0;
  padding: 16px;
  position: relative;
  transition: all 300ms;
  background-color: white;
}

.gallery-wrapper .each-box:hover {
  box-shadow: 0 3px 48px 0 rgba(18, 18, 18, 0.1);
}

.gallery-wrapper .each-box .image {
  display: flex;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
}

.gallery-wrapper .each-box .categ {
  border-radius: 8px 0 0 8px;
  padding: 2px 16px;
  bottom: 16px;
  min-width: 108px;
  height: 28px;
  backdrop-filter: blur(4px);
  transition: all 300ms;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.rtl) .gallery-wrapper .each-box .categ {
  border-radius: 0 8px 8px 0;
}

.gallery-wrapper .each-box .title {
  min-height: 56px;
}

.gallery-wrapper .each-box .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-wrapper .each-box .bottom .button .count {
  padding: 2px 8px 2px 14px;
}

.gallery-wrapper .each-box .bottom .button .icon {
  width: 32px;
  height: 32px;
  transition: all 300ms;
}

body:not(.rtl) .gallery-wrapper .each-box .bottom .button .icon .ezIcon {
  --icon-rotate: 180deg;
}

.gallery-wrapper .each-box:hover .bottom .button .icon {
  background-color: var(--Primary-P40) !important;
}

.gallery-wrapper .each-box::after {
  content: "";
  width: 70%;
  height: 4px;
  background: var(--Primary-P30);
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: all 400ms ease;
  border-radius: 0 0 4px 4px;
  opacity: 0;
}

.gallery-wrapper .each-box:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.news-archive-categ::before {
  content: "";
  width: 100vw;
  height: 380px;
  background-size: cover;
  background-image: url(/Portals/_default/skins/ez-skin/assets/images/events-banner.png);
  background-repeat: no-repeat;
  position: absolute;
  left: 50%;
  top: -70px;
  transform: translateX(-50%);
  z-index: -1;
}

.news-archive-categ .categ-list {
  justify-content: center;
}

.news-archive-categ .categ-list .each-categ {
  opacity: 0.6;
  transition: all 300ms;
  padding: 8px 16px;
  border-bottom: 1.5px solid var(--Gray-G100, #fff);
  white-space: nowrap;
}

.news-archive-categ .categ-list .each-categ.active {
  opacity: 1;
}

.news-archive-categ .categ-list .each-categ:hover {
  opacity: 1;
}

@media (max-width: 992px) {
  .news-archive-categ .categ-list {
    justify-content: start !important;
    overflow-y: auto;
    scroll-snap-type: x mandatory;
    /* Firefox */
    scrollbar-width: none;
    width: 100%;
    /* IE & Edge قدیمی */
    -ms-overflow-style: none;
  }

  .news-archive-categ .categ-list::-webkit-scrollbar {
    display: none;
  }

  .news-archive-categ .categ-list .each-categ {
    scroll-snap-align: start;
  }
}

.starRating label {
  background: url("/Portals/_default/skins/ez-skin/assets/icons/rating-image.png") -155px -32px;
  pointer-events: none;
}

body.personabar-visible .starRating label {
  cursor: pointer;
  pointer-events: unset;
}

.starRating {
  display: flex;
  gap: 8px;
}

.cars_Inner_Paragraph_Wrapper .cars_Inner_Paragraph_Image:not(:has(video)) {
  display: none;
}

.rating_Wrapper > img {
  height: 24px;
}

.blog__Detail__Comment__Post .blog__Detail__Comment__Post_Form {
  background: var(--Gray-G99, #f2f2f2);
  padding: 32px;
}

.blog__Detail__Comment__Post .blog__Detail__Comment__Post_Form .first-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.blog__Detail__Comment__Post .blog__Detail__Comment__Post_Form .last-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  padding-bottom: 24px;
}

.blog__Detail__Comment__Post
  .blog__Detail__Comment__Post_Form
  .last-row
  input[type="text"] {
  width: 150px !important;
  max-width: calc(50% - 32px);
  text-align: center;
  direction: ltr;
}

.blog__Detail__Comment__Post
  .blog__Detail__Comment__Post_Form
  .last-row
  .Normal {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  align-items: center;
  justify-content: start;
  padding-top: 36px;
}

.blog__Detail__Comment__Post
  .blog__Detail__Comment__Post_Form
  .last-row
  .Normal:after {
  content: "کد امنیتی را وارد نمایید";
}

body:not(.rtl)
  .blog__Detail__Comment__Post
  .blog__Detail__Comment__Post_Form
  .last-row
  .Normal:after {
  content: "Enter the code shown above";
}

.blog__Detail__Comment__Post
  .blog__Detail__Comment__Post_Form
  .last-row
  .Normal:before {
  content: "کد امنیتی را وارد نمایید";
  display: none;
}

body:not(.rtl)
  .blog__Detail__Comment__Post
  .blog__Detail__Comment__Post_Form
  .last-row
  .Normal:before {
  content: "Enter the code shown above";
  display: none;
}

.blog__Detail__Comment__Post
  .blog__Detail__Comment__Post_Form
  .last-row
  .Normal
  > div {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
}

.blog__Detail__Comment__Post
  .blog__Detail__Comment__Post_Form
  .last-row
  .Normal
  img {
  height: 48px !important;
}

.blog__Detail__Comment__Post .blog__Detail__Comment__Post_Form .last-row > p {
  width: max-content !important;
  margin: 0;
}

.blog__Detail__Comment__Post_Form {
  display: flex;
  flex-direction: column;
}

.blog__Detail__Comment__Post_Form textarea {
  width: 100% !important;
}

.blog__Detail__Comment__Post_Form p {
  width: 100% !important;
}

.blog__Detail__Comment__Post #Notify {
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.blog__Detail__Comment__Post_Form p:nth-child(2) {
  width: 100% !important;
}

.blog__Detail__Comment__Post #Notify span.Normal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog__Detail__Comment__Post #Notify span.Normal input {
  margin: 0 0 0 0.5rem;
}

.blog__Detail__Comments {
  margin-bottom: calc(var(--main-space) * 1.75);
}

.blog__Detail__NoComment__Txt img {
  margin-left: 1rem;
  width: 1.5rem;
  height: 1.5rem;
}

.blog__Detail__Comment__Post input[type="text"],
.blog__Detail__Comment__Post textarea {
  width: 100% !important;
  max-width: 100%;
  border: unset !important;
  padding: 12px;
  color: var(--Gray-G50, #7a7a7a);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  /* 200% */
  transition: var(--transition);
  min-height: 48px;
  resize: none;
  background: var(--Gray-G100, #fff);
  transition: var(--transition);
}

.blog__Detail__Comment__Post input[type="text"]:focus,
.blog__Detail__Comment__Post textarea:focus {
  border: 0.5px solid var(--Gray-G90, #e4e4e4);
}

.blog__Detail__Comment__Item__Reply,
.blog__Detail__Comment__Post input[type="button"] {
  width: fit-content;
  column-gap: calc(var(--gap) * 2);
  --icon-color: var(--btn-accent);
  display: flex;
  white-space: nowrap;
  transition: var(--transition);
}

.blog__Detail__Comment__Post input[type="button"] {
  background: var(--Primary-P30, #00446d);
  color: var(--Gray-G100, #fff);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
  /* 200% */
  padding: 8px 36px;
  align-items: center;
  justify-content: center;
  border: none !important;
}

.blog__Detail__Comment__Post #Notify {
  padding: 0 !important;
  margin-bottom: 0 !important;
  color: var(--Gray-G60, #959595);
  text-align: right;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  /* 200% */
}

.blog__Detail__Comment__Post #Notify span.Normal {
  display: flex;
  align-items: center;
  /* margin-bottom: 2rem; */
}

.blog__Detail__Comment__Post #Notify span.Normal input {
  margin: 0 0 0 0.5rem;
}

.blog__Detail__Comments {
  margin-bottom: calc(var(--main-space) * 1.75);
}

.blog__Detail__Comment__Post .col-lg-8 div.Normal img {
  border-radius: 0.75rem;
}

.blog__Detail__Comment__Post .col-lg-8 div.Normal div {
  margin: 0.375rem 0;
  color: var(--Gray-30);
  font-size: var(--fz-t5);
  line-height: var(--lh-t5);
  font-weight: var(--fw-400);
}

.blog__Detail__Comment__Post .col-lg-8 div.Normal {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  width: 100%;
}

.blog__Detail__Comment__Post .col-lg-8 div.Normal input {
  width: 130px !important;
  min-height: 2.5rem !important;
  height: 2.5rem !important;
  margin-bottom: 0 !important;
}

.blog__Detail__Comment__Item {
  border-radius: 1.25rem;
  background: var(--primary-99);
  box-shadow: 0px 8px 40px 0px rgba(18, 18, 18, 0.07);
  padding: 2rem;
  margin-bottom: 2rem !important;
}

.blog__Cats__Ttl,
.blog__Detail__Comment__Item__Content {
  margin-bottom: 1rem;
}

.blog__Detail__Comment__Item__Header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.blog__Detail__Comment__Item__Btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog__Detail__Comment__Item__Reply {
  --btn-accent: var(--mc1);
  --btn-bak: #fff;
  background-color: var(--btn-bak);
  padding: 2px 2.375rem;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 0.75rem;
}

.blog__Detail__Comments .paginationjs-pages ul {
  display: flex;
  gap: 1rem;
}

.blog__Detail__NoComment {
  background: var(--Gray-G99);
  padding: 2rem;
}

.blog__Detail__NoComment__Txt img {
  margin-left: 1rem;
  width: 1.5rem;
  height: 1.5rem;
}

.blog__Detail__Comment__Post_Form p:first-child {
  width: calc(50% - 12px);
}

.blog__Detail__Comment__Post_Form p:nth-child(3) {
  width: 100%;
}

.blog__Detail__Comment__Post_Form p:nth-child(4) {
  width: 100%;
}

.table_of_content_wrapper:not(:has(.table_of_content_item)) {
  display: none;
}

.news-detail-wrapper:has(address) .image-gallery-wrapper {
  display: none;
}

@media (max-width: 992px) {
  .blog__Detail__Comment__Post .blog__Detail__Comment__Post_Form .first-row {
    flex-flow: column;
  }

  .blog__Detail__Comment__Post .blog__Detail__Comment__Post_Form {
    padding: 32px 16px !important;
  }

  .blog__Detail__Comment__Post .blog__Detail__Comment__Post_Form .last-row {
    flex-flow: column;
    padding-bottom: 0;
    align-items: center;
  }

  .blog__Detail__Comment__Post
    .blog__Detail__Comment__Post_Form
    .last-row
    .Normal {
    width: 100%;
    justify-content: start;
  }

  .blog__Detail__Comment__Post .blog__Detail__Comment__Post_Form .last-row > p {
    display: flex;
    justify-content: end;
    width: 100%;
  }
}

#Notify input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--Gray-G20, #3d3d3d);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}

#Notify input[type="checkbox"]::after {
  content: "✓";
  position: absolute;
  top: -1px;
  left: 4px;
  color: var(--Gray-G20, #3d3d3d);
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  transition: all 200ms;
}

#Notify input[type="checkbox"]:checked::after {
  opacity: 1;
}

.blog__Detail__Comments {
  margin-top: 24px;
}

.commentStyle {
  background: var(--Gray-G99);
  padding: 32px;
  margin-bottom: 20px;
}

.commentStyle.level-1 {
  margin-right: 54px;
  padding: 32px;
  margin-bottom: 30px !important;
  background-color: #c4161c05;
}

.commentStyle .date-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.commentStyle .date-author .author {
  font-size: 16px;
  font-weight: 700;
  line-height: 200%;
}

.commentStyle .comment {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 24px;
}

.commentStyle.level-1 .comment {
  margin-top: 14px;
}

.commentStyle .reply {
  margin-top: 14px;
  justify-content: end;
  display: flex;
}

.commentStyle .reply button {
  background: var(--Primary-P30, #00446d);
  color: var(--Gray-G100, #fff);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
  /* 200% */
  padding: 8px 60px;
  align-items: center;
  justify-content: center;
  border: none !important;
}

.blog__Detail__Comment__Post_Form p {
  position: relative;
  margin-bottom: 16px;
}

.blog__Detail__Comment__Post_Form span.NormalRed {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1;
  font-weight: 500;
  font-size: 13px;
}

body:not(.rtl) .blog__Detail__Comment__Post_Form span.NormalRed {
  left: 0;
  right: auto;
}

.blog__Detail__Comment__Post_Form span.NormalRed br {
  display: none;
}

@media (max-width: 768px) {
  .blog__Detail__Comment__Post
    .blog__Detail__Comment__Post_Form
    .last-row
    .Normal:after,
  body:not(.rtl)
    .blog__Detail__Comment__Post
    .blog__Detail__Comment__Post_Form
    .last-row
    .Normal:after {
    display: none;
  }

  .blog__Detail__Comment__Post
    .blog__Detail__Comment__Post_Form
    .last-row
    .Normal:before,
  body:not(.rtl)
    .blog__Detail__Comment__Post
    .blog__Detail__Comment__Post_Form
    .last-row
    .Normal:before {
    display: block;
    width: 100%;
  }
}
