/* ============================================================
   International Experts — consolidated, searchable directory.
   Clean white hero, navy headings, teal accents. Full-profile
   photo/avatar cards in a responsive grid. Matches the Authors/
   Publications design language. Fixed px sizes because the site
   root font is 62.5% (rem renders tiny here).
   ============================================================ */

/* ---- Hero ---- */
.experts-hero {
  background: linear-gradient(180deg, #f5faf8 0%, #ffffff 100%);
  padding: 48px 24px 34px;
  text-align: center;
  border-bottom: 1px solid #e8ece9;
}
.experts-hero-inner {
  max-width: 880px;
  margin: 0 auto;
}
.experts-hero-title {
  color: #1b2733;
  font-size: 34px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.2px;
}
.experts-hero-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin: 14px auto 0;
  background: #0bb89c;
  border-radius: 2px;
}
.experts-hero-subtitle {
  color: #5a6b73;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  margin: 16px auto 0;
  max-width: 720px;
}

/* ---- Hero stats ---- */
.experts-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.experts-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.experts-hero-stat-num {
  font-size: 30px;
  font-weight: 800;
  color: #0bb89c;
  line-height: 1;
}
.experts-hero-stat-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #7d8f88;
}

/* ---- Main container ---- */
.experts-main {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 48px 56px;
  box-sizing: border-box;
}

/* ---- Toolbar: search + country filter ---- */
.experts-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0 6px;
}
.experts-search {
  position: relative;
  flex: 1 1 340px;
}
.experts-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 18px;
  font-size: 15px;
  color: #1b2733;
  background-color: #f7faf9;
  border: 1px solid #d7e2dd;
  border-radius: 30px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.experts-search-input::placeholder { color: #9aa8a2; }
.experts-search-input:focus {
  background-color: #ffffff;
  border-color: #0bb89c;
  box-shadow: 0 0 0 3px rgba(11,184,156,0.14);
}

/* Country dropdown (Dash dcc.Dropdown = react-select) */
.experts-country {
  flex: 0 0 240px;
  min-width: 200px;
}
.experts-country .Select-control,
.experts-country .is-focused:not(.is-open) > .Select-control {
  border-radius: 30px;
  border: 1px solid #d7e2dd;
  background-color: #f7faf9;
  height: 44px;
  box-shadow: none;
}
.experts-country .Select-control:hover { border-color: #b7ccc3; }
.experts-country .Select.is-focused .Select-control {
  border-color: #0bb89c;
  box-shadow: 0 0 0 3px rgba(11,184,156,0.14);
  background-color: #ffffff;
}
.experts-country .Select-placeholder,
.experts-country .Select-value,
.experts-country .Select-value-label {
  line-height: 44px !important;
  font-size: 14.5px;
  color: #1b3b5a !important;
  padding-left: 8px;
}
.experts-country .Select-input { height: 44px; padding-left: 8px; }
.experts-country .Select-arrow-zone { padding-right: 12px; }
.experts-country .Select-menu-outer {
  border-radius: 12px;
  border: 1px solid #e0e8e4;
  box-shadow: 0 10px 28px rgba(16,40,34,0.12);
  overflow: hidden;
  margin-top: 4px;
  font-size: 14px;
}
.experts-country .VirtualizedSelectOption { color: #33454d; }
.experts-country .VirtualizedSelectFocusedOption {
  background-color: #eafaf5;
  color: #0e8f79;
}

/* ---- Result count ---- */
.experts-resultbar {
  margin: 16px 0 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f0;
}
.experts-resultcount {
  font-size: 13.5px;
  font-weight: 600;
  color: #7d8f88;
  letter-spacing: 0.2px;
}

/* ---- Grid ---- */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

/* ---- Card ---- */
.expert-card {
  display: flex;
  gap: 15px;
  background: #ffffff;
  border: 1px solid #e8ece9;
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: 0 1px 3px rgba(16,40,34,0.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.expert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(16,40,34,0.10);
  border-color: #cfe6df;
}

/* ---- Photo / avatar ---- */
.expert-media { flex-shrink: 0; }
.expert-photo,
.expert-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
.expert-photo {
  border: 3px solid #ffffff;
  outline: 1px solid #e6faf4;
}
.expert-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 1px;
  border: 3px solid rgba(255,255,255,0.7);
}

/* ---- Text ---- */
.expert-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.expert-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.expert-name {
  font-size: 16px;
  font-weight: 700;
  color: #1b3b5a;
  line-height: 1.25;
  word-break: break-word;
}
.expert-position {
  font-size: 13px;
  font-weight: 600;
  color: #2f8f7d;
  line-height: 1.35;
}
.expert-division {
  font-size: 12px;
  color: #6a7a82;
  line-height: 1.35;
}
.expert-affiliation {
  font-size: 12.5px;
  color: #46565e;
  line-height: 1.4;
  word-break: break-word;
  margin-top: 1px;
}

/* ---- Meta footer: country + since ---- */
.expert-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f4f2;
}
.expert-country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #5a6b73;
  min-width: 0;
}
.expert-country .expert-dot {
  color: #0bb89c;
  font-size: 9px;
  line-height: 1;
}
.expert-since {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #0e8f79;
  background: #eafaf5;
  border-radius: 20px;
  padding: 3px 10px;
}

/* ---- Empty state ---- */
.experts-empty {
  text-align: center;
  color: #7d8f88;
  font-size: 16px;
  padding: 60px 20px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .experts-main { padding: 0 14px 32px; }
  .experts-hero-title { font-size: 27px; }
  .experts-hero-stats { gap: 30px; }
  .experts-toolbar { gap: 12px; }
  .experts-search { flex: 1 1 100%; }
  .experts-country { flex: 1 1 100%; }
  .experts-grid { grid-template-columns: 1fr; }
}
