/**
 * Navigation & Mobile Drilldown Styles (Gospel Livre - Edição Oficial Portal)
 * Paleta Oficial: Deep Navy Ink (#101828), Royal Indigo (#4930c9 / #5b3df5), Ouro Bíblico (#d99a2b)
 * Bordas Geométricas Refinadas (Sem aspecto oval) e Layout Anti-Corte
 */

:root {
  --nav-drawer-width: min(420px, 92vw);

  /* Superfícies & Linhas (Design System Oficial Gospel Livre) */
  --nav-surface-light: #ffffff;
  --nav-surface-muted: #f8fafc;
  --nav-surface-card: #ffffff;
  --nav-border-subtle: #e4e7ec;
  --nav-border-strong: #d0d5dd;

  /* Tipografia & Contrastes */
  --nav-text-main: #101828;
  --nav-text-muted: #475467;
  --nav-text-dim: #667085;

  /* Identidade Visual Oficial Gospel Livre (Royal Indigo - Zero Roxo Puro!) */
  --nav-brand-main: #4930c9;       /* Deep Royal Indigo Oficial */
  --nav-brand-vibrant: #5b3df5;    /* Electric Royal Indigo */
  --nav-brand-soft: #f4f1ff;       /* Soft Indigo Tint */
  --nav-brand-border: #bbaaff;     /* Border Indigo Accent */
  --nav-brand-glow: rgba(73, 48, 201, 0.16);

  /* Fundo Noturno Oficial do Portal (Deep Navy Ink) */
  --nav-ink-950: #0d121f;
  --nav-ink-900: #101828;
  --nav-ink-800: #171f38;
  --nav-ink-700: #1e1649;

  /* Ouro Bíblico Oficial (--gl-gold) */
  --nav-gold-gradient: linear-gradient(135deg, #d99a2b, #b45309);
  --nav-gold-soft: #fff9f1;
  --nav-gold-text: #b45309;
  --nav-gold-border: #fde68a;

  /* Status e Acessibilidade */
  --nav-emerald: #14866d;
  --nav-emerald-soft: rgba(20, 134, 109, 0.12);

  --nav-backdrop: rgba(16, 24, 40, 0.72);
  --nav-transition: 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Bloqueio Global do Scroll
   ========================================================================== */
body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* ==========================================================================
   Botão Hambúrguer de Abertura (Geometria Precisa)
   ========================================================================== */
.btn-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  padding: 0 13px;
  background: #ffffff;
  border: 1.5px solid var(--nav-border-subtle);
  border-radius: 8px; /* Borda geométrica refinada */
  color: var(--nav-text-main);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.btn-hamburger:hover {
  background: var(--nav-brand-soft);
  border-color: var(--nav-brand-border);
  color: var(--nav-brand-main);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--nav-brand-glow);
}

.btn-hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.btn-hamburger-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.btn-hamburger-icon span:nth-child(2) {
  width: 75%;
}

.btn-hamburger:hover .btn-hamburger-icon span:nth-child(2) {
  width: 100%;
}

.btn-hamburger-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Backdrop com Glassmorphism
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--nav-backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99998; /* Acima do header do portal (z-index: 1000) */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--nav-transition), visibility var(--nav-transition);
}

.drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   Gaveta Principal Mobile (.mobile-nav-drawer)
   ========================================================================== */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--nav-drawer-width);
  height: 100%;
  height: 100dvh;
  background-color: #f8fafc;
  box-shadow: 16px 0 50px rgba(16, 24, 40, 0.28);
  z-index: 99999; /* Sobrepõe absolutamente todo o portal para visual imersivo */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform var(--nav-transition), visibility var(--nav-transition);
  will-change: transform;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* Redução de z-index do cabeçalho quando o menu estiver aberto para evitar qualquer sobreposição */
body.menu-open .gl-header,
body.gl-menu-open .gl-header,
body.menu-open header.site-header,
body.gl-menu-open header.site-header {
  z-index: 10 !important;
}

body.admin-bar .mobile-nav-drawer {
  top: 46px;
  height: calc(100% - 46px);
  height: calc(100dvh - 46px);
}
@media (min-width: 783px) {
  body.admin-bar .mobile-nav-drawer {
    top: 32px;
    height: calc(100% - 32px);
    height: calc(100dvh - 32px);
  }
}

/* ==========================================================================
   Esteira dos Painéis Deslizantes - Alinhamento Rígido 100% (Zero Deslocamento)
   ========================================================================== */
.drawer-panels-track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  transition: transform var(--nav-transition);
  will-change: transform;
}

.drawer-panels-track.is-drilled {
  transform: translateX(-100%);
}

.drawer-panel {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8fafc;
  box-sizing: border-box;
}

/* ==========================================================================
   Header Imponente da Gaveta (Identidade Oficial Gospel Livre: Navy & Indigo)
   ========================================================================== */
.drawer-mega-header {
  background: linear-gradient(145deg, #101828 0%, #171f38 60%, #1e1649 100%);
  color: #ffffff;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.drawer-mega-header::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(91, 61, 245, 0.22), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.drawer-header-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.header-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px; /* Borda sutil não-oval */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0e7ff;
}

.header-live-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nav-emerald);
  box-shadow: 0 0 8px var(--nav-emerald);
  animation: pulseLive 2s infinite ease-in-out;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-close-drawer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px; /* Borda geométrica */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.btn-close-drawer:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.drawer-brand-full {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-monogram {
  width: 42px;
  height: 42px;
  border-radius: 8px; /* Borda geométrica, sem aspecto oval */
  background: linear-gradient(135deg, #ffffff 0%, #f4f1ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--nav-brand-main);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.brand-naming h2 {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-naming p {
  font-size: 0.68rem;
  font-weight: 750;
  color: #c7d2fe;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ==========================================================================
   Barra de Pesquisa no Menu Mobile (In-Drawer Quick Search)
   ========================================================================== */
.drawer-search-wrap {
  padding: 0.75rem 1.25rem 0.5rem;
  background: #ffffff;
  border-bottom: 1px solid var(--nav-border-subtle);
  flex-shrink: 0;
}

.drawer-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.drawer-search-input {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 36px;
  background: #f8fafc;
  border: 1px solid var(--nav-border-subtle);
  border-radius: 8px; /* Borda geométrica refinada */
  font-size: 0.85rem;
  color: var(--nav-text-main);
  outline: none;
  transition: all 0.2s ease;
}

.drawer-search-input:focus {
  background: #ffffff;
  border-color: var(--nav-brand-main);
  box-shadow: 0 0 0 3px var(--nav-brand-glow);
}

.drawer-search-icon {
  position: absolute;
  left: 11px;
  color: var(--nav-text-dim);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.drawer-search-submit {
  position: absolute;
  right: 5px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--nav-brand-soft);
  border: none;
  color: var(--nav-brand-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-search-submit:hover {
  background: var(--nav-brand-main);
  color: #ffffff;
}

/* ==========================================================================
   Faixa de Atalhos Rápidos (Quick Tools - Bíblia, Rádio, EBD)
   Ajuste: 3 Colunas Amplas, Bordas Geométricas Refinadas (10px),
   100% de consistência e proporção retangular sem aspecto oval
   ========================================================================== */
.quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  background: #ffffff;
  border-bottom: 1px solid var(--nav-border-subtle);
  flex-shrink: 0;
}

.quick-tool-btn,
a.quick-tool-btn,
button.quick-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.4rem;
  background: #ffffff;
  border: 1px solid var(--nav-border-subtle);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 64px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04), 0 1px 2px rgba(16, 24, 40, 0.02);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: var(--nav-text-main);
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  user-select: none;
}

.quick-tool-btn:hover,
a.quick-tool-btn:hover,
button.quick-tool-btn:hover {
  background: var(--nav-brand-soft);
  border-color: var(--nav-brand-border);
  box-shadow: 0 4px 12px var(--nav-brand-glow);
  transform: translateY(-2px);
}

.quick-tool-btn:active,
a.quick-tool-btn:active,
button.quick-tool-btn:active {
  transform: scale(0.97);
  background: #edf2f7;
}

.quick-tool-icon {
  font-size: 1.45rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  transition: transform 0.2s ease;
}

.quick-tool-btn:hover .quick-tool-icon,
a.quick-tool-btn:hover .quick-tool-icon,
button.quick-tool-btn:hover .quick-tool-icon {
  transform: scale(1.1);
}

.quick-tool-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--nav-text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.quick-tool-btn:hover .quick-tool-label,
a.quick-tool-btn:hover .quick-tool-label,
button.quick-tool-btn:hover .quick-tool-label {
  color: var(--nav-brand-main);
}

/* ==========================================================================
   Área Rolável com Scroll 100dvh (Nunca Corta)
   ========================================================================== */
.drawer-panel-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.15rem;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 24px));
}

/* Cabeçalho de Seção Editorial */
.nav-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nav-text-dim);
  margin: 1.25rem 0 0.6rem;
  padding-left: 0.25rem;
}

.nav-section-title:first-child {
  margin-top: 0;
}

.nav-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--nav-border-subtle);
}

/* Lista de Links em Cartões Encorpados */
.nav-cards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

/* Card Interativo de Navegação */
.nav-portal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: #ffffff;
  border: 1px solid var(--nav-border-subtle);
  border-radius: 9px; /* Borda geométrica consistente */
  text-decoration: none;
  color: var(--nav-text-main);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 56px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  gap: 0.65rem;
  box-sizing: border-box;
}

.nav-portal-card:hover {
  background: #ffffff;
  border-color: var(--nav-brand-border);
  transform: translateX(3px);
  box-shadow: 0 4px 14px var(--nav-brand-glow);
}

.nav-portal-card.is-active {
  background: var(--nav-brand-soft);
  border-color: var(--nav-brand-border);
  box-shadow: 0 4px 12px var(--nav-brand-glow);
}

.nav-portal-card.is-featured-ebd {
  background: #ffffff;
  border: 1px solid var(--nav-border-subtle);
}

.card-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.card-item-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px; /* Borda geométrica, sem aspecto oval */
  background: var(--nav-surface-muted);
  border: 1px solid var(--nav-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nav-portal-card:hover .card-item-icon-box {
  background: var(--nav-brand-soft);
  border-color: var(--nav-brand-border);
  color: var(--nav-brand-main);
}

.card-item-title-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.card-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--nav-text-main);
  line-height: 1.25;
}

.card-item-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--nav-text-dim);
  margin-top: 1px;
  line-height: 1.35;
  white-space: normal;
}

.card-item-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Badge retangular refinada (sem visual oval de pílula gigante) */
.badge-tag-pill {
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.48rem;
  border-radius: 6px; /* Borda sutil não-oval */
  background: var(--nav-brand-soft);
  color: var(--nav-brand-main);
  border: 1px solid var(--nav-brand-border);
  white-space: nowrap; /* Evita quebra de palavras */
  flex-shrink: 0;
  line-height: 1.2;
}

.badge-tag-pill.gold {
  background: var(--nav-gold-soft);
  color: var(--nav-gold-text);
  border-color: var(--nav-gold-border);
}

.card-chevron-circle {
  width: 24px;
  height: 24px;
  border-radius: 6px; /* Borda geométrica, sem aspecto circular de bolha */
  background: var(--nav-surface-muted);
  color: var(--nav-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.nav-portal-card:hover .card-chevron-circle {
  background: var(--nav-brand-main);
  color: #ffffff;
  transform: translateX(2px);
}

/* ==========================================================================
   Widget Editorial no Menu: Rádio Gospel Ao Vivo
   ========================================================================== */
.menu-widget-radio {
  margin-top: 1.35rem;
  background: linear-gradient(135deg, #101828 0%, #1e1649 100%);
  border-radius: 10px; /* Borda geométrica refinada */
  padding: 1.1rem 1.2rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-radio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.widget-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fde047;
}

.widget-radio-title {
  font-size: 1.05rem;
  font-weight: 850;
  margin-bottom: 0.25rem;
}

.widget-radio-desc {
  font-size: 0.78rem;
  color: #c7d2fe;
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.widget-radio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 8px; /* Borda geométrica */
  background: #ffffff;
  color: #101828;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}

.widget-radio-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Soundwaves animadas no widget de Rádio */
.soundwaves {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.soundwaves span {
  display: block;
  width: 3px;
  background: #fde047;
  border-radius: 99px;
  animation: waveMotion 1.2s infinite ease-in-out;
}

.soundwaves span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.soundwaves span:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.soundwaves span:nth-child(3) { height: 9px; animation-delay: 0.2s; }
.soundwaves span:nth-child(4) { height: 12px; animation-delay: 0.4s; }

@keyframes waveMotion {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Versículo do Dia no Rodapé */
.drawer-verse-card {
  background: #ffffff;
  border: 1px dashed var(--nav-brand-border);
  border-radius: 9px;
  padding: 0.85rem 1rem;
  margin-top: 1.15rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.03);
}

.drawer-verse-tag {
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--nav-brand-main);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.drawer-verse-text {
  font-size: 0.84rem;
  font-style: italic;
  color: var(--nav-text-main);
  line-height: 1.5;
}

.drawer-verse-ref {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--nav-text-dim);
  text-align: right;
  margin-top: 0.35rem;
  font-style: normal;
}

/* ==========================================================================
   Subpainel EBD (Nível 2) - Visual Nobre e Completo (Sem Corte de Palavras)
   ========================================================================== */
.drawer-subpanel-header {
  background: linear-gradient(145deg, #101828 0%, #171f38 60%, #1e1649 100%);
  color: #ffffff;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  box-sizing: border-box;
}

.btn-drill-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.4rem 0.75rem;
  border-radius: 8px; /* Borda geométrica */
  cursor: pointer;
  min-height: 36px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-drill-back:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-2px);
}

.subpanel-header-title {
  font-size: 0.95rem;
  font-weight: 850;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  flex: 1;
  min-width: 0;
  padding: 0 0.25rem;
}

.drawer-subpanel-header .btn-close-drawer {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

/* Cards de Trimestres (Com Proteção Contra Corte de Linhas) */
.trimestre-item-card {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--nav-border-subtle);
  border-radius: 9px; /* Borda geométrica */
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 60px;
  gap: 0.75rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.trimestre-item-card:hover {
  border-color: var(--nav-brand-border);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--nav-brand-glow);
}

.trimestre-item-card.is-current-quarter {
  background: #ffffff;
  border: 1px solid var(--nav-border-subtle);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.trimestre-number-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px; /* Borda quadrada elegante */
  background: var(--nav-brand-soft);
  color: var(--nav-brand-main);
  font-weight: 900;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--nav-brand-border);
}

.trimestre-number-badge.is-current {
  background: var(--nav-brand-main);
  color: #ffffff;
  border-color: var(--nav-brand-main);
}

.trimestre-card-info {
  flex: 1;
  min-width: 0; /* Permite que o texto quebre ou se acomode sem cortar */
}

.trimestre-card-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--nav-text-main);
  line-height: 1.25;
  flex-wrap: wrap;
}

.trimestre-card-meta {
  font-size: 0.76rem;
  color: var(--nav-text-muted);
  margin-top: 0.2rem;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.trimestre-card-arrow {
  flex-shrink: 0;
  color: var(--nav-text-dim);
  font-size: 1.05rem;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.trimestre-item-card:hover .trimestre-card-arrow {
  color: var(--nav-brand-main);
  transform: translateX(2px);
}

/* Destaque 4º Trimestre com Visual Editorial Nobre */
.ebd-featured-banner {
  background: linear-gradient(145deg, #101828 0%, #171f38 50%, #1e1649 100%);
  border-radius: 11px; /* Borda geométrica refinada */
  padding: 1.3rem 1.35rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1rem;
}

.featured-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(217, 154, 43, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  margin-bottom: 0.65rem;
}

.featured-book-title {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.featured-book-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 1.1rem;
}

.btn-featured-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px; /* Borda geométrica */
  background: #ffffff;
  color: #101828;
  font-weight: 850;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-featured-action:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

/* ==========================================================================
   Rodapé da Gaveta (Redes Sociais & Transparência)
   ========================================================================== */
.drawer-footer-block {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--nav-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-social-strip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.social-circle-link {
  width: 34px;
  height: 34px;
  border-radius: 8px; /* Borda geométrica */
  background: #ffffff;
  border: 1px solid var(--nav-border-subtle);
  color: var(--nav-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-circle-link:hover {
  background: var(--nav-brand-main);
  color: #ffffff;
  border-color: var(--nav-brand-main);
  transform: translateY(-2px);
}

/* Desktop */
@media (min-width: 992px) {
  .btn-hamburger,
  .mobile-nav-drawer,
  .drawer-backdrop {
    display: none !important;
  }
}
