@keyframes ring-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.2;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
}

@-webkit-keyframes fadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0)
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0)
  }
}

@font-face {
  font-family: "myIranYekan";
  font-weight: normal;
  src: url("../../fonts/iranyekan/ttf/iranyekanwebregular.ttf") format("truetype"),
    url("../../fonts/iranyekan/woff/iranyekanwebregular.woff") format('woff');
}

@font-face {
  font-family: "myIranYekan";
  font-weight: bold;
  src: url("../../fonts/iranyekan/ttf/iranyekanwebbold.ttf") format("truetype"),
    url("../../fonts/iranyekan/woff/iranyekanwebbold.woff") format('woff');
}

@font-face {
  font-family: "myPinar";
  font-weight: normal;
  src: url("../../fonts/pinar/Pinar-Regular.ttf") format("truetype"),
    url("../../fonts/pinar/Pinar-Regular.woff2") format('woff2');
}

@font-face {
  font-family: "myPinar";
  font-weight: bold;
  src: url("../../fonts/pinar/Pinar-Bold.ttf") format("truetype"),
    url("../../fonts/pinar/Pinar-Bold.woff2") format('woff2');
}

body,html{
  font-family: "myIranYekan", sans-serif;
  direction: rtl;
  scroll-behavior: smooth;
}
@media screen and (min-width:1024px) {
  .contain {
    max-width: 90%;
    margin: 0 auto;
  }
}

::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background: #141414;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-theme-primary);
  border-radius: 10px;
  border: 5px solid #111;
}


.main-header {
  transition: background-color 0.3s ease, color 0.3s ease;

}

.animation-header {
  background-color: rgba(0, 0, 0, 0.93);
  box-shadow: 0 8px 10px 5px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 1s;
}
.button-up{
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.animation-button-up{
  transform: translateY(-35px);
  opacity: 1;
}



.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 99;
}
.h-modal{
  z-index: 100;
}
  .menu-list {
    transform: translateX(100%); 
    max-width: 20rem;
    width: 100%;
    transition: transform 0.5s ease ,opacity 0.5s ease ;
  }
  .menu-list.show {
    transform: translateX(0);
  }


.search-box {
  visibility: hidden;
  transform: translateY(-280%);
  transition: all 0.5s ease;

}

.search-box.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: all 0.5s ease;

}


.button-icon {
  background-color: var(--color-theme-primary);
}

.button-icon:hover {
  transform: scale(1.05);
}

.button-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: var(--color-theme-hover-primary);
  transition: all 1s;
  z-index: -1;
}

.button-icon:hover::after {
  animation: wavy-hover 1s;
}


.line-footer::after {
  content: "";
  display: block;
  width: 45%;
  height: 5px;
  background-color: var(--color-theme-primary);
  position: absolute;
  top: 95%;
  right: 0;
}



.bg-relation {
  background-image: url(../../image/design/map.png);
  background-repeat: no-repeat;
  background-size: cover;
}



/* editor */
/*form*/
.harmonyform {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: none !important;
  overflow: hidden;
}

.harmonyform .form-header {
  padding: 1rem;
  font-size: 20px;
  background: #eee;
}
.harmonyform .section {
  padding: 0.5rem;
}
.harmonyform .section div.row:nth-child(n + 1) {
  margin-top: 1rem;
}

.harmonyform .section .row {
  gap: 5px;
}
.harmonyform .section .row .label {
  min-width: 50px;
}
.harmonyform .section .row:has(input[type="radio"]) {
  display: flex;
}
.harmonyform .section .row:has(select) {
  display: flex;
}
.harmonyform .section .row .field .input-width-default {
  border: 1px solid gray;
  border-radius: 5px;
}
.harmonyform .section .row span.red- {
  color: hsl(0, 100%, 50%);
}
.harmonyform .section .row:has(input[type="button"]) {
  margin-bottom: 1.5rem;
}
.harmonyform .section .row .field {
  display: flex !important;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.harmonyform .submit-form {
  background: hsl(120, 100%, 25%);
  padding: 0.25rem 3rem;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
}
.harmonyform .section .row .field select {
  min-width: 100px;
  text-align: center;
}
.harmonyform .field input[type="text"] {
  min-width: 100px;
  border: 1px solid #eee;
  outline: 1px;
  border-radius: 5px;
  width: 270px;
  padding: 0.25rem;
}
.harmonyform .form-description {
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  padding: 1rem 0 0.25rem 0;
}

.editor .hform {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media screen and (min-width: 640px) {
  .editor ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.editor ul {
  display: grid;
  list-style-position: inside;
  padding: 0.75rem;
  background-color: rgb(243 244 246);
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  list-style-type: disc;
  gap: 0.75rem;
}

.editor > ul li {
  padding: 0.2rem;
}

.editor > ul li *:first-child {
  display: inline;
}

.editor > ul li a:hover {
  color: var(--theme-primary);
}

/* table */

@media screen and (max-width: 767px) {
  .editor table {
    text-wrap: nowrap;
    display: block;
    overflow-x: auto;
  }

  .editor table thead,
  .editor table tbody {
    display: inline-table;
    width: 100%;
  }
}

.editor table {
  width: 100% !important;
  border: 1px solid #cad5e2;
}

.editor table tr {
  border-bottom: 1px solid #cad5e2;
}
.editor table td,
.editor table th {
  padding: 0.5rem;
}

.editor table:has(> tbody:first-child) > tbody:first-child > tr:first-child {
  background-color: #f3f4f6;
}

.editor table:has(> thead:first-child) > thead:first-child > tr:first-child {
  background-color: #f3f4f6;
}
/* table */

.editor a {
  color: var(--theme-primary);
  text-decoration: underline;
  display: inline-block;
}

.editor strong {
  color: inherit;
}
.editor h2 {
  color: var(--theme-primary);
  font-size: 1rem;
  
}

.editor h3 {
  color: #00675a;
  font-size: 1rem;
  
}

.editor p {
  color: #343434;
    text-align: justify;
    font-size: .875rem;
    line-height: 1.5rem;
}

/*editor*/
.editor * {
  :where(& > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    --spacing: 0.25rem;
    margin-block-start: calc(
      calc(var(--spacing) * 3) * var(--tw-space-y-reverse)
    );
    margin-block-end: calc(
      calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse))
    );
  }
}

.editor img {
  margin: 0 auto;
  max-height: 40rem;
  object-fit: contain;
}

/* pagination */
.page-number li {
  margin: 0 0.25rem;
}
.page-number li a {
  min-width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #a7b3ae;
  padding: 0.5rem;
}

.page-number li.active {
  background-color: #121212;
  color: white;
}
.page-number li a:hover {
  background-color: #121212;
  color: white;
}

/* pagination */

/*accardeon*/


.editor blockquote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #fef3fd;
  border-top: 3px solid var(--theme-primary);
  padding: .75rem;
  transition: all .2s ease;
}

.editor blockquote:hover {
  background-color: #fff3e0;
}

.editor blockquote a {
color: #c0392b !important;
}


.editor blockquote::before {
  content: "بیشتر بخوانید :";
  border: none;
  margin-left: .5rem;
  transition: all .2s ease;
  white-space: nowrap;
}

.editor blockquote p {
  margin: 0;
}


/* editor */