/* ── 16. LAYOUT AREJADO INSPIRADO NA IP PINHEIROS (PORTAIS & HORÁRIOS ENXUTOS) ── */

/* Oculta barra flutuante redundante de atalhos rápidos do topo */
.cv-hub-quick-bar-unified {
  display: none !important;
}

/* Pulso Dinâmico do Status do Culto de Hoje */
@keyframes pulseLiveDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

#cv-dot-culto-status {
  display: inline-block;
  animation: pulseLiveDot 1.8s infinite ease-in-out;
}

/* Faixa de Horários Clean e Arejada com Alto Respiro */
.cv-horarios-strip-clean {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}
@media (min-width: 768px) {
  .cv-horarios-strip-clean {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.cv-horarios-strip-clean .schedule-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 14px 16px !important;
  min-height: 110px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.cv-horarios-strip-clean .schedule-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
}

.cv-horarios-strip-clean .schedule-info {
  width: 100% !important;
}

.cv-horario-box-clean {
  background: rgba(0, 89, 48, 0.03);
  border: 1.5px solid rgba(0, 89, 48, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
[data-tema="escuro"] .cv-horario-box-clean {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}
.cv-horario-box-clean.cv-horario-clicavel {
  cursor: pointer;
}
.cv-horario-box-clean.cv-horario-clicavel:hover {
  background: rgba(0, 89, 48, 0.08);
  border-color: var(--ipb-verde-principal, #005930);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 89, 48, 0.16);
}
[data-tema="escuro"] .cv-horario-box-clean.cv-horario-clicavel:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
}

.cv-horario-time-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--ipb-verde-principal, #005930);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 5px rgba(0, 89, 48, 0.20);
}
[data-tema="escuro"] .cv-horario-time-pill {
  background: #10b981;
  color: #064e3b;
}

.cv-horario-box-clean h5 {
  margin: 0 0 3px 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text, #1e293b);
  line-height: 1.25;
}
.cv-horario-box-clean p {
  margin: 0;
  font-size: 0.70rem;
  color: var(--text-muted, #64748b);
  line-height: 1.25;
}

/* Seção de Portais de Descoberta (Explore Nosso Portal) */
.cv-portais-section {
  margin: 6px 0;
}
.cv-portais-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cv-portais-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ipb-verde-principal, #005930);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
[data-tema="escuro"] .cv-portais-title {
  color: #10b981;
}

.cv-portais-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .cv-portais-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.cv-portal-card {
  background: var(--surface, #ffffff);
  border: 1.5px solid rgba(0, 77, 42, 0.18);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
  font-family: inherit;
  color: inherit;
  min-height: 104px;
  position: relative;
  overflow: hidden;
}
[data-tema="escuro"] .cv-portal-card {
  background: #121e17;
  border-color: rgba(74, 222, 128, 0.22);
}

.cv-portal-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ipb-verde-principal, #005930);
  opacity: 0;
  transition: opacity 0.2s ease;
}
[data-tema="escuro"] .cv-portal-card::after {
  background: #10b981;
}

.cv-portal-card:hover {
  border-color: var(--ipb-verde-principal, #005930);
  background: rgba(0, 89, 48, 0.03);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 89, 48, 0.12);
}
.cv-portal-card:hover::after {
  opacity: 1;
}
[data-tema="escuro"] .cv-portal-card:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.cv-portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cv-portal-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.cv-portal-arrow {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ipb-verde-principal, #005930);
  transition: transform 0.22s ease;
}
[data-tema="escuro"] .cv-portal-arrow {
  color: #10b981;
}
.cv-portal-card:hover .cv-portal-arrow {
  transform: translateX(4px);
}

.cv-portal-label {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text, #1e293b);
  margin-bottom: 3px;
  line-height: 1.25;
}
.cv-portal-sub {
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  line-height: 1.25;
}

/* ── 17. EXPANSÃO HORIZONTAL DE TÍTULOS E TEXTOS NO DESKTOP (RECOLHIDO NO MOBILE / ESTENDIDO NO DESKTOP) ── */
@media (min-width: 768px) {
  /* Oculta quebras forçadas de mobile (<br class="ipp-br-mobile-only">) para estender títulos em linha única no desktop */
  .ipp-br-mobile-only {
    display: none !important;
  }

  /* Cabeçalhos de todos os cards (Cultos, Portal IPB, Templo, Mapa, Horários, Escrituras, Aniversariantes, PIX) */
  .cv-hub-slide-page .sidebar-header,
  #cv-card-pix-hub .pix-card-header {
    align-items: center !important;
    gap: 16px !important;
  }

  .cv-hub-slide-page .sidebar-title,
  #cv-card-pix-hub #cv-txt-card-pix-titulo {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 1.04rem !important;
    line-height: 1.3 !important;
  }

  .cv-hub-slide-page .sidebar-title > span {
    display: inline !important;
    white-space: normal !important;
  }

  .cv-hub-slide-page .sidebar-sub {
    max-width: 100% !important;
    font-size: 0.80rem !important;
    line-height: 1.45 !important;
  }

  /* Títulos de vídeos do YouTube e Notícias da IPB estendidos no Desktop */
  #cv-videos-hub-grid .cv-video-info h5 {
    -webkit-line-clamp: 3 !important;
    font-size: 0.88rem !important;
  }

  #cv-ipb-noticias-feed .cv-ipb-noticia-titulo {
    -webkit-line-clamp: 3 !important;
    font-size: 0.82rem !important;
  }

  /* Canais de Contato (Fale Conosco): estende textos sem amontoar */
  .contato-channel-info h6 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .contato-channel-info strong {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    line-height: 1.3 !important;
  }

  /* Sub-views (Liturgia, Artigo Pastoral, Avisos, Guia Institucional, Acervo, Devocional, Bíblia e Louvor) estendidas no Desktop */
  .cv-sub-main {
    max-width: 1040px !important;
    padding: 28px 32px calc(48px + var(--safe-bottom)) 32px !important;
  }

  .cv-sub-header .cv-sub-title,
  .cv-sub-header .cv-sub-title span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 1.02rem !important;
  }
}

/* ── 18. SIMULADOR DE VISÃO DE MEMBRO: ALTERNÂNCIA MOBILE (412px) / DESKTOP (TELA CHEIA) ── */
@media (max-width: 640px) {
  .cv-sub-header .cv-sub-title {
    white-space: normal !important;
    line-height: 1.2 !important;
    font-size: 0.84rem !important;
  }
  .cv-sub-header .cv-sub-title span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .cv-sub-header .cv-header-actions-right {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
  }
  .cv-sub-header .cv-header-actions-right.cv-header-actions-col {
    align-items: center !important;
    width: auto !important;
  }
  .cv-sub-header .cv-sub-header-shortcut {
    padding: 3px 8px !important;
    font-size: 0.68rem !important;
    justify-content: center !important;
  }
}

/* ── 19. LEGENDA COMPACTA NO CABEÇALHO DA LITURGIA E ÍCONES DE POSTURA/AÇÃO SIMPLIFICADOS ── */
.cv-liturgia-legenda-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(0, 89, 48, 0.05);
  border: 1px solid rgba(0, 89, 48, 0.14);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted, #475569);
}

[data-tema="escuro"] .cv-liturgia-legenda-bar {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
  color: #cbd5e1;
}

.cv-liturgia-legenda-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.cv-liturgia-legenda-item strong {
  font-size: 0.92rem;
  line-height: 1;
}

.cv-liturgia-legenda-sep {
  opacity: 0.45;
  font-weight: 400;
}

.cv-liturgia-ponta-esquerda {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.cv-badge-icon-only {
  padding: 4px 7px !important;
  font-size: 0.88rem !important;
  line-height: 1 !important;
  min-width: 28px !important;
  height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 7px !important;
}

/* ==========================================================
   EXTRATOR LITURGIA — FITAS CROMÁTICAS SUPERIORES NOS CARDS (v41.401.0)
   Ornamento Colorido de Destaque Cirúrgico em Todos os Cards
   Cores Únicas e Distintas por Página / Slide
   ========================================================== */

/* ── SLIDE 0: INÍCIO & BOLETIM ───────────────────────────── */
#hero-culto-card {
  border-top: 3.5px solid #005930 !important; /* Verde Nobre IPB */
}
#cv-card-horarios-hub {
  border-top: 3.5px solid #f59e0b !important; /* Âmbar Solar Dourado */
}
#cv-card-eventos-igreja-hub {
  border-top: 3.5px solid #0284c7 !important; /* Azul Celeste / Calendário */
}
#cv-membro-card-container {
  border-top: 3.5px solid #8b5cf6 !important; /* Roxo Real / Aniversariantes */
}

/* ── SLIDE 1: PALAVRA VIVA, ACERVO & YOUTUBE ─────────────── */
#cv-ticker-versiculo-hub {
  border-top: 3.5px solid #059669 !important; /* Verde Esmeralda Bíblico */
}
#cv-card-acervo-biblico-hub {
  border-top: 3.5px solid #1e3a8a !important; /* Azul Marinho Teológico */
}
#cv-card-videos-hub {
  border-top: 3.5px solid #dc2626 !important; /* Vermelho Transmissões YouTube */
}

/* ── SLIDE 2: PORTAL IPB & IMPRENSA ──────────────────────── */
#cv-card-jornal-bp-hub {
  border-top: 3.5px solid #0284c7 !important; /* Azul Noticioso Imprensa */
}
#cv-card-redes-sociais-hub {
  border-top: 3.5px solid #047857 !important; /* Verde Presbiteriano Nacional */
}

/* ── SLIDE 3: CONHEÇA-NOS • TEMPLO & COMUNHÃO ────────────── */
#cv-card-fotos-templo-hub {
  border-top: 3.5px solid #059669 !important; /* Verde Esmeralda Templo */
}
#cv-card-localizacao-hub {
  border-top: 3.5px solid #0284c7 !important; /* Azul Celeste GPS */
}
#cv-card-pix-hub {
  border-top: 3.5px solid #d97706 !important; /* Ouro Sacramental Ofertas */
}
#cv-card-contato-hub {
  border-top: 3.5px solid #7c3aed !important; /* Púrpura Acolhimento Pastoral */
}

/* ── VIEWS COMPLEMENTARES DE LEITURA (ARTIGO, AVISOS & GUIA) */
#view-artigo .cv-article-sheet {
  border-top: 3.5px solid #005930 !important; /* Verde Nobre Editorial */
}
#view-avisos .cv-card.cv-notice-box:first-of-type {
  border-top: 3.5px solid #0284c7 !important; /* Azul Comunicados Gerais */
}
#cv-card-pedidos-oracao-full {
  border-top: 3.5px solid #7c3aed !important; /* Púrpura Oração & Intercessão */
}
#cv-card-visitantes-full {
  border-top: 3.5px solid #059669 !important; /* Verde Boas-Vindas Visitantes */
}
#cv-card-eventos-igreja {
  border-top: 3.5px solid #ea580c !important; /* Laranja Sarça Ardente Eventos */
}
#view-avisos .cv-card.cv-notice-box:last-of-type {
  border-top: 3.5px solid #ec4899 !important; /* Rosa Festivo Aniversariantes */
}
#view-guia .cv-guide-section:nth-of-type(1) {
  border-top: 3.5px solid #005930 !important; /* Verde Institucional Liderança */
}
#view-guia .cv-guide-section:nth-of-type(2) {
  border-top: 3.5px solid #d97706 !important; /* Âmbar Sociedades Internas */
}
#view-guia .cv-guide-section:nth-of-type(3) {
  border-top: 3.5px solid #0284c7 !important; /* Azul Identidade & Logotipos */
}

/* 2. Alças Flutuantes Panorâmicas de Navegação Lateral */
.cv-hub-nav-arrow {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 26px;
  height: 84px;
  z-index: 9999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 51, 25, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0, 89, 48, 0.35);
  color: var(--ipb-verde-escuro, #004022);
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  pointer-events: auto;
}

.cv-hub-nav-arrow.left {
  left: 0;
  border-radius: 0 12px 12px 0;
  border-left: none;
}

.cv-hub-nav-arrow.right {
  right: 0;
  border-radius: 12px 0 0 12px;
  border-right: none;
}

.cv-hub-nav-arrow:hover {
  background: rgba(0, 51, 25, 0.55);
  color: #ffffff;
  transform: translateY(-50%) scale(1.05) !important;
  box-shadow: 0 8px 24px rgba(0, 89, 48, 0.35);
}

.cv-hub-nav-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.6;
}

[data-tema="escuro"] .cv-hub-nav-arrow {
  background: rgba(0, 28, 13, 0.70);
  border-color: rgba(255, 255, 255, 0.20);
  color: #f1f5f3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

[data-tema="escuro"] .cv-hub-nav-arrow:hover {
  background: rgba(0, 89, 48, 0.70);
  color: #ffffff;
}

@media (max-width: 600px) {
  .cv-hub-nav-arrow {
    width: 17px !important;
    height: 62px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
  .cv-hub-nav-arrow.left {
    left: 0 !important;
    border-radius: 0 9px 9px 0 !important;
    border-left: none !important;
  }
  .cv-hub-nav-arrow.right {
    right: 0 !important;
    border-radius: 9px 0 0 9px !important;
    border-right: none !important;
  }
  .cv-hub-nav-arrow svg {
    width: 12px !important;
    height: 12px !important;
    stroke-width: 3 !important;
  }
  /* Área de toque expandida invisível para acessibilidade tátil sem poluição */
  .cv-hub-nav-arrow::after {
    content: '';
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: 0;
    right: -12px;
  }
  .cv-hub-nav-arrow.right::after {
    left: -12px;
    right: 0;
  }
}

/* 2.1 Alças Verticais Esbeltas Laterais de Navegação do Boletim */
.cv-view:not(.active) .cv-liturgia-nav-arrow {
  display: none !important;
}

.cv-liturgia-nav-arrow {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 26px;
  height: 96px;
  background: rgba(0, 51, 25, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px;
  z-index: 120;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 40, 20, 0.2);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  pointer-events: auto;
}

.cv-liturgia-nav-arrow.left {
  left: 0;
  border-radius: 0 12px 12px 0;
  border-left: none;
}

.cv-liturgia-nav-arrow.right {
  right: 0;
  border-radius: 12px 0 0 12px;
  border-right: none;
}

.cv-liturgia-nav-arrow:hover {
  background: rgba(0, 51, 25, 0.65);
  color: #ffffff;
  transform: translateY(-50%) scale(1.06) !important;
  box-shadow: 0 8px 24px rgba(0, 89, 48, 0.35);
}

.cv-liturgia-nav-arrow:active {
  transform: translateY(-50%) scale(0.96) !important;
}

.cv-liturgia-nav-arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.6;
}

.cv-liturgia-nav-arrow-hint {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
  line-height: 1;
}

[data-tema="escuro"] .cv-liturgia-nav-arrow {
  background: rgba(0, 28, 13, 0.70);
  border-color: rgba(255, 255, 255, 0.20);
  color: #f1f5f3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

[data-tema="escuro"] .cv-liturgia-nav-arrow:hover {
  background: rgba(0, 89, 48, 0.70);
  color: #ffffff;
}

@media (max-width: 600px) {
  .cv-liturgia-nav-arrow {
    width: 18px !important;
    height: 78px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  .cv-liturgia-nav-arrow.left {
    left: 0 !important;
    border-radius: 0 9px 9px 0 !important;
    border-left: none !important;
  }
  .cv-liturgia-nav-arrow.right {
    right: 0 !important;
    border-radius: 9px 0 0 9px !important;
    border-right: none !important;
  }
  .cv-liturgia-nav-arrow svg {
    width: 11px !important;
    height: 11px !important;
    stroke-width: 3 !important;
  }
  .cv-liturgia-nav-arrow-hint {
    font-size: 0.52rem !important;
  }
  .cv-liturgia-nav-arrow::after {
    content: '';
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: 0;
    right: -12px;
  }
  .cv-liturgia-nav-arrow.right::after {
    left: -12px;
    right: 0;
  }
}

/* 3. Card Split do Jornal Brasil Presbiteriano */
.ipp-card-jornal-bp {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, rgba(0, 89, 48, 0.12));
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.ipp-jornal-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ipb-verde-escuro, #004022);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.ipp-jornal-kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 5px;
  background: #3b82f6;
  border-radius: 4px;
}

.ipp-jornal-bp-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
}

.ipp-jornal-capa-col {
  text-align: center;
}

.ipp-jornal-capa-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 1 / 1.38;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
}

.ipp-jornal-capa-img:hover {
  transform: scale(1.02);
}

.ipp-jornal-info-col h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ipb-verde-escuro, #004022);
  line-height: 1.3;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.ipp-jornal-info-col p {
  font-size: 0.92rem;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
  margin-bottom: 20px;
}

.ipp-btn-ler-jornal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #3b82f6 !important;
  color: #ffffff !important;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 89, 48, 0.25);
  transition: all 0.2s ease;
}

.ipp-btn-ler-jornal:hover {
  background: #00703c !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 89, 48, 0.35);
}

@media (max-width: 768px) {
  .ipp-card-jornal-bp {
    padding: 16px 14px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
  }
  .ipp-jornal-bp-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    width: 100%;
  }
  .ipp-jornal-capa-col {
    max-width: 160px;
    margin: 0 auto;
    width: 100%;
  }
  .ipp-jornal-capa-img {
    max-width: 160px;
    width: 100%;
    height: auto;
  }
  .ipp-jornal-info-col h3 {
    font-size: 1.10rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .ipp-jornal-info-col p {
    font-size: 0.88rem;
    word-break: break-word;
  }
  .ipp-btn-ler-jornal {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .ipp-noticias-links-diretos-bar {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .ipp-btn-link-direto-ipb {
    width: 100%;
    box-sizing: border-box;
  }
  .ipp-eventos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 4. Seção Eventos Nacionais da IPB (Medalhões) */
.ipp-secao-eventos-ipb {
  background: linear-gradient(180deg, #002e17 0%, #002211 100%);
  border-radius: var(--radius-lg, 16px);
  padding: 30px 24px;
  margin-bottom: 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 35, 18, 0.35);
}

.ipp-secao-eventos-titulo {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 26px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ipp-secao-eventos-titulo::before,
.ipp-secao-eventos-titulo::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.40);
}

.ipp-eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  justify-content: center;
}

.ipp-evento-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ipp-evento-medalhao {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  border: 3px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.40);
  background: #001c0d;
}

.ipp-evento-medalhao-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ipp-evento-card:hover .ipp-evento-medalhao-img {
  transform: scale(1.08);
}

.ipp-evento-data-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 28, 13, 0.85);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.82rem;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ipp-evento-titulo {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
  text-transform: uppercase;
  line-height: 1.3;
}

.ipp-evento-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
}

.ipp-btn-visualizar-evento {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ipp-btn-visualizar-evento:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* 5. Sistema de Notícias do Portal IPB (Pills + Cards Poster + Lista Lateral) */
.ipp-noticias-ipb-container {
  container-type: inline-size;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, rgba(0, 89, 48, 0.12));
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-tema="escuro"] .ipp-noticias-ipb-container {
  background: #121e17 !important;
  border-color: rgba(74, 222, 128, 0.20) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.40) !important;
}

.ipp-noticias-links-diretos-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.ipp-btn-link-direto-ipb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(0, 89, 48, 0.08);
  border: 1.5px solid rgba(0, 89, 48, 0.25);
  color: var(--ipb-verde-escuro, #004022) !important;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ipp-btn-link-direto-ipb:hover {
  background: var(--ipb-verde-principal, #005930);
  border-color: var(--ipb-verde-principal, #005930);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 89, 48, 0.25);
}

.ipp-btn-link-direto-ipb .ipp-link-arrow {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.ipp-btn-link-direto-ipb:hover .ipp-link-arrow {
  transform: translateX(3px);
}

[data-tema="escuro"] .ipp-btn-link-direto-ipb {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f1f5f3 !important;
}

[data-tema="escuro"] .ipp-btn-link-direto-ipb:hover {
  background: var(--ipb-verde-principal, #005930);
  border-color: #10b981;
  color: #ffffff !important;
}

@media (max-width: 600px) {
  .ipp-noticias-links-diretos-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .ipp-btn-link-direto-ipb {
    justify-content: space-between;
  }
}

.ipp-noticias-grid-misto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 260px;
  gap: 18px;
  align-items: stretch;
}

.ipp-noticia-poster-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  aspect-ratio: 1 / 1.5;
  background: #001c0d;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ipp-noticia-poster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.ipp-noticia-poster-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ipp-noticia-poster-card:hover .ipp-noticia-poster-img {
  transform: scale(1.05);
}

.ipp-noticia-poster-data-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 46, 23, 0.88);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
  font-size: 0.75rem;
  line-height: 1.1;
  border: 1px solid rgba(255, 255, 255, 0.20);
  z-index: 2;
}

.ipp-noticia-poster-data-badge span {
  display: block;
  font-size: 1.1rem;
}

.ipp-noticia-poster-data-badge.ipp-poster-badge-pdf {
  background: rgba(220, 38, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
}

.ipp-noticia-poster-data-badge.ipp-poster-badge-pdf span {
  font-size: 0.85rem;
  letter-spacing: 0.4px;
}

.ipp-noticia-poster-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0, 20, 10, 0.95) 0%, rgba(0, 20, 10, 0.70) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.ipp-noticia-poster-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.ipp-noticia-poster-titulo {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 6px;
}

.ipp-noticia-poster-resumo {
  font-size: 0.74rem;
  color: #e2e8f0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.ipp-btn-ler-noticia {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.40);
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
}

.ipp-noticias-lista-lateral {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}

.ipp-noticia-lateral-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.06));
}

.ipp-noticia-lateral-data {
  background: #3b82f6;
  color: #ffffff;
  padding: 6px 8px;
  border-radius: 6px;
  text-align: center;
  font-weight: 800;
  font-size: 0.70rem;
  line-height: 1.1;
  min-width: 44px;
  flex-shrink: 0;
}

.ipp-noticia-lateral-data span {
  display: block;
  font-size: 1rem;
}

.ipp-noticia-lateral-body h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ipb-verde-escuro, #004022);
  line-height: 1.3;
  margin-bottom: 4px;
}

.ipp-noticia-lateral-body p {
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ipp-noticia-lateral-item.ipp-item-jornal-bp {
  background: rgba(0, 89, 48, 0.04);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 89, 48, 0.14);
  transition: all 0.2s ease;
  align-items: center;
}

.ipp-noticia-lateral-item.ipp-item-jornal-bp:hover {
  background: rgba(0, 89, 48, 0.08);
  border-color: rgba(0, 89, 48, 0.3);
  transform: translateY(-1px);
}

.ipp-noticia-lateral-capa-bp {
  width: 44px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ipp-item-jornal-bp .ipp-noticia-lateral-body h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.ipp-item-jornal-bp-badge {
  display: inline-block;
  font-size: 0.60rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: #dc2626;
  color: #ffffff;
  letter-spacing: 0.3px;
}

html[data-tema="escuro"] .ipp-noticia-lateral-item.ipp-item-jornal-bp {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
}

html[data-tema="escuro"] .ipp-noticia-lateral-item.ipp-item-jornal-bp:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
}

html[data-tema="escuro"] .ipp-noticia-lateral-body h4 {
  color: #34d399 !important;
}

html[data-tema="escuro"] .ipp-noticia-lateral-body p {
  color: #94a3b8 !important;
}

.ipp-btn-ver-todas-noticias {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border: 1px solid #3b82f6;
  border-radius: 10px;
  color: #3b82f6;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.ipp-btn-ver-todas-noticias:hover {
  background: #3b82f6;
  color: #ffffff;
}

@media (max-width: 900px) {
  .ipp-noticias-grid-misto {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 820px) {
  .ipp-noticias-grid-misto {
    grid-template-columns: 1fr;
  }
}








