@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

/* ============================================================
   Theme 4 — EMERALD TEAL · عصري نظيف: عقد متصلة + نقطة متاحة
   ============================================================ */
.ebsrvl1 {
  --bg: #f1faf7;
  --ink: #042f2b;
  --muted: #5f746f;
  --teal: #0d9488;
  --teal-d: #0f766e;
  --teal-soft: #d9f5ec;
  --card: #ffffff;
  --line: #c8ecdf;
  --font: "El Messiri", sans-serif;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 2.4rem 0;
  font-family: var(--font);
  direction: rtl;
  isolation: isolate;
}
.ebsrvl1, .ebsrvl1 *, .ebsrvl1 *::before, .ebsrvl1 *::after { box-sizing: border-box; margin: 0; padding: 0; }

.ebsrvl1__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ebsrvl1__orb { display: none; }
.ebsrvl1__pattern {
  position: absolute; inset: 0; opacity: .7;
  background-image: linear-gradient(rgba(13,148,136,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(13,148,136,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 25%, transparent 78%);
}

.ebsrvl1__container { position: relative; z-index: 1; max-width: 78rem; margin: 0 auto; padding-inline: 1.25rem; }
.ebsrvl1__header { text-align: center; max-width: 36rem; margin: 0 auto 2rem; }

.ebsrvl1__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; color: var(--teal-d);
  background: #fff; border: 1px solid var(--line);
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: .75rem;
  box-shadow: 0 2px 8px rgba(13,148,136,.08);
}
.ebsrvl1__eyebrow-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.ebsrvl1__eyebrow-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #22c55e; opacity: .5; animation: ebsrvl1-ping 1.8s ease-out infinite; }
.ebsrvl1__count { font-size: .7rem; font-weight: 700; color: var(--teal-d); background: var(--teal-soft); border-radius: 999px; padding: .15rem .6rem; }

.ebsrvl1__title { font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 800; color: var(--ink); line-height: 1.4; margin-bottom: .4rem; }
.ebsrvl1__title::after { content: ""; display: flex; gap: 5px; justify-content: center; margin-top: .6rem; }
.ebsrvl1__subtitle { font-size: .92rem; color: var(--muted); line-height: 1.8; }

.ebsrvl1__grid { display: grid; grid-template-columns: 1fr; gap: 1.35rem; }

.ebsrvl1__card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem;
  padding: 1.6rem 1.4rem; box-shadow: 0 4px 20px rgba(4, 47, 43, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: ebsrvl1-slide .45s ease both; animation-delay: calc(var(--ebsrvl1-i, 0) * 55ms);
}
/* نقطة الحالة الخضراء في الزاوية */
.ebsrvl1__card::after { content: ""; position: absolute; top: 1.2rem; inset-inline-end: 1.2rem; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px #dcfce7; }
.ebsrvl1__card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 16px 32px rgba(13,148,136,.12); }

/* شارة رقمية أنيقة على الزاوية المعاكسة */
.ebsrvl1__card-num {
  position: absolute; top: 1rem; inset-inline-start: 1.2rem;
  font-size: .75rem; font-weight: 800; color: var(--teal-d);
  background: var(--teal-soft); border: 1px solid var(--line); border-radius: 8px; padding: .15rem .55rem;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}

.ebsrvl1__card-icon {
  width: 3.2rem; height: 3.2rem; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--teal); font-size: 1.2rem;
  border: 2px solid var(--teal); box-shadow: 0 0 0 4px var(--teal-soft);
  overflow: hidden; transition: box-shadow .22s ease, transform .22s ease;
  margin-top: 1.8rem; margin-bottom: .9rem;
}
.ebsrvl1__card:hover .ebsrvl1__card-icon { box-shadow: 0 0 0 6px var(--teal-soft); transform: scale(1.05); }
.ebsrvl1__card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ebsrvl1__card-body { width: 100%; display: flex; flex-direction: column; }
.ebsrvl1__card-title { font-size: 1.15rem; font-weight: 800; color: var(--ink); line-height: 1.4; margin-bottom: .45rem; }
.ebsrvl1__card-city {
  display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
  margin-bottom: .65rem; font-size: .76rem; font-weight: 700; color: var(--teal-d);
  background: var(--teal-soft); padding: .2rem .65rem; border-radius: 6px;
}
.ebsrvl1__card-city i { font-size: .68rem; }
.ebsrvl1__card-address { font-size: .86rem; color: var(--muted); line-height: 1.75; white-space: normal; }

.ebsrvl1__card-map-link {
  margin-top: 1rem; align-self: flex-end; width: 2.1rem; height: 2.1rem; border-radius: 8px;
  display: grid; place-items: center; font-size: .8rem; text-decoration: none;
  background: var(--teal); color: #fff;
  transition: all .2s ease;
}
.ebsrvl1__card-map-link:hover { background: var(--teal-d); transform: translateY(-2px); }

@keyframes ebsrvl1-slide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ebsrvl1-ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.3); opacity: 0; } }
html[dir="ltr"] .ebsrvl1 .ebsrvl1__card { animation-name: ebsrvl1-slide-ltr; }
@keyframes ebsrvl1-slide-ltr { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 640px) { .ebsrvl1__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ebsrvl1__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } .ebsrvl1 { padding: 3.2rem 0; } }
@media (max-width: 639px) {
  .ebsrvl1 { padding: 2rem 0; }
  .ebsrvl1__header { margin-bottom: 1.25rem; }
  .ebsrvl1__card { padding: 1.25rem 1.1rem; }
}
html[dir="ltr"] .ebsrvl1 { direction: ltr; }
