/* Executive Director section — English site only. The English layout is the only
   layout that loads this file, so Arabic public pages remain untouched. */
.executive-director-en {
  --ed-bg-start: #fff;
  --ed-bg-end: #f1f0f0;
  --ed-text: #363636;
  --ed-card-bg: #fbf4f5;
  --ed-frame-bg: #f2f2f2;
  --ed-frame-border: #bebebe;
  --ed-ring-strong: #d8d8d8;
  --ed-ring-soft: #eceaea;
  --ed-pill-bg: rgba(249, 233, 234, .8);
  --ed-pill-border: #d8d8d8;
  --ed-button-bg: #e9e9e9;
  --ed-button-text: #231f20;
  --ed-shadow: 0 8px 24px rgba(0, 0, 0, .07);
  color: var(--ed-text);
  background: linear-gradient(to bottom, var(--ed-bg-start), var(--ed-bg-end));
  overflow-x: clip;
  transition: background-color .25s ease, color .25s ease;
}

.executive-director-en__container {
  padding-top: clamp(3.5rem, 7vw, 7rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.executive-director-en__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 7vw, 4rem);
}

/* Source order stays content then profile. CSS changes visual order only on mobile. */
.executive-director-en__photo-block {
  order: 1;
  width: min(100%, 34rem);
  min-width: 0;
  text-align: left;
}

.executive-director-en__content {
  order: 2;
  width: 100%;
  min-width: 0;
}

.executive-director-en__visual {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 31rem);
  aspect-ratio: 1;
  margin-inline: auto;
}

.executive-director-en__ring {
  position: absolute;
  border: 1px dashed var(--ed-ring-soft);
  border-radius: 50%;
  pointer-events: none;
  transition: border-color .25s ease;
}

.executive-director-en__ring--outer { inset: 0; }
.executive-director-en__ring--middle { inset: 6%; border-color: var(--ed-ring-strong); }

.executive-director-en__photo-frame {
  position: relative;
  z-index: 1;
  width: 78%;
  aspect-ratio: 1;
  padding: clamp(.45rem, 1vw, .8rem);
  border-radius: 50%;
  background: var(--ed-frame-bg);
  transition: background-color .25s ease;
}

.executive-director-en__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: clamp(.45rem, 1vw, .75rem) solid var(--ed-frame-border);
  border-radius: 50%;
  background: var(--ed-frame-bg);
  transition: border-color .25s ease, background-color .25s ease;
}

.executive-director-en__caption {
  position: relative;
  z-index: 2;
  width: min(92%, 31rem);
  min-height: 6.5rem;
  margin: clamp(-5.2rem, -8vw, -3.5rem) auto 0;
  padding: clamp(1.15rem, 2.2vw, 1.7rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: .85rem;
  color: var(--ed-text);
  background: var(--ed-card-bg);
  box-shadow: var(--ed-shadow);
  overflow-wrap: anywhere;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.executive-director-en__caption h3,
.executive-director-en__caption p,
.executive-director-en__title,
.executive-director-en__message {
  color: inherit;
}

.executive-director-en__caption h3 {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.45;
}

.executive-director-en__caption p {
  margin: .65rem 0 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
}

.executive-director-en__eyebrow {
  display: inline-block;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
  padding: .55rem 1.45rem;
  border: 1px solid var(--ed-pill-border);
  border-radius: 999px;
  color: var(--primary_color, #c62128);
  background: var(--ed-pill-bg);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 600;
  transition: background-color .25s ease, border-color .25s ease;
}

.executive-director-en__title {
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.executive-director-en__message {
  margin: 0 0 clamp(1.75rem, 4vw, 3.2rem);
  white-space: pre-line;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 2.15;
  overflow-wrap: anywhere;
}

.executive-director-en__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 13.75rem);
  min-height: 3.65rem;
  padding: .75rem 1.5rem;
  border-radius: .65rem;
  color: var(--ed-button-text);
  background: var(--ed-button-bg);
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 1.3vw, 18px);
  transition: color .2s ease, background-color .2s ease;
}

.executive-director-en__button:hover,
.executive-director-en__button:focus-visible {
  color: #fff;
  background: var(--primary_color, #c62128);
}

/* Existing project theme system toggles .dark_mode on body. Keeping all dark
   tokens here makes reload and live theme switching update the whole section. */
body.dark_mode .executive-director-en {
  --ed-bg-start: #121212;
  --ed-bg-end: #1e1e1e;
  --ed-text: #f2f2f2;
  --ed-card-bg: #251b1c;
  --ed-frame-bg: #1e1e1e;
  --ed-frame-border: #3a3a3a;
  --ed-ring-strong: #383838;
  --ed-ring-soft: #2c2c2c;
  --ed-pill-bg: #d8cccc;
  --ed-pill-border: #d8cccc;
  --ed-button-bg: #2d2d2d;
  --ed-button-text: #fff;
  --ed-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

@media (min-width: 768px) {
  .executive-director-en__row {
    flex-direction: row;
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
  }

  /* Explicit reset: content left/start, profile right/end for tablet + desktop. */
  .executive-director-en__content {
    order: 1;
    flex: 1 1 57%;
  }

  .executive-director-en__photo-block {
    order: 2;
    flex: 0 1 43%;
  }
}

@media (max-width: 767.98px) {
  .executive-director-en__container {
    padding-top: 2.75rem;
    padding-bottom: 3.5rem;
  }

  .executive-director-en__visual { width: min(100%, 25rem); }
  .executive-director-en__caption { margin-top: clamp(-4.25rem, -13vw, -2.75rem); }
  .executive-director-en__content { text-align: left; }
}

@media (max-width: 390px) {
  .executive-director-en__title { font-size: 26px; }
  .executive-director-en__message { line-height: 1.85; }
  .executive-director-en__button { width: 100%; }
}
