.editor-content input[type="text"],
.editor-content input[type="email"],
.editor-content input[type="number"],
.editor-content input[type="password"],
.editor-content input[type="search"],
.editor-content input[type="tel"],
.editor-content textarea,
.editor-content select,
.comment-form input,
.comment-form textarea {
  border-radius: 4px;
  border: 1px solid rgba(108, 111, 114, 0.15);
  background: #fff;
  padding: 10px 24px;
  height: 60px;
  display: block;
  box-sizing: border-box;
  font-family: inherit;
  width: 100%;
  transition: 0.3s;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: right;
}
.editor-content input[type="text"]:focus,
.editor-content input[type="email"]:focus,
.editor-content input[type="number"]:focus,
.editor-content input[type="password"]:focus,
.editor-content input[type="search"]:focus,
.editor-content input[type="tel"]:focus,
.editor-content textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  background-color: rgba(233, 238, 253, 0.48);
}
.editor-content.acf-error input[type="text"],
.editor-content.acf-error input[type="email"] {
  border: 1px solid #924c59;
  background: rgba(200, 150, 159, 0.2);
  box-shadow: 0px 4px 20px 0px rgba(226, 226, 226, 0.25);
}
.editor-content input[type="text"]::placeholder,
.editor-content input[type="email"]::placeholder,
.editor-content input[type="number"]::placeholder,
.editor-content input[type="password"]::placeholder,
.editor-content input[type="search"]::placeholder,
.editor-content input[type="tel"]::placeholder,
.editor-content textarea::placeholder,
.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: rgba(77, 78, 80, 0.4);
  font-size: 14px;
}
.editor-content textarea,
.comment-form textarea {
  min-height: 182px;
}
.editor-content {
  line-height: 35px;
}
.editor-content img {
  border-radius: 3px;
  margin-bottom: 10px;
  font-family: var(--main_font);
}

.owl-gallery {
  margin: 25px auto;
  padding: 0 30px;
}

.gallery_item {
  position: relative;
  display: block;
}
.lg-outer {
  text-align: right;
}
.swiper-lightgallery {
  margin-bottom: 25px;
  width: 100%;
}

.lg-thumb {
  margin: auto;
}

.lightgallery-item img {
  width: 100%;
  display: block;
  margin: 0 !important;
  transition: 0.4s;
}

.lightgallery-item {
  display: block;
  position: relative;
  text-align: center;
  margin: auto;
  border-radius: 4px;
  overflow: hidden;
}
.lightgallery-item-wrap:before {
  opacity: 0;
  visibility: hidden;
  content: "\e927";
  position: absolute;
  color: var(--color1);
  font-size: 30px;
  inset: 0;
  margin: auto;
  transition: 0.4s;
  z-index: 2;
  font-family: icomoon;
  line-height: 1;
  height: 30px;
  width: 30px;
  pointer-events: none;
}
.lightgallery-item:before {
  opacity: 0;
  visibility: hidden;
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 4px;
  background: rgba(68, 209, 201, 0.39);
  backdrop-filter: blur(2px);
  inset: 10px;
  margin: auto;
  transition: 0.3s;
  z-index: 1;
}
.lightgallery-item:after {
  opacity: 0;
  visibility: hidden;
  content: "";
  position: absolute;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 4px;
  background: url("../img/album.png");
  inset: 10px;
  margin: auto;
  transition: 0.3s;
  z-index: 1;
}
.lightgallery-item:hover:after,
.lightgallery-item:hover:before {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
}
.lightgallery-item:hover:after,
.lightgallery-item:hover:before,
.lightgallery-item-wrap:hover:before {
  opacity: 1;
  visibility: visible;
  transition: 0.3s;
}

.editor-content .alignleft {
  float: left;
  margin: 20px 20px 20px 0;
  clip-path: polygon(0 40px, 40px 0, 100% 0, 100% 100%, 0 100%);
}
.editor-content .alignleft img {
  clip-path: polygon(0 40px, 40px 0, 100% 0, 100% 100%, 0 100%);
}

.editor-content .alignright {
  float: right;
  margin-left: 20px;
  margin-bottom: 20px;
  margin-top: 20px;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}
.editor-content .alignright img {
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}
.editor-content .aligncenter {
  text-align: center;
  display: block;
  margin: 20px auto;
  clip-path: polygon(
          0 0,
          calc(100% - 40px) 0,
          100% 40px,
          100% 100%,
          40px 100%,
          0 calc(100% - 40px)
  );
}
.editor-content .aligncenter img {
  clip-path: polygon(
          0 0,
          calc(100% - 40px) 0,
          100% 40px,
          100% 100%,
          40px 100%,
          0 calc(100% - 40px)
  );
}

.editor-content li h1,
.editor-content li h2,
.editor-content li h3,
.editor-content li h4,
.editor-content li h5,
.editor-content li h6 {
  margin-bottom: 0;
  display: inline;
  color: #565656;
  font-family: var(--main_font);
  width: unset !important;
}

.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
  margin-bottom: 16px;
  color: var(--color1);
  font-family: var(--main_font);
  width: unset !important;
}
.editor-content.main-content h1,
.editor-content.main-content h2,
.editor-content.main-content h3,
.editor-content.main-content h4,
.editor-content.main-content h5,
.editor-content.main-content h6 {
  margin-top: 10px;
  width: unset !important;
}
.editor-content h1 {
  font-size: calc(var(--heading_h1_fontsize));
}
.editor-content h2 {
  font-size: calc(var(--heading_h1_fontsize) - 2px);
}
.editor-content h3 {
  font-size: calc(var(--heading_h1_fontsize) - 4px);
}
.editor-content h4 {
  font-size: calc(var(--heading_h1_fontsize) - 5px);
}
.editor-content h5 {
  font-size: calc(var(--heading_h1_fontsize) - 6px);
}
.editor-content h6 {
  font-size: calc(var(--heading_h1_fontsize) - 7px);
}
.editor-content ul,
.editor-content ol {
  margin-bottom: 10px;
}
.editor-content ul li {
  margin: 12px 0;
  color: #232323;
  font-size: 15px;
  font-family: var(--main_font);
  line-height: 38px;
}
.editor-content.main-content ul li:before {
  content: "\e90d";
  font-family: icomoon;
  font-size: 12px;
  margin-left: 18px;
  color: var(--color3);
  transition: 0.4s ease;
  display: inline-flex;
}
.editor-content .wp-caption-text {
  text-align: center;
  color: var(--color1);
}
.editor-content .wp-caption {
  width: auto !important;
}
.editor-content.main-content p a {
  color: var(--color1);
  background: #00377b14;
  border-radius: 5px;
  padding: 0 5px;
}
.editor-content.main-content a:hover {
  color: var(--color2);
}
.editor-content.main-content td a {
  color: var(--color2);
}
.editor-content.main-content td a:hover {
  color: var(--color1);
}
.editor-content a .btn {
  background: var(--color2);
  border: none;
  padding: 10px;
  text-align: center;
  color: #fff;
  border-radius: 5px;
  font-family: inherit;
}
.editor-content a .btn:hover {
  color: var(--color1);
}
.editor-content a .btn i {
  display: none;
}
.editor-content p {
  font-size: 14px;
  line-height: 33px;
  margin-bottom: 20px;
  text-align: justify;
  color: #232323;
  font-family: var(--main_font);
}
.text-light.editor-content p,
.text-light.editor-content ul li,
.text-light.editor-content ol li,
.light-contetn .editor-content p,
.light-content .editor-content ul li,
.light-content .editor-content ol li,
.light-content .editor-content.main-content h1,
.light-content .editor-content.main-content h2,
.light-content .editor-content.main-content h3,
.light-content .editor-content.main-content h4,
.light-content .editor-content.main-content h5,
.light-content .editor-content.main-content h6 {
  color: #fff;
}
.text-light.editor-content a,
.light-content .editor-content p a {
  color: var(--color2);
}
.text-light.editor-content a:hover,
.light-content .editor-content p a:hover {
  color: var(--color3);
}
.editor-content blockquote {
  padding: 57px 20px 20px 20px;
  border-radius: 6px;
  background: #f1f2f3;
  position: relative;
  margin: 80px 0 20px;
  display: table;
}
.editor-content blockquote:before {
  font-family: "icomoon";
  position: absolute;
  display: inline-block;
  top: -35px;
  right: 0;
  font-size: 100px;
  content: "\e91b";
  color: rgb(0, 55, 123);
  text-shadow: 3px -3px 11px rgba(0, 55, 123, 0.6);
}
.editor-content blockquote:after {
  font-family: "icomoon";
  position: absolute;
  display: inline-block;
  top: -35px;
  right: 0;
  font-size: 100px;
  content: "\e91c";
  margin-left: -1.0419921875em;
  color: rgb(68, 209, 201);
  text-shadow: 3px -3px 11px rgba(68, 209, 201, 0.6);
}
.editor-content blockquote p {
  color: #313233;
  font-size: 15px;
  position: relative;
  margin-bottom: 0;
}
.editor-content ol {
  list-style: none;
  margin-left: 0;
  padding: 0;
}
.editor-content ol li {
  counter-increment: item;
  position: relative;
  padding-right: 35px;
  margin: 10px 0;
  color: #232323;
}
.editor-content ol li:before {
  content: counter(item) " ";
  color: var(--color3);
  font-size: 18px;
  height: 100%;
  width: 15px;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -ms-align-items: flex-start;
  align-items: flex-start;
  justify-content: flex-start;
  position: absolute;
  right: 0;
}
.editor-content ol li:after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color3);
  top: 19px;
  right: 15px;
}

.editor-content .wp-video,
.editor-content video {
  display: block;
  margin: 30px auto;
  width: 100% !important;
  max-width: 1300px;
  border-radius: 15px;
  overflow: hidden;
}
.editor-content .wp-video {
  display: flex;
}

/* جداول معمولی در محتوا – به جز ACF و wpDataTables */
.editor-content.main-content table:not(.acf-table):not(.wpDataTable) thead,
.editor-content.main-content table:not(.acf-table):not(.wpDataTable) tbody {
  display: table;
  margin: 0 auto;
  /*width: 100%;*/
}
.editor-content.main-content table:not(.acf-table):not(.wpDataTable) td {
  border-bottom: none;
  padding: 0.5rem 1rem;
  font-size: inherit;
  text-align: center;
}
@media (max-width: 576px) {
  .editor-content.main-content table:not(.acf-table):not(.wpDataTable) td {
    white-space: nowrap;
  }
}
.editor-content.main-content table:not(.acf-table):not(.wpDataTable) td p {
  margin: 0 !important;
}
.editor-content.main-content table:not(.acf-table):not(.wpDataTable) tr:first-child th,
.editor-content.main-content table:not(.acf-table):not(.wpDataTable) tr:first-child td {
  border-top: none;
  border-right: none;
  padding: 1rem;
  background: var(--color1);
  color: #ffff;
}
.editor-content.main-content table:not(.acf-table):not(.wpDataTable) tr:first-child th,
.editor-content.main-content table:not(.acf-table):not(.wpDataTable) tr:first-child th span,
.editor-content.main-content table:not(.acf-table):not(.wpDataTable) tr:first-child th p,
.editor-content.main-content table:not(.acf-table):not(.wpDataTable) tr:first-child td,
.editor-content.main-content table:not(.acf-table):not(.wpDataTable) tr:first-child td span,
.editor-content.main-content table:not(.acf-table):not(.wpDataTable) tr:first-child td p {
  color: #ffff !important;
}
.editor-content.main-content table:not(.acf-table):not(.wpDataTable):is(tbody, thead) {
  display: table;
  width: 100%;
}
.editor-content.main-content table:not(.acf-table):not(.wpDataTable) {
  border-collapse: collapse;
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: auto;
  scrollbar-color: var(--color1) #c2d2e4;
  scrollbar-width: thin !important;
  border-bottom: 0;
  height: 100% !important;
  width: 100% !important;
  border-radius: 10px;
}
.editor-content.main-content table:not(.wpDataTable) tr,
.editor-content.main-content table:not(.wpDataTable) td,
.editor-content.main-content table:not(.wpDataTable) th {
  border: 1px solid #dcdfe1;
  text-align: center;
}
.editor-content.main-content table:not(.wpDataTable) tr {
  background: #fff;
}
.editor-content.main-content table:not(.wpDataTable) tr:nth-child(2n-1) {
  background: #f1f2f3;
}
.editor-content.main-content table:not(.wpDataTable) th {
  font-weight: bold;
}
.editor-content.main-content table:not(.wpDataTable) td {
  border-bottom: none;
  color: #000;
  padding: 10px 15px;
  font-size: inherit;
}
/* width */
.editor-content.main-content table:not(.wpDataTable)::-webkit-scrollbar {
  height: 4px !important;
  width: 3px !important;
}
/* Track */
.editor-content.main-content table:not(.wpDataTable)::-webkit-scrollbar-track {
  background: #eae8e4 !important;
  height: 4px !important;
}
/* Handle */
.editor-content.main-content table:not(.wpDataTable)::-webkit-scrollbar-thumb {
  background: rgb(123, 123, 123) !important;
  height: 4px !important;
}
/* Handle on hover */
.editor-content.main-content table:not(.wpDataTable)::-webkit-scrollbar-thumb:hover {
  background: var(--color1);
}

.svg-clip {
  position: absolute;
  z-index: -1;
  width: 0;
  height: 0;
}

@media screen and (min-width: 992px) {
  .editor-content p {
    font-size: 15px;
    line-height: 38px;
  }
  .swiper-lightgallery {
    padding: 20px 0 30px;
  }
  .lightgallery-item-wrap:before {
    font-size: 49px;
    height: 49px;
    width: 49px;
  }
  .editor-content blockquote {
    padding: 31px 48px 32px 24px;
    margin: 40px 91px 40px 0;
  }
  .editor-content blockquote:before {
    top: 50%;
    transform: translateY(-50%);
    right: -90px;
    font-size: 100px;
  }
  .editor-content blockquote:after {
    top: 50%;
    transform: translateY(-50%);
    right: -90px;
    font-size: 100px;
  }
}
@media screen and (min-width: 1400px) {
  .editor-content blockquote {
    margin: 40px 190px 40px 100px;
  }
}