/* ============================================================
   SX Story Section
   Split image/text layout for brand storytelling. Reusable
   for Our Story / About / Insights narratives.
   ============================================================ */

.sx-story {
  padding: 90px 0;
  background: #ffffff;
}

@media (max-width: 767px) {
  .sx-story { padding: 60px 0; }
}

/* Grid — 2 columns desktop, stack mobile */
.sx-story__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .sx-story__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Layout variants — image position */
.sx-story--image_left .sx-story__media   { order: 1; }
.sx-story--image_left .sx-story__content { order: 2; }
.sx-story--image_right .sx-story__media  { order: 2; }
.sx-story--image_right .sx-story__content { order: 1; }

@media (max-width: 991px) {
  .sx-story--image_right .sx-story__media { order: 1; }
  .sx-story--image_right .sx-story__content { order: 2; }
}

/* Text-only variant — hide media column, center content in a comfortable
   reading width. Editorial magazine feel. */
.sx-story--text_only .sx-story__grid {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  gap: 0;
}

.sx-story--text_only .sx-story__media {
  display: none;
}

.sx-story--text_only .sx-story__header {
  text-align: center;
}

.sx-story--text_only .sx-story__header h2 {
  font-size: 42px;
}

@media (max-width: 767px) {
  .sx-story--text_only .sx-story__header h2 { font-size: 30px; }
}

/* Pull quote centered + border-top instead of border-left in text_only */
.sx-story--text_only .sx-story__quote {
  border-left: none;
  border-top: 4px solid #FFD760;
  border-radius: 0 0 12px 12px;
  text-align: center;
  padding: 32px 30px 26px;
  margin-top: 40px;
}

.sx-story--text_only .sx-story__quote-mark {
  position: static;
  display: block;
  text-align: center;
  margin: 0 auto 4px;
  font-size: 40px;
  line-height: 1;
}

.sx-story--text_only .sx-story__quote-text {
  font-size: 20px;
}

.sx-story--text_only .sx-story__cta-wrap {
  text-align: center;
}

/* ============================================================
   Media column
   ============================================================ */

.sx-story__media {
  min-width: 0;
}

.sx-story__image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  box-shadow: 0 20px 50px rgba(15, 30, 60, 0.15);
}

.sx-story__image-placeholder {
  aspect-ratio: 4 / 5;
  width: 100%;
  background: linear-gradient(135deg, #eef3f9 0%, #dbe6f2 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(55, 108, 180, 0.35);
  border: 2px dashed rgba(55, 108, 180, 0.25);
}

.sx-story__image-placeholder svg {
  width: 80px;
  height: 80px;
}

.sx-story__caption {
  margin: 14px 0 0;
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
  text-align: center;
  overflow-wrap: break-word;
}

/* ============================================================
   Content column
   ============================================================ */

.sx-story__content {
  min-width: 0;
}

.sx-story__header {
  text-align: left;
  max-width: none;
  margin: 0 0 24px;
}

.sx-story__header h2 {
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: #12314f;
  margin: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 767px) {
  .sx-story__header h2 { font-size: 30px; }
}

.sx-story__text {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  overflow-wrap: break-word;
}

.sx-story__text p {
  margin: 0 0 16px;
}

.sx-story__text p:last-child { margin-bottom: 0; }

.sx-story__text strong {
  color: #12314f;
  font-weight: 700;
}

.sx-story__text em {
  color: #376CB4;
  font-style: normal;
  font-weight: 600;
}

/* Pull quote */
.sx-story__quote {
  position: relative;
  margin: 32px 0 0;
  padding: 22px 24px 22px 30px;
  border-left: 4px solid #FFD760;
  background: linear-gradient(90deg,
    color-mix(in srgb, #FFD760 8%, #ffffff) 0%,
    #ffffff 100%
  );
  border-radius: 0 12px 12px 0;
}

@supports not (background: color-mix(in srgb, red, blue)) {
  .sx-story__quote { background: #fffbeb; }
}

.sx-story__quote-mark {
  position: absolute;
  top: 4px;
  left: 12px;
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  color: #FFD760;
  font-family: Georgia, "Times New Roman", serif;
}

.sx-story__quote-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #12314f;
  font-weight: 600;
  font-style: italic;
  overflow-wrap: break-word;
  hyphens: auto;
}

.sx-story__quote-attribution {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-style: normal;
  color: #6b7280;
  font-weight: 500;
}

/* CTA */
.sx-story__cta-wrap {
  margin-top: 28px;
}

.sx-story__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #376CB4 !important;
  text-decoration: none;
  padding: 10px 0;
  letter-spacing: 0.2px;
  transition: gap 0.2s ease;
  max-width: 100%;
  overflow-wrap: break-word;
}

.sx-story__cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.sx-story__cta:hover {
  gap: 12px;
  color: #2a568f !important;
  text-decoration: none;
}

.sx-story__cta:hover svg { transform: translateX(3px); }
