/* ==========================================================================
   Section: Free Content (WYSIWYG)
   ADVANCE v2
   ========================================================================== */

.s-free-content {
  margin: 0 auto;
}

/* Width variants */
.s-free-content--normal {
  max-width: var(--container-width);
}

.s-free-content--wide {
  max-width: calc(var(--container-width) + 200px);
}

.s-free-content--full {
  max-width: none;
}

/* ---------- WYSIWYG content styling ---------- */
.s-free-content__body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.s-free-content__body h2 {
  font-weight: var(--font-weight-heading);
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 2em 0 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--color-primary);
}

.s-free-content__body h3 {
  font-weight: var(--font-weight-heading);
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 1.8em 0 0.6em;
}

.s-free-content__body h4 {
  font-weight: var(--font-weight-heading);
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 1.5em 0 0.5em;
}

.s-free-content__body p {
  margin: 0 0 1.2em;
}

.s-free-content__body a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity var(--transition-fast);
}

.s-free-content__body a:hover {
  opacity: 0.7;
}

.s-free-content__body ul,
.s-free-content__body ol {
  margin: 0 0 1.2em;
  padding-left: 1.5em;
}

.s-free-content__body li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

.s-free-content__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--btn-radius);
}

.s-free-content__body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: #f9fafb;
  color: var(--color-text-light);
}

.s-free-content__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}

.s-free-content__body th,
.s-free-content__body td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.s-free-content__body th {
  background: #f1f5f9;
  font-weight: 600;
}

.s-free-content__body iframe {
  max-width: 100%;
  border-radius: var(--btn-radius);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .s-free-content__body {
    font-size: 0.95rem;
  }

  .s-free-content__body h2 {
    font-size: 1.3rem;
  }

  .s-free-content__body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
