/* Navbar */
.navbar {
  font-weight: 500;
}

/* Hover dos itens do menu */
.navbar-nav .nav-link:hover,
.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Cards institucionais */
.card {
  border-radius: 0.75rem;
}

/* Título das páginas */
.page-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== Cards da equipe ===== */

.equipe-card {
  padding: 0;
}

.equipe-nome {
  background-color: rgba(0,0,0,0.10); /* ajuste depois se quiser */
  color: white;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: center;      /* <-- centraliza o nome */
}


.equipe-cargo {
  padding: 1rem;
  color: #333;
  overflow: visible;   /* <-- remove scroll */
  white-space: normal; /* <-- quebra linha normalmente */
}

/* =========================================================
   SCROLL ÚNICO DA PÁGINA — BSLIB / PAGE_NAVBAR
   ========================================================= */

/* Container principal do conteúdo */
.bslib-page-main {
  height: auto !important;
  min-height: calc(100vh - var(--bslib-navbar-height));
  overflow-y: auto;
}

/* Remove scroll interno criado pelo bslib */
.bslib-card-body,
.bslib-gap-spacing,
.bslib-layout-columns,
.bslib-layout-column {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* Mantém cards corretos */
.card {
  overflow: hidden;
}

.card .card-header {
  background-color: rgba(0,0,0,0.10);
  color: #333;
  font-weight: 600;
  border-bottom: none;
}

/* Mobile: comportamento ainda mais livre */
@media (max-width: 992px) {
  .bslib-page-main {
    min-height: 100vh;
  }
}

.carousel-item {
  height: 320px;
}

.carousel-item img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}


.rodape-ufpe-compacto {
  /* Posicionamento Fixo */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1050; /* Garante que fique acima dos outros elementos */
  
  /* Estilo Visual */
  padding: 0.75rem 1rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #7a7a7a;
  background-color: rgba(245, 245, 245, 0.95); /* Um pouco de transparência fica elegante */
  backdrop-filter: blur(5px); /* Efeito de desfoque no fundo */
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05); /* Sombra suave para separar do conteúdo */
}

/* IMPORTANTE: Adicione um recuo no final da página para o conteúdo 
   não ficar escondido atrás do rodapé fixo */
.bslib-page-main {
  padding-bottom: 60px !important; 
}

.rodape-link {
  color: #7a7a7a;
  text-decoration: none;
}

.rodape-link:hover {
  color: #9B1C1F; /* vermelho UFPE */
  text-decoration: underline;
}


@media (max-width: 576px) {
  .rodape-ufpe-compacto {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}


/* ==========================================
   ACCORDION - Rankings Internacionais
   versão suave/transparente
   ========================================== */

/* Fechado */
.accordion-button {
  background-color: rgba(0,0,0,0.10);
  color: #5a0000;
  font-weight: 500;
  border: none;
  box-shadow: none;
  transition: all 0.2s ease-in-out;
}

/* Aberto */
.accordion-button:not(.collapsed) {
  background-color: rgba(153, 0, 0, 0.22);
  color: #4a0000;
  box-shadow: none;
}

/* Hover */
.accordion-button:hover {
  background-color: rgba(153, 0, 0, 0.28);
}

/* Remove borda padrão */
.accordion-item {
  border: none;
}

/* Ícone da seta em tom escuro */
.accordion-button::after {
  filter: none;
}

@media (max-width: 576px) {
  .rodape-ufpe-compacto {
    position: relative; /* Deixa de ser fixo no celular */
    margin-top: 2rem;
  }
  .bslib-page-main {
    padding-bottom: 0 !important;
  }
}

.bslib-value-box {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bslib-value-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

.texto-transicao-rankings {
  font-size: 0.95rem;
  color: #5a5a5a;
  margin-top: 5px;
  margin-bottom: 10px;
  border-top: 1px solid rgba(155, 28, 31, 0.15);
}


/* ==========================================
   ITEM ATIVO DO MENU (nav_menu)
   ========================================== */

.navbar .nav-link.active {
  background-color: rgba(255,255,255,0.18);
  color: #ffffff !important;
  border-radius: 3px;
}

/* também funciona para itens dentro do dropdown */

.dropdown-item.active {
  background-color: rgba(255,255,255,0.25);
  color: #ffffff !important;
}


/* ==========================================
   landing page
   ========================================== */
   
.hero-ufpe {
  background: linear-gradient(135deg, #9B1C1F, #5c0f12);
  color: white;
  padding: 28px 20px;
  text-align: center;
  border-radius: 6px;
}

.hero-ufpe h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #9B1C1F;   /* vermelho UFPE */
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.hero-ufpe p {
  font-size: 1.25rem;
  color: white;
  max-width: 750px;
  margin: auto;
}

.hero-content{
  background: rgba(0,0,0,0.45);
  padding: 40px;
  border-radius: 6px;
}

.hero-content h1{
  font-size: 3.5rem;
  font-weight: 700;
}

.card-atalho{
  text-align:center;
  transition: all 0.25s;
}

.card-atalho:hover{
  transform: translateY(-5px);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem;
}

.card-link:hover {
  text-decoration: none;
  color: inherit;
}

.card-atalho {
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-atalho:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}


.card-indicador{
  text-align:center;
  font-weight:600;
}

.card-indicador h2{
  color:#9B1C1F;
  font-size:2rem;
}

.card-atalho,
.card-indicador {
  background-color: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.breadcrumb-ufpe {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 8px;
}

.breadcrumb-ufpe {
  padding-left: 4px;
}
