:root {
  --primary: #7b3fa1;
  --primary-dark: #5e2f7a;
  --primary-light: #f3ebfa;
  --primary-soft: #faf7fd;
  --accent-text: #8a1c5c;
  --accent-text-dark: #6f1649;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-soft: #8a8a8a;
  --border-soft: #ece7f2;
  --border-light: #e5e7eb;
  --card-bg: rgba(255, 255, 255, 0.92);
  --shadow-soft: 0 8px 22px rgba(31, 41, 55, 0.06);
  --shadow-hover: 0 12px 28px rgba(31, 41, 55, 0.10);
}

/* ========================= */
/* BASE                       */
/* ========================= */

#publicacoes {
  background: #f8f9fb;
}

.section-title {
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  position: relative;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  width: 52px;
  height: 3px;
  background: var(--primary);
  display: block;
  margin-top: 0.45rem;
  border-radius: 4px;
}

/* ---- SOBRE O GRUPO (ESPACAMENTO) ---- */
#sobre p {
  line-height: 1.9;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

#sobre {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 0.5rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid var(--border-light);
}

/* ========================= */
/* PUBLICAÇÕES                */
/* ========================= */

.publication-item {
  position: relative;
  padding-right: 90px;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.publication-meta {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.35rem;
}

.publication-title {
  display: inline-block;
  font-size: 1.250rem;
  line-height: 1.25;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.publication-title:hover {
  color: var(--accent-text-dark);
}

.publication-authors {
  font-size: 1.08rem;
  line-height: 1.4;
  color: var(--text-soft);
}

.publication-link {
  position: absolute;
  right: 0;
  top: 4.7rem;
}

.publication-link a {
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 500;
}

.publication-link a:hover {
  text-decoration: underline;
  color: var(--accent-text-dark);
}

/* ========================= */
/* BOTÕES GERAIS              */
/* ========================= */

.btn-primary,
#mostrarMais,
.selection-grid .btn {
  background: linear-gradient(135deg, var(--primary), #9b5fc5);
  border: none;
  color: #fff;
  border-radius: 3px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-primary:hover,
#mostrarMais:hover,
.selection-grid .btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  transform: translateY(-1px);
}

/* ========================= */
/* FILTROS                    */
/* ========================= */

.filter-btn {
  border: 3px solid var(--primary);
  color: var(--primary);
  background: #fff;
  border-radius: 3px;
  padding: 6px 16px;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: pointer;
}

.filter-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), #9b5fc5);
  color: #fff;
  border: none;
}

/* efeito leve ao clicar */
.filter-btn:active {
  transform: scale(0.97);
}

.projetos-extra {
  display: none;
}

/* ========================= */
/* LINHAS DE PESQUISA         */
/* ========================= */

.research-card {
  background: #ffffff;
  padding: 1.8rem;
  border-radius: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  border: 1px solid var(--border-light);
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.research-title {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  margin-bottom: 0.8rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.research-title:hover {
  color: var(--accent-text-dark);
}

.research-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 0.7rem;
}

.research-card strong {
  color: var(--text-main);
}

/* ========================= */
/* SELEÇÃO         */
/* ========================= */

.projects-section,
.selection-section {
  background: transparent;
}

#projetos .card,
#selecao .card,
.projects-grid .card,
.selection-grid .card {
  border: 3px solid var(--border-soft);
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
  background: var(--card-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#projetos .card:hover,
#selecao .card:hover,
.projects-grid .card:hover,
.selection-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.projects-grid .card-body,
.selection-grid .card-body {
  padding: 1.5rem;
}

.projects-grid .card-title,
.selection-grid .card-title {
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.projects-grid .card-text,
.selection-grid .card-text {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ========================= */
/* ESTUDANTES                 */
/* ========================= */

.student-group-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

.student-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.student-role {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.9rem;
  font-weight: 500;
}

.student-links .btn {
  border-radius: 2px;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
}

/* Todos os botões dos estudantes no mesmo padrão */
.btn-contact,
.btn-lattes,
.btn-scopus,
.btn-orcid {
  background: linear-gradient(135deg, var(--primary), #9b5fc5);
  color: #fff;
}

.btn-contact:hover,
.btn-lattes:hover,
.btn-scopus:hover,
.btn-orcid:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}

/* ========================= */
/* EQUIPE (GERAL)             */
/* ========================= */

.team-card {
  border: 2px solid var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.12);
}

.team-card img,
.team-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.team-card-body {
  padding: 1.2rem;
  text-align: center;
}

.team-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.team-role {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.team-area {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.team-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.team-links a {
  border-radius: 3px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), #9b5fc5);
  color: white;
  transition: 0.2s;
}

.team-links a:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
}

/* ========================= */
/* COORDENADOR                */
/* ========================= */

.coordinator {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 28px rgba(123, 63, 161, 0.18);
}

.coordinator .team-name {
  font-size: 1.4rem;
}

.coordinator .team-role {
  color: var(--primary);
  font-weight: 600;
}

.coordinator .team-img {
  height: 420px;
}

/* ========================= */
/* RESPONSIVO                 */
/* ========================= */

@media (max-width: 768px) {
  .publication-item {
    padding-right: 0;
  }

  .publication-title {
    font-size: 1.2rem;
  }

  .publication-authors {
    font-size: 0.98rem;
  }

  .publication-link {
    position: static;
    margin-top: 0.5rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .team-card img,
  .team-img,
  .coordinator .team-img {
    height: 300px;
  }
}

/* ========================= */
/* Noticias*/
/* ========================= */

.context-box {
  background: #f3e8ff; /* roxo claro */
  padding: 16px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 10000px;
  text-align: center;
  border-left: 5px solid #be87e0;
}

.news-img {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}

.custom-title {
  background: linear-gradient(135deg, #4123ea, #2225f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========================= */
Links importantes 
/* ========================= */

.box-links {
  background: #5c1212;
  padding: 2.5rem;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);

  max-width: 900px;   /* 🔥 controla o tamanho da caixa */
  margin: 0 auto;     /* centraliza */
}

.logo-link {
  max-height: 70px;
  transition: all 0.3s ease;
  filter: grayscale(20%);
}

.logo-link:hover {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.footer-link:hover {
  color: #cbd5e1;
}

.footer-icon {
  color: #fefefe; /* cor do ícone */
  font-size: 1.5rem;
  transition: 0.3s ease;
}

.contact-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid #e5e7eb;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: #f3f4f6;
  color: #111827;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #111827;
}

.contact-text {
  color: #374151;
  line-height: 1.7;
}

.contact-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-icon i,
.contact-item i {
  font-size: 1.4rem; /* ajuste fino aqui */
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-content {
  text-align: left;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background: #f2f2f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon i {
  font-size: 1.4rem;
  min-width: 24px;
}

.bi-instagram {
  color: #000000;
}

.conteudo-extra {
  display: none;
}

.btn-ler {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
}

.btn-ler:hover {
  text-decoration: underline;
}


.hero {
  background: #f4f4f6;
  padding: 2rem 0 2rem 0;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}