/* ============================================================
   EBPT14 — Features / Points Section — Theme: theme3
   Namespace  : ebpt14
   الهوية      : طبيعي / عضوي (Organic Minimal) — أخضر سيج / تراكوتا
   ------------------------------------------------------------
   Layout: قائمة عضوية غير شبكية، كل عنصر "كبسولة" (pill) بحواف
   دائرية شبه بيضاوية كبيرة جدًا مع إزاحة أفقية متبادلة (zigzag)
   بدل الشبكة الصارمة في theme1 والأعمدة المستقيمة في theme2،
   العناصر صناديق ناعمة بظل شبه غير محسوس (عكس theme1 المضيء وعكس
   theme2 المسطّح بلا صندوق خالص)، ترتيب القراءة يتبدّل بتحريك
   موضع الرقم قبل/بعد المحتوى بالتبادل عبر `order` من غير لمس
   الـ HTML، حركة الدخول: slide-up ناعم وبطيء نسبيًا (إحساس تنفّس).

   جرد متغيّرات الألوان (مطابق حرفيًا في الثلاثة ملفات):
   --ebpt14-bg
   --ebpt14-padding-top / --ebpt14-padding-bottom
   --ebpt14-eyebrow-text
   --ebpt14-title-text
   --ebpt14-subtitle-text
   --ebpt14-item-bg / --ebpt14-item-bg-hover
   --ebpt14-item-border / --ebpt14-item-border-hover
   --ebpt14-item-number-text / --ebpt14-item-number-text-hover
   --ebpt14-item-mark-bg / --ebpt14-item-mark-bg-hover
   --ebpt14-item-title-text / --ebpt14-item-title-text-hover
   --ebpt14-item-text-text
   --ebpt14-shape-1-bg / --ebpt14-shape-2-bg / --ebpt14-shape-3-bg
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

/* 1. Variables & Colors */
.ebpt14 {
  --ebpt14-bg: #f7f9f5;
  --ebpt14-padding-top: 5rem;
  --ebpt14-padding-bottom: 5rem;

  --ebpt14-eyebrow-text: #7d9270;
  --ebpt14-title-text: #33342e;
  --ebpt14-subtitle-text: #6b6c63;

  --ebpt14-item-bg: #ffffff;
  --ebpt14-item-bg-hover: #fbfaf6;
  --ebpt14-item-border: rgba(107, 125, 95, 0.16);
  --ebpt14-item-border-hover: rgba(107, 125, 95, 0.32);
  --ebpt14-item-number-text: #d9a17e;
  --ebpt14-item-number-text-hover: #c98a63;
  --ebpt14-item-mark-bg: rgba(125, 146, 112, 0.18);
  --ebpt14-item-mark-bg-hover: rgba(125, 146, 112, 0.32);
  --ebpt14-item-title-text: #33342e;
  --ebpt14-item-title-text-hover: #6b7d5f;
  --ebpt14-item-text-text: #74766c;

  --ebpt14-shape-1-bg: rgba(125, 146, 112, 0.09);
  --ebpt14-shape-2-bg: rgba(217, 161, 126, 0.1);
  --ebpt14-shape-3-bg: rgba(125, 146, 112, 0.06);
}

/* 2. Reset داخل الـ namespace */
*, .ebpt14 *, .ebpt14 *::before, .ebpt14 *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 3. Base Styles — Mobile */
.ebpt14 {
  position: relative;
  overflow: hidden;
  background: var(--ebpt14-bg);
  padding-top: var(--ebpt14-padding-top);
  padding-bottom: var(--ebpt14-padding-bottom);
  font-family: "El Messiri", sans-serif;
  direction: rtl;
}

.ebpt14__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.ebpt14__shape-1 {
  position: absolute;
  top: -8%;
  right: -16%;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background: var(--ebpt14-shape-1-bg);
}

.ebpt14__shape-2 {
  position: absolute;
  bottom: -12%;
  left: -12%;
  width: 34vw;
  height: 30vw;
  border-radius: 50%;
  background: var(--ebpt14-shape-2-bg);
}

.ebpt14__shape-3 {
  position: absolute;
  top: 40%;
  left: 30%;
  width: 16vw;
  height: 16vw;
  border-radius: 50%;
  background: var(--ebpt14-shape-3-bg);
}

.ebpt14__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.ebpt14__header {
  max-width: 36rem;
  margin: 0 auto 3rem;
  text-align: center;
  opacity: 0;
  animation: ebpt14-slide-up 0.7s ease both;
}

.ebpt14__eyebrow {
  display: inline-block;
  font-size: clamp(0.75rem, 3vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ebpt14-eyebrow-text);
  margin-bottom: 0.9rem;
}

.ebpt14__title {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ebpt14-title-text);
  margin-bottom: 1rem;
}

.ebpt14__subtitle {
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  line-height: 1.8;
  color: var(--ebpt14-subtitle-text);
}

.ebpt14__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ebpt14__item {
  position: relative;
  /* موبايل: مارك + رقم في نفس الصف عشان نوفر مساحة راسية (grid-area)
     بدل ما يقعدوا في صفين منفصلين فوق المحتوى */
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-areas:
    "mark number ."
    "body body body";
  align-items: center;
  gap: 0.75rem 0.6rem;
  background: var(--ebpt14-item-bg);
  border: 0.0625rem solid var(--ebpt14-item-border);
  border-radius: 2.5rem;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 0.6rem 2rem rgba(51, 52, 46, 0.035);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.ebpt14__item:nth-child(2) { margin-inline-start: 0; }

.ebpt14__item:hover {
  background: var(--ebpt14-item-bg-hover);
  border-color: var(--ebpt14-item-border-hover);
  box-shadow: 0 0.9rem 2.4rem rgba(51, 52, 46, 0.06);
}

.ebpt14__item-number {
  grid-area: number;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ebpt14-item-number-text);
  transition: color 0.3s ease;
  user-select: none;
}

.ebpt14__item:hover .ebpt14__item-number { color: var(--ebpt14-item-number-text-hover); }

.ebpt14__item-mark {
  grid-area: mark;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ebpt14-item-mark-bg);
  transition: background 0.3s ease;
  flex: 0 0 auto;
}

.ebpt14__item:hover .ebpt14__item-mark { background: var(--ebpt14-item-mark-bg-hover); }

.ebpt14__item-title {
  font-size: clamp(1.02rem, 4vw, 1.15rem);
  font-weight: 700;
  color: var(--ebpt14-item-title-text);
  margin-bottom: 0.55rem;
  transition: color 0.3s ease;
}

.ebpt14__item:hover .ebpt14__item-title { color: var(--ebpt14-item-title-text-hover); }

.ebpt14__item-text {
  font-size: clamp(0.85rem, 3.2vw, 0.94rem);
  line-height: 1.8;
  color: var(--ebpt14-item-text-text);
}

.ebpt14__item-body { grid-area: body; }

.ebpt14__item-deco { display: none; }


.ebpt14__header[data-ebpt14-anim],
.ebpt14__item[data-ebpt14-anim] {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ebpt14__header.ebpt14-js-ready[data-ebpt14-anim="bottom"] { transform: translateY(2rem); opacity: 0; }
.ebpt14__item.ebpt14-js-ready[data-ebpt14-anim="right"]    { transform: translateX(3rem); opacity: 0; }
.ebpt14__item.ebpt14-js-ready[data-ebpt14-anim="left"]     { transform: translateX(-3rem); opacity: 0; }
.ebpt14__item.ebpt14-js-ready[data-ebpt14-anim="bottom"]   { transform: translateY(2.75rem); opacity: 0; }

.ebpt14__header--in,
.ebpt14__item--in {
  opacity: 1 !important;
  transform: none !important;
}

.ebpt14__item:nth-child(1) { transition-delay: 0.06s; }
.ebpt14__item:nth-child(2) { transition-delay: 0.14s; }
.ebpt14__item:nth-child(3) { transition-delay: 0.22s; }
.ebpt14__item:nth-child(4) { transition-delay: 0.3s; }
.ebpt14__item:nth-child(5) { transition-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  .ebpt14__header[data-ebpt14-anim],
  .ebpt14__item[data-ebpt14-anim] {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* 4. Breakpoints */
@media (min-width: 481px) {
  .ebpt14__item { padding: 1.75rem 2rem; }
}

@media (min-width: 601px) {
  .ebpt14__item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 2rem;
  }
  .ebpt14__item-mark { order: 0; }
  .ebpt14__item-number { order: 1; margin-inline-start: auto; }
  .ebpt14__item-body { order: 2; flex: 1; }
  .ebpt14__item-mark { width: 2.75rem; height: 2.75rem; }
  .ebpt14__item-number { font-size: 2rem; }
  /* ترتيب القراءة يتبدّل بالتبادل: زوجي يقلب موضع الرقم قبل الكبسولة بدل بعدها */
  .ebpt14__item:nth-child(even) .ebpt14__item-number { order: -1; margin-inline-start: 0; margin-inline-end: auto; }
  /* إزاحة أفقية متبادلة تكسر الشبكة وتدّي إحساس عضوي غير منتظم */
  .ebpt14__item:nth-child(odd)  { margin-inline-start: 0; margin-inline-end: 2.5rem; }
  .ebpt14__item:nth-child(even) { margin-inline-start: 2.5rem; margin-inline-end: 0; }
}

@media (min-width: 769px) {
  .ebpt14 { --ebpt14-padding-top: 6.5rem; --ebpt14-padding-bottom: 6.5rem; }
  .ebpt14__header { margin-bottom: 3.75rem; }
  .ebpt14__item:nth-child(odd)  { margin-inline-end: 4rem; }
  .ebpt14__item:nth-child(even) { margin-inline-start: 4rem; }
}

@media (min-width: 1025px) {
  .ebpt14__list { gap: 1.75rem; }
  .ebpt14__item { padding: 2.5rem 2.5rem; border-radius: 3rem; }
  .ebpt14__item:nth-child(odd)  { margin-inline-end: 7rem; }
  .ebpt14__item:nth-child(even) { margin-inline-start: 7rem; }
}

@media (min-width: 1281px) {
  .ebpt14 { --ebpt14-padding-top: 8rem; --ebpt14-padding-bottom: 8rem; }
  .ebpt14__item:nth-child(odd)  { margin-inline-end: 10rem; }
  .ebpt14__item:nth-child(even) { margin-inline-start: 10rem; }
}

@media (min-width: 1441px) {
  .ebpt14__container { max-width: 76rem; }
}

@media (min-width: 1921px) {
  .ebpt14__container { max-width: 86rem; }
}