/* ============================
   BOTÃO HOME – ÍCONE PREMIUM
============================ */

.home-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-decoration: none;
  color: #222;
}

.home-link svg{
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.home-link:hover{
  opacity: 0.75;
}


/* =========================
   HOME — VERSÍCULO (HTML REAL)
   classes: home-wrap, home-title, home-card, home-verse, home-ref, home-actions
========================= */

.home-wrap{
  max-width: 980px;
  margin: 30px auto 40px;
  padding: 0 16px;
  text-align: center;
}

.home-title{
  font-size: 56px;
  font-weight: 300;
  color: #333;
  margin: 30px 0 18px;
}

.home-card{
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
  padding: 28px;
  max-width: 760px;
  margin: 0 auto; /* centraliza o card */
}

.home-verse{
  font-size: 28px;
  font-weight: 400;
  color: #222;
  line-height: 1.25;
  margin: 0;
}

.home-ref{
  font-size: 14px;
  color: #999;
  margin-left: 8px;
  font-weight: 600;
}

.home-actions{
  margin-top: 18px;
  display: flex;
  justify-content: center; /* centraliza os botões */
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.home-actions a{
  float: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* responsivo */
@media (max-width: 700px){
  .home-title{ font-size: 38px; }
  .home-card{ padding: 18px; }
  .home-verse{ font-size: 22px; }
}

/* ===============================
   FIXES (22/12/2025) — Sidebar cores + scroll + layout
   - Mantém o layout original
   - Garante scroll no menu lateral e no conteúdo
   =============================== */

html, body { height: 100%; }

/* Preferência de cores do menu lateral */
.sidebar,
.sidebar:before,
.sidebar:after {
  background: #0a4c6c !important;
}

.sidebar .nav li > a,
.sidebar .nav li > a i,
.sidebar .nav li > a p,
.sidebar .nav li > a span,
.sidebar .nav li > a .sidebar-normal,
.sidebar .nav li > a .sidebar-mini,
.sidebar .logo a,
.sidebar .logo .simple-text {
  color: #ffffff !important;
}

.sidebar .nav li > a:hover,
.sidebar .nav li > a:focus {
  background: #45bee9 !important;
  color: #ffffff !important;
}

/* Activo/selecionado — mantém legível */
.sidebar .nav li.active > a,
.sidebar .nav li.active > a:hover,
.sidebar .nav li.active > a:focus {
  background: rgba(255,255,255,0.18) !important;
  color: #ffffff !important;
}

/* Desktop: sidebar fixo e com scroll interno */
@media (min-width: 992px) {
  .wrapper { min-height: 100vh; }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
  }

  /* área rolável do menu (livros) */
  .sidebar .sidebar-wrapper {
    height: calc(100vh - 160px); /* espaço para logo + select versão + search */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* conteúdo principal rola normalmente */
  .main-panel {
    margin-left: 260px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
}
.topbar-sarados{
  height:auto;
}

.main-panel{
  padding-top: 0 !important;
}

/* Hover / destaque dos versículos */
.vers{
  padding: 10px 12px;
  border-radius: 10px;
  transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.vers:hover{
  background-color: rgba(0,0,0,.04);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* se os versículos forem links em alguns ecrãs */
a.vers:hover, a .vers:hover{
  text-decoration: none;
}

/* =========================================
   MOBILE FINAL FIX — Bíblia Online Sarados
   - volta o menu hambúrguer (off-canvas)
   - arruma paginação (capítulos)
   - reduz espaçamentos gigantes
   ========================================= */

/* Desktop: esconder botão hambúrguer */
@media (min-width: 992px){
  .sb-toggle{ display:none !important; }
}

/* ==============================
   OFF-CANVAS MOBILE (FINAL)
   Sidebar + Overlay + Scroll Lock
============================== */

/* FIX GLOBAL (evita cortes estranhos e scroll lateral) */
html, body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

/* Desktop: esconder botão hambúrguer */
@media (min-width: 992px){
  .sb-toggle{ display:none !important; }
}

/* MOBILE */
@media (max-width: 991px){

  /* Topo fica acima de tudo */
  .topbar-sarados{
    position: sticky;
    top: 0;
    z-index: 3605 !important;
    background: #fff;
    padding: 10px 12px !important;
  }

  /* topo: força organizar em linhas/colunas (não fica apertado) */
  .topbar-sarados .container,
  .topbar-sarados .container-fluid{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }

  /* cada bloco do topo ocupa a largura */
  .topbar-sarados .container > *,
  .topbar-sarados .container-fluid > *{
    width:100% !important;
    max-width:100% !important;
  }

  /* se houver linha de partilha, centraliza e quebra */
  .topbar-sarados .share,
  .topbar-sarados .share-row,
  .topbar-sarados .topbar-row{
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    gap:10px !important;
  }

  /* overlay escuro */
  .sb-overlay{
    display:none !important;
    position:fixed !important;
    inset:0 !important;
    background:rgba(0,0,0,.35) !important;
    z-index:3600 !important;
  }
  body.sidebar-open .sb-overlay{ display:block !important; }

  /* trava o scroll do site quando o menu abre */
  body.sidebar-open{
    overflow:hidden !important;
    height:100vh !important;
  }

  /* sidebar: FECHADA por defeito */

.sidebar{
  position:fixed !important;
  top:0 !important;
  left:-280px !important;
  width:260px !important;
  height:100vh !important;
  z-index:3602 !important;
  transition:left .22s ease !important;

  overflow:visible !important;   /* ✅ deixa a wrapper controlar o scroll */
  transform:none !important;
}

/* ✅ área rolável real do menu (livros + versões) */
.sidebar .sidebar-wrapper{
  height: calc(100vh - 130px) !important;  /* ✅ desconta o logo do topo */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}


  /* conteúdo ocupa o ecrã todo */
  .main-panel{
    margin-left:0 !important;
    width:100% !important;
    height:auto !important;
    overflow:visible !important;
    padding-top:0 !important;

    /* FIX RODAPÉ */
    min-height:100vh !important;
    padding-bottom:90px !important;
  }

  /* botão hambúrguer sempre visível por cima */
  .sb-toggle{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:42px !important;
    height:38px !important;
    border:0 !important;
    border-radius:10px !important;
    background:rgba(0,0,0,.06) !important;
    color:#333 !important;
    cursor:pointer !important;
    position:relative !important;
    z-index:3606 !important;
  }

  /* containers não podem estourar largura */
  .main-panel,
  .container,
  .container-fluid,
  .row{
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  /* garante que nada empurra para a direita */
  *{ box-sizing:border-box; }

  /* footer acima do fundo */
  footer,
  .footer{
    position:relative !important;
    z-index:1 !important;
  }
}

  /* === FIX TOPO (mobile) === */
  .topbar-sarados *{
    max-width:100% !important;
  }

  /* força o topo a quebrar linha quando necessário */
  .topbar-sarados .container,
  .topbar-sarados .container-fluid{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:10px !important;
  }

/* 
@media (max-width: 991px){
  body::before{
    content:"MODO MOBILE CSS ATIVO";
    position:fixed;
    top:8px; left:8px;
    z-index:99999;
    background:#ffeb3b;
    color:#000;
    padding:6px 10px;
    border-radius:8px;
    font-size:12px;
    font-weight:700;
  }
}
*/

/* =========================================
   TOPBAR MOBILE (ANEXO 2) — sem ficar apertado
   3 linhas: (1) hamburguer+home | (2) partilhe | (3) CTA
========================================= */
@media (max-width: 991px){

  .topbar-sarados{
    height: auto !important;                 /* tira altura fixa */
    padding: 12px 12px !important;
    gap: 10px !important;
    flex-direction: column !important;       /* empilha as linhas */
    align-items: stretch !important;         /* cada linha ocupa a largura */
    justify-content: flex-start !important;
  }

  /* Linha 1: esquerda (hambúrguer + voltar ao início) */
  .topbar-left{
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  .home-link{
    display: inline-flex !important;
    align-items: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  /* Linha 2: partilha centralizada */
  .topbar-center{
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }

  .topbar-label{
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #777 !important;
    margin: 0 6px 0 0 !important;
    white-space: nowrap !important;
  }

  .share-btn{
    width: 44px !important;
    height: 44px !important;
  }

  /* Linha 3: CTA full width */
  .topbar-right{
    width: 100% !important;
    display: block !important;
  }

  .topbar-cta{
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 12px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    text-align: center !important;
    white-space: normal !important;          /* permite quebrar se precisar */
    line-height: 1.15 !important;
  }

  .topbar-badge{
    margin-left: 10px !important;
  }

  /* (opcional) dá um “respiro” antes do conteúdo */
  .main-panel .content{
    margin-top: 10px !important;
  }
}

/* =========================================
   BOTÃO "VER LIVROS DA BÍBLIA" (MOBILE)
   - aparece só no mobile
   - abre o menu lateral
========================================= */
.sb-books-btn{
  display: none;
}

@media (max-width: 991px){

  .sb-books-btn{
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    padding: 14px 14px !important;
    border: 0 !important;
    border-radius: 14px !important;

    background: #0e72a1 !important;          /* azul Sarados */
    color: #fff !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;

    box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
    cursor: pointer !important;
  }

  .sb-books-btn:active{
    transform: translateY(1px);
  }

  /* garante que o topo fica “Anexo 2” */
  .topbar-sarados{
    height: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  /* Linha 1 (hambúrguer + voltar ao início) */
  .topbar-left{
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  /* Linha 2 (partilha) */
  .topbar-center{
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
  }

  /* Linha 3 (CTA) */
  .topbar-right{
    width: 100% !important;
    display: block !important;
  }
  .topbar-cta{
    width: 100% !important;
    justify-content: center !important;
  }
}

/* =====================================
   TOPO MOBILE — VERSÍCULO PARA VOCÊ
   Layout final (sem hambúrguer)
===================================== */

@media (max-width: 991px){

  /* REMOVE QUALQUER BOTÃO HAMBÚRGUER */
  .sb-toggle{
    display:none !important;
  }

  /* Botão VER LIVROS DA BÍBLIA */
  .btn-ver-biblia{
    display:block;
    width: calc(100% - 32px);
    margin: 18px auto 26px; /* 👈 respiro maior */
    padding: 14px 16px;
    background:#0a6fa1;
    color:#fff;
    font-weight:700;
    border-radius:14px;
    text-align:center;
    text-decoration:none !important;
    box-shadow:0 10px 24px rgba(0,0,0,.15);
  }

  .btn-ver-biblia:hover{
    opacity:.95;
  }

  /* Voltar ao Início */
  .home-link{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    font-size:16px;
    font-weight:600;
    margin-bottom:16px; /* respiro */
  }

  /* Área de partilha */
  .topbar-share{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
  }

  /* Caixa "Coloque a bíblia no seu site" */
  .embed-box{
    margin: 0 16px 18px;
  }

  /* ATUALIZAR VERSÍCULO */
  .refresh-verse{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;
    margin: 10px 0 18px;
    font-size:13px;
    font-weight:600;
    color:#0a6fa1;
    cursor:pointer;
  }

  .refresh-verse:hover{
    text-decoration:underline;
  }

}

/* AJUSTE FINO — espaço entre CTA e Atualizar Versículo */
.embed-bible,
.cta-biblia,
.coloque-biblia {
  margin-bottom: 12px !important;
}

.refresh-verse{
  margin-top: 2px !important;
}

/* ===== CORREÇÃO DEFINITIVA DO ESPAÇO EXTRA ===== */

/* bloco do botão atualizar */
.refresh-verse{
  margin: 0 auto 6px !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;
}

/* título */
.home-title,
h1{
  margin-top: 6px !important;
}

/* remove colapsos invisíveis */
.refresh-verse::before,
.refresh-verse::after{
  content: "";
  display: table;
}

/* remove espaçamentos fantasmas antes do refresh */
.refresh-verse br,
.refresh-verse hr{
  display: none !important;
}

/* AJUSTE FINO – reduzir espaço acima do botão atualizar */
.refresh-verse{
  margin-top: -60px !important;
}

/* MOBILE: esconder partilha no topo APENAS na HOME */
@media (max-width: 991px){
  .topbar-sarados.is-home .topbar-center,
  .topbar-sarados.is-home .share-btn,
  .topbar-sarados.is-home .topbar-label{
    display: none !important;
  }

  /* fora da HOME: garantir que aparece */
  .topbar-sarados:not(.is-home) .topbar-center{
    display: flex !important;
  }
  .topbar-sarados:not(.is-home) .share-btn{
    display: inline-flex !important;
  }
  .topbar-sarados:not(.is-home) .topbar-label{
    display: inline !important;
  }
}


/* ===============================
   ORDEM DOS BOTÕES DE PARTILHA (MOBILE)
   WhatsApp > Facebook > Twitter > Email
=============================== */

@media (max-width: 767px){

  /* garante flex */
  .home-actions{
    display: flex !important;
    flex-direction: column !important;
  }

  /* WhatsApp */
  .home-actions a[href*="whatsapp"]{
    order: 1 !important;
  }

  /* Facebook */
  .home-actions a[href*="facebook"]{
    order: 2 !important;
  }

  /* Twitter / X */
  .home-actions a[href*="twitter"],
  .home-actions a[href*="x.com"]{
    order: 3 !important;
  }

  /* Email */
  .home-actions a[href^="mailto"]{
    order: 4 !important;
  }
}

/* =========================================================
   MOBILE FINAL – SIDEBAR + OVERLAY (REGRA ÚNICA E DEFINITIVA)
   ========================================================= */
@media (max-width: 991px){

  /* overlay escuro */
  .sb-overlay{
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,.45) !important;
    z-index: 3600 !important;
  }

  body.sidebar-open .sb-overlay{
    display: block !important;
  }

  /* trava scroll só quando menu está aberto */
  body.sidebar-open{
    overflow: hidden !important;
    height: 100vh !important;
  }

  body:not(.sidebar-open){
    overflow: auto !important;
    height: auto !important;
  }
  
  body:not(.sidebar-open) .sb-overlay{
  display:none !important;
}

  /* sidebar */
  .sidebar{
    position: fixed !important;
    top: 0 !important;
    left: -280px !important;
    width: 260px !important;
    height: 100vh !important;
    z-index: 3700 !important; /* ACIMA do overlay */
    transition: left .25s ease !important;
    overflow: hidden !important;
    background: #0b4f6c;
  }

  body.sidebar-open .sidebar{
    left: 0 !important;
  }

  /* área interna rolável */
  .sidebar-wrapper{
height: calc(100vh - 60px) !important; /* espaço para logo */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

}

/* ===== TÍTULOS DE TESTAMENTO (AT / NT) ===== */
.sidebar .testamento-title{
  margin: 14px 12px 10px;
  padding: 12px 10px;
  border-radius: 6px;

  /* TEXTO */
  font-weight: 800;              /* negrito */
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;            /* centralizado */

  /* COMPORTAMENTO */
  cursor: default;
  pointer-events: none;          /* não clicável */
}

/* --- ANTIGO TESTAMENTO --- */
.sidebar .testamento-title.at{
  background: rgba(255,255,255,0.10);   /* fundo elegante */
  color: #51ade5;                       /* dourado suave */
  border-left: none;
}

/* --- NOVO TESTAMENTO --- */
.sidebar .testamento-title.nt{
  background: rgba(255,255,255,0.10);
  color: #5dade2;                       /* azul suave */
  border-left: none;
}

/* ANTIGO E NOVO TESTAMENTO – MESMA COR DOURADA */
.sidebar .testamento-title.at,
.sidebar .testamento-title.nt{
background: linear-gradient(
  to right,
  rgba(255,255,255,0.05),
  rgba(255,255,255,0.15),
  rgba(255,255,255,0.05)
);

  color: #f4d03f;        /* dourado elegante */
}

/* Títulos AT / NT (fino, centrado, dourado e com fundo) */
.testamento-title{
  display:block;
  text-align:center;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#d6b15a;                 /* dourado */
  margin:12px 12px 8px;
  padding:10px 12px;
  border-radius:10px;
  background:linear-gradient(90deg, rgba(214,177,90,.14), rgba(255,255,255,.04));
 /* fundo subtil */
  border:1px solid rgba(214,177,90,.22);
}


/* ===== FIXES (dez/2025) ===== */
/* Remove o "scroll duplo" no desktop: mantém scroll apenas no .main-panel */
@media (min-width: 992px){
  html, body { height: 100%; }
  body { overflow: hidden; }
  .main-panel { height: 100vh; overflow-y: auto; }
  .sidebar .sidebar-wrapper { padding-bottom: 40px; }
}

/* =========================
   UX Sidebar - melhorias leves
   ========================= */

/* transições suaves */
.sidebar .nav li a,
.sidebar .nav li,
.sidebar .nav-title,
.sidebar .nav-divider {
  transition: all .18s ease-in-out;
}

/* hover mais “limpo” */
.sidebar .nav li a:hover {
  filter: brightness(1.06);
  transform: translateX(2px);
}

/* livro activo (li.active > a) */
.sidebar .nav li.active > a {
  font-weight: 700;
  letter-spacing: .2px;
  position: relative;
  border-radius: 10px;
}

/* “barra” do lado para destacar */
.sidebar .nav li.active > a::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  border-radius: 4px;
  background: rgba(255,255,255,.55);
}

/* título AT/NT (se estiveres a usar .testamento-title) */
.sidebar .testamento-title {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

/* opcional: separador mais discreto */
.sidebar .nav-divider {
  opacity: .35;
}

.testament-badge{
  display:block;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 8px 0 10px !important;

  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;

  color: #0E72A1 !important;

  text-align: center !important;  /* centraliza (desktop e mobile) */
  white-space: normal !important; /* permite quebrar linha se precisar */
}



/* =========================
   AJUSTES MOBILE – TÍTULO DO LIVRO
   ========================= */
@media (max-width: 768px) {

  /* Container do cabeçalho do livro */
  .page-header {
    text-align: center;
    padding: 16px 12px;
  }

  /* Badge NT / AT */
  .page-header .testamento-badge {
    display: inline-block;
    margin: 0 auto 10px auto;
    font-size: 12px;
    padding: 4px 10px;
  }

  /* Nome do livro (ex: Tessalonicenses) */
  .page-header h1,
  .page-header .book-title {
    font-size: 28px;   /* ↓ diminui bem no mobile */
    line-height: 1.15;
    margin: 0;
    text-align: center;
    word-break: break-word;
  }

  /* Número do capítulo */
  .page-header .chapter-number {
    display: block;
    font-size: 22px;
    margin-top: 6px;
    text-align: center;
  }
}

/* =========================================================
   MOBILE — Título do Livro (h1.page-header)
   - Reduzir tamanho para não “quebrar” em 3 linhas
   - Centralizar (UX)
   ========================================================= */
@media (max-width: 767px) {
  h1.page-header {
    font-size: 32px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    margin: 12px 0 12px !important;
    font-weight: 700 !important; /* negrito */
    /* 🔑 correção da centralização */
display: block !important;
width: 100% !important;

  }

  /* dá mais “respiro” ao badge AT/NT quando existe */
  .nt-badge {
    top: 12px !important;
  }
}

/* 🔹 Centralizar card do título no mobile */
@media (max-width: 768px) {
  .page-header {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .card,
  .content,
  .row {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 6px 10px;
    letter-spacing: -0.5px;
  }
}

@media (max-width: 768px) {
  .testamento-badge {
    margin: 0 auto 8px auto;
  }
}

/* =========================================
   BADGE TESTAMENTO — TEXTO PREMIUM
   Substitui AT / NT por texto completo
========================================= */

/* base do badge */
.testamento-badge{
  display: inline-block;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #c9a24d, #e6c77a);
  color: #3b2b00;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

/* esconde o texto original (AT / NT) */
.testamento-badge{
  font-size: 0 !important;
}

/* ANTIGO TESTAMENTO */
.testamento-badge.at::before{
  content: "ANTIGO TESTAMENTO";
  font-size: 12px;
}

/* NOVO TESTAMENTO */
.testamento-badge.nt::before{
  content: "NOVO TESTAMENTO";
  font-size: 12px;
}

/* centralização perfeita no mobile */
@media (max-width: 768px){
  .testamento-badge{
    margin: 0 auto 8px auto;
    display: block;
    text-align: center;
  }
}

/* =========================================
   ESPAÇAMENTO PREMIUM — BADGE + TÍTULO
========================================= */

/* Espaço geral do card no mobile */
@media (max-width: 768px){

  /* Dá respiro ao conteúdo do card */
  .card .content{
    padding-top: 18px;
    padding-bottom: 20px;
  }

  /* Badge NOVO / ANTIGO TESTAMENTO */
  .testamento-badge{
    margin-top: 16px;      /* espaço acima */
    margin-bottom: 26px;   /* espaço abaixo */
  }

  /* Texto gerado via ::before */
  .testamento-badge::before{
    display: block;
    padding: 6px 0;
  }

  /* Título do livro (Romanos 1, etc.) */
  .page-header{
    margin-top: 8px;
    margin-bottom: 18px;
  }
}

/* =========================================
   TESTAMENTO — TEXTO SIMPLES (SEM BADGE)
   Alinhado à esquerda + respiro elegante
========================================= */

.testament-badge{
  background: none !important;
  border: none !important;
  box-shadow: none !important;

  padding: 0 !important;
  margin: 2px 0 42px 0 !important; /* 👈 CONTROLA O RESPIRO AQUI */

  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #0E72A1 !important;

  text-align: left !important;
  display: block;
}

/* remove QUALQUER pseudo-elemento antigo */
.testament-badge::before,
.testament-badge::after{
  content: none !important;
}

/* mobile: mantém padrão */
@media (max-width: 768px){
  .testament-badge{
    margin: 1px 0 54px 0 !important;
    text-align: left !important;
  }
}

/* ===============================
   CENTRALIZAÇÃO FINAL DO CARD
   (desktop + mobile)
================================ */

/* garante que o card fica centrado */
.card {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* evita qualquer desvio interno */
.card .content {
  padding-left: 16px;
  padding-right: 16px;
}

/* mobile – alinhamento perfeito */
@media (max-width: 768px) {
  .card {
    width: 100%;
    max-width: 100%;
  }
}

/* =========================================
   MOBILE — CENTRALIZAR O CARD (caixa branca)
   (sem mexer no desktop)
========================================= */
@media (max-width: 768px){

  /* garante que a linha/coluna não empurra para a esquerda */
  .content .row{
    display: flex !important;
    justify-content: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* remove paddings laterais que criam desalinhamento */
  .content .container-fluid,
  .content .col-md-12{
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* centraliza a caixa branca */
  .content .card{
    width: 100% !important;
    max-width: 520px !important;   /* ajusta se quiseres (480–560) */
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* ✅ MOBILE: remover linhas/divisores extra no menu lateral */
@media (max-width: 768px){
  .sidebar hr,
  .sidebar .divider,
  .sidebar-wrapper hr{
    display: none !important;
  }
}
/* ✅ MOBILE: remove linha extra/risco na sidebar */
@media (max-width: 768px){
  .sidebar,
  .sidebar-wrapper,
  .sidebar-content,
  #sidebar,
  #sbSidebar{
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background-clip: padding-box !important;
  }

  .sidebar *{
    border-top: none !important;
  }
}
@media (max-width: 767px){
  .sidebar{
    box-shadow: none !important;
    outline: none !important;
    border: 0 !important;
  }
}

/* ✅ MOBILE: remover riscos/linhas extras na sidebar */
@media (max-width: 768px){
  .sidebar,
  .sidebar-wrapper,
  .sidebar-content,
  #sidebar,
  #sbSidebar{
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .sidebar hr,
  .sidebar .divider,
  .sidebar-wrapper hr{
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /* às vezes a linha vem de pseudo-elementos */
  .sidebar:before,
  .sidebar:after,
  .sidebar-wrapper:before,
  .sidebar-wrapper:after{
    content: none !important;
    display: none !important;
  }
}

/* ▶ Seta do selector de versões da Bíblia (mobile e desktop) */
.versao-toggle{
  position: relative;
  padding-right: 36px; /* espaço para a seta */
}

.versao-toggle::after{
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #ffffff; /* cor da seta */
  opacity: 0.9;
}

/* 🔄 Quando estiver aberto, a seta vira para cima */
.versao-toggle[aria-expanded="true"]::after{
  transform: translateY(-50%) rotate(180deg);
}

/* ✅ Pesquisa extra só no Mobile (Topbar) */
.mobile-search-only { 
  display: none; 
}

@media (max-width: 768px) {
  .mobile-search-only {
    display: block;
    margin: 10px 0 14px 0;
  }

  .mobile-search-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .mobile-search-wrap input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    background: rgba(255,255,255,.10);
    color: #fff;
  }

  .mobile-search-wrap input::placeholder {
    color: rgba(255,255,255,.75);
  }

  .mobile-search-wrap button {
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    color: #0b4f66;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
  }
}

/* ================================
   FIX TOPBAR: Desktop alinhado
   ================================ */
.topbar-right .mobile-search-only{
  display:none !important; /* nunca aparece no desktop */
}

@media (min-width: 769px){
  .topbar-right{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
  }
  #cta-embed-biblia{
    display:inline-block;
  }
}

/* ================================
   MOBILE: pesquisa com 1 fundo só
   - sem caixa externa
   - sem botão "Buscar" visível
   - placeholder mais escuro
   ================================ */
@media (max-width: 768px){
  .topbar-right .mobile-search-only{
    display:block !important;
    width:100%;
    margin: 12px 0 14px 0;
  }

  /* remove o "fundo extra" */
  .topbar-right .mobile-search-wrap{
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    width:100%;
  }

  /* input com o ÚNICO fundo */
  .topbar-right .mobile-search-wrap input{
    width:100%;
    height:46px;
    border-radius:14px;
    border:1px solid rgba(0,0,0,.10);
    background: rgba(0,0,0,.05);
    padding: 0 14px;
    font-size:16px;
    outline:none;
  }

  .topbar-right .mobile-search-wrap input::placeholder{
    color: rgba(0,0,0,.55); /* mais escuro para aparecer */
  }

  /* esconder o botão branco "Buscar" (a pesquisa funciona ao carregar Enter) */
  .topbar-right .mobile-search-wrap button{
    display:none !important;
  }
}

/* ================================
   DESKTOP FIX: Topbar alinhada
   ================================ */
@media (min-width: 769px){

  /* garante que a barra de topo funciona em linha e não "quebra" */
  .topbar{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    flex-wrap:nowrap !important;
    gap:14px !important;
  }

  /* lado esquerdo: "Voltar ao Início" e redes */
  .topbar-left{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    flex-wrap:nowrap !important;
  }

  /* lado direito: CTA */
  .topbar-right{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    flex-wrap:nowrap !important;
    gap:12px !important;
    margin-left:auto !important;
  }

  /* wrapper do CTA não pode virar bloco grande */
  #cta-embed-biblia{
    display:inline-flex !important;
    align-items:center !important;
  }

  /* garante que o botão não rebenta linha */
  .topbar-cta{
    white-space:nowrap !important;
  }
}

/* GARANTIA: Desktop não pode herdar regras mobile/flex do content */
@media (min-width: 769px){
  .content,
  .content .container-fluid,
  .content .row{
    display: block !important;
  }
}

/* =========================================
   MOBILE: esconder CTA do topo (sem mexer no desktop)
   ========================================= */
@media (max-width: 768px){
  #cta-embed-biblia{
    display: none !important;
  }
}

/* ===============================
   CTA FINAL – MOBILE ONLY
   =============================== */

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .cta-mobile-final {
    padding: 24px 16px;
    text-align: center;
  }

  .cta-embed-final {
    display: inline-block;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    color: #0b4d66;
    border: 2px solid #0b4d66;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }

  .cta-embed-final .cta-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
  }
}
/* =========================
   FIX: Busca (texto branco)
   ========================= */
input[name="palavra"],
input#palavra,
input[type="search"],
input[type="text"]{
  color: #222 !important;
  -webkit-text-fill-color: #222 !important; /* iOS/Safari */
  caret-color: #222 !important;
}

input[name="palavra"]::placeholder,
input#palavra::placeholder,
input[type="search"]::placeholder,
input[type="text"]::placeholder{
  color: #777 !important;
  opacity: 1 !important;
}

/* ✅ Sidebar (mobile/desktop) — cor do texto no campo de busca */
.sidebar input[type="text"],
.sidebar input[type="search"],
.sidebar .form-control{
  color: #fff !important;              /* texto digitado */
  background-color: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.20) !important;
}

/* placeholder (texto “Pesquisar…”) */
.sidebar input[type="text"]::placeholder,
.sidebar input[type="search"]::placeholder,
.sidebar .form-control::placeholder{
  color: rgba(255,255,255,.65) !important;
}

/* iOS/Safari (alguns casos) */
.sidebar input[type="text"]::-webkit-input-placeholder,
.sidebar input[type="search"]::-webkit-input-placeholder{
  color: rgba(255,255,255,.65) !important;
}

/* 🔎 Campo de busca da sidebar (Bíblia Online) */
.sidebar .search input,
.sidebar input[type="search"],
.sidebar input[type="text"]{
  color: #ffffff !important;            /* texto digitado */
  caret-color: #ffffff !important;      /* cursor (barra a piscar) */
  background-color: rgba(255,255,255,0.12) !important;
  border: none !important;
}

/* Placeholder */
.sidebar .search input::placeholder,
.sidebar input::placeholder{
  color: rgba(255,255,255,0.65) !important;
}

/* Safari / iOS (obrigatório) */
.sidebar .search input::-webkit-input-placeholder{
  color: rgba(255,255,255,0.65) !important;
}

/* Remove autofill escuro do iOS */
.sidebar input:-webkit-autofill{
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 9999s ease-in-out 0s;
}
/* 🔎 BUSCA DA SIDEBAR — FIX iOS / Safari */
.sidebar input[type="search"],
.sidebar input[type="text"]{
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important; /* ← ESTA É A CHAVE */
  caret-color: #ffffff !important;

  background-color: rgba(255,255,255,0.15) !important;
  border: none !important;

  color-scheme: light !important; /* força comportamento claro */
}

/* Placeholder — todos os browsers */
.sidebar input::placeholder{
  color: rgba(255,255,255,0.7) !important;
}

/* Safari / iOS */
.sidebar input::-webkit-input-placeholder{
  color: rgba(255,255,255,0.7) !important;
}

/* Autofill iOS (texto invisível bug clássico) */
.sidebar input:-webkit-autofill{
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* ===============================
   MOBILE — Espaço entre botões topo
   =============================== */
@media (max-width: 768px) {

  /* Botão VER LIVROS DA BÍBLIA */
  .btn-books,
  .btn-ver-livros,
  .ver-livros-btn {
    margin-bottom: 14px;
  }

  /* Texto / botão Voltar ao Início */
  .voltar-inicio,
  .btn-voltar,
  .back-home {
    margin-top: 14px;
  }

}
/* MOBILE — respiro entre "VER LIVROS DA BÍBLIA" e "Voltar ao Início" */
@media (max-width: 768px){
  #sbBooksBtn{
    margin-bottom: 18px !important;
  }
}
/* ✅ Respiro entre ATUALIZAR O VERSÍCULO e o título */
.wrap-atualizar-versiculo {
  margin-bottom: 12px !important;
}
/* ✅ HOME — garantir centro do título e layout */
.home-wrap{
  text-align: center;
      padding-top: 6px;
}

.home-title{
  text-align: center !important;
}

.home-card{
  margin: 0 auto;
  text-align: left; /* o conteúdo dentro do card fica legível */
  display: block;
}

@media (max-width: 768px){
  .topbar-center{ 
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
