/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;

  /* Light mode variables */
  --accent: #1776ca;
  --accent-hover: #125d9e;
  --accent-light: #3b9cff;
  --navy: #253657;

  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-card: #f3f4f6;
  --bg-header: rgba(255, 255, 255, 0.95);
  --bg-mobile-menu: #ffffff;
  --bg-badge: #ffffff;
  --bg-theme-btn: #f3f4f6;
  --bg-icon-wrap: rgba(23, 118, 202, 0.1);

  --text: #253657;
  --text-body: #4b5563;
  --text-muted: #6b7280;
  --text-nav: #111827;
  --text-card-title: #111827;
  --border: #e5e7eb;
  --border-card: #f3f4f6;

  --logo-filter: none;
  --glow-opacity: 0.2;
  --dots-opacity: 0.3;
}

html.dark {
  --bg: #030712;
  --bg-alt: #0b1120;
  --bg-card: #1f2937;
  --bg-header: rgba(17, 24, 39, 0.95);
  --bg-mobile-menu: #111827;
  --bg-badge: #253657;
  --bg-theme-btn: #1f2937;
  --bg-icon-wrap: rgba(23, 118, 202, 0.2);

  --text: #ffffff;
  --text-body: #d1d5db;
  --text-muted: #6b7280;
  --text-nav: #f3f4f6;
  --text-card-title: #ffffff;
  --border: #1f2937;
  --border-card: #1f2937;

  --logo-filter: none;
  --glow-opacity: 0.4;
  --dots-opacity: 0.5;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background-color 0.3s, color 0.3s;
}

/* ============================================================
   LAYOUT: CONTAINER
   ============================================================ */
.container {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container-wide {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* ============================================================
   HEADER (VERSÃO RESPONSIVA PROFISSIONAL)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--bg-header);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s, border-color 0.3s;
}

/* Container centralizado e com limite de largura */
.site-header .container {
  max-width: 1280px;
  /* Largura máxima ideal para menus extensos */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Alinhamento flexível: Logo na esquerda, Menu na direita */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  /* Impede a logo de achatar */
}

.logo {
  height: 2.8rem;
  width: auto;
  object-fit: contain;
  filter: var(--logo-filter);
  transition: filter 0.3s;
}

.logo-dark {
  display: none;
}

html.dark .logo-light {
  display: none;
}

html.dark .logo-dark {
  display: block;
}

/* Nav desktop - Gerenciamento de espaço */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.75rem;
  /* Gap menor para não quebrar em telas médias */
}

/* Em tablets e notebooks pequenos, o menu aparece mas com cautela */
@media (min-width: 850px) {
  .nav-desktop {
    display: flex;
  }
}

/* Em telas maiores, aumentamos o espaçamento entre os links */
@media (min-width: 1100px) {
  .nav-desktop {
    gap: 1.25rem;
  }
}

.nav-link {
  color: var(--text-nav);
  text-decoration: none;
  font-size: 0.875rem;
  /* Fonte levemente menor para caber todos os itens */
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
  /* Impede que o texto quebre em duas linhas */
}

.nav-link:hover {
  color: var(--accent);
}

html.dark .nav-link:hover {
  color: var(--accent-light);
}

/* Theme toggle button */
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--bg-theme-btn);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  line-height: 0;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.theme-btn:hover {
  background-color: #e5e7eb;
}

html.dark .theme-btn:hover {
  background-color: #374151;
}

/* Mobile controls - Ajustado para aparecer só quando o menu some */
.mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 850px) {
  .mobile-controls {
    display: none;
  }
}

.menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

/* Menu Mobile (Ajuste de comportamento) */
.mobile-menu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: all 0.3s ease-in-out;
  background-color: var(--bg-mobile-menu);
}

.mobile-menu.open {
  max-height: 100vh;
  /* Permite rolar se o menu for grande */
  opacity: 1;
  transform: translateY(0);
  border-bottom: 1px solid var(--border);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.25rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(23, 118, 202, 0.2);
  transition: background-color 0.3s, box-shadow 0.3s;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 10px 15px -3px rgba(23, 118, 202, 0.3);
}

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  text-align: center;
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: #ffffff;
}

html.dark .btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
}

html.dark .btn-secondary:hover {
  background-color: #ffffff;
  color: var(--navy);
}

/* ============================================================
   SECTION: HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding-top: 5rem;
  padding-bottom: 3rem;
  overflow: hidden;
  transition: background-color 0.3s;
}

html.dark .hero {
  background-color: #0b1120;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(128, 128, 128, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text {
  text-align: left;
}

.hero-text h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
}

html.dark .hero-text h1 {
  color: #ffffff;
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 3.75rem;
  }
}

.hero-br {
  display: none;
}

@media (min-width: 1024px) {
  .hero-br {
    display: block;
  }
}

.hero-accent {
  color: var(--accent);
}

html.dark .hero-accent {
  color: var(--accent-light);
}

.hero-text p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 32rem;
  line-height: 1.7;
}

html.dark .hero-text p {
  color: #d1d5db;
}

@media (min-width: 768px) {
  .hero-text p {
    font-size: 1.25rem;
  }
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* Hero image column */
.hero-image-col {
  position: relative;
  margin-top: 2.5rem;
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero-image-col {
    margin-top: 0;
    max-width: none;
    margin-left: auto;
    margin-right: 0;
  }
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  object-fit: cover;
  border: 1px solid #f3f4f6;
  display: block;
}

html.dark .hero-img {
  border-color: #1f2937;
}

/* Floating badge */
@keyframes badge-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: var(--bg-badge);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  animation: badge-bounce 2s ease-in-out infinite;
  transition: background-color 0.3s, border-color 0.3s;
}

.hero-badge:hover {
  animation-play-state: paused;
}

@media (min-width: 768px) {
  .hero-badge {
    left: -2.5rem;
  }
}

@keyframes dot-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.badge-dot {
  width: 0.75rem;
  height: 0.75rem;
  background-color: #22c55e;
  border-radius: 50%;
  animation: dot-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-badge span {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  white-space: nowrap;
}

html.dark .hero-badge span {
  color: #ffffff;
}

/* Decorative element */
.hero-decoration {
  position: absolute;
  z-index: -1;
  top: 1.25rem;
  right: -1.25rem;
  width: 100%;
  height: 100%;
  background-color: rgba(23, 118, 202, 0.1);
  border-radius: 1rem;
}

html.dark .hero-decoration {
  background-color: rgba(23, 118, 202, 0.2);
}

/* ============================================================
   SECTION: PROJETO
   ============================================================ */
.projeto {
  padding: 6rem 0;
  background-color: #f9fafb;
  overflow: hidden;
  transition: background-color 0.3s;
}

html.dark .projeto {
  background-color: #0b1120;
}

.projeto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .projeto-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.projeto-text h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

html.dark .projeto-text h2 {
  color: #ffffff;
}

@media (min-width: 768px) {
  .projeto-text h2 {
    font-size: 2.25rem;
  }
}

.projeto-text>p {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

html.dark .projeto-text>p {
  color: #d1d5db;
}

.topicos {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.topico {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.topico-icon {
  flex-shrink: 0;
  background-color: var(--bg-icon-wrap);
  padding: 1rem;
  border-radius: 0.75rem;
  color: var(--accent);
  transition: background-color 0.3s;
}

html.dark .topico-icon {
  color: var(--accent-light);
}

.topico h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

html.dark .topico h3 {
  color: #ffffff;
}

.topico p {
  margin-top: 0.5rem;
  color: #4b5563;
  line-height: 1.6;
}

html.dark .topico p {
  color: #9ca3af;
}

/* Projeto image column */
.projeto-image-col {
  position: relative;
  margin-top: 0;
  width: 100%;
  max-width: 42rem;
}

@media (min-width: 1024px) {
  .projeto-image-col {
    margin-left: auto;
    transform: translateX(3rem) scale(1.1);
  }
}

@media (min-width: 1280px) {
  .projeto-image-col {
    transform: translateX(5rem) scale(1.1);
  }
}

.projeto-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to right, var(--accent), var(--navy));
  opacity: var(--glow-opacity);
  filter: blur(32px);
  border-radius: 1.5rem;
  pointer-events: none;
}

.projeto-dots {
  position: absolute;
  top: 2.5rem;
  left: -2.5rem;
  width: 8rem;
  height: 8rem;
  background-image: radial-gradient(#1776ca 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: var(--dots-opacity);
  pointer-events: none;
}

.projeto-img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  object-fit: cover;
  border: 1px solid #f3f4f6;
  display: block;
}

html.dark .projeto-img {
  border-color: #1f2937;
}

/* ============================================================
   SECTION: PUBLICAÇÕES (preview na home)
   ============================================================ */
.publicacoes-section {
  padding: 6rem 0;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s;
}

html.dark .publicacoes-section {
  background-color: #111827;
}

/* Subtle grid pattern behind the section */
.publicacoes-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(23, 118, 202, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 118, 202, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.section-header {
  text-align: center;
  position: relative;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: rgba(23, 118, 202, 0.08);
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

html.dark .section-eyebrow {
  color: var(--accent-light);
  background-color: rgba(59, 156, 255, 0.12);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-card-title);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  margin-top: 0.875rem;
  color: #4b5563;
  font-size: 1rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

html.dark .section-subtitle {
  color: #9ca3af;
}

.pub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 3.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .pub-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* ============================================================
   PUBLICATION CARD (shared)
   ============================================================ */
.pub-card {
  background-color: var(--bg);
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background-color 0.3s, border-color 0.25s ease;
}

.pub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(23, 118, 202, 0.13);
  border-color: rgba(23, 118, 202, 0.25);
}

/* Gradient accent bar at top */
.pub-card-accent {
  height: 4px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  flex-shrink: 0;
}

.pub-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Date pill */
.pub-card-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: rgba(23, 118, 202, 0.08);
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  margin-bottom: 0.875rem;
  width: fit-content;
}

html.dark .pub-card-date {
  color: var(--accent-light);
  background-color: rgba(59, 156, 255, 0.12);
}

.pub-card h2,
.pub-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-card-title);
  line-height: 1.45;
}

.pub-card p {
  margin-top: 0.625rem;
  color: var(--text-body);
  line-height: 1.65;
  font-size: 0.9375rem;
  flex: 1;
}

/* "Ler mais" link */
.pub-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s ease;
}

html.dark .pub-card-link {
  color: var(--accent-light);
}

.pub-card-link:hover {
  gap: 0.625rem;
}

.pub-card-link svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.pub-card-link:hover svg {
  transform: translateX(3px);
}

.pub-more {
  text-align: center;
  margin-top: 3.5rem;
  position: relative;
}

/* ============================================================
   PAGE: PUBLICAÇÕES (todas)
   ============================================================ */
.publicacoes-page {
  padding: 6rem 0 4rem;
  min-height: 100vh;
  background-color: #ffffff;
  transition: background-color 0.3s;
}

html.dark .publicacoes-page {
  background-color: #030712;
}

.publicacoes-page h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-card-title);
  text-align: center;
}

.pub-grid-all {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .pub-grid-all {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pub-grid-all {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   PAGE: PUBLICAÇÃO DETALHE
   ============================================================ */
.pub-detalhe {
  padding: 6rem 0 4rem;
  min-height: 100vh;
  background-color: #ffffff;
  transition: background-color 0.3s;
}

html.dark .pub-detalhe {
  background-color: #030712;
}

.pub-detalhe-container {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.pub-detalhe-container h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-card-title);
  line-height: 1.3;
}

.pub-content {
  margin-top: 2rem;
  font-size: 1.125rem;
  color: #374151;
  line-height: 1.8;
}

html.dark .pub-content {
  color: #d1d5db;
}

.pub-not-found {
  padding: 5rem 1.5rem;
  text-align: center;
  color: var(--text-body);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 2rem;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent-hover);
}

/* ============================================================
   SECTION: NOSSA EQUIPE
   ============================================================ */
.equipe-section {
  padding: 5rem 0 6rem;
  background-color: #f9fafb;
  transition: background-color 0.3s;
}

html.dark .equipe-section {
  background-color: #0b1120;
}

.equipe-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

/* Card base — starts invisible for scroll animation */
.equipe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--bg);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem 2.25rem;
  width: 240px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease,
    box-shadow 0.3s ease, background-color 0.3s,
    border-color 0.3s;
}

.equipe-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.equipe-card.clickable {
  cursor: pointer;
}

/* Reset browser default anchor styles when the card itself is an <a> */
a.equipe-card {
  text-decoration: none;
  color: inherit;
}

/* Hover: lift + glow + foto scale */
.equipe-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(23, 118, 202, 0.16);
  border-color: rgba(23, 118, 202, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background-color 0.3s;
}

.equipe-card:hover .equipe-foto-wrap {
  transform: scale(1.06);
}

.equipe-card:hover .equipe-nome {
  color: var(--accent);
}

html.dark .equipe-card:hover .equipe-nome {
  color: var(--accent-light);
}

@keyframes foto-glow {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(23, 118, 202, 0.0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(23, 118, 202, 0.35);
  }
}

/* Photo wrapper */
.equipe-foto-wrap {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
  animation: foto-glow 3s ease-in-out infinite;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s ease;
}

/* Coordenadora: accent ring */
.equipe-card.coordenadora .equipe-foto-wrap {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 118, 202, 0.13);
}

html.dark .equipe-card.coordenadora .equipe-foto-wrap {
  box-shadow: 0 0 0 4px rgba(59, 156, 255, 0.2);
}

.equipe-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Name */
.equipe-nome {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-card-title);
  line-height: 1.3;
  transition: color 0.25s ease;
}

/* Regular role */
.equipe-cargo {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Coordenadora pill badge */
.equipe-cargo-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: rgba(23, 118, 202, 0.1);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}

html.dark .equipe-cargo-badge {
  color: var(--accent-light);
  background-color: rgba(59, 156, 255, 0.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 3.5rem 0 0;
}

.footer-inner {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

@media (min-width: 1024px) {
  .footer-inner {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

@media (min-width: 1440px) {
  .footer-inner {
    padding-left: 8rem;
    padding-right: 8rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.9fr 1fr 1.2fr;
    gap: 4rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Col 1: logo + tagline + social */
.footer-logo {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: #1e293b;
  color: #94a3b8;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.footer-social-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
}

/* Col titles */
.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.footer-col-title+.footer-col-title,
.footer-col-title-mt {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Col 2: Realização */
.footer-labtec-logo {
  max-height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Col 3 & 4: text lines */
.footer-text {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.8;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.footer-designed {
  font-size: 0.75rem;
  color: #64748b;
}

.footer-link {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #ffffff;
}


/* ============================================================
   MINI CARD Ferramentas
============================================================ */

.ferramentas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.8rem;
  margin-top: 2.5rem;
  margin-block-end: 1rem;
}

/* Força duas colunas em telas menores */
@media (max-width: 800px) {
  .ferramentas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
    justify-items: center;
  }
}

/* 2 colunas em mobile também */
@media (max-width: 500px) {
  .ferramentas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
    justify-items: center;
  }
}

/* Centraliza cards ímpar entre as colunas */
@media (max-width: 800px) {
  .mini-ferramenta-card.centered-card {
    grid-column: 1 / -1;
    width: 50%;
  }
}

.mini-ferramenta-card {
  background-color: var(--bg);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(23, 118, 202, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background-color 0.3s, border-color 0.25s ease,
    opacity 0.25s ease;
  width: 100%;
  height: 200px;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: translateY(-2px);
}

.mini-ferramenta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(23, 118, 202, 0.2);
  border-color: rgba(23, 118, 202, 0.2);
}

.mini-ferramenta-card-accent {
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-light, #60a5fa));
  flex-shrink: 0;
  width: 100%;
  align-self: flex-start;
}

.mini-ferramenta-card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  justify-content: center;
}

.mini-ferramenta-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-card-title, #1e293b);
  line-height: 1.3;
  margin-bottom: 0.375rem;
  margin-top: 0;
}

.mini-ferramenta-card p {
  margin-top: 0.25rem;
  margin-bottom: 0;
  color: var(--text-body, #475569);
  line-height: 1.5;
  font-size: 0.7rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-ferramenta-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.625rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--accent, #1776ca);
  text-decoration: none;
  transition: gap 0.2s ease;
  flex-shrink: 0;
}

.mini-ferramenta-card-link:hover {
  gap: 0.375rem;
}

/* ============================================================
   CARD FILTER ANIMATIONS
============================================================ */
.card-hidden {
  display: none !important;
}

.card-hiding {
  opacity: 0;
  transform: translateY(4px) scale(0.97);
  pointer-events: none;
}

.card-showing {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
}

/* ============================================================
   FILTER SECTION
============================================================ */
.filter-section {
  padding: 1rem 0;
  background-color: var(--bg, #ffffff);
  position: static;
  top: 5rem;
  z-index: 40;
  border-bottom: 1px solid var(--border, #e2e8f0);
  transition: background-color 0.3s, border-color 0.3s;
  margin-block-end: 1rem;

}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  margin-top: 4rem;
}

.filter-toggle-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border, #e2e8f0);
  background-color: var(--bg-alt, #f8fafc);
  color: var(--text-body, #475569);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
  background-color: var(--accent, #1776ca);
  color: #ffffff;
  border-color: var(--accent, #1776ca);
}

.filter-float {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.filter-float.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  justify-items: center;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border, #e2e8f0);
  background-color: var(--bg, #ffffff);
  color: var(--text-body, #475569);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background-color: var(--bg-alt, #f8fafc);
  border-color: var(--accent, #1776ca);
  color: var(--accent, #1776ca);
}

.filter-btn.active {
  background-color: var(--accent, #1776ca);
  color: #ffffff;
  border-color: var(--accent, #1776ca);
}

html.dark .filter-btn.active {
  background-color: var(--accent-light, #60a5fa);
  color: var(--navy, #0f172a);
}

/* ============================================================
   TOOLTIP DO GRÁFICO D3
   ============================================================ */
.d3-tooltip {
  position: absolute;
  background-color: var(--bg-card);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  /* Importante: impede que o mouse "trave" no tooltip */
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 0.875rem;
  z-index: 100;
  line-height: 1.4;
}

.d3-tooltip strong {
  color: var(--accent);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.25rem;
}

/* ============================================================
   GRÁFICO MOBILE vs DESKTOP
   ============================================================ */
#ia-chart {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  overflow: visible;
}

#ia-chart-mobile {
  display: none;
  margin-top: 3rem;
  /* Cria contexto de compositing isolado — evita artefatos GPU durante scroll */
  isolation: isolate;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

@media (max-width: 767px) {
  #ia-chart {
    display: none !important;
  }

  #ia-chart-mobile {
    display: block !important;
  }
}

/* ============================================================
   PÁGINA DE CURSOS - AJUSTES FINAIS
   ============================================================ */

.secao-cursos-grid {
  background-color: #dde3ea;
}

html.dark .secao-cursos-grid {
  background-color: #0b1120;
}

.curso-header {
  padding-top: 8rem;
  padding-bottom: 3rem;
  background-color: var(--bg-alt);
}

.curso-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .curso-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .curso-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.curso-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

/* ── Fix definitivo: valor fixo, não depende de variável ────── */
.curso-grid .pub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #ffffff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  border: 1px solid #d1d5db;
}

html.dark .curso-grid .pub-card {
  background-color: #1f2937 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  border-color: #374151;
}

.curso-grid .pub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(23, 118, 202, 0.18);
  border-color: rgba(23, 118, 202, 0.35);
}

.curso-grid .pub-card-body {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  flex: 1;
}

.curso-grid .pub-card h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.curso-grid .pub-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 2rem;
  flex-grow: 1;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.btn-curso {
  margin-top: auto;
  width: 100%;
  padding: 0.75rem 1rem;
  display: block;
  text-align: center;
  font-weight: 600;
  border-radius: 0.5rem;
}