/* ── نبذة عن المركز ── */
#about.about-block {
  --ab-blue: #1b355b;
  --ab-brown: #a0874c;
  --ab-brown-dark: #7a5a2a;
  --ab-cream: #f6f3ed;
  padding: 0 !important;
  margin: 0;
  background: var(--ab-cream) !important;
  border-top: none;
  position: relative;
  overflow: hidden;
}
.home-page #hero + #about.about-block {
  padding-top: 0 !important;
  background: var(--ab-cream) !important;
}

.about-block__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.about-block__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(27, 53, 91, 0.07), transparent),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(160, 135, 76, 0.1), transparent);
}
.about-block__bg::after {
  display: none;
}
@keyframes ab-watermark {
  0% { background-position: 0 0; }
  100% { background-position: 300px 200px; }
}

.about-block__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 28px 64px;
  position: relative;
  z-index: 2;
}

/* ── العنوان ── */
.about-header {
  text-align: center;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.about-block.is-visible .about-header {
  opacity: 1;
  transform: translateY(0);
}
.about-header__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ab-brown), var(--ab-brown-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  box-shadow: 0 10px 28px rgba(160, 135, 76, 0.4);
  animation: ab-icon-float 4s ease-in-out infinite;
}
@keyframes ab-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.about-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--ab-blue);
}
.about-header__sub {
  margin: 0 auto;
  max-width: 500px;
  color: #5a6472;
  font-size: 1.04rem;
  line-height: 1.7;
}
.about-header__line {
  width: 80px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ab-brown), var(--ab-blue), var(--ab-brown));
  background-size: 200% 100%;
  animation: ab-line-flow 3.5s linear infinite;
}
@keyframes ab-line-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ── بطاقة النبذة ── */
.about-story {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 40px 44px;
  margin-bottom: 40px;
  box-shadow: 0 12px 40px rgba(27, 53, 91, 0.08);
  border: 1px solid rgba(27, 53, 91, 0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s 0.12s ease, transform 0.7s 0.12s ease;
}
.about-block.is-visible .about-story {
  opacity: 1;
  transform: translateY(0);
}
.about-story::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--ab-brown), var(--ab-blue));
  border-radius: 24px 0 0 24px;
}
[dir="ltr"] .about-story::before {
  inset-inline-start: auto;
  inset-inline-end: 0;
  border-radius: 0 24px 24px 0;
}
.about-story::after {
  content: "\201D";
  position: absolute;
  top: 12px;
  inset-inline-end: 28px;
  font-size: 5rem;
  line-height: 1;
  color: var(--ab-brown);
  opacity: 0.12;
  font-family: Georgia, serif;
  pointer-events: none;
}
.about-story__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s;
  pointer-events: none;
}
.about-story:hover .about-story__shine {
  transform: translateX(120%);
}
.about-story__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(160, 135, 76, 0.12);
  color: var(--ab-brown-dark);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.about-story h3 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--ab-blue);
  line-height: 1.5;
  max-width: 90%;
}
.about-story h3 span { color: var(--ab-brown); }
.about-story p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.9;
  color: #555;
  max-width: 95%;
}

/* ── بطاقات المميزات ── */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.about-pill {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 32px 20px 28px;
  text-align: center;
  border: 1px solid rgba(27, 53, 91, 0.07);
  box-shadow: 0 8px 28px rgba(27, 53, 91, 0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(36px);
  transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.3s;
}
.about-pill.is-visible {
  animation: ab-pill-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.about-pill:nth-child(1).is-visible { animation-delay: 0.15s; }
.about-pill:nth-child(2).is-visible { animation-delay: 0.28s; }
.about-pill:nth-child(3).is-visible { animation-delay: 0.41s; }
.about-pill:nth-child(4).is-visible { animation-delay: 0.54s; }
@keyframes ab-pill-enter {
  to { opacity: 1; transform: translateY(0); }
}

.about-pill__bar {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--ab-brown);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
[dir="ltr"] .about-pill__bar { transform-origin: left; }
.about-pill:hover .about-pill__bar { transform: scaleX(1); }

.about-pill:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 44px rgba(160, 135, 76, 0.2);
  border-color: rgba(160, 135, 76, 0.35);
}

.about-pill__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(27, 53, 91, 0.08);
  color: var(--ab-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: background 0.35s, color 0.35s, transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
  position: relative;
}
.about-pill__icon-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(160, 135, 76, 0.35);
  animation: ab-ring 14s linear infinite;
}
@keyframes ab-ring {
  to { transform: rotate(360deg); }
}
.about-pill:hover .about-pill__icon {
  background: linear-gradient(145deg, var(--ab-brown), var(--ab-brown-dark));
  color: #fff;
  transform: scale(1.1) rotate(-6deg);
}
.about-pill:hover .about-pill__icon-ring {
  border-color: var(--ab-brown);
}

.about-pill p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ab-blue);
  line-height: 1.55;
  transition: color 0.3s;
}
.about-pill:hover p { color: var(--ab-brown-dark); }

.about-pill__num {
  position: absolute;
  top: 10px;
  inset-inline-start: 14px;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ab-blue);
  opacity: 0.07;
  line-height: 1;
}

/* ── استجابة ── */
@media (max-width: 992px) {
  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 560px) {
  .about-block__inner { padding: 52px 16px 60px; }
  .about-story { padding: 28px 24px; }
  .about-highlights { grid-template-columns: 1fr; }
}

/* LTR */
.lang-en .about-header { text-align: center; }
.lang-en .about-story { text-align: start; }
