
/*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(--color-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(--Primary);
  text-decoration: underline;
  display: inline-block;
}

.editor strong {
  color: inherit;
}
.editor h2 {
  color: var(--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(--color-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;
}

