/* Shared section layout: section, section heading, eyebrow */

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
  vertical-align: middle;
}

.eyebrow.urdu {
  direction: rtl;
  font-family: var(--font-urdu);
  font-size: 1.0625rem;
  letter-spacing: 0;
  line-height: 1.6;
}

.section-head {
  display: block;
  text-align: center;
}

.section-head > div {
  max-width: min(100%, calc(var(--max) * 0.8));
  margin: 0 auto;
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

.section-head h2,
.section > .shell > h2 {
  max-width: min(100%, calc(var(--max) * 0.78));
  margin-inline: auto;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head p {
  max-width: min(100%, calc(var(--max) * 0.7));
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.market-card .eyebrow {
  margin-inline: auto;
}

.homepage-blog .section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  text-align: left;
}

.homepage-blog .section-head > div {
  margin: 0;
}

.homepage-blog .section-head h2 {
  margin-inline: 0;
}

.recommended-posts .section-head {
  margin-bottom: 28px;
}

.author-profile .eyebrow {
  margin-bottom: 8px;
}

.eyebrow {
  border-color: rgba(26, 91, 75, 0.2);
}

.section {
  background: var(--surface-lowest);
  border-bottom: 0;
  padding-block: clamp(52px, 7vw, 96px);
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.section-head {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 40px;
}

.section::before,
.section::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.section {
  border-bottom-color: var(--hairline);
}

@media (max-width: 760px) {
  .homepage-blog .section-head {
    display: block;
    text-align: center;
  }

  .homepage-blog .section-head > div {
    margin-inline: auto;
  }

  .section {
    padding-block: var(--m-section);
  }

  .section-head {
    display: block;
    margin-bottom: var(--m-head-gap);
    padding-bottom: 16px;
  }

  .eyebrow.urdu {
    line-height: 1.7;
  }

  .section-head h2,
  .section > .shell > h2 {
    font-family: var(--font-head);
    font-size: var(--m-h2);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  .section > .shell > h2 {
    margin-bottom: var(--m-head-gap);
  }

  .section p,
  .section-head p {
    font-size: var(--m-body);
    line-height: 1.65;
  }

  .section-head p {
    margin-top: 12px;
  }

}

