/* ============================================
   كيوريفا - صفحة عن الدكتور (RTL - العربية)
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal:      #1a8f8a;
  --teal-dark: #157570;
  --teal-light: #e8f4f4;
  --text:      #1a1a1a;
  --muted:     #6b7280;
  --border:    #e9ebee;
  --bg:        #ffffff;
}

html, body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  text-align: right;
}

/* ============================================
   HERO SECTION
   ============================================ */
.about-hero {
  background: linear-gradient(#fdf8f3, #ffffff);
  padding-bottom: 0;
}

.hero-text {
  text-align: center;
  padding: 4rem 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.hero-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid #d1d5db;
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.6);
}

.hero-heading {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 640px;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 3rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(26,143,138,0.25);
  margin-top: 0.25rem;
}

.btn-hero:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.btn-hero .arrow {
  display: inline-block;
  transform: rotate(180deg);
}

/* ============================================
   FANNED IMAGES
   ============================================ */
.cards-stage {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 3rem auto 0;
  height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 4rem;
}

.fan-card {
  position: absolute;
  width: 240px;
  height: 380px;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
}

.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.fan-card.left {
  transform: rotate(-10deg) translateX(-195px) translateY(30px);
  z-index: 1;
}

.fan-card.center {
  transform: translateY(0px);
  z-index: 3;
  width: 260px;
  height: 400px;
}

.fan-card.right {
  transform: rotate(10deg) translateX(195px) translateY(30px);
  z-index: 1;
}

/* ============================================
   STATS BAR (no arrows)
   ============================================ */
.stats-bar {
  background: #fff;
  padding: 3rem 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stats-bar.no-arrows .stat-arrow {
  display: none;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.025em;
  line-height: 1;
}

.stat-desc {
  font-size: 0.825rem;
  color: var(--muted);
}

/* ============================================
   CERTIFICATES SECTION
   ============================================ */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.who-images {
  position: relative;
  height: 420px;
}

.who-img {
  position: absolute;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

.who-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.who-img.large {
  width: 260px;
  height: 390px;
  left: 0;
  top: 0;
  z-index: 1;
}

.who-img.small {
  width: 220px;
  height: 310px;
  left: 200px;
  top: 55px;
  z-index: 2;
}

.who-text {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.who-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.25rem 0.85rem;
  display: inline-block;
  width: fit-content;
  letter-spacing: 0.02em;
}

.who-heading {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}

.who-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
}

.certificates-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}

.cert-check {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ============================================
   FEATURES SECTION (image on right)
   ============================================ */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.f-icon {
  width: 2.6rem;
  height: 2.6rem;
  background: var(--teal-light);
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.f-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.f-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.018em;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.f-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 380px;
}

.doctor-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 500px;
}

.doctor-blob {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  height: 88%;
  background: #f5ede2;
  border-radius: 1.75rem;
  z-index: 0;
}

.doctor-wrap img {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 420px;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .cards-stage {
    height: 340px;
    max-width: 500px;
    margin-bottom: 3rem;
  }

  .fan-card { width: 180px; height: 290px; }
  .fan-card.center { width: 200px; height: 310px; }
  .fan-card.left { transform: rotate(-10deg) translateX(-145px) translateY(24px); }
  .fan-card.right { transform: rotate(10deg) translateX(145px) translateY(24px); }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .who-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .who-images {
    height: 320px;
  }

  .who-img.large {
    width: 200px;
    height: 300px;
  }

  .who-img.small {
    width: 175px;
    height: 240px;
    left: 155px;
    top: 45px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .doctor-wrap {
    order: -1;
    height: 400px;
  }

  .doctor-blob {
    width: 80%;
    height: 85%;
  }

  .doctor-wrap img {
    width: 80%;
  }
}

@media (max-width: 520px) {
  .hero-heading {
    font-size: 2rem;
  }

  .cards-stage {
    height: 270px;
    max-width: 360px;
  }

  .fan-card {
    width: 140px;
    height: 220px;
    border-radius: 0.9rem;
  }

  .fan-card.center {
    width: 155px;
    height: 240px;
  }

  .fan-card.left {
    transform: rotate(-10deg) translateX(-108px) translateY(18px);
  }

  .fan-card.right {
    transform: rotate(10deg) translateX(108px) translateY(18px);
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .page {
    padding: 2.5rem 1.25rem;
  }

  .who-images {
    height: 260px;
  }

  .who-img.large {
    width: 160px;
    height: 248px;
  }

  .who-img.small {
    width: 145px;
    height: 195px;
    left: 125px;
    top: 38px;
  }

  .features-section {
    padding: 2.5rem 1.25rem;
  }

  .doctor-wrap {
    height: 300px;
  }

  .f-title {
    font-size: 1rem;
  }

  .cert-item {
    font-size: 0.8rem;
  }
}