/* ============================================================
   Section Title — st-section
   ============================================================ */

/* ─── Variables ─── */
.st-section {
  --st-accent: var(--text-color-primary-bg);
  --st-line-size: 4px;
  --st-line-radius: 10px;
  --st-line-offset: -12px;
  --st-line-side: -30px;
  --st-line-width: 70%;
}

/* ─── Container ─── */
.st-container {
  display: flex;
  width: 100%;
  padding: 0 15px;
}

.st-container.align-left {
  justify-content: flex-end;
}
.st-container.align-right {
  justify-content: flex-start;
}
.st-container.align-center {
  justify-content: center;
}

/* ─── Box ─── */
.st-box {
  width: clamp(17.5rem, 13.5463rem + 16.869vw, 34.5rem);
  min-height: clamp(5rem, 4rem + 5vw, 10rem);
  padding: 0 20px;
  margin-block: unset;
  border: 3px solid;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

/* ─── Text ─── */
.st-box__title {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.st-box__subtitle {
  font-size: clamp(0.9rem, 0.7rem + 1vw, 1.4rem);
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

/* ─── Decorative Lines ─── */

/* Top line — ::after */
.st-box::after {
  content: "";
  position: absolute;
  width: var(--st-line-width);
  height: var(--st-line-size);
  top: var(--st-line-offset);
  left: var(--st-line-side);
  background: var(--st-accent);
  border-radius: var(--st-line-radius);
  z-index: 1;
}

/* Bottom line — ::before */
.st-box::before {
  content: "";
  position: absolute;
  width: var(--st-line-width);
  height: var(--st-line-size);
  bottom: var(--st-line-offset);
  right: var(--st-line-side);
  background: var(--st-accent);
  border-radius: var(--st-line-radius);
  z-index: 1;
}

/* Vertical side line — span */
.rtl .st-box__line {
  position: absolute;
  width: var(--st-line-size);
  height: 110%;
  top: -5%;
  right: 15px;
  left: auto;
  background: var(--st-accent);
  border-radius: var(--st-line-radius);
  z-index: 1;
}

.ltr .st-box__line {
  position: absolute;
  width: var(--st-line-size);
  height: 110%;
  top: -5%;
  background: var(--st-accent);
  border-radius: var(--st-line-radius);
  z-index: 1;
  left: 15px;
  right: auto;
}

/* ─── Mobile (≤ 768px) ─── */
@media (max-width: 768px) {
  .st-box {
    width: 85%;
    margin-block: 40px;
    --st-line-width: 60%;
    --st-line-side: -10px;
  }

  .st-box__line {
    right: 8px;
  }
}
