/* ============================================================
  styleSheet3.css | JIEE - Editorial Team & Reviewer Board
  Compatible with editorialteam.php / reviewerboard.php on JPAPS
  Visual identity: warm orange-red based on JIEE website banner
  Three-column layout: Photo | Information | Author Statistics
  ============================================================ */

:root {
  --jiee-red-deep: #84240d;
  --jiee-red: #a42a0b;
  --jiee-orange-deep: #bd3810;
  --jiee-orange: #e8570e;
  --jiee-orange-bright: #f9670d;
  --jiee-gold: #ffd475;
  --jiee-cream: #fff4e7;
  --jiee-cream-dark: #ffe0c7;
  --jiee-ink: #63341c;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; }
body {
  background: transparent;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* The same selector works for both Editorial Team & Reviewer Board. */
.page_editorial_team .tim-editor {
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: center;
  padding: 18px 20px 26px;
  border-radius: 15px;
  background: linear-gradient(110deg,
    var(--jiee-red-deep) 0%,
    var(--jiee-red) 37%,
    var(--jiee-orange-bright) 100%);
  box-shadow: 0 8px 20px rgba(85, 31, 12, .18);
}
.page_editorial_team .tim-editor::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 95% 0%,
    rgba(255, 212, 117, .18), transparent 40%);
}
.page_editorial_team .tim-editor > * {
  position: relative;
  z-index: 1;
}

/* Section heading */
.page_editorial_team .tim-editor h2 {
  margin: 12px 0 26px;
  color: #ffffff;
  font: 700 2.05rem/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-shadow: 0 2px 5px rgba(61, 16, 5, .24);
}
.page_editorial_team .tim-editor h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 4px;
  background: var(--jiee-gold);
}

/* Profile cards: desktop 3 columns */
.page_editorial_team .tim-editor .editor-grid {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: 145px minmax(0, 1fr) 320px !important;
  align-items: center !important;
  gap: 18px !important;
  width: 100%;
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  background: linear-gradient(105deg, #92270e 0%, #be3a10 50%, #e96716 100%);
  box-shadow: 0 10px 22px rgba(72, 25, 9, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.page_editorial_team .tim-editor .editor-grid:last-child { margin-bottom: 0; }
.page_editorial_team .tim-editor .editor-grid:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 27px rgba(72, 25, 9, .28);
}
.page_editorial_team .tim-editor .editor-grid::before {
  content: "";
  position: absolute;
  right: -75px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 117, .15), transparent 65%);
}
.page_editorial_team .tim-editor .editor-grid > * {
  position: relative;
  z-index: 1;
}

/* Photo */
.page_editorial_team .tim-editor .editor-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.page_editorial_team .tim-editor .editor-image-wrapper img {
  display: block;
  width: 120px;
  height: 150px;
  border-radius: 15px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.93);
  background: var(--jiee-cream);
  box-shadow: 0 7px 16px rgba(70, 22, 8, .22);
}

/* Name / affiliation */
.page_editorial_team .tim-editor .editor-info {
  min-width: 0;
  padding-right: 5px;
}
.page_editorial_team .tim-editor .editor-info h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.07rem;
  line-height: 1.35;
  font-weight: 800;
}
.page_editorial_team .tim-editor .editor-info p {
  margin: 0 0 9px;
  color: #fffaf5;
  font-size: .95rem;
  line-height: 1.45;
}
.page_editorial_team .tim-editor .editor-info .editor-role {
  color: #ffe5bc !important;
  font-weight: 800 !important;
}
.page_editorial_team .tim-editor .editor-expertise {
  width: 100%;
  max-width: 560px;
  margin: 10px 0 0;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.60);
  border-radius: 8px;
  background: var(--jiee-cream);
  color: var(--jiee-ink);
  font-size: .93rem;
  line-height: 1.4;
}
.page_editorial_team .tim-editor .editor-expertise strong {
  color: #81300e;
  font-weight: 800;
}

/* Scholarly profile links */
.page_editorial_team .tim-editor .social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 11px;
}
.page_editorial_team .tim-editor .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(63,20,7,.21);
  text-decoration: none;
  transition: transform .16s ease;
}
.page_editorial_team .tim-editor .social-links a:hover { transform: translateY(-2px); }
.page_editorial_team .tim-editor .social-links img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* Author statistics (reviewers use identical classes) */
.page_editorial_team .tim-editor .editor-stats-widget {
  grid-column: auto !important;
  justify-self: end !important;
  width: 100%;
  max-width: 300px;
  min-width: 0;
  margin-top: 0 !important;
  padding: 17px 18px 12px;
  border: 1px solid rgba(255,255,255,.90);
  border-radius: 16px;
  background: linear-gradient(145deg, #fffaf3 0%, #ffe5cc 100%);
  box-shadow: 0 8px 17px rgba(68,22,7,.15);
}
.page_editorial_team .tim-editor .editor-stats-widget h4 {
  margin: 0 0 13px;
  color: #8d2b0c;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 800;
  text-align: center;
}
.page_editorial_team .tim-editor .stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(137, 61, 22, .18);
}
.page_editorial_team .tim-editor .stats-row:last-child { border-bottom: none; }
.page_editorial_team .tim-editor .stats-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--jiee-ink);
  font-size: .92rem;
  line-height: 1.2;
}
.page_editorial_team .tim-editor .stats-label img {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.page_editorial_team .tim-editor .stats-value {
  min-width: 36px;
  text-align: right;
  font-size: 1.05rem;
  font-weight: 800;
  color: #aa370c;
}
.page_editorial_team .tim-editor .stats-value iframe {
  display: inline-block;
  width: 34px !important;
  height: 24px !important;
  background: transparent !important;
  border: 0 !important;
  overflow: hidden !important;
  vertical-align: middle;
}

/* Narrow desktops: retain 3 columns until 720px */
@media (max-width: 940px) and (min-width: 721px) {
  .page_editorial_team .tim-editor .editor-grid {
    grid-template-columns: 115px minmax(0, 1fr) 245px !important;
    gap: 12px !important;
    padding: 14px;
  }
  .page_editorial_team .tim-editor .editor-image-wrapper img {
    width: 105px;
    height: 135px;
  }
  .page_editorial_team .tim-editor .editor-stats-widget {
    max-width: 245px;
    padding: 12px 11px;
  }
  .page_editorial_team .tim-editor .stats-label { font-size: .83rem; }
}

/* Mobile: stack profile and statistics in reading order */
@media (max-width: 720px) {
  .page_editorial_team .tim-editor { padding: 14px 11px 20px; }
  .page_editorial_team .tim-editor h2 {
    margin-bottom: 20px;
    font-size: 1.62rem;
  }
  .page_editorial_team .tim-editor .editor-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    gap: 14px !important;
    padding: 15px;
  }
  .page_editorial_team .tim-editor .editor-image-wrapper { justify-content: center; }
  .page_editorial_team .tim-editor .editor-info {
    padding-right: 0;
    text-align: center;
  }
  .page_editorial_team .tim-editor .editor-expertise { text-align: left; }
  .page_editorial_team .tim-editor .social-links { justify-content: center; }
  .page_editorial_team .tim-editor .editor-stats-widget {
    grid-column: auto !important;
    justify-self: stretch !important;
    margin-top: 2px !important;
    max-width: 100%;
  }
}
@media (max-width: 420px) {
  .page_editorial_team .tim-editor h2 {
    font-size: 1.43rem;
    letter-spacing: 1.2px;
  }
  .page_editorial_team .tim-editor .editor-grid { padding: 14px 10px; }
}
