/* ============================================================
   DESGEO EDU — Palestrantes e convidados / página de perfil
   ============================================================ */

/* Botão nos cards da página inicial */
#speaker-grid .speaker-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

#speaker-grid .speaker-card .body{
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:flex-start;
}

#speaker-grid .speaker-card .speaker-profile-button{
  margin-top:auto;
  padding-top:.72rem;
  padding-bottom:.72rem;
  min-width:116px;
  text-align:center;
}

/* Página individual */
.speaker-profile-body{
  min-height:100vh;
  background:#f7f2e9;
  color:#17364f;
}

.speaker-profile-top{
  background:#fff;
  border-bottom:1px solid #dce5e9;
}

.speaker-profile-top .inner{
  width:min(1120px,calc(100% - 36px));
  min-height:76px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.speaker-profile-page{
  width:min(1120px,calc(100% - 36px));
  margin:0 auto;
  padding:52px 0 72px;
}

.speaker-profile-breadcrumb{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:24px;
  font-size:.82rem;
  font-weight:800;
  color:#667c8d;
}

.speaker-profile-breadcrumb a{
  color:#08795b;
  text-decoration:none;
}

.speaker-profile-card{
  display:grid;
  grid-template-columns:minmax(260px,360px) minmax(0,1fr);
  gap:34px;
  padding:24px;
  border:1px solid #d7e1e6;
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 45px rgba(9,44,68,.06);
}

.speaker-profile-photo-wrap{
  min-height:390px;
  border-radius:19px;
  overflow:hidden;
  background:linear-gradient(145deg,#e6efef,#d6e1e3);
}

.speaker-profile-photo{
  width:100%;
  height:100%;
  min-height:390px;
  object-fit:cover;
  display:block;
}

.speaker-profile-placeholder{
  width:100%;
  min-height:390px;
  display:grid;
  place-items:center;
  font-size:5rem;
  color:#0b5d50;
}

.speaker-profile-content{
  padding:10px 8px 8px 0;
}

.speaker-profile-content h1{
  margin:7px 0 7px;
  color:#07356d;
  font-size:clamp(2rem,4.3vw,3.65rem);
  line-height:1.03;
  letter-spacing:-.035em;
}

.speaker-profile-role{
  margin:0;
  color:#1f4762;
  font-size:1.05rem;
  font-weight:900;
}

.speaker-profile-institution{
  margin:6px 0 0;
  color:#657b8c;
  line-height:1.5;
}

.speaker-profile-meta{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin:16px 0 0;
}

.speaker-profile-chip{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#e9f4ed;
  color:#176b3a;
  font-size:.73rem;
  font-weight:900;
}

.speaker-profile-topic{
  margin-top:24px;
  padding:16px 17px;
  border-radius:15px;
  border-left:5px solid #08795b;
  background:#f2f8f5;
}

.speaker-profile-topic span{
  display:block;
  color:#648072;
  font-size:.7rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.055em;
  margin-bottom:5px;
}

.speaker-profile-topic strong{
  display:block;
  color:#113c32;
  font-size:1.08rem;
  line-height:1.5;
}

.speaker-profile-section{
  margin-top:24px;
}

.speaker-profile-section h2{
  margin:0 0 8px;
  color:#07356d;
  font-size:1.2rem;
}

.speaker-profile-section p{
  margin:0;
  color:#4d6475;
  line-height:1.75;
  white-space:pre-line;
}

.speaker-profile-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:26px;
}

.speaker-profile-loading,
.speaker-profile-error{
  padding:34px;
  border:1px solid #d7e1e6;
  border-radius:20px;
  background:#fff;
  text-align:center;
}

.speaker-profile-error h1{
  color:#07356d;
}

.speaker-other-section{
  margin-top:45px;
}

.speaker-other-section h2{
  color:#07356d;
  margin:0 0 17px;
}

.speaker-other-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.speaker-other-card{
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid #d7e1e6;
  border-radius:15px;
  background:#fff;
  color:#17364f;
  text-decoration:none;
  transition:transform .15s ease,box-shadow .15s ease;
}

.speaker-other-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(9,44,68,.08);
}

.speaker-other-card img,
.speaker-other-avatar{
  flex:0 0 66px;
  width:66px;
  height:66px;
  border-radius:12px;
  object-fit:cover;
  background:#e4edee;
}

.speaker-other-avatar{
  display:grid;
  place-items:center;
  color:#08795b;
  font-weight:950;
  font-size:1.4rem;
}

.speaker-other-card strong{
  display:block;
  color:#07356d;
  line-height:1.25;
}

.speaker-other-card span{
  display:block;
  margin-top:3px;
  color:#6b7e8d;
  font-size:.76rem;
  line-height:1.35;
}

@media(max-width:860px){
  .speaker-profile-card{grid-template-columns:1fr}
  .speaker-profile-photo-wrap,
  .speaker-profile-photo,
  .speaker-profile-placeholder{min-height:320px;max-height:470px}
  .speaker-profile-content{padding:0 3px 4px}
  .speaker-other-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:560px){
  .speaker-profile-top .inner,
  .speaker-profile-page{width:min(100% - 24px,1120px)}
  .speaker-profile-page{padding-top:30px}
  .speaker-profile-card{padding:14px;gap:20px;border-radius:18px}
  .speaker-profile-photo-wrap,
  .speaker-profile-photo,
  .speaker-profile-placeholder{min-height:300px}
  .speaker-profile-actions{display:grid}
  .speaker-profile-actions .btn{width:100%}
  .speaker-other-grid{grid-template-columns:1fr}
}
