@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;600;700&display=swap');

/* ===== Editorial board page (about/editorialTeam) ===== */
.eb {
  --brand: #38cab3;
  --brand-dark: #23a892;
  --brand-ink: #14685b;   /* brand as text on white — dark enough for WCAG AA */
  font-family: "IBM Plex Sans Arabic", sans-serif;
  line-height: 1.6;
  color: #222;
}
.eb * { box-sizing: border-box; }

.eb-header {
  background: linear-gradient(135deg, var(--brand-ink) 0%, var(--brand-dark) 55%, var(--brand) 100%);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  color: #ffffff;
}
.eb-header h2 { color: #ffffff; font-size: 1.5rem; font-weight: 600; margin: 0 0 .5rem; }
.eb-header p { color: rgba(255,255,255,.9); font-size: .88rem; margin: 0 0 .4rem; max-width: 640px; }

.eb-section { margin-bottom: 2rem; }
.eb-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-ink);
  background: #f0fbf9;
  border-left: 4px solid var(--brand);
  border-radius: 0 5px 5px 0;
  padding: .5rem 1rem;
  margin-bottom: 1rem;
}

.eb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.eb-card {
  background: #ffffff;
  border: 1px solid #d9ece8;
  border-top: 4px solid var(--brand);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
}
.eb-card:hover { border-color: var(--brand); background: #f8fefd; }
.eb-card-lead { max-width: 620px; }

.eb-head { display: flex; align-items: flex-start; gap: .9rem; }
.eb-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #d9ece8;
  background: #f0fbf9;
}
.eb-card-lead .eb-photo { width: 72px; height: 72px; }
.eb-info { flex: 1; min-width: 0; }

.eb-role {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand-ink);
  margin-bottom: 2px;
}
.eb-name { font-size: 1rem; font-weight: 700; color: #111; margin-bottom: 3px; }
.eb-name a { color: #111; text-decoration: none; }
.eb-name a:hover { color: var(--brand-ink); text-decoration: underline; }
.eb-affil { font-size: .82rem; color: #555; }
.eb-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border: 1px solid #d9ece8;
  border-radius: 2px;
  vertical-align: -2px;
  margin-right: .4rem;
}
.eb-country { color: #777; font-size: .76rem; }

.eb-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.eb-link {
  display: inline-block;
  padding: .35rem .85rem;
  border: 1px solid #d1e6e2;
  border-radius: 20px;
  background: #ffffff;
  color: var(--brand-ink);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}
.eb-link:hover {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 600px) {
  .eb-header { padding: 1.25rem 1.25rem; }
  .eb-grid { grid-template-columns: 1fr; }
}
