/* Editor Color Settings */

.phearum-color-settings .color-setting {
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.phearum-color-settings p {
  margin-bottom: 8px;
  font-weight: 600;
}

.phearum-color-settings .components-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Block Heading Block Styles */

.phearum-section-heading {
  display: block;
  width: 100%;
  padding-top: 5.625rem;
  padding-bottom: 1.25rem;
  position: relative;
}

.phearum-section-heading * {
  margin: 0;
  padding: 0;
}

/* Spacing variants */

.phearum-section-heading.spacing-small {
  margin: 1rem auto;
}

.phearum-section-heading.spacing-small > * + * {
  margin: 0.5rem auto;
}

.phearum-section-heading.spacing-medium > * + * {
  margin: 1rem auto;
}

.phearum-section-heading.spacing-large > * + * {
  margin: 1.5rem auto;
}

.phearum-section-heading.spacing-xl {
  margin: 4rem auto;
}

.phearum-section-heading.spacing-xl > * + * {
  margin-top: 2rem;
}

/* Text alignment */

.phearum-section-heading.text-left {
  text-align: left;
}

.phearum-section-heading.text-center {
  text-align: center;
}

.phearum-section-heading.text-right {
  text-align: right;
}

/* Heading styles */

.section-heading-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.section-heading-title h1 {
  font-size: 3rem;
  color: #111827;
  font-weight: 800;
}

.section-heading-title h2 {
  font-size: 2.5rem;
  color: #1f2937;
  font-weight: 700;
}

.section-heading-title h3 {
  font-size: 2rem;
  color: #374151;
  font-weight: 600;
}

.section-heading-title h4 {
  font-size: 1.75rem;
  color: #4b5563;
  font-weight: 600;
}

.section-heading-title h5 {
  font-size: 1.5rem;
  color: #6b7280;
  font-weight: 500;
}

.section-heading-title h6 {
  font-size: 1.25rem;
  color: #9ca3af;
  font-weight: 500;
}

/* Paragraph styles */

.section-heading-paragraph {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #6b7280;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.phearum-section-heading.text-left .section-heading-paragraph {
  margin-left: 0;
  margin-right: 0;
}

.phearum-section-heading.text-right .section-heading-paragraph {
  margin-left: auto;
  margin-right: 0;
}

/* Short text styles */

.section-short-text {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.section-short-text.position-top {
  order: -2;
}

.section-short-text.position-below-title {
  order: 0;
}

.section-short-text.position-below-heading {
  order: 2;
}

/* Separator styles */

.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 1.5rem auto;
  border: none;
  width: 80%;
  height: 20px;
  color: #e5e7eb;
}

.section-separator-line {
  background-color: #CBD5E1;
  height: 2px;
  flex-grow: 1;
}

.section-separator-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: inherit;
  z-index: 1;
  margin: 8px;
}

.phearum-section-heading.text-left .section-separator {
  margin-left: 0;
  margin-right: auto;
}

.phearum-section-heading.text-right .section-separator {
  margin-left: auto;
  margin-right: 0;
}

/* Separator alignment */

.section-separator.align-left {
  margin-left: 0;
  margin-right: auto;
}

.section-separator.align-center {
  margin-left: auto;
  margin-right: auto;
}

.section-separator.align-right {
  margin-left: auto;
  margin-right: 0;
}

/* Separator vertical alignment */

.section-separator.valign-top {
  align-items: flex-start;
}

.section-separator.valign-middle {
  align-items: center;
}

.section-separator.valign-bottom {
  align-items: flex-end;
}

/* .section-separator.separator-line .section-separator-line {
    background-color: #CBD5E1;
}

.section-separator.separator-dashed .section-separator-line {
    background: none;
    border-top: 2px dashed hsl(var(--color-border));
    height: 0;
}

.section-separator.separator-double .section-separator-line {
    background: none;
    border-top: 3px double hsl(var(--color-border));
    height: 0;
} */

.section-separator.separator-dots {
  justify-content: space-between;
}

.section-separator.separator-dots .section-separator-line {
  background-color: hsl(var(--color-border));
}

.section-separator.separator-dots .section-separator-icon::before {
  content: '• • •';
  font-size: 1rem;
  letter-spacing: 0.5rem;
  color: hsl(var(--color-border));
}

.section-separator.position-top {
  order: -1;
}

.section-separator.position-below-title {
  order: 1;
}

.section-separator.position-below-heading {
  order: 3;
}

/* Animation styles */

.phearum-section-heading {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

.phearum-section-heading.animated.fadeInUp {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive design */

@media (max-width: 768px) {
  .section-heading-title h1 {
    font-size: 2.25rem;
  }

  .section-heading-title h2 {
    font-size: 2rem;
  }

  .section-heading-title h3 {
    font-size: 1.75rem;
  }

  .section-heading-paragraph {
    font-size: 1rem;
  }

  .phearum-section-heading.spacing-xl {
    margin: 2rem auto;
  }
}

@media (max-width: 480px) {
  .section-heading-title h1 {
    font-size: 1.875rem;
  }

  .section-heading-title h2 {
    font-size: 1.625rem;
  }

  .section-heading-paragraph {
    font-size: 0.925rem;
  }
}