/* ===========================
   TEMAS POR CLASSE NO BODY
   (muda apenas as variáveis)
=========================== */

/* AMARELO (padrão) */
body.tema-amarelo{
  --primary: #f59e0b;
  --primary-dark: #b45309;
  --accent-gold: #f5c26b;
  --bg-body-gradient: radial-gradient(circle at top, #fef3c7 0, #f0f2f5 40%, #e4e6eb 100%);
  --topbar-gradient: linear-gradient(90deg, #f59e0b, #fbbf24, #fef9c3, #ffffff);
  --bg-card: #ffffff;
  --text-main: #141414;
  --text-muted: #65676b;
  --border-soft: #dadde1;
  --text-logo: #000;
  --bg-content: #f59e0b;
}
/* VERDE */
body.tema-verde{
  --primary: #16a34a;
  --primary-dark: #166534;
  --accent-gold: #22c55e;
  --bg-body-gradient: radial-gradient(circle at top, #dcfce7 0, #f0fdf4 40%, #e4f2eb 100%);
  --topbar-gradient: linear-gradient(90deg, #16a34a, #22c55e, #bbf7d0, #ffffff);
  --bg-card: #ffffff;
  --text-main: #041b10;
  --text-muted: #4b5563;
  --border-soft: #cbd5f5;
  --text-logo: #fff;
  --bg-content: #16a34a;
}

/* AZUL */
body.tema-azul{
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent-gold: #60a5fa;
  --bg-body-gradient: radial-gradient(circle at top, #dbeafe 0, #eff6ff 40%, #e5e7eb 100%);
  --topbar-gradient: linear-gradient(90deg, #1d4ed8, #2563eb, #60a5fa, #bfdbfe);
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #4b5563;
  --border-soft: #cbd5e1;
  --text-logo: #fff;
  --bg-content: #2563eb;
}

/* VERMELHO */
body.tema-vermelho{
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --accent-gold: #f97373;
  --bg-body-gradient: radial-gradient(circle at top, #fee2e2 0, #fef2f2 40%, #f3e4e4 100%);
  --topbar-gradient: linear-gradient(90deg, #b91c1c, #dc2626, #fecaca, #fee2e2);
  --bg-card: #ffffff;
  --text-main: #2b1010;
  --text-muted: #4b5563;
  --border-soft: #fecaca;
  --text-logo: #000;
  --bg-content: #dc2626;
}
/* ROSÊ */
body.tema-roseo{
  --primary: #ec4899;
  --primary-dark: #be185d;
  --accent-gold: #f9a8d4;
  --bg-body-gradient: radial-gradient(circle at top, #fdf2f8 0, #fce7f3 40%, #f4e4ee 100%);
  --topbar-gradient: linear-gradient(90deg, #be185d, #ec4899, #f9a8d4, #fdf2f8);
  --bg-card: #ffffff;
  --text-main: #3b0f26;
  --text-muted: #6b7280;
  --border-soft: #fbcfe8;
  --text-logo: #000;
  --bg-content: #ec4899;
}

/* DARK */
body.tema-dark{
  --primary: #facc15;
  --primary-dark: #eab308;
  --accent-gold: #fbbf24;
  --bg-body-gradient: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  --topbar-gradient: linear-gradient(90deg, #0f172a, #020617, #111827);
  --bg-card: #020617;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-soft: #1f2937;
  --text-logo: #fff;
  --bg-content: #facc15;
}

/* ===========================
   RESET BÁSICO
=========================== */

*{
  box-sizing: border-box;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-body-gradient);
  color: var(--text-main);
  font-size: 16px; /* letras maiores */
}

a{
  color: inherit;
  text-decoration: none;
}

/* ÍCONES SVG GENÉRICOS */
.icon-svg{
  width: 18px;
  height: 18px;
  display: block;
}

.icon-svg-lg{
  width: 22px;
  height: 22px;
}

/* ===========================
   TOPO – ESTILO FACEBOOK
=========================== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--topbar-gradient);
  color: #1f2933;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.topbar-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 120px;          /* altura desejada */
}

.logo-area{
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img{
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
  border: 2px solid rgb(225 165 37 / 0%);
  background: #ffffff54;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text-main{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .03em;
  color: var(--text-logo);
}

.logo-text-sub{
  font-size: 13px;
  opacity: .95;
  color: var(--text-logo);
}

/* BUSCA TOPO */
.search-box{
  flex: 1;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(148,163,184,.5);
}

.search-box span{
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box input{
  border: none;
  background: transparent;
  color: #374151;
  width: 100%;
  font-size: 14px;
  outline: none;
}

.search-box input::placeholder{
  color: #6b7280;
}

/* BANNER PUBLICIDADE NO TOPO 750x92 */
.top-banner{
  width: 750px;
  height: 92px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.6);
  background: #fff;
}

.top-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===========================
   LAYOUT PRINCIPAL (DEFAULT 3 COLUNAS)
   Usado no index e páginas com sidebar direita
=========================== */
.layout{
  max-width: 1200px;
  margin: 12px auto 24px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px; /* ESQ / CENTRO / DIR */
  gap: 14px;
}

/* ===========================
   LAYOUT 2 COLUNAS
   (Página com sidebar esquerda + feed central)
=========================== */
.layout-2{
  max-width: 1200px;
  margin: 12px auto 24px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr); /* ESQ / CENTRO */
  gap: 14px;
}

/* COLUNA ESQUERDA – ATALHOS */
.sidebar-left{
  position: sticky;
  top: 140px; /* um pouco abaixo da barra alta */
  align-self: flex-start;
}

.shortcut-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  cursor: pointer;
}

.shortcut-item:hover{
  background: rgba(0,0,0,.05);
}

.shortcut-icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shortcut-icon img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.shortcut-text{
  font-size: 15px;
  font-weight: 500;
}

.shortcut-muted{
  font-size: 13px;
  color: var(--text-muted);
}

/* BLOCO DÍZIMO + PUBLICIDADE NO SIDEBAR ESQUERDO */
.sidebar-card-simple{
  margin-top: 10px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  font-size: 14px;
}

.dizimo-img{
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.dizimo-img img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.sidebar-ad{
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.6);
  background: #fff;
  margin-top: 8px;
}

.sidebar-ad img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===========================
   FEED CENTRAL
=========================== */
.feed{
  min-width: 0;
}

.feed-inner{
  max-width: 680px;
  margin: 0 auto;
}

/* CARD BASE */
.card-base{
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  border: 1px solid rgba(209,213,219,.8);
  margin-bottom: 14px;
  overflow: hidden;
}

/* COVER DO SANTUÁRIO – IMAGEM GRANDE */
.cover-santuario{
  position: relative;
  max-height: 360px;
  overflow: hidden;
}

.cover-santuario img{
  width: 100%;
  height: 360px; /* imagem grande */
  object-fit: cover;
  display: block;
}

.cover-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.75), rgba(0,0,0,.1));
  display: flex;
  align-items: flex-end;
  padding: 18px 18px;
  color: #f9fafb;
}

.cover-title{
  font-family: "Great Vibes", cursive;
  font-size: 36px;
  text-shadow: 0 4px 12px rgba(0,0,0,.7);
}

.cover-subtitle{
  font-size: 15px;
  margin-top: 4px;
  opacity: .95;
}

/* COMPOSER (PUBLICAR) */
.composer{
  padding: 12px 14px;
}

.composer-top{
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar-main{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: url('https://images.pexels.com/photos/614810/pexels-photo-614810.jpeg?auto=compress&cs=tinysrgb&w=120') center/cover no-repeat;
}

.composer-input{
  flex: 1;
}

.composer-input input{
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 9px 16px;
  font-size: 15px;
  background: var(--bg-content);
  outline: none;
}

.composer-input input:focus{
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(245,158,11,.5);
}

.composer-bottom{
  border-top: 1px solid var(--border-soft);
  margin-top: 8px;
  padding-top: 7px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.composer-action{
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
}

.composer-action span.icon{
  display: flex;
  align-items: center;
  justify-content: center;
}

.composer-action:hover{
  background: rgba(0,0,0,.05);
}

/* POST ESTILO FACEBOOK */
.post{
  padding: 12px 14px 10px;
}

.post-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.post-user{
  display: flex;
  gap: 10px;
}

.post-avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.post-meta{
  display: flex;
  flex-direction: column;
}

.post-name{
  font-size: 16px;
  font-weight: 600;
}

.post-sub{
  font-size: 13px;
  color: var(--text-muted);
}

.post-menu{
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.post-text{
  font-size: 15px;
  margin-top: 10px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.post-tag{
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.post-image{
  margin-left: -14px;
  margin-right: -14px;
  margin-bottom: 8px;
  overflow: hidden;
}

.post-image img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top; /* <-- MOSTRAR DO TOPO */
  display: block;
}

.post-stats{
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 1px solid var(--border-soft);
}

.post-stats span{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-actions{
  display: flex;
  justify-content: space-around;
  padding-top: 5px;
  gap: 4px;
}

.post-btn{
  flex: 1;
  border: none;
  background: transparent;
  text-align: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.post-btn:hover{
  background: rgba(0,0,0,.04);
}

.post-btn.like.active{
  color: #dc2626;
}

.like-count{
  font-weight: 500;
}

/* BLOCO GALERIA + VÍDEOS (THUMBS) */
.section-title{
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 14px 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.media-grid{
  padding: 0 14px 12px;
}

.thumb{
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  position: relative;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}

.thumb img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  opacity: .9;
  display: block;
}

.thumb-label{
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 10px;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(0,0,0,.7);
  color: #f9fafb;
}

.thumb-play{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fefce8;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}

/* ===========================
   SIDEBAR DIREITA – LITÚRGIA / SANTO / EVANGELHO
=========================== */
.sidebar-right{
  position: sticky;
  top: 140px;
  align-self: flex-start;
}

.side-card{
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 3px 8px rgba(0,0,0,.1);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 15px; /* maior */
}

.side-title{
  font-weight: 700;
  font-size: 17px; /* maior */
  margin-bottom: 6px;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 13px;
  margin-right: 4px;
  margin-bottom: 4px;
}

.santo-avatar{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #facc15, #b45309);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fefce8;
  font-size: 26px;
  margin-right: 10px;
  overflow: hidden;
}

.santo-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.side-footer{
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-mini{
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* ===========================
   MENU MOBILE – SANFONA
=========================== */
.mobile-accordion{
  max-width: 1200px;
  margin: 8px auto 0;
  padding: 0 10px;
}

.mobile-menu-item{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.mobile-menu-item-icon{
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   PÁGINA NOTÍCIA (DETALHE)
   usar em noticia.html: <body class="page-noticia tema-amarelo">
=========================== */

/* Layout 2 colunas só nesta página */
xbody.page-noticia .layout{
  grid-template-columns: 260px minmax(0, 1fr); /* ESQ + CENTRO */
}

/* Esconde sidebar direita na página de notícia */
xbody.page-noticia .sidebar-right{
  display: none;
}

/* Conteúdo central notícia */
.content{
  min-width: 0;
}

.news-wrapper{
  padding: 18px 18px 20px;
}

.breadcrumb-mini{
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 6px;
}

.breadcrumb-mini a{
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-mini a:hover{
  text-decoration: underline;
}

.news-title{
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.news-meta{
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.news-cover{
  margin: 0 -18px 14px;
  max-height: 420px;
  overflow: hidden;
}

.news-cover img{
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top; /* <-- MOSTRAR DO TOPO */
  display: block;
}

.news-lead{
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 12px;
}

.news-body p{
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 15px;
}

.news-highlight{
  border-left: 4px solid var(--primary);
  background: #fff7e6;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 14px 0;
  font-size: 15px;
}

.news-highlight strong{
  display: block;
  margin-bottom: 4px;
}

.news-share{
  border-top: 1px solid var(--border-soft);
  margin-top: 14px;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  row-gap: 10px;
}

.news-share-label{
  font-size: 14px;
  color: var(--text-muted);
}

.share-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn{
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid var(--border-soft);
  background: #f9fafb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.share-btn:hover{
  background: #eef2ff;
}

.news-footer-back{
  margin-top: 18px;
  font-size: 14px;
}

.news-footer-back a{
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
}

.news-footer-back a:hover{
  text-decoration: underline;
}

/* ===========================
   RESPONSIVO
=========================== */
@media (max-width: 991.98px){
  .layout{
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar-left{
    display: none;
  }
  .sidebar-right{
    display: none;
  }
  .feed-inner{
    max-width: 100%;
  }
  .topbar-inner{
    flex-wrap: wrap;
    justify-content: center;
  }
  .top-banner{
    order: 3;
  }
}
/* Breakpoint tablet */
@media (max-width: 992px){
  .layout-2{
    grid-template-columns: 200px minmax(0, 1fr);
  }
}
/* Breakpoint mobile */
@media (max-width: 768px){
  .layout-2{
    grid-template-columns: 1fr;
  }

  .layout-2 aside.sidebar-left{
    order: 2; /* sidebar vai para baixo */
  }

  .layout-2 .feed{
    order: 1; /* feed permanece acima */
  }
}

@media (max-width: 767.98px){
  .topbar-inner{
    padding-inline: 8px;
  }
  .logo-text-sub{
    display: none;
  }
  xbody.page-noticia .news-cover{
    margin: 0 -10px 14px;
  }
}


/* ===========================
   MENU SANFONA – USA VARIÁVEIS DO TEMA
=========================== */
.menu-sanfona{
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* ITEM BASE */
.menu-sanfona .item{
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

/* CABEÇALHO (TÍTULO) */
.menu-sanfona .toggler{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;          /* títulos mais negritos */
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  transition: background .25s, transform .1s, color .25s;
}

/* Item categoria ganha destaque com o primary */
.menu-sanfona .item-categoria .toggler{
  background: linear-gradient(360deg, var(--primary-dark), var(--primary));
  color: #fff;
}

/* HOVER */
.menu-sanfona .toggler:hover{
  background: rgba(0,0,0,.2);
  color: #111;
  transform: translateY(-1px);
}

.menu-sanfona .item-categoria .toggler:hover{
  filter: brightness(1.05);
}

/* SETINHA DA SANFONA */
.menu-sanfona .toggler::after{
  content: "▸";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  transition: transform .25s;
}

.menu-sanfona .item.open .toggler::after{
  transform: translateY(-50%) rotate(90deg);
}

/* ÍCONES REDONDOS (HERDA ESTILO GERAL DO SITE) */
.menu-sanfona .shortcut-icon{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-icone);
  border: 1px solid var(--border-soft);
}

.menu-sanfona .shortcut-icon.is-sub{
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-color: var(--border-soft);
}

.menu-sanfona .icon-svg{
  width: 16px;
  height: 16px;
}

/* TEXTO */
.menu-sanfona .shortcut-text{
  display: inline-block;
  font-size: 14px;
}

/* SUBMENU */
.menu-sanfona .submenu{
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: var(--bg-content);
  border-top: 1px solid var(--border-soft);
}

.menu-sanfona .submenu li a{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 16px;
  font-size: 14px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-soft);
}

.menu-sanfona .submenu li:last-child a{
  border-bottom: none;
}

.menu-sanfona .submenu li a:hover{
  background: rgba(0,0,0,.03);
  color: var(--primary-dark);
}
/******************/
.viva_right_sidebar{
  width: 100%;
}

.viva_sidebar_widget{
  background: #fff;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #e4e4e4;
  box-shadow: 0 3px 8px rgba(0,0,0,.06);
  margin-bottom: 18px;
}

.viva_title{
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  color: #222;
  border-bottom: 2px solid #f0c200; /* dourado suave */
}

.viva_media_item{
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  transition: background .2s ease;
}

.viva_media_item:last-child{
  border-bottom: none;
}

.viva_media_item:hover{
  background: #fafafa;
}

.viva-thumb img{
  width: 92px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.viva-body{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.viva-post-title{
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: #222;
  margin: 0;
}

.viva-post-title:hover{
  color: #d79c0a; /* dourado */
}

.viva-date{
  font-size: 13px;
  margin-top: 4px;
  color: #777;
}
@media(max-width: 500px){
  .viva_media_item{
    gap: 8px;
  }
  .viva-thumb img{
    width: 70px;
    height: 52px;
  }
  .viva-post-title{
    font-size: 14px;
  }
}
/**********************/
/* COVER / FANPAGE – OCUPA AS 3 COLUNAS */
.cover-container{
  grid-column: 1 / -1;   /* pega da 1ª até a última coluna do .layout */
  margin-bottom: 16px;   /* espaço entre a capa e as colunas */
}

.cover-card{
  background: var(--bg-card, #ffffff);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  overflow: visible; /* NÃO cortar a logo */
}

/* Wrapper da imagem de capa */
.cover-image-wrapper{
  position: relative;
}

/* Imagem da capa (slide) */
.cover-image{
  width: 100%;
  height: 260px;       /* ajusta aqui o tamanho da capa */
  object-fit: cover;
  display: block;
}

/* Degradê escuro embaixo da capa para o texto ficar legível */
.cover-gradient{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
}

/* Texto sobre a capa – CENTRALIZADO */
.cover-text{
  position: absolute;
  left: 50%;
  bottom: 32px;              /* sobe um pouco pra não encostar na logo */
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  color: #ffffff;
  max-width: 80%;
}

.cover-text .covertitle{
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cover-text .coversubtitle{
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Logo estilo Facebook, aparecendo inteira */
.cover-logo{
  position: absolute;
  left: 24px;
  bottom: -52px;            /* mais pra baixo, “invadindo” a área abaixo */
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  background: #ffffff;
  z-index: 3;
}

.cover-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Empurra as colunas pra baixo pra não bater na logo */
.sidebar-left,
.feed,
.sidebar-right{
  margin-top: 1px; /* pode ajustar pra + ou - até ficar perfeito */
}

/* Responsivo */
@media (max-width: 900px){
  .cover-image{
    height: 200px;
  }

  .cover-logo{
    bottom: -40px;
    width: 80px;
    height: 80px;
  }

  .cover-text{
    max-width: 90%;
    bottom: 20px;
  }
}

/*********************/
hr{
  border: none;
  border-top: 3px dashed var(--primary);
  opacity: .8;
  margin: 18px 0;
}
/*****************/
.top-right-bar{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px; /* espaço entre redes e slide */
}

.rede-social-icone{
  display: flex;
  gap: 10px;
}

.rede-social-icone a{
  font-size: 14px;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: .25s;
}

.rede-social-icone a:nth-child(1){
  background: #1877f2; /* facebook */
}
.rede-social-icone a:nth-child(1):hover{
  background: #0f63cf;
}

.rede-social-icone a:nth-child(2){
  /*
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); /* insta */
  background: #962fbf; /* insta */
}
.rede-social-icone a:nth-child(2):hover{
  filter: brightness(1.1);
}
/*********************/
.mini-slide{
  width:191px;
  height:80px;
  overflow:hidden;
  position:relative;
  border-radius:6px;
  display:inline-block;
}

.mini-slide img{
  width:191px;
  height:80px;
  object-fit:cover;
  position:absolute;
  top:0; left:0;
  opacity:0;
  transition: opacity .6s ease;
}

.mini-slide img.active{
  opacity:1;
}

.d-none.d-md-block.text-end{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px; /* espaço entre redes e slide */
}
