/* ============================================
   OTHER SERVICES — THEME 12: IRIS BUTTER
   ============================================ */

:root {
  /* ===== COLORS ===== */
  --ebosp20-section-services-bg: #e4e7f5;
  --ebosp20-section-other-bg: #ffffff;
  --ebosp20-title-color: #1f2247;
  --ebosp20-item-bg: #ffffff;
  --ebosp20-item-border-color: #dadcec;
  --ebosp20-item-shadow: 0 14px 24px -20px rgba(31, 34, 71, 0.4);
  --ebosp20-item-link-color: #1f2247;
  --ebosp20-item-link-hover-color: #4b52a3;
  --ebosp20-item-desc-color: #5a5f86;

  /* ===== TYPOGRAPHY ===== */
  --ebosp20-title-font-size: 28px;
  --ebosp20-title-font-weight: 800;
  --ebosp20-title-margin-bottom: 18px;
  --ebosp20-item-link-font-weight: 700;
  --ebosp20-item-desc-font-size: 13px;

  /* ===== SPACING ===== */
  --ebosp20-section-padding: 48px 0;
  --ebosp20-container-padding: 0 20px;
  --ebosp20-container-max-width: 1200px;
  --ebosp20-list-gap: 16px;
  --ebosp20-item-padding: 12px;
  --ebosp20-item-desc-margin-top: 8px;

  /* ===== BORDER ===== */
  --ebosp20-item-border-radius: 22px;
  --ebosp20-item-border-width: 1px;

  /* ===== RESPONSIVE ===== */
  --ebosp20-list-columns-desktop: repeat(3, 1fr);
  --ebosp20-list-columns-tablet: repeat(2, 1fr);
  --ebosp20-list-columns-mobile: 1fr;
}

/* ===== SECTION ===== */
.ebosp20-section {
  padding: var(--ebosp20-section-padding);
}

.ebosp20-container {
  max-width: var(--ebosp20-container-max-width);
  margin: 0 auto;
  padding: var(--ebosp20-container-padding);
}

/* ===== TITLE ===== */
.ebosp20-title {
  font-size: var(--ebosp20-title-font-size);
  font-weight: var(--ebosp20-title-font-weight);
  margin-bottom: var(--ebosp20-title-margin-bottom);
  color: var(--ebosp20-title-color);
}

/* ===== GRID ===== */
.ebosp20-list {
  display: grid;
  grid-template-columns: var(--ebosp20-list-columns-desktop);
  gap: var(--ebosp20-list-gap);
}

/* ===== ITEM ===== */
.ebosp20-item {
  background: var(--ebosp20-item-bg);
  border: var(--ebosp20-item-border-width) solid var(--ebosp20-item-border-color);
  border-radius: var(--ebosp20-item-border-radius);
  padding: var(--ebosp20-item-padding);
  box-shadow: var(--ebosp20-item-shadow);
}

.ebosp20-item a {
  display: block;
  color: var(--ebosp20-item-link-color);
  text-decoration: none;
  font-weight: var(--ebosp20-item-link-font-weight);
}

.ebosp20-item p {
  margin: var(--ebosp20-item-desc-margin-top) 0 0;
  color: var(--ebosp20-item-desc-color);
  font-size: var(--ebosp20-item-desc-font-size);
}

.ebosp20-item a:hover {
  color: var(--ebosp20-item-link-hover-color);
}

/* ===== BACKGROUNDS ===== */
.ebosp20-services {
  background: var(--ebosp20-section-services-bg);
}

.ebosp20-other {
  background: var(--ebosp20-section-other-bg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .ebosp20-list {
    grid-template-columns: var(--ebosp20-list-columns-tablet);
  }
}

@media (max-width: 640px) {
  .ebosp20-list {
    grid-template-columns: var(--ebosp20-list-columns-mobile);
  }
}

@media (max-width: 768px) {
  .ebosp20-container { padding: 0 0.75rem !important; }
}
@media (max-width: 480px) {
  .ebosp20-container { padding: 0 0.625rem !important; }
}
@media (max-width: 380px) {
  .ebosp20-container { padding: 0 0.5rem !important; }
}


/* === MOBILE-COMPACT DISTRIBUTED: OTHER-SERVICES 480 === */
@media (max-width: 480px) {
  .ebosp20-container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-inline: 0.75rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: OTHER-SERVICES 768 INLINE FIX === */
@media (max-width: 768px) {
  .ebosp20-container {
    padding-inline: 0.75rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: OTHER-SERVICES 380 INLINE FIX === */
@media (max-width: 380px) {
  .ebosp20-container {
    padding-inline: 0.5rem !important;
  }
}

/* THEME12 LAYER */
.ebosp20-title { font-family: "El Messiri", sans-serif; }
.ebosp20-item { border-radius: 26px; border: 0; background: #eef0f8; box-shadow: 5px 5px 12px rgba(118,126,190,.28), -4px -4px 10px rgba(255,255,255,.95); transition: transform .5s cubic-bezier(.34,1.4,.64,1), box-shadow .3s ease; }
.ebosp20-item:hover { transform: translateY(-6px); box-shadow: 9px 9px 22px rgba(118,126,190,.30), -8px -8px 20px rgba(255,255,255,.95); }
@supports (animation-timeline: view()) {
  .ebosp20-item { animation: t12-inflate linear both; animation-timeline: view(); animation-range: entry 0% entry 65%; }
}

/* THEME12 LAYER v2 — صفحة "كل الصفحات": هيدر متمركز، عدادات، كروت بأيقونة وسهم */
.ebosp20-services { padding-top: 64px; }
.ebosp20-page-title { font-family: "El Messiri", sans-serif; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; color: var(--ebosp20-title-color); text-align: center; margin: 0 0 .6rem; }
.ebosp20-page-title::after { content: ""; display: block; width: 72px; height: 5px; margin: .7rem auto 0; border-radius: 99px; background: linear-gradient(90deg, #4b52a3, #9aa0e0); }
.ebosp20-page-desc { text-align: center; color: var(--ebosp20-item-desc-color); font-size: 1.02rem; line-height: 1.9; max-width: 560px; margin: 0 auto 2.4rem; }
.ebosp20-title { display: flex; align-items: center; gap: .6rem; font-size: 1.45rem; margin-bottom: 1.1rem; }
.ebosp20-title::before { content: ""; width: 6px; height: 1.2em; border-radius: 99px; background: linear-gradient(180deg, #4b52a3, #9aa0e0); flex: 0 0 auto; }
.ebosp20-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9rem; height: 1.9rem; padding: 0 .55rem; border-radius: 99px; background: rgba(75, 82, 163, .12); color: #4b52a3; font-family: inherit; font-size: .9rem; font-weight: 800; }
.ebosp20-sec-desc { color: var(--ebosp20-item-desc-color); font-size: .95rem; line-height: 1.8; margin: -.5rem 0 1.4rem; }
.ebosp20-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ebosp20-item { display: flex; align-items: center; gap: 14px; flex: 0 1 calc(33.333% - 11px); min-height: 72px; padding: 14px 18px; text-decoration: none; color: var(--ebosp20-item-link-color); font-weight: 700; line-height: 1.5; }
.ebosp20-item-icon { flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 15px; background: linear-gradient(145deg, #ffffff, #dfe2f6); color: #4b52a3; font-size: 1.05rem; box-shadow: inset 1px 1px 3px rgba(255,255,255,.9), 2px 3px 8px rgba(118,126,190,.25); transition: background .25s ease, color .25s ease; }
.ebosp20-item-icon i { line-height: 1; display: block; }
.ebosp20-item-text { flex: 1 1 auto; min-width: 0; font-size: 1.02rem; }
.ebosp20-item-arrow { flex: 0 0 auto; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(75, 82, 163, .1); color: #4b52a3; font-size: .78rem; transition: background .25s ease, color .25s ease, transform .3s ease; }
.ebosp20-item:hover .ebosp20-item-icon { background: #4b52a3; color: #fff; }
.ebosp20-item:hover .ebosp20-item-arrow { background: #4b52a3; color: #fff; transform: translateX(-4px); }
.ebosp20-item:focus-visible { outline: 3px solid #9aa0e0; outline-offset: 3px; }
.ebosp20-other { background: #f6f7fc; padding-bottom: 64px; }
.ebosp20-other-list .ebosp20-item { min-height: 62px; padding: 11px 16px; background: #fff; box-shadow: 3px 3px 9px rgba(118,126,190,.18), -3px -3px 8px rgba(255,255,255,.9); }
.ebosp20-other-list .ebosp20-item-text { font-size: .95rem; font-weight: 600; }
.ebosp20-other-list .ebosp20-item-icon { width: 38px; height: 38px; font-size: .95rem; border-radius: 13px; }
@media (max-width: 992px) { .ebosp20-item { flex-basis: calc(50% - 8px); } }
@media (max-width: 640px) { .ebosp20-item { flex-basis: 100%; } .ebosp20-services { padding-top: 40px; } .ebosp20-page-desc { margin-bottom: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .ebosp20-item, .ebosp20-item-arrow, .ebosp20-item-icon { transition: none; } }
