@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&display=swap');

/* Tebr story section - inserted before the footer on the homepage by tebr-story.js */
.tebr-story {
  direction: rtl;
  font-family: 'Cairo', sans-serif;
  background-color: #331803;
  background-image:
    radial-gradient(circle at 6% 10%, rgba(196,154,109,.6) 0, rgba(196,154,109,.6) 2px, transparent 3px),
    radial-gradient(circle at 14% 34%, rgba(196,154,109,.4) 0, rgba(196,154,109,.4) 1.5px, transparent 2.5px),
    radial-gradient(circle at 28% 6%, rgba(196,154,109,.4) 0, rgba(196,154,109,.4) 1.5px, transparent 2.5px),
    radial-gradient(circle at 41% 22%, rgba(196,154,109,.8) 0, rgba(196,154,109,.8) 2.5px, transparent 3.5px),
    radial-gradient(circle at 57% 8%, rgba(196,154,109,.4) 0, rgba(196,154,109,.4) 1.5px, transparent 2.5px),
    radial-gradient(circle at 72% 30%, rgba(196,154,109,.6) 0, rgba(196,154,109,.6) 2px, transparent 3px),
    radial-gradient(circle at 88% 12%, rgba(196,154,109,.8) 0, rgba(196,154,109,.8) 2.5px, transparent 3.5px),
    radial-gradient(circle at 94% 44%, rgba(196,154,109,.4) 0, rgba(196,154,109,.4) 1.5px, transparent 2.5px),
    radial-gradient(circle at 9% 62%, rgba(196,154,109,.4) 0, rgba(196,154,109,.4) 1.5px, transparent 2.5px),
    radial-gradient(circle at 33% 56%, rgba(196,154,109,.6) 0, rgba(196,154,109,.6) 2px, transparent 3px),
    radial-gradient(circle at 64% 64%, rgba(196,154,109,.4) 0, rgba(196,154,109,.4) 1.5px, transparent 2.5px),
    radial-gradient(circle at 82% 78%, rgba(196,154,109,.6) 0, rgba(196,154,109,.6) 2px, transparent 3px),
    radial-gradient(circle at 19% 90%, rgba(196,154,109,.8) 0, rgba(196,154,109,.8) 2.5px, transparent 3.5px),
    radial-gradient(circle at 48% 94%, rgba(196,154,109,.4) 0, rgba(196,154,109,.4) 1.5px, transparent 2.5px),
    radial-gradient(circle at 91% 92%, rgba(196,154,109,.6) 0, rgba(196,154,109,.6) 2px, transparent 3px);
  color: #F3E6D3;
  padding: 96px 32px;
  box-sizing: border-box;
  width: 100%;
  clear: both;
}

.tebr-story *,
.tebr-story *::before,
.tebr-story *::after { box-sizing: border-box; }

.tebr-story__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.tebr-story__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.tebr-story__eyebrow {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #C49A6D;
}

.tebr-story__title {
  margin: 0;
  font-size: 56px;
  line-height: 1.25;
  font-weight: 800;
  color: #FFF8EC;
}

.tebr-story__lead {
  margin: 0;
  font-size: 20px;
  line-height: 1.9;
  color: #E9D8C0;
}

.tebr-story__claim {
  margin: 0;
  font-size: 24px;
  line-height: 1.7;
  font-weight: 600;
  color: #C49A6D;
}

.tebr-story__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.tebr-story__step {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 2px dotted #C49A6D;
}

.tebr-story__img {
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
  background-image: linear-gradient(135deg, #4A2A12, #6E4A2B);
}

.tebr-story__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tebr-story__num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: #C49A6D;
}

.tebr-story__step-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #FFF8EC;
}

.tebr-story__step-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #E9D8C0;
}

.tebr-story__closing {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.tebr-story__closing-line {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.4;
  color: #FFF8EC;
}

.tebr-story__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tebr-story__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid #C49A6D;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: #F3E6D3;
}

.tebr-story__badge svg { flex: none; }

/* Mobile: compact version (same idea, about half the height) */
@media (max-width: 640px) {
  .tebr-story { padding: 36px 18px; }
  .tebr-story__inner { gap: 24px; }
  .tebr-story__head { gap: 10px; }
  .tebr-story__eyebrow { font-size: 13px; }
  .tebr-story__title { font-size: 26px; line-height: 1.3; }
  .tebr-story__lead { font-size: 14.5px; line-height: 1.75; }
  .tebr-story__claim { font-size: 16px; line-height: 1.6; }

  /* the three steps become one slim row: number + title only */
  .tebr-story__steps { flex-wrap: nowrap; gap: 12px; }
  .tebr-story__step { flex: 1 1 0; gap: 4px; padding-top: 10px; }
  .tebr-story__img { display: none; }
  .tebr-story__step-text { display: none; }
  .tebr-story__num { font-size: 20px; }
  .tebr-story__step-title { font-size: 16px; }

  .tebr-story__closing { gap: 14px; }
  .tebr-story__closing-line { font-size: 19px; line-height: 1.4; }
  .tebr-story__badges { gap: 8px; }
  .tebr-story__badge { font-size: 12.5px; padding: 8px 12px; gap: 8px; }
  .tebr-story__badge svg { width: 16px; height: 16px; }
}
